[Insight-users] 3D deformable registration
Luis Ibanez
luis.ibanez at kitware.com
Mon, 26 Apr 2004 21:40:46 -0400
Hi Emily,
You will find examples on the use of the WarpImageFilter
under
Insight/Examples/Registration
In particular:
DeformableRegistration2.cxx
DeformableRegistration3.cxx
LandmarkWarping2.cxx
The AndImageFilter is simply a filter with two
inputs. Like the AddImageFilter.
If you post the error messages that you got,
along with a minimal piece of code where you
show the instantiation of the filters, we may
be in a better position to help you.
Regards,
Luis
------------------
ping chen wrote:
> Hi Luis,
>
> I tried to use AndImageFilter just like the example
> about binarythresholdimagefilter given in the
> Filtering chapter in the userguide, but a lot of
> errors show up. I wonder if there is any example
> availabe using AndImageFilter and WarpImageFilter.
>
> Thank you.
>
> -Emily
>
> --- Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
>>Hi Emily,
>>
>>
>>1) You can mask a region of an image by
>> using the AND image filter.
>>
>>
>
> http://www.itk.org/Insight/Doxygen/html/classitk_1_1AndImageFilter.html
>
>> This will work ok if both the mask and
>> the image are of the same pixel type and
>> are of "integer" type: {char, short, int,
>> long}.
>>
>>
>>2) You resample the moving image, using the
>> WarpImageFilter and providing the deformation
>> field. Note that the WarpImageFilter requires
>> you to specify an Origin (in physical space)
>> and a size (in pixels) for the output image.
>>
>> What you could do is to take the region from the
>> moving image and figure out what will be its
>> bounding box once it is mapped to the coordinate
>> system of the fixed image. Once you have such
>> bounding box, you simply feed this information
>> into the origin and size provided to the Warp
>> ImageFilter.
>>
>> The resulting image will only have the size of
>> that specified bounding box.
>>
>>
>>
>>
>>Regards,
>>
>>
>> Luis
>>
>>
>>------------------
>>ping chen wrote:
>>
>>
>>>Hello,
>>>
>>>I have used DeformableRegistration1.cxx to
>>
>>register 3d
>>
>>>MRI brain images and i got the warped whole brain
>>>image and also the DisplacementField.
>>>
>>>I have two problems:
>>>1. If I have a mask of one region, how i can use
>>
>>this
>>
>>>mask to take out that only region from the 3d
>>
>>images?
>>
>>>2. I wonder how i can use this transform
>>
>>information
>>
>>>from DeformableRegistration1 to warp this region,
>>>instead of a whole brain?
>>>
>>>Thank you.
>>>emily
>>>
>>>
>>>
>>
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users at itk.org
>>http://www.itk.org/mailman/listinfo/insight-users
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Photos: High-quality 4x6 digital prints for 25¢
> http://photos.yahoo.com/ph/print_splash
>