43 using Pointer = std::shared_ptr<NeighborhoodGenerator>;
101 const std::vector<cv::Vec3d>& axes) = 0;
Dynamically-allocated N-Dimensional Array.
std::vector< IndexType > Extent
Base class for neighborhood generating classes.
std::size_t dim()
Get the dimensionality of the neighborhood generator.
virtual Neighborhood::Extent extents() const =0
Get the size of the neighborhood returned by this class.
void setSamplingDirection(Direction d)
Set the filtering search direction.
void setSamplingRadius(double r, std::size_t axis=0)
Set the sampling search radius by axis.
NeighborhoodGenerator(std::size_t dim)
std::shared_ptr< NeighborhoodGenerator > Pointer
void setSamplingInterval(double i)
Set the sampling interval: how frequently along the radius (in Volume units) the samples are taken.
virtual Neighborhood compute(const Volume::Pointer &v, const cv::Vec3d &pt, const std::vector< cv::Vec3d > &axes)=0
Compute a neighborhood centered on a point.
void setSamplingRadius(double r0, double r1, double r2)
Set the sampling search radius for all axes.
void setAutoGenAxes(bool b)
Enable/Disable auto-generation of missing axes.
std::shared_ptr< Volume > Pointer
Volume Cartographer library
Direction
Neighborhood directional filtering options.
@ Positive
Only consider data in the positive normal direction.
@ Bidirectional
Consider data in both the positive and negative normal.
@ Negative
Only consider data in the negative normal direction.