Re: Coordinates of Maximum
Posted by
Herbie-3 on
URL: http://imagej.273.s1.nabble.com/Coordinates-of-Maximum-tp5007427p5007428.html
Kenton,
thinking logically might tell us that getting the exact maximum implies
searching the whole area of interest. That said, the maximum you get
from the "measure"-command does just this but not with macro speed.
The best would be to write a plugin that provides the desired
coordinates and has Java-speed. Most probably it has already been written...
Another issue is noise. How do you think you can avoid the influence of
noise on the maximum value? I.e., how can you be sure that the maximum
isn't caused by noise?
Just some thoughts
Herbie
:::::::::::::::::::::::::::::::::::::::
On 25.04.14 13:38, Kenton Arkill wrote:
> Hi
> I have an area of an image for which there is a maximum value within that
> area (i.e. the max value if I "measure"). What is the most efficient way of
> getting the coordinates in in the macro language? I have 10s of thousands
> to do. The 'find maxima' does not always find one (sometimes more,
> sometimes less). It is difficult to set the noise tolerance to always get
> one.
>
> I could get the value and search the area for it pixel by pixel but that
> seems a slow workaround.
> Any ideas welcome.
> Regards
> Kenton
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html