]> Creatis software - creaRigidRegistration.git/blobdiff - PackRecalage/src/bbPackRecalageImageRecalageProperties.cxx
*** empty log message ***
[creaRigidRegistration.git] / PackRecalage / src / bbPackRecalageImageRecalageProperties.cxx
index e5863e5811e69eb9df9f740cf88238c36b3b99d2..586af769286801cac771ae2280a7551186bb6bc9 100644 (file)
@@ -11,24 +11,16 @@ void ImageRecalageProperties::Process()
        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);
                }
        }
 }