Handy submission, but not very well documented and a little inaccurate. For example, should the inner or the outer boundary of the blobs be drawn? Also, the outline is off by one on the top and left edges:
Nonetheless, most DICOMDIR files are indeed sorted in left-most-child-right-sibling order. I added checks to parseDicomDir.m to find out when this is NOT the case, so the script throws an error is the assumed order is not present. Contact me if you would like to have these changes.
If I am not mistaken, this submission heavily relies on internal ordering of the DICOMDIR records. However, as pointed out here , the ordering is not mandatory, so that this submission would handle unordered DICOMDIR files incorrectly.
I would suggest adding the following code to mha_read_volume.m, near line 77, if working with vector data:
V = reshape(V,[info.Dimensions,str2double(info.ElementNumberOfChannels)]);
V = reshape(V,info.Dimensions);
04 Nov 2013
MIP, Color, Slice and Shaded 3D (shearwarp) Volume Rendering, interactive 3D view/measurement GUI