CVBpy 14.1
Projection Class Reference

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

Inherits object.

Public Member Functions

List[cvb.foundation.EdgeResultcalculate_zero_crossings (self)
 Gets all the zero crossings, that are in the projection. More...
 
cvb.foundation.Projection derive (self)
 Create derivative of this projection. More...
 
cvb.foundation.Projection filter (self, List[int] kernel)
 Filter this projection using a 1D filter kernel. More...
 
cvb.foundation.Projection to_average_projection (self)
 Create a new averaged projection from this one. More...
 

Properties

 mode = property
 int: The projection mode (see cvb.foundation.ProjectionMode).
 
 values = property
 List[cvb.foundation.ProjectionValue]: Retrieve the values of the projection. More...
 

Detailed Description

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

Create a projection object.

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.

Parameters

plane : cvb.ImagePlane Image plane to create the projection from.

aoi : cvb.Area2D Area of interest to scan.

mode : int Mode to use, cvb.foundation.ProjectionMode.Sum by default.

density : float Density at which to scan. This is a percentage value how many pixels to process: 0.0 means 0% and 1.0 (default value) means 100%.

Member Function Documentation

◆ calculate_zero_crossings()

List[cvb.foundation.EdgeResult] calculate_zero_crossings (   self)

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

Returns

List[cvb.foundation.EdgeResult] List containing the zero crossings as EdgeResult.

◆ derive()

cvb.foundation.Projection derive (   self)

Create derivative of this projection.

Returns

cvb.foundation.Projection New projection containing the derivative of this projection.

◆ filter()

cvb.foundation.Projection filter (   self,
List[int]  kernel 
)

Filter this projection using a 1D filter kernel.

Parameters

kernel : List[int] Filter kernel to use.

Returns

cvb.foundation.Projection New projection containing the filtered projection.

◆ to_average_projection()

cvb.foundation.Projection to_average_projection (   self)

Create a new averaged projection from this one.

Returns

cvb.foundation.Projection The averaged projection object.

Property Documentation

◆ values

values = property
static

List[cvb.foundation.ProjectionValue]: Retrieve the values of the projection.

Returns ProjectionValue list.