Class CudaCannyEdgeDetector
Cascade Classifier for object detection using Cuda
public class CudaCannyEdgeDetector : SharedPtrObject, IDisposable
- Inheritance
-
CudaCannyEdgeDetector
- Implements
- Inherited Members
Constructors
CudaCannyEdgeDetector(double, double, int, bool)
Canny edge detector using Cuda.
public CudaCannyEdgeDetector(double lowThreshold, double highThreshold, int apertureSize = 3, bool L2gradient = false)
Parameters
lowThreshold
doubleThe first threshold, used for edge linking
highThreshold
doubleThe second threshold, used to find initial segments of strong edges
apertureSize
intAperture parameter for Sobel operator, use 3 for default
L2gradient
boolUse false for default
Methods
Detect(IInputArray, IOutputArray, Stream)
Finds the edges on the input src
and marks them in the output image edges using the Canny algorithm.
public void Detect(IInputArray src, IOutputArray edges, Stream stream = null)
Parameters
src
IInputArrayInput image
edges
IOutputArrayImage to store the edges found by the function
stream
StreamUse a Stream to call the function asynchronously (non-blocking) or null to call the function synchronously (blocking).
DisposeObject()
Release all the unmanaged memory associate with this Canny edge detector.
protected override void DisposeObject()