| Cv2Canny Method (InputArray, InputArray, OutputArray, Double, Double, Boolean) |
Finds edges in an image using the Canny algorithm with custom image gradient.
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax public static void Canny(
InputArray dx,
InputArray dy,
OutputArray edges,
double threshold1,
double threshold2,
bool L2gradient = false
)
Public Shared Sub Canny (
dx As InputArray,
dy As InputArray,
edges As OutputArray,
threshold1 As Double,
threshold2 As Double,
Optional L2gradient As Boolean = false
)
public:
static void Canny(
InputArray^ dx,
InputArray^ dy,
OutputArray^ edges,
double threshold1,
double threshold2,
bool L2gradient = false
)
static member Canny :
dx : InputArray *
dy : InputArray *
edges : OutputArray *
threshold1 : float *
threshold2 : float *
?L2gradient : bool
(* Defaults:
let _L2gradient = defaultArg L2gradient false
*)
-> unit
Parameters
- dx
- Type: OpenCvSharpInputArray
16-bit x derivative of input image (CV_16SC1 or CV_16SC3). - dy
- Type: OpenCvSharpInputArray
16-bit y derivative of input image (same type as dx). - edges
- Type: OpenCvSharpOutputArray
output edge map; single channels 8-bit image, which has the same size as image. - threshold1
- Type: SystemDouble
first threshold for the hysteresis procedure. - threshold2
- Type: SystemDouble
second threshold for the hysteresis procedure. - L2gradient (Optional)
- Type: SystemBoolean
Indicates, whether the more accurate L2 norm should be used to compute the image gradient magnitude (true), or a faster default L1 norm is enough (false). [By default this is false]
See Also