ROI with ImageJ

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

ROI with ImageJ

Juan Francisco-2
Dear all
please I got the following problem:
  from a imagen given (256x256 pixels) I can select a ROI (10x10 pixels), do a duplicate of this ROI  and apply the Hough transform to this 10x10 image in order to find the center of a circle structure inlculed in this ROI. However, the center found is refereced to the 10x10pixel image and I need the coordibnates frpm the 256x256 image system.
  Please, do anyone how to get a ROI and keeping the coordinates of each pixel of this ROI than in the original image?
  Thank you very much!!
  Juan Francisco

 
---------------------------------

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
Reply | Threaded
Open this post in threaded view
|

Re: ROI with ImageJ

Jim Cant
if the Roi had a getLocation() method, you'd be all set - but it doesn't.  I'd try to use getBounds() and hope the (x,y) of that is the image location of the Roi; you can use this to translates your circle's center to image coords.  It might be that getBounds() returns windows coordinates in which case you need too use the offscreenX, offscreenY methods in ImageCanvas to get from window to image coordinates.

(In my humble opinion, offscreenX is poorly named; something like toImageX() would be better.)

Hope this helps.

jim

Juan Francisco-2 wrote
Dear all
please I got the following problem:
  from a imagen given (256x256 pixels) I can select a ROI (10x10 pixels), do a duplicate of this ROI  and apply the Hough transform to this 10x10 image in order to find the center of a circle structure inlculed in this ROI. However, the center found is refereced to the 10x10pixel image and I need the coordibnates frpm the 256x256 image system.
  Please, do anyone how to get a ROI and keeping the coordinates of each pixel of this ROI than in the original image?
  Thank you very much!!
  Juan Francisco

 
---------------------------------

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com