IRREGULAR_CVIP
irregular_cvip() - calculates the irregularity ratio of a binary object.
Contents
SYNTAX
ir = irregular_cvip(labeledImage, r, c)
Input Parameter include :
- labelImage - Label image of MxN size with single object or multiple objects. Each object has unique gray value.
- r - The row number of a pixel on the object. It is a positive integer.
- c - The column number of a pixel on the object. It is a positive integer.
Output Parameters Include :
- ir - The irregularity ratio of the binary object.
DESCRIPTION
The function calculates the irregularity ratio of the binary objects specified by the row and column inputs given by the user. Irregularity ratio or the compactness ratio of a binary object gives a measure of the irregularity component of the binary object. It is calculated as the inverse of the thinnes ratio of the binary object.
REFERENCE
1. Scott E Umbaugh. DIGITAL IMAGE PROCESSING AND ANALYSIS: Applications with MATLAB and CVIPtools, 3rd Edition.
EXAMPLE
% Read image lab_image = label_cvip(imread('Shapes.bmp')); % Calling function ir = irregular_cvip(lab_image, 33 , 27)
ir = 1.6525
CREDITS
Author: Mehrdad Alvandipour, March 2017
Copyright © 2017-2018 Scott
E Umbaugh
For updates visit CVIP Toolbox Website