From 97ad2650cb2956958bc3cb6676b27a82a9969bda Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Fri, 27 Jun 2014 14:55:19 +0200 Subject: [PATCH] 2415 creaMaracasVisu Bug New Normal box Histogram is not working in differents formats --- .../wxWindows/widgets/pPlotter/pHistogram.cxx | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pHistogram.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pHistogram.cxx index 4909265..5a02215 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pHistogram.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pHistogram.cxx @@ -31,10 +31,11 @@ #include "pHistogram.h" //#include "vtkJPEGReader.h" #include "vtkImageData.h" -#include "vtkImageCast.h" -//----------------- -// C++ -//----------------- +#include "vtkImageCast.h" +#include "vtkComputeHistogram2DOutliers.h" +#include "vtkTable.h" + + #include #include #include @@ -153,6 +154,16 @@ void pHistogram::initializePoints(int xDimension) */ void pHistogram::setPoints(vtkImageData* imageData) { + +printf("EED pHistogram::setPoints Test: vtkPComputeHistogram2DOutliers\n"); +vtkComputeHistogram2DOutliers *vtkhist = vtkComputeHistogram2DOutliers::New(); +vtkhist->SetPreferredNumberOfOutliers(10); +vtkhist->SetInput(imageData); +vtkTable *resulttable = vtkhist->GetOutputTable(); + +printf("EED pHistogram::setPoints rows:%d\n", (int)(resulttable->GetNumberOfRows()) ); +printf("EED pHistogram::setPoints colums:%d\n", (int)(resulttable->GetNumberOfColumns()) ); + /* Pointers */ -- 2.47.1