#define __ContourExtractData_h_INCLUDED_H__
-#include <manualContourModel.h>
+#include "manualContourModel.h"
#include "marTypes.h"
double *rstandardeviation);
void SetTypeOperation(int type);
+ //--Volume Statistics--
+ void InitVolumeStatistics();
+ void GetVolumeStatistics(int *vol_rCountRange, int *vol_rsize,
+ double *vol_minValue, double *vol_maxValue,
+ double *vol_average, double *vol_standardeviation);
+
+ void ResetImageResult(int z);
+
+
private:
bool okImagesResults;
std::vector<manualContourModel*> lstManConMod;
int AnalisisContourInside( int x,
int y,
manualContourModel *manualcontourmodel );
+ int AnalisisContourInsideV2(int x, int y, int iContour );
+
double GetDataValue(int x, int y, int z);
- void ResetImageResult(int z);
void PutVtkImageDataResultValue( int x, int y,int z, double value );
void InitVtkImagesResult();
+ //--Volume Statistics--
+ int vol_rCountRange;
+ int vol_rsize;
+ double vol_minValue;
+ double vol_maxValue;
+ double vol_acum_average;
+ double vol_acum_standardeviation;
+ void SetVolumeStatistics(int rCountRange, int rsize,
+ double minValue,double maxValue,
+ double acum_average, double acum_standardeviation);
+
+ // Optimize IsInside
+ // List of contours , list of linesY, list of points over the line
+ std::vector< std::vector< std::vector<double> > > _lstlstlstVecX1;
+ std::vector< std::vector< std::vector<double> > > _lstlstlstVecY1;
+ std::vector< std::vector< std::vector<double> > > _lstlstlstVecX2;
+ std::vector< std::vector< std::vector<double> > > _lstlstlstVecY2;
+ void Fill_lstlstlstVecXY(int iContour, int sizeY);
+ void InitLstContoursLinesYPoints();
};