LAPLACIAN_ED_CVIP

laplacian_ed_cvip() - performs a Laplacian edge detection.

Contents

SYNTAX

edge_mag  = laplacian_ed_cvip( input_image, mask_type )

Input Parameters include :

                 Type 1 = [0  -1  0;
                           -1  4 -1;
                           0  -1  0];
                 Type 2 = [-2  1  -2;
                            1  4   1;
                           -2  1  -2];
                 Type 3 = [-1  -1  -1;
                           -1  8   -1;
                           -1  -1  -1];

Output Parameters include :

DESCRIPTION

This function performs Lapalcian Edge detection operation on an input image. Depending on the mask-type specified by the user, the function convolves each band of the input image with the specified mask-type and outputs the edge detected 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');

% Mask type

  mask_type = 2;

% Calling function

  edge_mag = laplacian_ed_cvip( input_image, mask_type);

% 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 Image');

CREDITS

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