[Insight-users] How to overlay two vtk images?

Abhishek Gupta abhishek at meddiff.com
Tue Sep 3 13:36:05 EDT 2013


Hello,

I used ResampleImageFilter. It did re-sampled the image with respect to
reference image but the image did not overlay on the target.

I am attaching the results with this mail. Please help.


On Mon, Sep 2, 2013 at 10:33 PM, Bradley Lowekamp <brad at lowekamp.net> wrote:

> Hello,
>
> What you need to do is use the ResampleImageFilter to resample the one
> image onto the other's coordinate system. Use an identity transform, and
> pass the other image with the destination coordinate system as the
> "Reference" image. If the image is of labels then you should likely use a
> nearest neighbor interpolate.
>
> Then you should be able to use something like the LabelOverlayImageFilter,
> to compose the label image with the grayscale.
>
> Brad
>
> [1]
> http://www.itk.org/Doxygen/html/classitk_1_1LabelOverlayImageFilter.html
>
> On Sep 1, 2013, at 10:27 PM, Abhishek Gupta <abhishek at meddiff.com> wrote:
>
> Hello Bradley, I think re-sampling onto same coordinate system is what I
> intend to do? (please refer to the screen shot).
>
> This is the red bounding box should match the green bounding box and red
> image to map onto target CT image (please see the attached screenshot).
>
> Regards,
> Abhishek
>
>
> On Sun, Sep 1, 2013 at 3:49 PM, Bradley Lowekamp <brad at lowekamp.net>wrote:
>
>>
>> Do you wish to resample onto the same coordinate system? Or do you want
>> to ignore the physical location ?
>>
>>
>>
>> On Sep 1, 2013, at 12:50 AM, abhishek <abhishek at meddiff.com> wrote:
>>
>> > Dear Users,
>> >
>> > I have to overlay two vtk images which are at different origins and of
>> > different sizes on to one another.
>> >
>> > Since I am new to ITK, which itk method/class shall I use?
>> >
>> > Regards
>> > Abhishek.
>> >
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> http://itk-insight-users.2283740.n2.nabble.com/How-to-overlay-two-vtk-images-tp7583894.html
>> > Sent from the ITK Insight Users mailing list archive at Nabble.com.
>> > _____________________________________
>> > 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.php
>> >
>> > 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
>>
>
>
>
> --
> Regards,
> *Abhishek Gupta*
> *Technical Lead*
> Meddiff Technologies Pvt. Ltd.
> Mobile: +91-9986919320
> <Before-Resample.JPG>_____________________________________
>
> 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.php
>
> 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130903/380eab16/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Resampled.JPG
Type: image/jpeg
Size: 15254 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130903/380eab16/attachment.jpeg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Before-Resample.JPG
Type: image/jpeg
Size: 32053 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130903/380eab16/attachment-0001.jpeg>


More information about the Insight-users mailing list