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