From 7df916c1568e88bd543a7dd1ab3f3fbf391b798d Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Tue, 24 Nov 2020 10:26:08 +0100 Subject: [PATCH] mhb --- packages/vtk/src/bbvtkMetaImageWriter.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/vtk/src/bbvtkMetaImageWriter.cxx b/packages/vtk/src/bbvtkMetaImageWriter.cxx index ee36755..f17001e 100644 --- a/packages/vtk/src/bbvtkMetaImageWriter.cxx +++ b/packages/vtk/src/bbvtkMetaImageWriter.cxx @@ -85,15 +85,16 @@ void MetaImageWriter::Save_mhdb( std::string filename , vtkImageData* img ,int 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 @@ -136,10 +137,10 @@ printf("EED vtkMetaImageWriter::Process START\n"); { 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 -- 2.47.1