if(image != NULL)
{
bbSetOutputLengthZ((int)image->GetDimensions()[2] - 1);
- std::cout << "image scalar size: " << image->GetScalarSize() << std::endl;
- std::cout << "image scalar max: " << image->GetScalarTypeMax() << std::endl;
- std::cout << "image scalar min: " << image->GetScalarTypeMin() << std::endl;
- std::cout << "image scalar type: " << image->GetScalarType() << std::endl;
+
if(image->GetScalarType() == VTK_DOUBLE)
{
bbSetOutputColorLevel(50);
bbSetOutputMidColorLevel(25);
}
- else if(image->GetScalarType() == VTK_UNSIGNED_SHORT)
- {
- bbSetOutputColorLevel(500);
- bbSetOutputMidColorLevel(250);
- }
else
{
- bbSetOutputColorLevel(500);
- bbSetOutputMidColorLevel(250);
+ bbSetOutputColorLevel(255);
+ bbSetOutputMidColorLevel(127.5);
}
}
}