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... | |
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.
DensePointCloud | ( | Size2D | size | ) |
Constructor.
size | Size of the point cloud to create. |
DensePointCloud | ( | Size2D | size, |
PointCloudFlags | flags | ||
) |
Constructor.
For detailed information see DensePointCloud.CreateHandle.
size | Size of the point cloud to create. |
flags | Flags to create the pointcloud with. |
DensePointCloud | ( | int | width, |
int | height | ||
) |
Constructor.
width | Width of the pointcloud to create. |
height | Height of the pointcloud to create. |
DensePointCloud | ( | int | width, |
int | height, | ||
PointCloudFlags | flags | ||
) |
Constructor.
For detailed information see DensePointCloud.CreateHandle.
width | Width of the pointcloud to create. |
height | Height of the pointcloud to create. |
flags | Flags to create the pointcloud with. |
|
static |
Creates a new dense point cloud with the specified width , height and components of the given type T .
T | One of Stemmer.Cvb.Point3D types. |
width | Width of the point cloud to create. |
height | Height of the point cloud to create. |
ArgumentException | When T is not double or float. |
CvbException | When creating the dense point cloud failed. |
T | : | struct |
|
static |
Creates a new dense point cloud with the specified size and components of the given type T .
T | One of Stemmer.Cvb.Point3D types. |
size | Size of the point cloud to create. |
ArgumentException | When T is not double or float. |
CvbException | When creating the dense point cloud failed. |
T | : | struct |
DenseComponentsPointer3D< T > GetComponentsPointer3D< T > | ( | ) |
Gets the generic components pointer for this point cloud.
T | Type of the points. |
T | : | struct |
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.
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).