KIRSCH_ED_CVIP
kirsch_ed_cvip() - performs kirsch edge detection.
Contents
SYNTAX
[edge_mag, edge_dir] = kirsch_ed_cvip(input_image)
Input Parameter include:
- input_image - Input image can be gray image or rgb image of MxN size.
Output Parameters include:
- edge_mag - The magnitude of the edges. An image with the same size as the input image.
- edge_dir - The direction of the edges. An image with the same size as the input image.
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