KIRSCH_ED_CVIP

kirsch_ed_cvip() - performs kirsch edge detection.

Contents

SYNTAX

[edge_mag, edge_dir] = kirsch_ed_cvip(input_image)
Input Parameter include:

Output Parameters include:

DESCRIPTION

This function performs the Kirsch edge detection operation on an input image. The function has two outputs i.e., The edge Magnitude and edge direction. The eight compass masks of the Kirsch edge detector are convolved with each band of the input image.

REFERENCE

1. Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.

EXAMPLE

 %Read  image

  input_image = imread('butterfly.tif');

 % Calling function

  [edge_mag, edge_dir] = kirsch_ed_cvip(input_image);

% Display input image

 figure;imshow(input_image);title('Input image');

% Display output image

  figure; imshow(hist_stretch_cvip(edge_mag,0,1,0,0),[]);title('Output Magnitude image');

  figure; imshow(hist_stretch_cvip(edge_dir,0,1,0,0),[]);title('Output Direction image');

CREDITS

Author: Mehrdad Alvandipour, April 2017
Copyright © 2017-2018 Scott E Umbaugh
For updates visit CVIP Toolbox Website