[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


More information about the Insight-users mailing list