3#include "decl_point_cloud.hpp"
5#include "../image_plane.hpp"
6#include "../dense_components_pointers_3d.hpp"
34 class DensePointCloud :
public PointCloud
37 friend class PointCloud;
42 if (!IsDense(guard.Handle()))
53 DensePointCloud(HandleGuard<PointCloud> &&guard, PrivateTag) noexcept
85 CExports::cvbdim_t width = 0;
86 CExports::cvbdim_t height = 0;
87 Internal::DoResCall([&]() {
return CVB_CALL_CAPI(CVC3DPointCloudGetLatticeSize(
Handle(), width, height)); });
88 return Size2D<int>(
static_cast<int>(width),
static_cast<int>(height));
101 return Internal::DoResCallShareOut<DensePointCloud>(
102 [&](
void *&handle) {
return CVB_CALL_CAPI(CVC3DCreateShrinkedDensePointCloud(
Handle(), handle)); });
113 return Internal::DoResCallShareOut<DensePointCloud>([&](
void *&handle) {
114 return CVB_CALL_CAPI(
115 CVC3DCreateCroppedPointCloud(
Handle(), *
reinterpret_cast<const CExports::CVC3DCuboid *
>(&clipBox), handle));
143 return Internal::DoResCallShareOut<DensePointCloud>([&](
void *&handle) {
144 return CVB_CALL_CAPI(CVC3DCreateFrustumCroppedPointCloud(
145 Handle(), *
reinterpret_cast<const CExports::CVC3DCuboid *
>(&clipBox), theta.
Deg(), phi.
Deg(), handle));
231 auto error = PointCloud::TryPointComponents<T>(rawComponents);
249 auto error = PointCloud::TryPointComponents<T>(rawComponents);
34 class DensePointCloud :
public PointCloud {
…};
Object for convenient and type - safe handling of angles.
Definition angle.hpp:16
double Deg() const noexcept
Get the value in degrees.
Definition angle.hpp:89
Point components of the point cloud.
Definition components_pointers_3d.hpp:18
3D rectangle in the X, Y and Z domain.
Definition cuboid.hpp:19
Point components of a dense point cloud.
Definition dense_components_pointers_3d.hpp:15
DensePointCloudPtr Crop(const Cuboid &clipBox) const
Creates a new point cloud which only consists of the points inside the clip box.
Definition decl_dense_point_cloud.hpp:111
DensePointCloudPtr PlaneCrop(const Plane3D &plane, double threshold, CropDirection cropBelowAbove=CropDirection::Below) const
Creates a new point cloud which only consists of the points below or above given plane.
Definition decl_dense_point_cloud.hpp:216
bool TryPointComponents(DenseComponentsPointers3D< T > &components) const noexcept
Tries to get the point components from the given point cloud.
Definition decl_dense_point_cloud.hpp:246
static DensePointCloudPtr FromComposite(CompositePtr object)
Creates a dense point cloud from a composite.
Definition decl_dense_point_cloud.hpp:64
SparsePointCloudPtr ToSparsePointCloud() const
Creates a sparse point cloud from this dense point cloud with confidence plane.
Definition detail_dense_point_cloud.hpp:11
Cvb::Size2D< int > LatticeSize() const
Gets the number of x,y,z(,w) point rows and columns of the given dense PointCloud.
Definition decl_dense_point_cloud.hpp:83
DensePointCloudPtr Shrink() const
Creates a new dense point cloud where lines and columns at the borders containing only non-confident ...
Definition decl_dense_point_cloud.hpp:99
DensePointCloudPtr PlaneCrop(const Plane3D &plane, const ValueRange< double > &range, CropRange cropRange) const
Creates a new point cloud where points within or outside a range parallel to given plane are cropped.
Definition decl_dense_point_cloud.hpp:179
DenseComponentsPointers3D< T > PointComponents() const
Get the point components from the given point cloud.
Definition decl_dense_point_cloud.hpp:228
DensePointCloudPtr FrustumCrop(const Cuboid &clipBox, Angle theta, Angle phi) const
Creates a new point cloud which only consists of the points inside the clipBox, where the orientation...
Definition decl_dense_point_cloud.hpp:141
A plane in 3D space in Hessian normal form.
Definition plane_3d.hpp:19
std::shared_ptr< T > PlaneCrop(const Plane3D &plane, const ValueRange< double > &range, CropRange cropRange) const
Creates a new point cloud where points within or outside a range parallel to given plane are cropped.
Definition decl_point_cloud.hpp:391
static std::shared_ptr< T > FromComposite(CompositePtr object)
Creates a point cloud from a composite.
Definition detail_point_cloud.hpp:27
void * Handle() const noexcept
Returns C-API style handle to Node Object.
Definition decl_point_cloud.hpp:764
Stores a pair of numbers that represents the width and the height of a subject, typically a rectangle...
Definition size_2d.hpp:20
Container for range definitions.
Definition value_range.hpp:17
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
CropRange
Indicates cropping range.
Definition core_3d.hpp:288
std::shared_ptr< SparsePointCloud > SparsePointCloudPtr
Convenience shared pointer for SparsePointCloud.
Definition core_3d.hpp:48
CropDirection
Indicates cropping direction.
Definition core_3d.hpp:301
@ Below
Crop below given plane.
Definition core_3d.hpp:305
std::shared_ptr< Composite > CompositePtr
Convenience shared pointer for Composite.
Definition global.hpp:102
std::shared_ptr< DensePointCloud > DensePointCloudPtr
Convenience shared pointer for DensePointCloud.
Definition core_3d.hpp:44
T rethrow_exception(T... args)