<< DrawBoundingBoxes IPD - Image Processing Design ErodeImage >>

IPD - Image Processing Design >> IPD - Image Processing Design > EdgeFilter

EdgeFilter

applies filter for edge detection to gray level image

Calling Sequence

FilteredImage = EdgeFilter(Image, FilterType);

Parameters

Image

2D matrix of type uint8, uint16, uint32 or double

FilterType

scalar of type uint8, can be EDGE_SOBEL, EDGE_LAPLACE, EDGE_PREWITT or EDGE_SCHARR.

FilteredImage

2D matrix of the same size and type as Image

Description

This function applies a filter for edge detection to an an image. No threshold for edge detection is calculated and no thresholding takes place. The filter result itself is returned.

Examples

global IPD_PATH;

RGB = ReadImage(IPD_PATH + 'demos\teaset.png');

Image = RGB2Gray(RGB);

global EDGE_SOBEL;

Gradient = EdgeFilter(Image, EDGE_SOBEL);

figure(); ShowImage(Gradient, 'Gradient Image');

See Also

<< DrawBoundingBoxes IPD - Image Processing Design ErodeImage >>