Re: finding the location of the brightest pixel(s)
Posted by
Gabriel Landini on
Mar 14, 2016; 4:39pm
URL: http://imagej.273.s1.nabble.com/finding-the-location-of-the-brightest-pixel-s-tp5015879p5015896.html
On Monday 14 Mar 2016 15:38:38 Jeremy Adler wrote:
> 3) The Histogram and the getMinandMax macro command do all that is required
> to find the location of the most intense pixel(s), except to save the
> location(s) and I am suggesting that maybe one of them could be tweaked to
> also return the location- in two arrays holding the X and Y coordinates. A
> simple Find MaxLocations might be of sufficient utility include in ImageJ.
Why restrict the procedure to the maximum?
A better option is to create a plugin that scans the image and dumps the
coordinates of a specified value to an array or the Results table.
That way you can use it to also the specify the coordinates of pixels with
minimum, mode, etc.
Something like FindLocations(value) and returns two arrays.
What I do not know, how to do is returning the arrays to the macro language.
Cheers
Gabriel
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html