CVB.Net 14.0
Projection Class Reference

Projection that the Edge analysis of Common Vision Blox is using. More...

Inherits INativeHandle.

Public Member Functions

 Projection (ImagePlane plane, Area2D aoi)
 Create an ProjectionMode.Sum projection object. More...
 
 Projection (ImagePlane plane, Area2D aoi, ProjectionMode mode)
 Create a projection object. More...
 
 Projection (ImagePlane plane, Area2D aoi, ProjectionMode mode, double density)
 Create a projection object. More...
 
EdgeResult[] CalculateZeroCrossings ()
 Get all the zero crossings, that are in the projection. More...
 
Projection Derive ()
 Create derivative of this projection. More...
 
unsafe Projection Filter (int[] kernel)
 Filter this projection using a 1D filter kernel. More...
 
Projection ToAverageProjection ()
 Create a new averaged projection from this one. More...
 
void Dispose ()
 Dispose method that releases the classifier
 

Protected Member Functions

virtual void Dispose (bool disposing)
 IDispose helper function. More...
 

Properties

ProjectionMode Mode [get]
 Defines the result of the projection.
 
unsafe ProjectionValue[] Values [get]
 Retrieve the values of the projection. More...
 
IntPtr Handle [get]
 Native non projection handle. More...
 
bool IsDisposed [get]
 Tests if the native handle has already been disposed.
 
- 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...
 

Detailed Description

Projection that the Edge analysis of Common Vision Blox is using.

The projections are what is being used internally inside the Edge finding algorithms and the Projection object may in fact be used to build a customized edge detection.

Constructor & Destructor Documentation

◆ Projection() [1/3]

Projection ( ImagePlane  plane,
Area2D  aoi 
)

Create an ProjectionMode.Sum projection object.

Parameters
planeImage plane to create the projection from.
aoiArea of interest to scan.

◆ Projection() [2/3]

Projection ( ImagePlane  plane,
Area2D  aoi,
ProjectionMode  mode 
)

Create a projection object.

Parameters
planeImage plane to create the projection from.
aoiArea of interest to scan.
modeMode to use.

◆ Projection() [3/3]

Projection ( ImagePlane  plane,
Area2D  aoi,
ProjectionMode  mode,
double  density 
)

Create a projection object.

Parameters
planeImage plane to create the projection from.
aoiArea of interest to scan.
modeMode to use.
densityDensity at which to scan. This is a percentage value how many pixels to process: 0.0 means 0% and 1.0 means 100%.

Member Function Documentation

◆ CalculateZeroCrossings()

EdgeResult[] CalculateZeroCrossings ( )

Get all the zero crossings, that are in the projection.

Returns
Array containing the zero crossings as EdgeResults.

◆ Derive()

Projection Derive ( )

Create derivative of this projection.

Returns
New projection containing the derivative of this projection.

◆ Dispose()

virtual void Dispose ( bool  disposing)
protectedvirtual

IDispose helper function.

Parameters
disposingtrue when called via IDisposable.Dispose, false when called by the finalizer.

◆ Filter()

unsafe Projection Filter ( int[]  kernel)

Filter this projection using a 1D filter kernel.

Parameters
kernelFilter kernel to use
Returns
New projection containing the filtered projection.

◆ ToAverageProjection()

Projection ToAverageProjection ( )

Create a new averaged projection from this one.

Returns
The averaged projection object.

Property Documentation

◆ Handle

IntPtr Handle
get

Native non projection 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.

◆ Values

unsafe ProjectionValue [] Values
get

Retrieve the values of the projection.

Double array with the projection values.

Exceptions
ObjectDisposedExceptionif the Projection object has already been disposed

Event Documentation

◆ ObjectDisposing

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.