[ITK-users] [ITK] Combining two images after registration

ibraheem aldhamari ibr_ex at yahoo.com
Wed Feb 15 10:07:36 EST 2017


save the images in the same datatype then multiply each image by 0.5 before adding https://itk.org/ITKExamples/src/Filtering/ImageIntensity/MultiplyImageByScalar/Documentation.html 


Best regards and have a nice day!Ibraheem  
      From: Andrew Harris <aharr8 at uwo.ca>
 To: ibraheem aldhamari <ibr_ex at yahoo.com> 
Cc: Insight-users <insight-users at itk.org>
 Sent: Wednesday, February 15, 2017 4:01 PM
 Subject: Re: [ITK-users] [ITK] Combining two images after registration
   
Thanks for getting back to me,I looked at that filter and it has a warning that said “No numeric overflow checking is performed in this filter”, so I assumed that meant that if I put an image through it there would be a simple addition pixelwise across the image.  That would make the overlap region brighter than the non-overlap region which I was trying to avoid. 
--AH

-----------------------------------------------------------------------------------------------This email and any attachments thereto may contain private, confidential, and privileged materials for the sole use of the intended recipient. Any reviewing, copying, or distribution of this email (or any attachments thereto) by other than the intended recipient is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently destroy this email and any attachments thereto.
On Wed, Feb 15, 2017 at 9:42 AM, ibraheem aldhamari <ibr_ex at yahoo.com> wrote:

Hey, In Slicer you can use Add Scalar Volume plugin.  In itk use this :    https://itk.org/Doxygen/ html/classitk_1_ 1AddImageFilter.html    https://itk.org/Wiki/ITK/ Examples/ImageProcessing/ AddImageFilter

Best regards and have a nice day!Ibraheem 

      From: Andrew Harris <aharr8 at uwo.ca>
 To: Insight-users <insight-users at itk.org> 
 Sent: Wednesday, February 15, 2017 3:39 PM
 Subject: [ITK-users] [ITK] Combining two images after registration
  
Hello,Hopefully someone can point me in the right direction.  I have a successful image registration between two images of the same size I have confirmed by outputting two .mha files and blending them in Slicer.  What I would like to be able to do is to combine them within C++ and output a single .mha file. As a further complication, part of the moving image gets left off because the image rotates outside the bounds of the original image size, and it would be preferable if I could figure out how to pad the moving image automatically in the dimensions necessary to prevent this from happening.
Any thoughts are welcome.
--AH

------------------------------ ------------------------------ ------------------------------ -----This email and any attachments thereto may contain private, confidential, and privileged materials for the sole use of the intended recipient. Any reviewing, copying, or distribution of this email (or any attachments thereto) by other than the intended recipient is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently destroy this email and any attachments thereto.
______________________________ _______
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://public.kitware.com/ mailman/listinfo/insight-users


   



   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20170215/e6ca9c96/attachment.html>


More information about the Insight-users mailing list