41 unsigned char gridLevel,
42 bool constantAcceleration =
false);
102 Cell* neighbourCell)
const override;
105 return instantiateGridTpl<PropagationCell>(
size);
The octree structure used throughout the library.
unsigned CellCode
Type of the code of an octree cell.
A Fast Marching grid cell for surfacical propagation.
float f
Local front acceleration.
DgmOctree::CellCode cellCode
Equivalent cell code in the octree.
PropagationCell()
Default constructor.
~PropagationCell() override=default
Destructor.
Fast Marching algorithm for surface front propagation.
void setDetectionThreshold(float value)
Sets the threshold for propagation stop.
float m_jumpCoef
Accceleration exageration factor.
float computeTCoefApprox(Cell *currentCell, Cell *neighbourCell) const override
Computes the front acceleration between two cells.
int propagate() override
Propagates the front.
void setJumpCoef(float value)
Sets the accceleration exageration factor.
FastMarchingForPropagation()
Default constructor.
int init(GenericCloud *theCloud, DgmOctree *theOctree, unsigned char gridLevel, bool constantAcceleration=false)
Initializes the grid with a point cloud (and ist corresponding octree)
int step() override
Propagates the front (one step)
bool setPropagationTimingsAsDistances()
Sets the propagation timings as distances for each point.
void findPeaks()
Find peaks of local acceleration values.
bool instantiateGrid(unsigned size) override
Instantiates grid in memory.
bool extractPropagatedPoints(ReferenceCloud *Zk)
float m_detectionThreshold
Threshold for propagation stop.
A generic Fast Marching grid cell.
Fast Marching algorithm (front propagation)
A very simple point cloud (no point duplication)
Generic file read and write utility for python interface.