UpdateWithDimAndOutputPixelType<unsigned char,VImageDimension>();
} else if (OutputPixelType == "int") {
UpdateWithDimAndOutputPixelType<int,VImageDimension>();
+ } else if (OutputPixelType == "unsigned_int") {
+ UpdateWithDimAndOutputPixelType<unsigned int,VImageDimension>();
} else if (OutputPixelType == "double") {
UpdateWithDimAndOutputPixelType<double,VImageDimension>();
} else if (OutputPixelType == "float") {
gdcm::Attribute<0x28, 0x100> pixel_size;
pixel_size.SetFromDataSet(ds);
- if (pixel_size.GetValue() != 16)
- {
- std::cerr << "Pixel type 2 bytes ! " << std::endl;
- std::cerr << "In file " << input_files[i] << std::endl;
- exit(0);
- }
+ /* if (pixel_size.GetValue() != 16)
+ {
+ std::cerr << "Pixel type not 2 bytes ! " << std::endl;
+ std::cerr << "In file " << input_files[i] << std::endl;
+ exit(0);
+ }
+ */
#else
if (args_info.verbose_flag)
std::cout << "Not using GDCM-2.x" << std::endl;
theorigin[series_number][2] = header->GetZOrigin();
sliceLocations[series_number].push_back(theorigin[series_number][2]);
seriesFiles[series_number].push_back(input_files[i]);
- if (header->GetPixelSize() != 2) {
+ /*if (header->GetPixelSize() != 2) {
std::cerr << "Pixel type 2 bytes ! " << std::endl;
std::cerr << "In file " << input_files[i] << std::endl;
exit(0);
}
+ */
#endif
}
name << *sn << "_" << args_info.output_arg;
outfile = name.str();
}
+ DD("before write");
vvImageWriter::Pointer writer = vvImageWriter::New();
writer->SetInput(image);
writer->SetOutputFileName(outfile);