Re: Concentric Circle Formation Slices
Posted by
Gabriel Landini on
Aug 18, 2020; 7:17pm
URL: http://imagej.273.s1.nabble.com/Concentric-Circle-Formation-Slices-tp5023860p5023865.html
On Tuesday, 18 August 2020 17:58:16 BST Thaddeus wrote:
> Update on a certain image this macro actually works for producing
> appropriate size circles that are about the same centroid. Mathematically
> it makes sense. However, on images I am actually interested in it doesn't
> work and makes random sized and position circles. Here it is:
I think this has to do with the calibration of the image.
If I run the macro on the flybrain image (in one duplicated slice, which is
calibrated in um) the new circle is centred elsewhere and it becomes larger.
If I remove the calibration, then it works fine.
So try adding "raw" to the values that you get, i.e.:
W1 = getValue("Width raw");
H1 = getValue("Height raw");
xb = getValue("BX raw");
yb = getValue("BY raw");
Cheers
Gabriel
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html