Re: Find maxima .. algorithm discription
Posted by Ayman on
URL: http://imagej.273.s1.nabble.com/Find-maxima-algorithm-discription-tp3683914p3683918.html
Dear Michael,
I searched the source code archive in ImageJ's developer resources and was unable to find the source code for "Find Maxima". Do you know where this code might be available? I ask because there are many different algorithms for flood filling and I'd like to incorporate the one that "Find Maxima" uses. Alternatively, would you be able to provide the source code?
Ayman
<quote author="Michael Schmid-3">
Hi Ayman,
maybe an example is best:
Say, you have a maximum of pixel value 100 and the tolerance is 10.
If the maximum is a single pixel surrounded by pixels with a value
less than 100-10=90, then 'Maximum within tolerance' will give you
that pixel only.
If it has a neighbor of, say, pixel value 95, and everything around
this is below 90, 'Maximum within tolerance' gives you these two
pixels, the one with 100 and with 95.
If there are three adjacent pixels in a row, with values 100, 91 and
98, everything else below 90, they will be considered a single
maximum and you will see all three pixels in 'Maximum within tolerance'.