57 std::vector<vtkPolyData*> oNewMeshes = 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++ )
73 (*this->
m_Seeds)[
id]->GetPoint(i, Center);
75 CenterVect[0] = Center[0];
76 CenterVect[1] = Center[1];
77 CenterVect[2] = Center[2];
79 vtkPolyData* temp_output =
80 this->ApplyLevelSetFilter< unsigned char >(
84 if(temp_output->GetNumberOfCells() > 0)
86 oNewMeshes.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
QGoMeshLevelSetAlgo(std::vector< vtkPoints * > *iSeeds, QWidget *iParent=0)
unsigned int GetNumberOfPoints() const
QGoAlgoParameter< double > * m_Radius
class to be the interface between the levelset algo for meshes, contours and set of contours and GoFi...
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.