Login  Register

Re: Possible bug in Edit->Selection->Create Selection

Posted by Michael Schmid on Mar 06, 2014; 6:33pm
URL: http://imagej.273.s1.nabble.com/Possible-bug-in-Edit-Selection-Create-Selection-tp5006803p5006805.html

Hi Neil,

when working with 16-bit or 32-bit images, the 'red' display of the thresholded area is only an approximation.  It simply updates the color lookup table, so there are only 156 distinct values of the threshold where it is correct.  Maybe that explains your problem?

--

For showing a file to others on the mailing list, it might be the easiest to upload it to a web server (your own one, if you have one, or some dropbox-like service).  I guess that the mailing list only accepts rather small attachments.

Michael
________________________________________________________________
On Mar 6, 2014, at 19:21, Neil Fazel wrote:

> I have a thresholded grayscale image on which I used Edit->Selection->Create Selection; the selection which was created is not closed, i.e. it does not fully contain the thresholded region, as I think it should. Also, when I use getSelectionCoordinates() on it, it returns only 4 points, whereas the selection has many more vertices.
>
> To reproduce, please
>
> 1) import the .txt image into ImageJ,
> 2) threshold it (using 0.644 and 77 for the lower & upper threshold levels, resp.).
> 3) use Edit->Selection->Create Selection to create a selection.
>
> You will see that the selection skips thresholded regions at the bottom of the image.
>
> I tried 3 times to attach the relevant files (.txt, .roi, .tiff) necessary to reproduce the problem, but each time ImageJ server rejected them (it doesn't like .roi or .zip files). Who should I email them to?
>
> Vielen Dank!
> Neil

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