Hi Gwen,
you can record line center with the following macro. It will measure
the line, and then gets the center's coordinates.It uses values from
"Bounding Rectangle", a measurement you can select from the
Analyse/Set Measurements... dialog described at
http://rsb.info.nih.gov/ij/docs/menus/analyze.html#setJerome.
macro "line center measure [F1]" {
run ("Measure");
n=nResults-1;
setResult("xLineCenter",n,getResult("BX",n)+getResult("Width",n)/2);
setResult("yLineCenter",n,getResult("BY",n)+getResult("Height",n)/2);
updateResults();
}
Quoting Gwen Barnes <
[hidden email]>:
> Hi,
>
> For my research, studying impact processes on Earth's Moon, I'm measuring
> the size of lots of boulders using ImageJ. At the time (and I think still?=
> )
> ImageJ will measure the length of a line, but it doesn't record the positio=
> n
> of that line within the image. When I started doing this project I made a
> few tweaks to ImageJ so it would tell me the x-y location in pixels of the
> center of each line I measured. I'm wondering if this feature can be
> incorporated into imagej. If the source code I've been using (that's based
> on a 3 year old version of imagej) would help I'd be happy to send it in.
>
> I probably should have sent this email years ago, but I'm hoping it's bette=
> r
> late than never. Also, if this is the wrong place to ask about this, could
> someone please point me to where this email should go. Thanks.
>
> --
> -Gwen
>