ITK  5.3.0
Insight Toolkit
SphinxExamples/src/Developer/ImageFilterMultipleInputsDifferentType.cxx
#include "itkImage.h"
#include "ImageFilterMultipleInputsDifferentType.h"
int
main(int, char *[])
{
// Setup types
using ScalarImageType = itk::Image<unsigned char, 2>;
using FilterType = itk::ImageFilterMultipleInputsDifferentType<VectorImageType, ScalarImageType>;
const auto input = itk::ReadImage<VectorImageType>("Test.jpg");
// Create and the filter
FilterType::Pointer filter = FilterType::New();
filter->SetInput(input);
filter->Update();
itk::WriteImage(filter->GetOutput(), "TestOutput.jpg");
return EXIT_SUCCESS;
}
itkCovariantVector.h
itkImageFileReader.h
itkImage.h
itkImageFileWriter.h
itk::Image
Templated n-dimensional image class.
Definition: itkImage.h:88
itk::WriteImage
ITK_TEMPLATE_EXPORT void WriteImage(TImagePointer &&image, const std::string &filename, bool compress=false)
Definition: itkImageFileWriter.h:254