Prewitt

Prewitt edge detector.

 

function call:

[out_img1]=vsg('Prewitt',in_img1);

 

Arguments:

in_img1 input image, 3 channel RGB, 1 channel greyscale or binary image, or DICOM image.

 

Description:

The Prewitt edge detector is similar in nature to the Sobel edge detector, but is more sensitive to noise as it does posses the same inherent smoothing.

out_img1 - An image which has dimensions the same as the input image. The output image displays the prewitt filtered input image.

 

Example:

img = openimage('lake.jpg');

h=figure;image(img); set(h,'Name','Input');

[out_img1]=vsg('Prewitt',img);

h=figure; image(uint8(out_img1));set(h,'Name','Prewitt');

Notes:

For DICOM and RGB images, the function operates on each channel/slice separately.

Home       Functions       Back