![]() |
OpenWalnut
1.5.0dev
|
Resamples fibers so no fiber has more than the given number of Points. More...
#include <WResampleByMaxPoints.h>
Inheritance diagram for WResampleByMaxPoints:
Collaboration diagram for WResampleByMaxPoints:Public Member Functions | |
| WResampleByMaxPoints () | |
| Constructor. More... | |
Public Member Functions inherited from WObjectNDIP< WResampling_I > | |
| virtual | ~WObjectNDIP () |
| Destructor. More... | |
| virtual std::string | getName () const |
| The name of the object. More... | |
| virtual std::string | getDescription () const |
| The description of this object. More... | |
| virtual const char ** | getIcon () const |
| The icon of this object. More... | |
| virtual WProperties::SPtr | getProperties () |
| Return the property group of this object. More... | |
Public Member Functions inherited from WResampling_I | |
| virtual WDataSetFibers::SPtr | operator() (WProgress::SPtr progress, WBoolFlag const &shutdown, WDataSetFibers::SPtr fibers) |
| Resample each fiber within the given fiber dataset according to the given implementation of virtual resample(). More... | |
| virtual | ~WResampling_I () |
| Destructor. More... | |
Protected Member Functions | |
| virtual WFiber | resample (WFiber fib) const |
| The given fiber is resampled by segment length and a copy is returned. More... | |
Protected Member Functions inherited from WObjectNDIP< WResampling_I > | |
| WObjectNDIP (std::string name, std::string description, const char **icon=NULL) | |
| Construct a NDIP'ed object. More... | |
Protected Attributes | |
| WPropDouble | m_segLength |
| Number of new sample points all tracts are resampled to. More... | |
| WPropInt | m_numPoints |
| Number of max sample points per fiber. More... | |
Protected Attributes inherited from WObjectNDIP< WResampling_I > | |
| WProperties::SPtr | m_properties |
| the properties of the object. More... | |
Additional Inherited Members | |
Public Types inherited from WObjectNDIP< WResampling_I > | |
| typedef std::shared_ptr< WObjectNDIP > | SPtr |
| Shared ptr to an instance. More... | |
| typedef std::shared_ptr< const WObjectNDIP > | ConstSPtr |
| Shared ptr to a const instance. More... | |
Resamples fibers so no fiber has more than the given number of Points.
Definition at line 36 of file WResampleByMaxPoints.h.
| WResampleByMaxPoints::WResampleByMaxPoints | ( | ) |
Constructor.
Definition at line 34 of file WResampleByMaxPoints.cpp.
References m_numPoints, WObjectNDIP< WResampling_I >::m_properties, and m_segLength.
The given fiber is resampled by segment length and a copy is returned.
| fib | Fiber to resample. |
Implements WResampling_I.
Definition at line 44 of file WResampleByMaxPoints.cpp.
References m_numPoints, m_segLength, WLine::resampleByNumberOfPoints(), WLine::resampleBySegmentLength(), and WMixinVector< ValueT >::size().
Here is the call graph for this function:
|
protected |
Number of max sample points per fiber.
Definition at line 62 of file WResampleByMaxPoints.h.
Referenced by resample(), and WResampleByMaxPoints().
|
protected |
Number of new sample points all tracts are resampled to.
Definition at line 57 of file WResampleByMaxPoints.h.
Referenced by resample(), and WResampleByMaxPoints().