How to develop a fusion plugin
Simple fusion plugin generating Bland-Altman plot to compare every pixel on two images.
What is it?
Bland-Altman plot to compare every pixel on two images. Sample use:
Some remarks on plugin development and use of CorePlot framework
- There is a new plugin template project in
_help
folder at the OsiriX plugins repository - Change
plugin type
tofusionFiler
in theInfo.plist
file. - In
Edit scheme
add executable (Horos or Osirix) in the Info tab. In the Arguments tab add--LoadPlugin $(BUILT_PRODUCTS_DIR)/$(PRODUCT_NAME).$(WRAPPER_EXTENSION)
. - Follow the directions to add CoreData Framework
For some reason the plugin does not see the CoreData framework file. In the
Build Settings/Framework search paths
I added the path to the compiled CoreData framework (<your CorePlot directory>/core-plot/build/Debug
). - File -> new file -> user Interface -> empty -> add new HUD Panel.pl
- Rename:
- the file names in finder
- the file names and class names in the xcode project
- all occurrences of the ‘plugin Template’ in the Build Settings
- Target name
Scheme name
inManage Schemes
.Target
name inBuild
tab in the scheme window.Expand Variables based on
inRun
tab in scheme window.
- Write the code, see the repository.