<div dir="ltr">Hello,<div><br></div><div>I used ResampleImageFilter. It did re-sampled the image with respect to reference image but the image did not overlay on the target. </div><div><br></div><div>I am attaching the results with this mail. Please help.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 2, 2013 at 10:33 PM, Bradley Lowekamp <span dir="ltr"><<a href="mailto:brad@lowekamp.net" target="_blank">brad@lowekamp.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello,<div><br></div><div>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.</div>
<div><br></div><div>Then you should be able to use something like the LabelOverlayImageFilter, to compose the label image with the grayscale.</div><div><br></div><div>Brad</div><div><br></div><div>[1] <a href="http://www.itk.org/Doxygen/html/classitk_1_1LabelOverlayImageFilter.html" target="_blank">http://www.itk.org/Doxygen/html/classitk_1_1LabelOverlayImageFilter.html</a></div>
<div><br><div><div><div class="h5"><div>On Sep 1, 2013, at 10:27 PM, Abhishek Gupta <<a href="mailto:abhishek@meddiff.com" target="_blank">abhishek@meddiff.com</a>> wrote:</div><br></div></div><blockquote type="cite">
<div><div class="h5"><div dir="ltr">Hello Bradley, I think re-sampling onto same coordinate system is what I intend to do? (please refer to the screen shot).<div><br></div><div>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).</div>
<div><br></div><div>Regards,</div><div>Abhishek</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Sep 1, 2013 at 3:49 PM, Bradley Lowekamp <span dir="ltr"><<a href="mailto:brad@lowekamp.net" target="_blank">brad@lowekamp.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
Do you wish to resample onto the same coordinate system? Or do you want to ignore the physical location ?<br>
<br>
<br>
<br>
On Sep 1, 2013, at 12:50 AM, abhishek <<a href="mailto:abhishek@meddiff.com" target="_blank">abhishek@meddiff.com</a>> wrote:<br>
<br>
> Dear Users,<br>
><br>
> I have to overlay two vtk images which are at different origins and of<br>
> different sizes on to one another.<br>
><br>
> Since I am new to ITK, which itk method/class shall I use?<br>
><br>
> Regards<br>
> Abhishek.<br>
><br>
><br>
><br>
><br>
> --<br>
> View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/How-to-overlay-two-vtk-images-tp7583894.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/How-to-overlay-two-vtk-images-tp7583894.html</a><br>
> Sent from the ITK Insight Users mailing list archive at <a href="http://Nabble.com" target="_blank">Nabble.com</a>.<br>
> _____________________________________<br>
> Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards,<br><b>Abhishek Gupta</b><br><i><font size="1">Technical Lead</font></i><br><font size="1">Meddiff Technologies Pvt. Ltd.<br>Mobile: +91-9986919320</font>
</div></div>
</div></div><span><Before-Resample.JPG></span>_____________________________________<div class="im"><br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br><a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>Please keep messages on-topic and check the ITK FAQ at:<br><a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></blockquote></div><br></div></div></blockquote></div><br></div>