File Exchange

image thumbnail

Visualization of multi-modal volume segmentation

version (3.13 KB) by Pavel Dvorak
Visualize single- or multi-modal 2D or 3D images and corresponding segmentation


Updated 29 Nov 2014

View License

It can visualize single- or multi-modal 2D or 3D images in a selected plane, which can be switched.
Modalities are switched by left slider, slices are changed by botom slider. Planes are switched by radiobutton group.
It can be used for visualization of the segmentation, where the segmentation has to be a binary matrix.
For the evaluation purposes, the manual segmentation can be input as the third argument. Both segmentation are depicted with different color (red and blue). In this case, the evaluation coefficients (Jaccard, Dice, Tanimoto, Accuracy, TPR, FNR, FPR and FNR) are computed and shown in table for particular slice and for the whole volume. This may require RoI definition, which can be input as the fourth argument, otherwise the whole image/volume is considered.
These coefficients may be obtained the output of the function.
Done button has to be pushed to properly exit.
Imoverlay function has to be downloaded from

Comments and Ratings (3)

longfei jiao

Pavel Dvorak

Sorry,there should be evalSegmentation, which is enclosed, insted. I have corrected it, try to download the new version.


Marc (view profile)

where could i get "sevaluateMR.m"


evaluation corrected

visualization updated, it can correctly visualize all modalities

visualizing updated

update function returned error work for 1 modalityor 1 slice. Corrected !!!

visualization updated - if segmentation exist, it automatically navigates to the slice, where the segmentation is largest

title changed

description updated

description updated

picture added

description changed

name changed

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Tools for NIfTI and ANALYZE image, Image overlay

Discover Live Editor

Create scripts with code, output, and formatted text in a single executable document.

Learn About Live Editor