]> Creatis software - creaMaracasVisu.git/commitdiff
2415 creaMaracasVisu Bug New Normal box Histogram is not working in differents formats
authorEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Fri, 27 Jun 2014 12:55:19 +0000 (14:55 +0200)
committerEduardo DAVILA <eduardo.davila@creatis.insa-lyon.fr>
Fri, 27 Jun 2014 12:55:19 +0000 (14:55 +0200)
lib/maracasVisuLib/src/interface/wxWindows/widgets/pPlotter/pHistogram.cxx

index 4909265441e96e2403ab2d58ab2aceea360a6780..5a02215ca5eed0f5382924878d690c83aa31b020 100644 (file)
 #include "pHistogram.h"
 //#include "vtkJPEGReader.h"
 #include "vtkImageData.h"
-#include  "vtkImageCast.h"
-//-----------------
-// C++
-//-----------------
+#include "vtkImageCast.h"
+#include "vtkComputeHistogram2DOutliers.h"
+#include "vtkTable.h"
+
+
 #include <iostream>
 #include <fstream>
 #include <string>
@@ -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
        */