cannycv

Detects edges of an image handle with the Canny algorithm.

Syntax

R = cannycv(handle, threshold1, threshold2...)

R = cannycv(handle, threshold1, threshold2, size, gradient)

Inputs

handle
Handle of a single channel gray scale image.
Type: integer
threshold1
Lower edge detection threshold.
Type: scalar
threshold2
Upper edge detection threshold.
Type: scalar
size
Optional aperture size for the Sobel operator. Default value is 3
Type: integer
gradient
Optional flag for gradient. Default value is false, indicating that default gradient will be used.
Type: logical

Outputs

R
Handle of the output image.
Type: integer

Example

Detect the edges with the Canny algorithm:

handle = imreadcv('image1.jpg', 0);
R = cannycv(handle, 50, 100);