osirix | OsiriX DICOM ViewerMore informations about this software | Messaging library
kandi X-RAY | osirix Summary
kandi X-RAY | osirix Summary
OsiriX DICOM Viewer
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of osirix
osirix Key Features
osirix Examples and Code Snippets
Community Discussions
Trending Discussions on osirix
QUESTION
I am working on a plugin in objective-C which I am running in Osirix. At some point in the plugin I initialize two large arrays (which are meant to accept a 512x512 image which is later fed into a CoreML model). The original plugin used a coreml model which accepted 200x200 sized images, the var IMG_SQSIZE was set as 200^2 and everything worked fine. Now I have increased IMG_SQSIZE to 512^2 but this crashes the plugin. If I the array initialization and everything after there is no crash, if I keep this line but remove everything after the crash persists...so I've concluded that this is causing the problem. I'm new to Objective-C and X-code but this seems like a memory issue. I'm wondering if this is memory I need to allocate in the code (it builds fine) or if this is an issue with the program running the plugin. Any advice would be great, thanks
...ANSWER
Answered 2020-Jul-11 at 11:45Note that 512^2 is a LOT larger than 200^2 and I suspect as you do that it is a memory issue.
You should allocate the memory using malloc and move the code to C. This is my suggestion based on the requirements - lots of memory and an array of doubles. If you could use floats or even ints here it would also dramatically reduce the resource requirements so see if that can work.
At least with Objective-C this is fairly easy to do but you should probably wrap all of this inside its own autoreleasepool
as well.
Let's try the easy way first. See if the following works.
QUESTION
I need to be able to read the 'version' of my application (aka Osirix) and compare it to an expected value. I know how to do the comparison but I am not sure how to read the version now.
I think I could do this by reading it from the Get Info window, or reading it from the Version column in Finder/Application column
I cannot seem to find examples to modify for either option
set ReadAppVersion to value of version of application "Osirix"
ANSWER
Answered 2019-Sep-06 at 13:14Simply delete value of
QUESTION
How do I detect if my dialog window has closed?
- I open a dialog window
- Then I want to read the window header value and display the results
- Then I close the window
Then I want to detect if the window dialog closed
on DatabaseRefresher() menu_click({"OsiriX", "Plugins", "Database", "SetRemoteDatabaseRefresh"}) delay 1 set Test1 to 0
set Test1 to value of static text "RemoteDatabasePrefs" of window "RemoteDatabasePrefs" of application process "OsiriX" of application "System Events" log Test1 PressButton("Cancel", "OsiriX", "RemoteDatabasePrefs") --(TheButtonToPress, TheProgramName, TheWindow) Add test here to detect if window closed) end DatabaseRefresher
Here are my window elements:
...ANSWER
Answered 2018-Aug-02 at 12:35This line is a bit odd:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install osirix
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page