ITK  4.13.0
Insight Segmentation and Registration Toolkit
WikiExamples/Developer/ImageFilterMultipleInputs.cxx
#include "itkImage.h"
#include "ImageFilterMultipleInputs.h"
int main(int, char*[])
{
// Setup types
typedef itk::Image<unsigned char, 2> ImageType;
typedef itk::ImageFilterMultipleInputs<ImageType> FilterType;
ImageType::Pointer image = ImageType::New();
ImageType::Pointer mask = ImageType::New();
// Create and the filter
FilterType::Pointer filter = FilterType::New();
filter->SetInputImage(image);
filter->SetInputMask(mask);
filter->Update();
return EXIT_SUCCESS;
}