Base class for point clouds.
More...
Inherits INativeHandle, and ICloneable.
Inherited by DensePointCloud, and SparsePointCloud.
|
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...
|
|
|
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.
|
|
Base class for point clouds.
◆ PointCloud() [1/2]
Constructor.
- Parameters
-
- Exceptions
-
ArgumentException | When handle is IntPtr.Zero. |
◆ PointCloud() [2/2]
Constructor.
- Parameters
-
handle | Native handle to the PointCloud. |
useMemoryPressure | Guesses memory pressure if UseMemoryPressure.Yes is set. |
- Exceptions
-
ArgumentException | When handle is IntPtr.Zero. |
◆ Clone()
Creates a new point cloud which is a copy of this point cloud.
Attention:
The duplicated point cloud may have a different point cloud layout.
- Returns
- Copy of this point cloud.
- Exceptions
-
◆ Dispose()
virtual void Dispose |
( |
bool |
disposing | ) |
|
|
protectedvirtual |
IDisposable helper function.
- Parameters
-
◆ FromComposite()
Create a point cloud from the given Composite obj .
- Parameters
-
obj | Composite from which a point cloud is to be created. |
- Returns
- New PointCloud object.
◆ FromFile() [1/2]
Loads a point cloud from the given fileName .
- Parameters
-
fileName | File to load the point cloud from. |
- Returns
- Loaded point cloud.
- Exceptions
-
◆ FromFile() [2/2]
Loads a point cloud from the given fileName with the specified flags .
- Parameters
-
fileName | File to load the point cloud from. |
flags | Flags to load the point cloud with. |
- Returns
- Loaded point cloud.
- Exceptions
-
◆ FromHandle()
Creates a point cloud from the given handle .
- Parameters
-
handle | Handle to create point cloud with. |
doShare | Share ownership or adopt it. |
- Returns
- Created point cloud.
- Exceptions
-
ArgumentException | When handle is IntPtr.Zero. |
◆ FromMemory() [1/2]
Creates a point cloud from the given buffer buffer.
- Parameters
-
buffer | Buffer containing the point cloud data. |
flags | Flags of the point cloud to create. |
fileFormat | File format of the buffer data. |
- Returns
- Created point cloud.
- Exceptions
-
ArgumentNullException | When buffer is null. |
ArgumentException | When buffer is empty. |
CvbException | When an error during point cloud creation occurs. |
◆ FromMemory() [2/2]
Creates a point cloud from the given buffer buffer.
- Parameters
-
buffer | Buffer containing the point cloud data. |
bufferSize | Size of the buffer . |
flags | Flags of the point cloud to create. |
fileFormat | File format of the buffer data. |
- Returns
- Created point cloud.
- Exceptions
-
CvbException | When an error during point cloud creation occurs. |
◆ FromMemory< T >() [1/2]
Creates a point cloud from the given buffer buffer.
- Template Parameters
-
T | Point type used by the cloud. |
- Parameters
-
buffer | Buffer containing the point cloud data. |
fileFormat | File format of the buffer data. |
- Returns
- Created point cloud.
- Exceptions
-
ArgumentNullException | When buffer is null. |
ArgumentException | When buffer is empty. |
CvbException | When an error during point cloud creation occurs. |
◆ FromMemory< T >() [2/2]
Creates a point cloud from the given buffer buffer.
- Template Parameters
-
T | Point type used by the cloud. |
- Parameters
-
buffer | Buffer containing the point cloud data. |
bufferSize | Size of the buffer . |
fileFormat | File format of the buffer data. |
- Returns
- Created point cloud.
- Exceptions
-
CvbException | When an error during point cloud creation occurs. |
◆ TryEnumeratePointsAs< T >()
IEnumerable< T > TryEnumeratePointsAs< T > |
( |
| ) |
|
Tries to get the points of this point cloud.
- Template Parameters
-
T | Type to try to get the points in. |
- Returns
- The points (or empty IEnumerable<T>, when the points could not be gotten).
◆ ObjectDisposing
Raised when this object is about to be disposed via the IDisposable.Dispose method.
This event is raised right before this object is disposed. The dispose itself cannot be canceled.