[ITK] [ITK-users] Multiply two .img or .hdr images in ITK

Dominique Toepfer dominique at toepfer-web.de
Sun Apr 27 13:32:10 EDT 2014


Am 27.04.2014 19:19, schrieb Pansam Changmi:
> @Dominique: Hmm... I followed this 
> "http://www.itk.org/Wiki/ITK/Examples/ImageProcessing/MultiplyImageFilter"
>
> Here the author used two input images I guess to get the third one. 
> Please correct me if I am wrong.
>
> typedef itk::MultiplyImageFilter <ImageType, ImageType > 
> MultiplyImageFilterType;
>
>
Exactly, the MultiplyImageFilter expects image types, not reader types. 
In your case this would be

typedef itk::MultiplyImageFilter <Image1Type, Image2Type > 
MultiplyImageFilterType;

There's also an example for ImageFileReader: 
http://www.itk.org/Wiki/ITK/Examples/IO/ImageFileReader
_____________________________________
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



More information about the Community mailing list