w->Write();
w->Delete();
+/* Borrame
filenameBlockVti=filenameBlock+"-ZLib.vti";
vtkXMLImageDataWriter *writer = vtkXMLImageDataWriter::New();
writer->SetDataModeToBinary();
- writer->SetCompressionLevel(5);
+// writer->SetCompressionLevel(5);
writer->SetCompressorTypeToZLib();
writer->SetFileName( filenameBlockVti.c_str() );
writer->SetInputData( bbGetInputIn() );
writer->Write();
-
+*/
extract->Delete();
} // for k
{
Save_mhdb( userGivenName , bbGetInputIn() , bbGetInputSizeBlock() );
} else {
- if (userGivenName.substr(userGivenName.size()-4) != ".mhd") //JPR
+ if (!((userGivenName.substr(userGivenName.size()-4) == ".mhd") || (userGivenName.substr(userGivenName.size()-4) == ".mha"))) //JPR
{
userGivenName += ".mhd";
- }
+ }
vtkMetaImageWriter* w = vtkMetaImageWriter::New();
//EED 2017-01-01 Migration VTK7
#if VTK_MAJOR_VERSION <= 5