Projection that the Edge analysis of Common Vision Blox is using. More...
Inherits object.
Public Member Functions | |
List[cvb.foundation.EdgeResult] | calculate_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... | |
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.
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%.
List[cvb.foundation.EdgeResult] calculate_zero_crossings | ( | self | ) |
Gets all the zero crossings, that are in the projection.
List[cvb.foundation.EdgeResult] List containing the zero crossings as EdgeResult.
cvb.foundation.Projection derive | ( | self | ) |
Create derivative of this projection.
cvb.foundation.Projection New projection containing the derivative of this projection.
cvb.foundation.Projection filter | ( | self, | |
List[int] | kernel | ||
) |
Filter this projection using a 1D filter kernel.
kernel : List[int] Filter kernel to use.
cvb.foundation.Projection New projection containing the filtered projection.
cvb.foundation.Projection to_average_projection | ( | self | ) |
Create a new averaged projection from this one.
cvb.foundation.Projection The averaged projection object.
|
static |
List[cvb.foundation.ProjectionValue]: Retrieve the values of the projection.
Returns ProjectionValue list.