OTSU_CVIP

otsu_cvip() - Otsu thresholding segmentation of an image.

Contents

SYNTAX

[ outImage ] = otsu_cvip( inImage )

Input Parameter includes :

Output Parameter includes :

DESCRIPTION

Otsu method performs the thresholding of an image by finding the threshold value that minimizes the weighted within-class variance. Otsu method works best with bimodal histogram, a histogram with two major peaks. No parameters to enter.

REFERENCE

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

EXAMPLE

% Read image

 I = imread('cam.bmp');

% Calling function

 O = otsu_cvip(I);

% Display input image

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

% Display output image

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

CREDITS

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