OTSU_CVIP
otsu_cvip() - Otsu thresholding segmentation of an image.
Contents
SYNTAX
[ outImage ] = otsu_cvip( inImage )
Input Parameter includes :
- inImage - 1-band input image of MxN size or 3-band input image of MxNx3 size. If 3-band image, it is converted into 1-band using luminance method. string or cell class.
Output Parameter includes :
- outImage - Otsu thresholded image.
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