30 #include <core/common/math/WMath.h>
32 #include "WResampleByMaxPoints.h"
36 " of points and if a fiber has already lesser points, it is tested if additional segment length can be applied" )
40 m_segLength =
m_properties->addProperty(
"Min. Length",
"If fiber has less points it is also resampled to the given segment length", 0.0 );
Represents a neural pathway.
void resampleByNumberOfPoints(size_t numPoints)
Resample this line so it has a number of given points afterwards.
void resampleBySegmentLength(double newSegementLength)
Resample this line so there are only segements of the given length.
size_type size() const
Wrapper around std::vector member function.
This is a base class for everything which has a Name,Description,Icon and Properties (=NDIP).
WProperties::SPtr m_properties
the properties of the object.
WPropInt m_numPoints
Number of max sample points per fiber.
virtual WFiber resample(WFiber fib) const
The given fiber is resampled by segment length and a copy is returned.
WPropDouble m_segLength
Number of new sample points all tracts are resampled to.
WResampleByMaxPoints()
Constructor.
Interface for Resampling fibers.