57 std::vector<vtkPolyData*> oNewContours = std::vector<vtkPolyData*>();
61 std::cerr <<
"Radius should be > 0 " << std::endl;
66 std::vector<double> CenterVect(3);
69 for(
size_t id = 0;
id < this->
m_Seeds->size();
id++ )
71 unsigned int dimension2Collapse(0);
74 dimension2Collapse = 2;
78 dimension2Collapse = 1;
82 dimension2Collapse = 0;
87 (*this->
m_Seeds)[
id]->GetPoint(i, Center);
89 CenterVect[0] = Center[0];
90 CenterVect[1] = Center[1];
91 CenterVect[2] = Center[2];
93 vtkPolyData* temp_output =
94 this->ApplyLevelSetFilter< unsigned char >(
99 oNewContours.push_back( temp_output );
std::vector< vtkPoints * > * m_Seeds
itk::Image< PixelType, VImageDimension >::Pointer getImageITK(std::string iIndex, bool iIsInverted=false)
get an ITK image (vs vtkImageData) given its index
~QGoContourLevelSetAlgo()
QGoContourLevelSetAlgo(std::vector< vtkPoints * > *iSeeds, QWidget *iParent=0)
unsigned int GetNumberOfPoints() const
QGoAlgoParameter< double > * m_Radius
std::vector< vtkPolyData * > ApplyAlgo(GoImageProcessor *iImages, std::string iChannel, bool iIsInvertedOn=false)
return the vtkpolydata created by the algorithm
class to be the interface between the levelset algo for meshes, contours and set of contours and GoFi...
Interface between image reader and vtkImageData.