color map based on area
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
A 3D volume is constructed from a stack of 2D masks (slices). How to color each slice based on the area of the object inside. Suppose the volume is a trunk.
2 Kommentare
Walter Roberson
am 25 Jul. 2018
Do you want all the pixels selected by the mask of a slice to be the same color? Or do you want to shade by value, different brightness of the color according to pixel value?
Antworten (2)
Walter Roberson
am 25 Jul. 2018
colorval = repmat( sum( sum( masks3d, 1), 2) ), size(masks3d, 1), size(masks3d, 2), 1 ) .* masks3d;
vol3d('CData', colorval', 'alpha', double(masks3d))
0 Kommentare
Siehe auch
Kategorien
Mehr zu 3-D Volumetric Image Processing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!