Coordinates of a point on ROI

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Coordinates of a point on ROI

rabih assaf-2
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
Reply | Threaded
Open this post in threaded view
|

Re: Coordinates of a point on ROI

Peter Mc
Hi Rabin;

What do you exactly mean?
you mean a point inside? the boundories?
using a macro?a plugin?
I did it time ago using a macro but I am not sure what you are looking for.

Best Regards.
Research engineer
HGGM. Madrid.
Reply | Threaded
Open this post in threaded view
|

Re: Coordinates of a point on ROI

CARL Philippe (LBP)
In reply to this post by rabih assaf-2
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
Reply | Threaded
Open this post in threaded view
|

Re: Coordinates of a point on ROI

rabih assaf-2
 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
Reply | Threaded
Open this post in threaded view
|

Re: Coordinates of a point on ROI

LIM Soon Yew John (IMB)
Dear Rabih,

The macro command "getSelectionCoordinates(xpoints, ypoints)" will return two arrays containing the X and Y coordinates, in pixels, of the points that define the current ROI. Do note that not all the points are return, only those points that defines the ROI, such as corners of a rectangle ROI.

Best Regards,
John
-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of rabih assaf
Sent: Wednesday, 1 April, 2015 4:47 PM
To: [hidden email]
Subject: 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
Reply | Threaded
Open this post in threaded view
|

Re: Coordinates of a point on ROI

CARL Philippe (LBP)
In reply to this post by rabih assaf-2
Dear Rabih,
You can find all the macro instructions under the following link:
http://rsb.info.nih.gov/ij/developer/macro/functions.html
And 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