[Insight-users] Registration on RGB images
Luis Ibanez
luis.ibanez at kitware.com
Sat Dec 4 16:41:53 EST 2004
Hi Muhamad,
Thanks for your additional information.
--
Yes, you can convert your RGB images to grayscale using any of the
two methods described in the previous email. Then register them and
take the transform parameters in order to resample the moving color
images using the VectorResampleImageFilter.
You can do this with any of the registration examples of the ITK
Software Guide, as well as with the code in InsightApplications for
multiresolution images.
You are *strongly* encouraged to read from the ITK Software Guide
http://www.itk.org/ItkSoftwareGuide.pdf
at a minimum, the following sections:
- Section on Geometrical Transformations
- Chapter on Image Registration
- Chapter on Image Adaptors
Please let us know if you encounter any problems in the implementation
of your registration process.
Thanks
Luis
-----------------------
Muhamad Amine wrote:
> Hi Luis,
>
> I basically have a set of low resolution images that are registered (ie all
> lined up properly) and a set of the same images however they are high res
> and need to be registered to the low res to properly orient them.
>
> They are in png format and are both color.
>
> Is there a way to run a registration algorithm such as the
> MultiResolutionRegistration, get the translation parameters it spits out,
> and then transform the original images by those values?
>
>
> Thanks for your help.
>
> Muhamad
>
> -----Original Message-----
> From: Luis Ibanez [mailto:luis.ibanez at kitware.com]
> Sent: Friday, December 03, 2004 4:31 PM
> To: Muhamad Amine
> Cc: Insight-users at itk.org
> Subject: Re: [Insight-users] Registration on RGB images
>
>
> Hi Muhamad,
>
> Are your input images (Fixed and Moving) also RGB images ?
>
> If so, you will have to define a Metric for comparing both
> images. Most ITK metrics work on Scalar images.
>
> In order to get scalar images out of your input RGB images you
> could extract the red channel, or convert them to Luminance.
>
> Filters are available in ITK for both conversions.
>
> e.g. for Luminance:
> http://www.itk.org/Insight/Doxygen/html/classitk_1_1RGBToLuminanceImageFilte
> r.html
>
> for Channel extraction you will find details in the ImageAdaptors
> chapter in the ITK Software Guide
>
> http://www.itk.org/ItkSoftwareGuide.pdf
>
>
>
> Once you finish the registration, you can use the
> VectorResampleImageFilter
>
> http://www.itk.org/Insight/Doxygen/html/classitk_1_1VectorResampleImageFilte
> r.html
>
> in order to resample in the input RGB image and generate
> an RGB image as output.
>
>
>
> Please give us more details regarding the application that you
> are dealing with.
>
>
> Thanks
>
>
>
> Luis
>
>
>
> ----------------------
> Muhamad Amine wrote:
>
>
>>Hi,
>>
>>What's the easiest way to run a registration example and have it output
>>an RGB image rather than a BW image. I'm interested in running the
>>MultiResImageRegistration1 and have it produce a color image. I tried
>>changing the PixelType to itk::RGBPixel< unsigned char > and I'm running
>>into compiling errors.
>>
>>If there is a simple example someone can point me to that would be fine.
>>
>>thanks
>>
>>~ma
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users at itk.org
>>http://www.itk.org/mailman/listinfo/insight-users
>
>
>
>
>
>
More information about the Insight-users
mailing list