typedef itk::ImageFileWriter< _TImage > _TWriter;
typename _TWriter::Pointer writer = _TWriter::New( );
writer->SetFileName( fname );
+ writer->UseCompressionOn( );
writer->SetInput( image );
double t = MeasureTime( writer );
std::cout << "Wrote \"" << fname << "\" in " << t << " s" << std::endl;
fi
base_dir=`dirname $input | xargs realpath`
-base_name=$base_dir/`basename $input .mhd`
+base_name=$base_dir/`basename $input .mha`
-vesselness=$base_name"_vesselness.mhd"
-mori=$base_name"_mori.mhd"
+vesselness=$base_name"_vesselness.mha"
+mori=$base_name"_mori.mha"
mori_signal=$base_name"_mori_signal.txt"
-labels=$base_name"_labels.mhd"
-fastrw=$base_name"_fastrw.mhd"
-slicerw=$base_name"_slicerw.mhd"
+labels=$base_name"_labels.mha"
+fastrw=$base_name"_fastrw.mha"
+slicerw=$base_name"_slicerw.mha"
echo "************************************************"
(>&2 echo "Processing $input... ")