[ITK] [ITK-users] adding two images with different origin

Timothee Evain tevain at telecom-paristech.fr
Wed Jul 15 11:29:18 EDT 2015


Hello Emily,

Have you tried using the ResampleImageFilter combined with a TranslationTransform as in: 
http://itk.org/Wiki/ITK/Examples/SimpleOperations/TranslationTransform ?

At least for me, this does not change the origin (or you could explicitely set it to your convenience with SetOutputOrigin) and allow easy translation configuration.

Best

Tim

----- Mail original -----
De: "Emily M Hammond" <emily-hammond at uiowa.edu>
À: "Hans J Johnson" <hans-johnson at uiowa.edu>
Cc: "insight users" <insight-users at itk.org>
Envoyé: Mercredi 15 Juillet 2015 16:28:25
Objet: Re: [ITK] [ITK-users] adding two images with different origin

Using the slicer transforms module. 

From: Johnson, Hans J 
Sent: Wednesday, July 15, 2015 9:12 AM 
To: Hammond, Emily M 
Cc: insight users 
Subject: Re: [ITK-users] adding two images with different origin 

Emily, 

How did you translate it? If you want to stop by my office (4316 SC) I could help you out in person. 

Hans 

======================================================================== 
Hans J. Johnson, Ph.D., Associate Professor 
Electrical and Computer Engineering (Primary), Biomedical Engineering, Psychiatry 
hans-johnson at uiowa.edu 
(319) 621 7185 (cell) 
(319) 384 3538 ECE Phone (Primary) 
(319) 353 8587 Psychiatry Phone (Secondary) 

4316 Seamans Center 
Iowa City, IA 52242 




On Jul 15, 2015, at 9:07 AM, Hammond, Emily M < emily-hammond at uiowa.edu > wrote: 

Hello all, 

I am trying to compute the measures identified in itkLabelOverlapMeasureFilter with a couple label masks. I have created a test volume and translated it to create a couple more test volumes to get a calculable overlap for verification. Unfortunately, this translation changes the origin of the these images. 

How can I perform these measures on two images that cover the same space, but do not have the same origin? If I just change the origins to match using ChangeImageInformationFilter then my translation is reversed. 

Thanks 
Emily Hammond 
_____________________________________ 
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 




Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, then delete it. Thank you. 

_____________________________________
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

_______________________________________________
Community mailing list
Community at itk.org
http://public.kitware.com/mailman/listinfo/community
_____________________________________
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


More information about the Community mailing list