]> Creatis software - creaRigidRegistration.git/blobdiff - PackRecalage/src/bbPackRecalageImageRecalageProperties.cxx
*** empty log message ***
[creaRigidRegistration.git] / PackRecalage / src / bbPackRecalageImageRecalageProperties.cxx
index a5781fca0067ba3e249b7ebba3bae2ce22ee8947..586af769286801cac771ae2280a7551186bb6bc9 100644 (file)
@@ -11,20 +11,16 @@ void ImageRecalageProperties::Process()
        if(image != NULL)
        {
                bbSetOutputLengthZ((int)image->GetDimensions()[2] - 1);
+               
                if(image->GetScalarType() == VTK_DOUBLE)
                {
                                bbSetOutputColorLevel(50);
                                bbSetOutputMidColorLevel(25);
                }
-               else if(image->GetScalarType() == VTK_UNSIGNED_SHORT)
-               {
-                               bbSetOutputColorLevel(25000);
-                               bbSetOutputMidColorLevel(12500);
-               }
                else
                {
-                               bbSetOutputColorLevel(500);
-                               bbSetOutputMidColorLevel(250);
+                               bbSetOutputColorLevel(255);
+                               bbSetOutputMidColorLevel(127.5);
                }
        }
 }