CVB.Net 14.0
All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
PixelListConversion Class Reference

Conversion functions from unmanaged PIXELLIST objects to managed lists. More...

Static Public Member Functions

static LocalMaximum[] ToLocalMaxima (IntPtr pl)
 Convert a pixel list (with pixels with at least 3 components) to a List of LocalMaximum objects. More...
 
static Point2Dd[] ToPoints (IntPtr pl)
 Convert a pixel list (with pixels with at least 2 components) to a List of Point2Dd objects. More...
 
static IntPtr FromPositions (ICollection< IPosition > pixels)
 Convert a list of positions to an unmanaged pixel list object. More...
 
static void ReleaseNativeHandle (IntPtr handle)
 Releases the given native object handle . More...
 

Detailed Description

Conversion functions from unmanaged PIXELLIST objects to managed lists.

Member Function Documentation

◆ 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
pixelsPositions 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
handleObject handle to be released.

◆ ToLocalMaxima()

static LocalMaximum[] ToLocalMaxima ( IntPtr  pl)
static

Convert a pixel list (with pixels with at least 3 components) to a List of LocalMaximum objects.

Parameters
plUnmanaged pixel list object.
Returns
null if pl was IntPtr.Zero, a list of LocalMaximum objects otherwise.

◆ ToPoints()

static Point2Dd[] ToPoints ( IntPtr  pl)
static

Convert a pixel list (with pixels with at least 2 components) to a List of Point2Dd objects.

Parameters
plunmanaged pixel list object
Returns
null if pl was IntPtr.Zero, a list of LocalMaximum objects otherwise.