Commit 1bb1123f authored by David Gobbi's avatar David Gobbi

Make PrintImageHeader use "double" for image-min, image-max.

The MINC image-max and image-min arrays are stored as double arrays,
so the data type should be printed as "double" when the header info
is printed as text.
parent 329ddf68
......@@ -472,7 +472,6 @@ void vtkMINCImageAttributes::PrintFileHeader(ostream &os)
strcmp(varname, MIimagemax) == 0 ||
strcmp(varname, MIimagemin) == 0)
{
os << "\t" << imageDataType << " " << varname;
vtkIdType nvardim = this->DimensionNames->GetNumberOfValues();
// If this is image-min or image-max, only print the
// dimensions for these variables
......@@ -482,6 +481,11 @@ void vtkMINCImageAttributes::PrintFileHeader(ostream &os)
{
nvardim = this->NumberOfImageMinMaxDimensions;
}
os << "\tdouble " << varname;
}
else
{
os << "\t" << imageDataType << " " << varname;
}
if (nvardim > 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment