]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ColorLayerImageView.cxx
Improved the documentation and the error messages of ColorLayerImageView.
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ThresholdImageView / ColorLayerImageView.cxx
index c091b9dd809a15cb79e26caf32ce10090d929e53..91a67553336ac103b545d42bd1bcba3a8f60c2c5 100644 (file)
@@ -68,7 +68,7 @@ void ColorLayerImageView::SetBaseColors(std::vector<double> & base_color)
     _base_color = base_color;
   // Otherwise, an exception should be thrown.
   else if (base_color.size() != 0)
-    std::cout << "CM ColorLayerImageView::SetBaseColors : ERROR!!! The base color vector has an inconsistent size. It must be of a size multiple of 3, different from 0, but its size is: "<< base_color.size() << "." << std::endl;
+    std::cout << "CM ColorLayerImageView::SetBaseColors : ERROR!!! The base color vector has an inconsistent size. It must be of a size multiple of 3, different from 0, but its size is: "<< base_color.size() << ". Therefore, the default values will be used as base colors." << std::endl;
 }
 
 //----------------------------------------------------------------------------
@@ -95,7 +95,7 @@ void ColorLayerImageView::SetGreyLevelBoundaries(std::vector<double> & grey_leve
     }
   // Otherwise, an exception should be thrown.
   else if (grey_level_boundary.size() != 0)
-    std::cout << "CM ColorLayerImageView::SetGreyLevelBoundaries : ERROR!!! The grey level boundaries vector has an inconsistent size. It must be of a size greater than or equal to 2 (at least min and max must exist), but its size is: " << grey_level_boundary.size() << "." << std::endl;
+    std::cout << "CM ColorLayerImageView::SetGreyLevelBoundaries : ERROR!!! The grey level boundaries vector has an inconsistent size. It must be of a size greater than or equal to 2 (at least min and max must exist), but its size is: " << grey_level_boundary.size() << ". Therefore, the histogram will be equally split." << std::endl;
 }
 
 //----------------------------------------------------------------------------