Login  Register

Re: finding the location of the brightest pixel(s)

Posted by Peter Haub on Mar 14, 2016; 11:16am
URL: http://imagej.273.s1.nabble.com/finding-the-location-of-the-brightest-pixel-s-tp5015879p5015882.html

Hi Jeremy,

***** macro code ******
noise=20;
run("Find Maxima...", "noise=" + noise + " output=[Point Selection]");
run("Set Measurements...", "mean min centroid redirect=None decimal=6");
run("Measure");
**********************

Increase the noise value until you get only the brightest spot.

Regards,
Peter


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

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