int
main(int argc, char * argv[])
{
using PixelType = unsigned char;
constexpr unsigned int InputImageDimension = 2;
constexpr unsigned int OutputImageDimension = 3;
if (argc < 4)
{
std::cerr << "Usage: " << std::endl;
std::cerr << argv[0] << "input1 input2 ... inputn output" << std::endl;
return EXIT_FAILURE;
}
layout[0] = 1;
layout[1] = 1;
layout[2] = 0;
tiler->SetLayout(layout);
unsigned int inputImageNumber = 0;
for (int i = 1; i < argc - 1; ++i)
{
reader->SetFileName(argv[i]);
reader->UpdateLargestPossibleRegion();
inputImageTile = reader->GetOutput();
inputImageTile->DisconnectPipeline();
tiler->SetInput(inputImageNumber++, inputImageTile);
}
PixelType filler = 128;
tiler->SetDefaultPixelValue(filler);
tiler->Update();
try
{
}
{
std::cerr << excp << std::endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}