Getting Started First Steps with Mevislab
Total Page:16
File Type:pdf, Size:1020Kb
Getting Started First Steps with MeVisLab 1 Getting Started Getting Started Copyright © 2003-2021 MeVis Medical Solutions Published 2021-05-11 2 Table of Contents 1. Before We Start ................................................................................................................... 10 1.1. Welcome to MeVisLab ............................................................................................... 10 1.2. Coverage of the Document ........................................................................................ 10 1.3. Intended Audience ..................................................................................................... 11 1.4. Conventions Used in This Document .......................................................................... 11 1.4.1. Activities ......................................................................................................... 11 1.4.2. Formatting ...................................................................................................... 11 1.5. How to Read This Document ..................................................................................... 12 1.6. Related MeVisLab Documents ................................................................................... 12 1.7. Glossary (abbreviated) ............................................................................................... 13 2. The Nuts and Bolts of MeVisLab ........................................................................................... 15 2.1. MeVisLab Basics ....................................................................................................... 15 2.2. Development in MeVisLab ......................................................................................... 16 2.3. MeVisLab Modules .................................................................................................... 17 2.4. Fields ........................................................................................................................ 18 2.5. Networks ................................................................................................................... 19 2.6. Overview of Important Files ........................................................................................ 20 2.7. User Interfaces Controls ............................................................................................ 21 2.8. Scripting .................................................................................................................... 22 2.9. How to Find More Information on Networks and Modules ............................................. 22 3. Loading and Viewing Images ................................................................................................ 24 3.1. The MeVisLab GUI .................................................................................................... 24 3.2. Searching and Adding Modules .................................................................................. 25 3.3. Using the ImageLoad Module ..................................................................................... 28 3.4. Adding Viewers to ImageLoad .................................................................................... 33 3.4.1. Adding the View2D Module ............................................................................. 33 3.4.2. Adding the View3D Module ............................................................................. 37 3.5. Alternative Ways to Load Images ............................................................................... 37 3.5.1. Dragging Images onto the Workspace .............................................................. 37 3.5.2. Using the LocalImage Module ......................................................................... 38 3.6. A Note on Importing DICOM Images .......................................................................... 39 4. Implementing a Contour Filter ............................................................................................... 41 4.1. Loading the Input Image ............................................................................................ 41 4.2. Implementing the Contour Filter .................................................................................. 42 4.3. Parameter Connection for Synchronization .................................................................. 46 5. Defining a Region of Interest (ROI) ....................................................................................... 49 5.1. Creating a Viewer with a Selection Rectangle ............................................................. 50 5.2. Adding a Second Viewer for the Subimage ................................................................. 50 5.3. Adding the Interactivity for the Viewers ....................................................................... 51 6. Excursion: Functionality Overview ......................................................................................... 56 6.1. Image Handling and Processing ................................................................................. 56 6.1.1. Image Handling .............................................................................................. 56 6.1.2. Image Properties ............................................................................................ 56 6.1.3. Basic Image Processing .................................................................................. 56 6.1.4. Filter .............................................................................................................. 57 6.1.5. Segmentation ................................................................................................. 57 6.2. Visualization .............................................................................................................. 57 6.2.1. 2D Viewing ..................................................................................................... 57 6.2.2. 3D Viewing ..................................................................................................... 58 6.2.3. Lookup Tables ................................................................................................ 58 6.3. Data Objects ............................................................................................................. 58 6.3.1. Markers .......................................................................................................... 58 6.3.2. Curves ........................................................................................................... 59 6.3.3. Contours ........................................................................................................ 59 6.3.4. Surface objects ............................................................................................... 59 3 Getting Started 6.4. Miscellaneous ............................................................................................................ 59 6.4.1. Fields ............................................................................................................. 59 6.4.2. Diagnostic ...................................................................................................... 60 7. Creating an Open Inventor Scene ......................................................................................... 61 7.1. Introduction to Open Inventor ..................................................................................... 62 7.2. Creating the Applicator .............................................................................................. 64 7.3. Creating the Interaction .............................................................................................. 67 7.4. Creating the Anatomical Image .................................................................................. 70 7.5. Finishing the Complete Open Inventor Scene .............................................................. 71 8. Starting Development with Package Creation ......................................................................... 75 8.1. What are Packages ................................................................................................... 75 8.2. Creating a User Package for Your Project ................................................................... 77 9. Introduction to Macro Modules .............................................................................................. 78 10. Developing a Macro Module for an Applicator ...................................................................... 80 10.1. Creating a Basic Global Macro ................................................................................. 80 10.2. Adding the Macro Parameters and Panel .................................................................. 84 10.3. Programming the Python Script ................................................................................ 89 10.4. Addition: Shifting the Whole Tip ................................................................................ 94 11. GUI Design in MeVisLab .................................................................................................... 97 11.1. MeVisLab Definition Language (MDL) ....................................................................... 98 11.1.1. MDL Validator ............................................................................................... 98 11.1.2. MDL Controls ..............................................................................................