47 dp->
label = cur_label;
79 if (p2!=
nullptr && p2->
label==0)
85 else if (p2->
mID==p->
ID)
88 std::cout <<
"FiberBuilder: connection inconsistent (LabelPredecessors)" << std::endl;
105 if (p2!=
nullptr && p2->
label==0)
111 else if (p2->
mID==p->
ID)
114 std::cout <<
"FiberBuilder: connection inconsistent (LabelPredecessors)" << std::endl;
125 itk::ContinuousIndex<float, 3> index;
129 itk::Point<float> point;
130 m_Image->TransformContinuousIndexToPhysicalPoint( index, point );
131 vtkIdType
id =
m_VtkPoints->InsertNextPoint(point.GetDataPointer());
132 container->GetPointIds()->InsertNextId(
id);
134 if(container->GetNumberOfPoints()>1)
vtkSmartPointer< vtkCellArray > m_VtkCellArray
A particle is the basic element of the Gibbs fiber tractography method.
Contains and manages particles.
ItkFloatImageType::Pointer m_Image
vtkSmartPointer< vtkPoints > m_VtkPoints
void AddPoint(Particle *dp, vtkSmartPointer< vtkPolyLine > container)
DataCollection - Class to facilitate loading/accessing structured data.
void LabelPredecessors(Particle *p, int ep, vtkPolyLine *container)
itk::Point< float > m_LastPoint
void LabelSuccessors(Particle *p, int ep, vtkPolyLine *container)
vtkSmartPointer< vtkPolyData > iterate(int minFiberLength)
vnl_vector_fixed< float, 3 > & GetPos()
Particle * GetParticle(int ID)
FiberBuilder(ParticleGrid *grid, ItkFloatImageType *image)
itk::Image< float, 3 > ItkFloatImageType
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.