Login  Register

Re: Problem with getting XStart

Posted by Jan Eglinger on Jul 17, 2014; 4:24pm
URL: http://imagej.273.s1.nabble.com/Problem-with-getting-XStart-tp5008803p5008805.html

Hi AndersS,

On 17.07.2014, 5:00 PM, AndersS wrote:

> I have a problem when I try to analyze my images in ImageJ.
> I run the line
>
> run("Analyze Particles...", "  show=Outlines display clear record");
>
> and save my results
>
> saveAs("Results", imageName+".txt");
>
> But when I extract the give XStart from the results it gives me what X is
> where YStart starts.
> example image:
> <http://imagej.1557.x6.nabble.com/file/n5008803/wat.jpg>
>
> Is there a solution to this problem, or have I just done something wrong?
>

XStart and YStart serve the purpose of re-creating a particle from a
mask after "Analyze Particles", since the point (XStart, YStart) is
guaranteed to be *inside* the particle.

What you want is most likely the dimensions of the bounding rectangle
that you get by activating 'Bounding rectangle' in the 'Analyze > Set
Measurements...' dialog. It will record BX and BY, the coordinates of
the upper left corner of the rectangle, with BX being the value you want.

See the documentation:
http://imagej.nih.gov/ij/docs/guide/146-30.html#sub:Set-Measurements...

Cheers,
Jan

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