CVB.Net 14.0
DensePointCloud Class Reference

Dense point cloud object. More...

Inherits PointCloud.

Public Member Functions

 DensePointCloud (Size2D size)
 Constructor. More...
 
 DensePointCloud (Size2D size, PointCloudFlags flags)
 Constructor. More...
 
 DensePointCloud (int width, int height)
 Constructor. More...
 
 DensePointCloud (int width, int height, PointCloudFlags flags)
 Constructor. More...
 
DenseComponentsPointer3D< T > GetComponentsPointer3D< T > ()
 Gets the generic components pointer for this point cloud. More...
 
SparsePointCloud ToSparsePointCloud ()
 Creates a sparse point cloud from this dense point cloud with confidence plane. Non-confident points will be removed and the confidence plane is not kept. The new sparse point cloud has the same planes as this dense point cloud(except confidence). More...
 
DensePointCloud Shrink ()
 Creates a new dense point cloud where lines and cloumns at the borders containing only non-confident points are removed. More...
 
- Public Member Functions inherited from PointCloud
void Dispose ()
 IDisposable implementation.
 
PointCloud Clone ()
 Creates a new point cloud which is a copy of this point cloud. More...
 
IEnumerable< T > TryEnumeratePointsAs< T > ()
 Tries to get the points of this point cloud. More...
 

Static Public Member Functions

static DensePointCloud Create< T > (Size2D size)
 Creates a new dense point cloud with the specified size and components of the given type T . More...
 
static DensePointCloud Create< T > (int width, int height)
 Creates a new dense point cloud with the specified width , height and components of the given type T . More...
 
- Static Public Member Functions inherited from PointCloud
static PointCloud FromFile (string fileName)
 Loads a point cloud from the given fileName . More...
 
static PointCloud FromFile (string fileName, PointCloudFlags flags)
 Loads a point cloud from the given fileName with the specified flags . More...
 
static PointCloud FromComposite (Composite obj)
 Create a point cloud from the given Composite obj . More...
 
static PointCloud FromHandle (IntPtr handle, ShareObject doShare)
 Creates a point cloud from the given handle . More...
 
static PointCloud FromMemory< T > (byte[] buffer, FileFormat fileFormat)
 Creates a point cloud from the given buffer buffer. More...
 
static PointCloud FromMemory (byte[] buffer, PointCloudFlags flags, FileFormat fileFormat)
 Creates a point cloud from the given buffer buffer. More...
 
static PointCloud FromMemory< T > (IntPtr buffer, long bufferSize, FileFormat fileFormat)
 Creates a point cloud from the given buffer buffer. More...
 
static PointCloud FromMemory (IntPtr buffer, long bufferSize, PointCloudFlags flags, FileFormat fileFormat)
 Creates a point cloud from the given buffer buffer. More...
 

Properties

Size2D LatticeSize [get]
 Gets the number of x,y,z(,w) point rows and columns.
 
- Properties inherited from PointCloud
IntPtr Handle [get]
 Native handle of the PointCloud.
 
bool IsDisposed [get]
 Gets if the native handle has been disposed.
 
PointCloudLayout Layout [get]
 The layout of the buffer / planes.
 
DataType DataType [get]
 The data type.
 
long NumPoints [get]
 Number of points.
 
ComponentsPointer3D PointComponents [get]
 The pointer components for the points.
 
PlaneEnumerator Planes [get]
 Gets all the component planes of this point cloud.
 
- Properties inherited from INativeHandle
IntPtr Handle [get]
 The native handle of the object.
 
bool IsDisposed [get]
 Possibility to check whether the object has already been disposed of.
 

Additional Inherited Members

- Protected Member Functions inherited from PointCloud
 PointCloud (IntPtr handle)
 Constructor. More...
 
 PointCloud (IntPtr handle, UseMemoryPressure useMemoryPressure)
 Constructor. More...
 
virtual void Dispose (bool disposing)
 IDisposable helper function. More...
 
- Events inherited from PointCloud
NativeHandleEventDelegate ObjectDisposing
 Raised when this object is about to be disposed via the IDisposable.Dispose method. More...
 
- Events inherited from INativeHandle
NativeHandleEventDelegate ObjectDisposing
 Raised when this object is about to be disposed via the IDisposable.Dispose method.
More...
 

Detailed Description

Dense point cloud object.

A dense point cloud is an ordered set of 3D points, placed on a grid with a given width and height. The advantage of dense clouds is to have immediate neighbor information. The disadvantage is, that you cannot have arbitrary clouds (e.g.an affine transformation breaks the lattice view). Also each x-y-position can have only one corresponding z-height.

A dense point cloud has grid / neighbor information available and has a larger memory than a sparse point cloud (due to NaN values / holes).

Each dense point cloud can be converted to a sparse point cloud.

Constructor & Destructor Documentation

◆ DensePointCloud() [1/4]

Constructor.

Parameters
sizeSize of the point cloud to create.

◆ DensePointCloud() [2/4]

DensePointCloud ( Size2D  size,
PointCloudFlags  flags 
)

Constructor.

For detailed information see DensePointCloud.CreateHandle.


Parameters
sizeSize of the point cloud to create.
flagsFlags to create the pointcloud with.

◆ DensePointCloud() [3/4]

DensePointCloud ( int  width,
int  height 
)

Constructor.

Parameters
widthWidth of the pointcloud to create.
heightHeight of the pointcloud to create.

◆ DensePointCloud() [4/4]

DensePointCloud ( int  width,
int  height,
PointCloudFlags  flags 
)

Constructor.

For detailed information see DensePointCloud.CreateHandle.


Parameters
widthWidth of the pointcloud to create.
heightHeight of the pointcloud to create.
flagsFlags to create the pointcloud with.

Member Function Documentation

◆ Create< T >() [1/2]

static DensePointCloud Create< T > ( int  width,
int  height 
)
static

Creates a new dense point cloud with the specified width , height and components of the given type T .

Template Parameters
TOne of Stemmer.Cvb.Point3D types.
Parameters
widthWidth of the point cloud to create.
heightHeight of the point cloud to create.
Returns
Newly created dense point cloud.
Exceptions
ArgumentExceptionWhen T is not double or float.
CvbExceptionWhen creating the dense point cloud failed.
Type Constraints
T :struct 

◆ Create< T >() [2/2]

static DensePointCloud Create< T > ( Size2D  size)
static

Creates a new dense point cloud with the specified size and components of the given type T .

Template Parameters
TOne of Stemmer.Cvb.Point3D types.
Parameters
sizeSize of the point cloud to create.
Returns
Newly created dense point cloud.
Exceptions
ArgumentExceptionWhen T is not double or float.
CvbExceptionWhen creating the dense point cloud failed.
Type Constraints
T :struct 

◆ GetComponentsPointer3D< T >()

DenseComponentsPointer3D< T > GetComponentsPointer3D< T > ( )

Gets the generic components pointer for this point cloud.

Template Parameters
TType of the points.
Returns
Generic components pointer for this point cloud.
Type Constraints
T :struct 

◆ Shrink()

DensePointCloud Shrink ( )

Creates a new dense point cloud where lines and cloumns at the borders containing only non-confident points are removed.

Returned PointCloud has the same planes as input. Please ensure that the input point cloud contains a confidence plane.

Returns
Shrinked dense point cloud.

◆ ToSparsePointCloud()

SparsePointCloud ToSparsePointCloud ( )

Creates a sparse point cloud from this dense point cloud with confidence plane. Non-confident points will be removed and the confidence plane is not kept. The new sparse point cloud has the same planes as this dense point cloud(except confidence).

Returns
Converted sparse point cloud.