Volume Cartographer 2.28.0
LineGenerator.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<LineGenerator>;
20
24
26 static Pointer New();
30 [[nodiscard]] auto extents() const -> Neighborhood::Extent override;
31
39 [[nodiscard]] auto offsets() const -> std::vector<double>;
54 const Volume::Pointer& v,
55 const cv::Vec3d& pt,
56 const std::vector<cv::Vec3d>& axes) override;
58};
59
60} // namespace volcart
Class for generating line-like neighborhoods from a point in a Volume.
auto extents() const -> Neighborhood::Extent override
Get the size of the neighborhood returned by this class.
LineGenerator()
Default Constructor.
std::shared_ptr< LineGenerator > Pointer
auto offsets() const -> std::vector< double >
Returns the list of scalar offsets along the neighborhood axis.
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
Base class for neighborhood generating classes.
Volumetric image data.
Definition: Volume.hpp:36
Volume Cartographer library