[Insight-users] Assign world coordinates to spatial objects
Luis Ibanez
luis.ibanez at kitware.com
Sun May 2 17:42:54 EDT 2010
Hi Patrik,
Please look at the examples:
Insight/Examples/Filtering/
SpatialObjectToImage1.cxx
SpatialObjectToImage2.cxx
They illustrate the use of the GroupSpatialObject,
and how to setup the relative coordinates of
several SpatialObjects.
You should fines lines 230-250 to be very interesting.
In particular
ellipse->SetObjectToParentTransform( transform1 );
BTW: You don't need to use the SceneSpatialObject.
The GroupSpatialObject should be enough for what
you are doing.
You may be interested, as well, in the examples:
Insight/Examples/Registration/
ModelToImageRegistration1.cxx
ModelToImageRegistration2.cxx
Regards,
Luis
--------------------------------------------------------------
On Thu, Apr 29, 2010 at 4:47 PM, Patrik Brynolfsson
<patrik.brynolfsson at radfys.umu.se> wrote:
> Hello,
> I've been trying to figure this out but I can't seem to get it right, but I
> assume this is a very simple problem to solve. I am trying to evaluate noise
> in CT images using a phantom for which I know the dimensions and positions
> of 20 spheres of different sizes. My idea was to construct a group of
> spatial objects (EllipseSpatialObject) and connect it to a high dose
> reference image which I can use to register other images to, and then apply
> the transform to the spatial objects to find their positions i the new
> image.
> First I create the EllipseSpatialObjects and connect them to a
> GroupSpatialObject so that they have the correct positions to each other. I
> also know the world coordinates of the spheres in the reference image, but I
> wonder how I can place the GroupSpatialObject to match the spheres in the
> image. I have a couple of different reference image series, and when I apply
> the SpatialObjectToImageFilter and put in the reference image's direction,
> spacing and origin I get very different results for different images, which
> really confuses me. So, my two questions are:
>
> How do I assign world coordinates to the spatial objects?
> What is the difference between SceneSpatialObject and GroupSpatialObject?
> Which one do you recommend for this problem?
>
> Thanks in advance!
> ---
> Patrik Brynolfsson
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list