Projection that the Edge analysis of Common Vision Blox is using. More...
Public Member Functions | |
| None | Projection (self, cvb.ImagePlane plane, cvb.Area2D aoi, int mode, float density=1.0) |
| Create a projection object. | |
| List[cvb.foundation.EdgeResult] | calculate_zero_crossings (self) |
| Gets all the zero crossings, that are in the projection. | |
| cvb.foundation.Projection | derive (self) |
| Create derivative of this projection. | |
| cvb.foundation.Projection | filter (self, List[int] kernel) |
| Filter this projection using a 1D filter kernel. | |
| cvb.foundation.Projection | to_average_projection (self) |
| Create a new averaged projection from this one. | |
Properties | |
| mode = property | |
| int: The projection mode (see cvb.foundation.ProjectionMode). | |
| values = property | |
| List[cvb.foundation.ProjectionValue]: Retrieve the values of the projection. | |
Projection that the Edge analysis of Common Vision Blox is using.
| None Projection | ( | self, | |
| cvb.ImagePlane | plane, | ||
| cvb.Area2D | aoi, | ||
| int | mode, | ||
| float | density = 1.0 ) |
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.