Differences
This shows you the differences between two versions of the page.
— | imageprocessing:mevislab [2020/06/10 21:42] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~ODT~~ | ||
+ | ImageProcessing-Tricks with ImageJ, ImageMagick and MeVisLab | ||
+ | |||
+ | ====== IsoSurface-Visualization ====== | ||
+ | Use a GVRVolumeLoad-Module to load a .gvr-File (such as the one created with the network above). " | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Explanation: | ||
+ | * LocalImage just loads a default bone CT scan. | ||
+ | * GCRVolumeSave (saves it as a .gvr-File) | ||
+ | * GVRVolumeLoad (does what it says) | ||
+ | * GVRVolumeToImage converts the volume to an image. Choose the "Node Height" | ||
+ | * View3D1, View2D, OrthoView2D1 show different views of the dataset | ||
+ | * Diagram2D and SoRenderArea show the Histogram of the data, nice to know for the IsoSurface | ||
+ | * ROISelect (does what is says, it selects a ROI from the original dataset) | ||
+ | * Switch lets you switch between the ROI and the full dataset | ||
+ | * IsoSurface calculated the IsoSurface of the data with a chosen threshold | ||
+ | * SoEWMRenderer renders the IsoSurface to the SoExaminerViewer which has a SoBackground attached for a nice gradient Background | ||
+ | * The SoSeparator with attached SoTransaltion translate the IsoSurface in space so we can show the original dataset and the IsoSurface in conjucntion with a View3d (with toggled InventorInputs) | ||
+ | |||
+ | ====== put file-dimension into the name of the saved file ====== | ||
+ | {{ : | ||
+ | |||
+ | An exemplary network for your perusal is shown on the right and can be downloaded here: {{: | ||
+ | |||
+ | ====== Render a Video ====== | ||
+ | The simples way to generate a movie of e.g. a rotation your visualization is to use the internal movie-possibilities of MeVisLab. | ||
+ | |||
+ | First, generate your network, and use a SoCustomExaminerViewer or SoExaminerViewer for visualizing your result (see image below or use the premade network {{: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Use the right mouse button to open the panel of the SoCustomExaminerViewer | ||
+ | |||
+ | {{: | ||
+ | |||
+ | On the " | ||
+ | |||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | |||
+ | I've had only bad luck with using the " | ||
+ | |||
+ | convert *.tif movie.mpg | ||
+ | |||
+ | should do the trick of creating a movie out of your still files. | ||
+ | |||
+ | I'm generally using QuickTime Player Pro to generate a movie since I'm presenting with [[http:// | ||
+ | |||
+ | In the end you should have a movie like the one shown below | ||
+ | |||
+ | {{video> | ||
+ | |||
+ | If it's not shown directly, you can download the movie as {{: | ||
+ | |||
+ | |||
+ | ====== how to convert a stack of files into .GVR ====== | ||
+ | * Use "File > Import > Image Sequence" | ||
+ | * Save the (virtual) stack as .raw using "File > Save as > Raw Data". | ||
+ | * make a note of the dimensions of the file dimension (x*y*z), you'll need them afterwards. It's probably best to write them into the filename... | ||
+ | * use the file {{: | ||
+ | * enter the dimension you've noted before into the ImgLoad-module (also on the right) {{ : | ||
+ | * press save in the GVRSave-Module (after having chosen the correct path...) | ||
+ | * let MeVisLab calculate for a looooong time. | ||
+ | * enjoy your .GVR-file for further calculations. It will be saved to your SaveFileDirectory (found in the preferences: | ||