1 / 76

Plugins, Part 1

Plugins, Part 1. http://mipav.cit.nih.gov. Medical Image Processing, Analysis & Visualization & Plugins. Justin Senseney SenseneyJ@mail.nih.gov dcb.cit.nih.gov/~ senseneyj Biomedical Image Processing Research Services Section Center for Information Technology mipav.cit.nih.gov. Employees

dwayne
Download Presentation

Plugins, Part 1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Plugins, Part 1 http://mipav.cit.nih.gov

  2. Medical Image Processing, Analysis & Visualization&Plugins Justin Senseney SenseneyJ@mail.nih.gov dcb.cit.nih.gov/~senseneyj Biomedical Image Processing Research Services Section Center for Information Technology mipav.cit.nih.gov

  3. Employees Ruida Cheng William Gandler Matthew McAuliffe Evan McCreedy Justin Senseney Fellows Sara Shen Contractors Alexandra Bokinsky, Geometric Tools Inc. (Visualization) Olga Vovk, SRA International Inc. (Technical Writing) Alumni Paul Hemler, Agatha Munzon, Nishith Pandya, Beth Tyriee, Hailong Wang MIPAV Team

  4. Mipav Interface • Options exist • How to manipulate

  5. Plugins • PlugInAlgorithm – Develop new functionality and ability to call functions already in MIPAV. • PlugInFile – Develop files readers to support unique file formats. • PlugInGeneric – Plugins that do not require an open image. • PlugInView – Develop new visualizations of datasets. • PlugIn – ImageJ plugin.

  6. Plugins • To build a plugin, three files are typically used: • PlugInTest.class • Interface between MIPAV and plugin. • PlugInDialogTest.class • Creates dialog for input. • PlugInAlgorithmTest.class • The actual algorithm.

  7. Plugins - Location • Stored for each user: • Windows - C:\Users\{{user_name}}\mipav\plugins • Linux/Mac OS - /home/{{user_name}}/mipav/plugins

  8. Plugins - Installing

  9. Plugins – Installing • Installing a plugin (Plugins -> Install Plugin) • Copies files: • .class • .jar • .zip • into user directory. HINT: If something goes wrong, just copy the files yourself using locations on Slide 8.

  10. Plugins – Installing (2)

  11. Plugins - Executing

  12. Plugins - Scripting Execute plugin

  13. Script Running Review

  14. Uninstall Plugin

  15. Plugin Lab • Install • PlugInCT_MD – already in MIPAV • MuscleSegmentation – http://dcb.cit.nih.gov/~senseneyj/code/muscleSeg.html • Bio-Formats - http://dcb.cit.nih.gov/~senseneyj/code/bioformats.html • ImageJ plugin – http://dcb.cit.nih.gov/~senseneyj/code/imagej.html

  16. Plugins from command line • Mipav –pPlugin_Name • Can be run headless

  17. Break - Review • Plugins • File • Generic • Algorithm • View • Stored in user folder • Install, Run, Uninstall

  18. Development environment • Textpad: http://www.textpad.com/ • Simple, few linked files • Want to learn Java • Eclipse: http://www.eclipse.org/ • Many files, libraries • Source repository • Want to use Java

  19. Download Eclipse • Download here: • http://www.eclipse.org/downloads/

  20. “Install” Eclipse

  21. Fix Eclipse Specify Memory

  22. Start Eclipse

  23. Java Programs • Virtual machine = platform independent • JRE to execute

  24. JRE Setting

  25. Add JRE

  26. Locate JRE

  27. Locate JRE

  28. Eclipse project • Mipav • Java project • Contains plugins

  29. Make Mipav Project

  30. Make Mipav Project Specify JRE

  31. Mipav Program • Execution environment needs to be replicated

  32. Execution environment • Classpath • Libraries - jars • Associated class files • Memory – used by VM • Launching class file

  33. Jars • Libraries • PDFbox • JPEG2000 • ImageJ • Help files • Insight Toolkit wrappers

  34. Add Jars

  35. More Jars

  36. More Jars: Help

  37. More Jars: ITK

  38. Class files • Object-oriented • Executable programs • In Mipav: • Read/write images • Apply filters • Run plugins!

  39. External class folder Select the correct version of Mipav

  40. Click Finish! Note class folder and JRE selection

  41. MipavMain

  42. Run Configuration

  43. New Configuration

  44. Select Main Type

  45. Java Memory • -Xms (min), -Xmx (max)

  46. Memory

  47. Run Mipav • MipavMain is executed • Classpath is set • Memory allocated • Libraries are referenced

  48. Mipav Launched • Version number • VM Memory

  49. View JVM Info

More Related