template<unsigned int Dim>
void clitk::SplitImageGenericFilter::InitializeImageType() {
ADD_IMAGE_TYPE(Dim, char);
+ ADD_IMAGE_TYPE(Dim, unsigned char);
ADD_IMAGE_TYPE(Dim, short);
ADD_IMAGE_TYPE(Dim, int);
ADD_IMAGE_TYPE(Dim, float);
// Read image dimension
itk::ImageIOBase::Pointer header = clitk::readImageHeader(args_info.input_arg);
+ if (header.IsNull())
+ {
+ std::cerr << "Unable to read image file " << args_info.input_arg << std::endl;
+ std::exit(1);
+ }
unsigned int dim = header->GetNumberOfDimensions();
// Check parameters