[IGSTK-Users] How to get ImageSpatialObject from ImageSpatialObjectRepresentation

Vincent Gratsac vincent.gratsac at irisa.fr
Wed Feb 6 10:48:46 EST 2008


Hi all,

I'm currently working on slicing of displayed objects by giving a picked 
point.
The NeedleBiopsy example is helpful to learn how to do that !
Here is my problem : my software can display some ObjectRepresentations 
for more than one SpatialObjects, but I'm not able to know to which 
ImageSpatialObject an ImageSpatialObjectRepresentation is related.

This is a problem when we try to convert a physical point to image 
indexes ( that's why I submitted the idea to add a 
ResliceToPhysicalPoint method in the ImageSpatialObjectRepresentation 
class).

This is also a problem if the transformation between one of the 
ImageSpatialObjects and the View object differs from Identity. In this 
case, I need to get this transformation and multiply its inverse to the 
picked point's coordinates, in order to express the picked point's 
coordinates in the ImageSpatialObject coordinate system. Next, I will 
have to convert the physical point to image index.

To conclude, I found some cases in which getting the ImageSpatialObject 
from an ImageSpatialObjectRepresentation is very useful. Is there a way 
to do it , or would it be unsafe to add such a method ?

Vincent

-- 
Vincent Gratsac
----------------------------------------------------
Unité/Projet VisAGeS U746
INSERM/INRIA/CNRS/U. de Rennes I
IRISA
Campus de Beaulieu, 35042 Rennes Cedex, France

Ph:  +33 (0) 2 23 23 49 20/ Fax: +33/0 2 99 84 71 71
email: Vincent.Gratsac at irisa.fr
http://www.irisa.fr/visages/
-----------------------------------------------------




More information about the IGSTK-Users mailing list