Re: finding the location of the brightest pixel(s)
Posted by
Christian Liebig-3 on
Mar 14, 2016; 12:04pm
URL: http://imagej.273.s1.nabble.com/finding-the-location-of-the-brightest-pixel-s-tp5015879p5015885.html
Hi Jeremy,
this little macro should go in the right direction:
getMinAndMax(min,max);
setThreshold(max, max);
run("Convert to Mask");
run("Create Selection");
roiManager("Add");
Best,
Christian
On 14.03.2016 11:56, Jeremy Adler wrote:
> Have I failed to spot a simple command that finds the most intense pixel(s) and reports its location ?
>
> Process/Find maxima provides a list of all the maxima which probably but not necessarily includes the pixel(s) with the peak intensity- and the results could be searched for the brightest.
>
> Perhaps the Histogram command could be extended to produce a pair of arrays that hold the coordinates - it already provides the intensity of the most intense pixel(s).
>
> I appreciate that it is easy to create a macro to find the most intense pixel and its location but, I suspect that an easily applicable command would be of general use.
>
>
>
> Jeremy
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
Christian Liebig, PhD
Light Microscopy Facility
Max-Planck-Institute for Developmental Biology
Spemannstrasse 35
D-72076 Tuebingen
Germany
Phone: +49 7071 601 443
e-mail:
[hidden email]
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html