Volume Cartographer 2.27.0
CuboidGenerator.hpp
Go to the documentation of this file.
1#pragma once
2
6
7namespace volcart
8{
9
16{
17public:
19 using Pointer = std::shared_ptr<CuboidGenerator>;
20
24
26 static Pointer New() { return std::make_shared<CuboidGenerator>(); }
30 Neighborhood::Extent extents() const override;
48 const Volume::Pointer& v,
49 const cv::Vec3d& pt,
50 const std::vector<cv::Vec3d>& axes) override;
52};
53
54} // namespace volcart
Class for generating box-like neighborhoods from a point in a Volume.
std::shared_ptr< CuboidGenerator > Pointer
Neighborhood::Extent extents() const override
Get the size of the neighborhood returned by this class.
CuboidGenerator()
Default Constructor.
Neighborhood compute(const Volume::Pointer &v, const cv::Vec3d &pt, const std::vector< cv::Vec3d > &axes) override
Compute a neighborhood centered on a point.
Dynamically-allocated N-Dimensional Array.
Definition: NDArray.hpp:29
std::vector< IndexType > Extent
Definition: NDArray.hpp:36
Base class for neighborhood generating classes.
std::shared_ptr< Volume > Pointer
Definition: Volume.hpp:42
Volume Cartographer library