Posted by
Olivier Burri on
Mar 04, 2015; 1:56pm
URL: http://imagej.273.s1.nabble.com/Odd-Create-Selection-Behavior-tp5011870.html
My apologies, I wrote my email in a reply to the wrong thread. Apologies again
Here it is in a proper subject....
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--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html