State object for calculating various image moments. More...
Inherits INativeHandle.
Public Member Functions | |
void | Dispose () |
Dispose method that releases the classifier | |
double | CalculateSpatialMoment (MomentsOrder xOrder, MomentsOrder yOrder, Point2D offset, MomentsNormalization normalization) |
Get one of the spatial image moments. More... | |
double | CalculateGetSpatialMoment (MomentsOrder xOrder, MomentsOrder yOrder, MomentsNormalization normalization) |
Get one of the spatial image moments. More... | |
double | CalculateCentralMoment (MomentsOrder xOrder, MomentsOrder yOrder, MomentsNormalization normalization) |
Get one of the central image moments. More... | |
HuMoments | CaltulateHuMoments () |
Get the seven Hu moments of the image. More... | |
Static Public Member Functions | |
static ImageMoments | Calculate (ImagePlane imgPlane, Rect aoi, MomentsCalculation preference) |
Calculate the moments on the input imgPlane and aoi (area of interest). More... | |
static ImageMoments | Calculate (ImagePlane imgPlane, Rect aoi) |
Calculate the moments on the input imgPlane and aoi favoring neither speed nor accuracy. More... | |
static ImageMoments | Calculate (ImagePlane imgPlane, MomentsCalculation preference) |
Calculate the moments on the input imgPlane . More... | |
static ImageMoments | Calculate (ImagePlane imgPlane) |
Calculate the moments on the input imgPlane favoring neither speed nor accuracy. More... | |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
IDispose helper function. More... | |
Properties | |
IntPtr | Handle [get] |
Native non linear transformation handle. More... | |
bool | IsDisposed [get] |
Tests if the native handle has already been disposed. | |
MomentsCalculation | CalculationPreference [get] |
The preference of speed versus accuracy chosen when this object was created. | |
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. | |
Events | |
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... | |
State object for calculating various image moments.
|
static |
Calculate the moments on the input imgPlane favoring neither speed nor accuracy.
imgPlane | Plane to calculate the moments on |
|
static |
Calculate the moments on the input imgPlane .
imgPlane | Plane to calculate the moments on |
preference | Speed or accuracy. |
|
static |
Calculate the moments on the input imgPlane and aoi favoring neither speed nor accuracy.
imgPlane | Plane to calculate the moments on. |
aoi | Area of interest to calculate the moments in. |
|
static |
Calculate the moments on the input imgPlane and aoi (area of interest).
imgPlane | Plane to calculate the moments. |
aoi | Area of interest to calculate the moments in. |
preference | Speed or accuracy. |
double CalculateCentralMoment | ( | MomentsOrder | xOrder, |
MomentsOrder | yOrder, | ||
MomentsNormalization | normalization | ||
) |
Get one of the central image moments.
xOrder | X order of the moment to retrieve |
yOrder | Y order of the moment to retrieve |
normalization | Whether or not to normalize. |
double CalculateGetSpatialMoment | ( | MomentsOrder | xOrder, |
MomentsOrder | yOrder, | ||
MomentsNormalization | normalization | ||
) |
Get one of the spatial image moments.
This overload automatically uses the offset used in creating this object.
xOrder | X order of the moment to retrieve |
yOrder | Y order of the moment to retrieve |
normalization | Whether or not to normalize. |
double CalculateSpatialMoment | ( | MomentsOrder | xOrder, |
MomentsOrder | yOrder, | ||
Point2D | offset, | ||
MomentsNormalization | normalization | ||
) |
Get one of the spatial image moments.
xOrder | X order of the moment to retrieve |
yOrder | Y order of the moment to retrieve |
offset | Offset of the moments. |
normalization | Whether or not to normalize. |
HuMoments CaltulateHuMoments | ( | ) |
Get the seven Hu moments of the image.
|
protectedvirtual |
IDispose helper function.
disposing | true when called via IDisposable.Dispose, false when called by the finalizer. |
|
get |
Native non linear transformation handle.
It is normally not necessary to work with this handle in CVB.Net. Note that using this handle in connection with the legacy CVB managed wrappers may actually be disruptive to your application.
Implements INativeHandle.
NativeHandleEventDelegate 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.