Login  Register

Re: 3D skeleton and length measurement

Posted by Olivier Burri on Mar 04, 2015; 1:53pm
URL: http://imagej.273.s1.nabble.com/3D-skeleton-and-length-measurement-tp5011810p5011869.html

Hi all,

Odd behavior here. If you run the following code, you will notice that after the median filter operation, the create selection outputs the inverse of the selection. I tried looking into the rankfilters code but could not find where this behavior could come from...

The problem is "Solved" if we invert the LUT, even though nothing was done to it.

So I thought that somehow the image was flagged as having an  inverted LUT, but checking for that gave no change...

I also looked into the ThresholdToSelection.java code to see if it was using some property or other, but to no avail...

If anyone has any thoughts, that would be great...

run("Blobs (25K)");
setAutoThreshold("Huang");
run("Convert to Mask");
run("Create Selection");
Roi.setName("Before Median");
roiManager("Add");
print("Inverting LUT: ", is("Inverting LUT"));
run("Select None");
run("Median...", "radius=4");
run("Create Selection");
Roi.setName("After Median");
roiManager("Add");
print("Inverting LUT: ", is("Inverting LUT"));

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html