Posted by
CARL Philippe (LBP) on
URL: http://imagej.273.s1.nabble.com/Coordinates-of-a-point-on-ROI-tp5012285p5012291.html
Dear Rabih,
You can find all the macro instructions under the following link:
http://rsb.info.nih.gov/ij/developer/macro/functions.htmlAnd the instruction Roi.getBounds(x, y, width, height) "returns the location
and size of the selection's bounding rectangle".
Thus you can find the coordinates of points on the boundaries of the ROI by
checking either with Roi.contains(x, y) or selectionContains(x, y)
(selectionContains(x, y) being a Boolean it may be a better choice) whether
a point of the pointing rectangle is part of the ROI. You will at least find
4 points agreeing this condition and in the case the ROI is already a
rectangle, all the bounding rectangle will agree your request.
Best regards,
Philippe
-----Message d'origine-----
De : ImageJ Interest Group [mailto:
[hidden email]] De la part de rabih
assaf
Envoyé : mercredi 1 avril 2015 10:47
À :
[hidden email]
Objet : Re: Coordinates of a point on ROI
I mean a point on the boundaries of tge ROI.
Thanks a lot.
> Date: Wed, 1 Apr 2015 10:35:26 +0200
> From:
[hidden email]
> Subject: Re: Coordinates of a point on ROI
> To:
[hidden email]
>
> Dear Rabih,
> In macro langage there is the instruction Roi.contains(x, y) or
> selectionContains(x, y).
> My best regards,
> Philippe
>
> Philippe CARL
> Laboratoire de Biophotonique et Pharmacologie UMR 7213 CNRS -
> Université de Strasbourg Faculté de Pharmacie
> 74 route du Rhin
> 67401 ILLKIRCH
> Tel : +33(0)3 68 85 41 84
>
> -----Message d'origine-----
> De : ImageJ Interest Group [mailto:
[hidden email]] De la part de
> rabih assaf Envoyé : mercredi 1 avril 2015 10:15 À :
>
[hidden email] Objet : Coordinates of a point on ROI
>
> Hello,
> Is there a way to find the coordinates of a point on the ROI?
> Thanks in advane,Rabih
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html