Conversion functions from unmanaged PIXELLIST objects to managed lists.
More...
Conversion functions from unmanaged PIXELLIST objects to managed lists.
◆ FromPositions()
static IntPtr FromPositions |
( |
ICollection< IPosition > | pixels | ) |
|
|
static |
Convert a list of positions to an unmanaged pixel list object.
The handle must be release when no longer used by means of a ReleaseNativeHandle call.
- Parameters
-
pixels | Positions to be converted. |
- Returns
- Handle to unmanaged pixel list.
◆ ReleaseNativeHandle()
static void ReleaseNativeHandle |
( |
IntPtr | handle | ) |
|
|
static |
Releases the given native object handle .
Attention:
only use this if you know what you are doing. This is normally not needed in the Stemmer.Cvb wrappers!
- Parameters
-
handle | Object handle to be released. |
◆ ToLocalMaxima()
Convert a pixel list (with pixels with at least 3 components) to a List of LocalMaximum objects.
- Parameters
-
pl | Unmanaged pixel list object. |
- Returns
null
if pl was IntPtr.Zero, a list of LocalMaximum objects otherwise.
◆ ToPoints()
Convert a pixel list (with pixels with at least 2 components) to a List of Point2Dd objects.
- Parameters
-
pl | unmanaged pixel list object |
- Returns
- null if pl was IntPtr.Zero, a list of LocalMaximum objects otherwise.