LABEL_CVIP

label_cvip() - labels objects based on 6-connectivity, NW/SE diagonal.

Contents

SYNTAX

labeledImage = label_cvip(orignialImage)

Input parameter include:

Output parameter include :

DESCRIPTION

This function labels the binary objects in an image in an inceasing order of unique gray levels starting from the level one based on the six-connectivity of the objects in the image. The six-connectivity used in this function is a North-West/ South- East diagonal direction.

REFERENCE

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

EXAMPLE

% Read Image

 I = imread('Shapes.bmp');

% Calling function

 lab_image = label_cvip(I);

% Display input image

 figure;imshow(I);title('Input Image');

% Display output images

 figure; imshow(remap_cvip(lab_image,[]));title('Output image');

CREDITS

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