Login  Register

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

Posted by Gabriel Landini on Mar 14, 2016; 11:23am
URL: http://imagej.273.s1.nabble.com/finding-the-location-of-the-brightest-pixel-s-tp5015879p5015883.html

On Monday 14 Mar 2016 10:56:48 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.

Hi Jeremy,
Show the point preview with the Find Maxima, then you transfer the point set
to the ROI manager, and press "Measure". That should show a table with the
coordinates of points.
Something like:

run("Find Maxima...", "noise=10 output=[Point Selection]");
roiManager("Add");
roiManager("Measure");

Maybe you have to play with the "noise" parameter of the Find Maxima.
Cheers

Gabriel

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