Hi
//from find maxima check the point selection (in Macro language).
radius = 10; //whatever
run("Find Maxima...", "noise=100 output=[Point Selection]"); //choose noise
correctly
run("Measure"); //Might need to remove scales in image prior to this
//All your points are in the results table to manipulate as you will
X=newArray(nResults);
Y=newArray(nResults);
for(i=0;i<nResults;i++){
X[i]=getResult("X",i);
Y[i]=getResult("Y",i);
}
for(i=0;i<nResults;i++){
makeOval(X[i]-radius, Y[i]-radius, 2*radius, 2*radius);
// DO WHATEVER HERE
}
On 17 May 2015 at 20:53, sam <
[hidden email]> wrote:
> Hi all,
>
> I am trying to do the following:
>
> Use findMaxima to find multiple points in the image
> Use these coordinates to draw multiple circles, with each point as the
> centre of a circle
> Measure the signal inside each circle.
>
> My strategy has been to find the maxima and add the output to the roi
> manager. However, I have not been able to then draw a circle around each
> point.
>
> Sorry for the basic nature of the question but I am still not very good at
> imagej programming!
>
> Thanks,
>
> Sam
>
>
>
> --
> View this message in context:
>
http://imagej.1557.x6.nabble.com/Draw-circles-around-findMaxima-output-tp5012854.html> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html