40 int iMaxThreshold,
QWidget* iParent)
58 std::vector<vtkPolyData*>
62 std::vector<vtkPolyData*> NewContours = std::vector<vtkPolyData*>();
68 std::vector<std::vector<vtkPolyData*> >
72 std::vector<std::vector<vtkPolyData*> > NewContours;
76 std::cerr <<
"Radius should be > 0 " << std::endl;
81 std::vector<double> CenterVect(3);
84 for(
size_t id = 0;
id < this->
m_Seeds->size();
id++ )
86 unsigned int dimension2Collapse(0);
89 dimension2Collapse = 2;
93 dimension2Collapse = 1;
97 dimension2Collapse = 0;
102 std::cout <<
"dimension2Collapse: " << dimension2Collapse << std::endl;
103 (*this->
m_Seeds)[
id]->GetPoint(i, Center);
105 CenterVect[0] = Center[0];
106 CenterVect[1] = Center[1];
107 CenterVect[2] = Center[2];
109 std::vector<vtkPolyData*> temp_output =
110 this->ApplyWaterShedFilter< unsigned char >(
115 NewContours.push_back( temp_output );
~QGoSetOfContoursWaterShedAlgo()
std::vector< vtkPoints * > * m_Seeds
QGoSetOfContoursWaterShedAlgo(std::vector< vtkPoints * > *iSeeds, int iMaxThreshold, QWidget *iParent=0)
itk::Image< PixelType, VImageDimension >::Pointer getImageITK(std::string iIndex, bool iIsInverted=false)
get an ITK image (vs vtkImageData) given its index
QGoAlgorithmWidget * m_AlgoWidget
std::vector< std::vector< vtkPolyData * > > ApplyAlgoSeveralSeeds(GoImageProcessor *iImages, std::string iChannel)
unsigned int GetNumberOfPoints() const
QGoAlgoParameter< double > * m_Radius
QGoAlgoParameter< int > * m_Sampling
std::vector< vtkPolyData * > ApplyAlgo(GoImageProcessor *iImages, std::string iChannel, bool iIsInvertedOn=false)
return the vtkpolydata created by the algorithm
Interface between image reader and vtkImageData.
class to be the interface between the watershed algo for meshes and GoFigure