Code covered by the BSD License  

Highlights from
modified Minimum Cross Entropy threshold selection

5.0

5.0 | 1 rating Rate this file 17 Downloads (last 30 days) File Size: 63.4 KB File ID: #39749
image thumbnail

modified Minimum Cross Entropy threshold selection

by

 

This code implements the paper: "Minimum cross-entropy threshold selection" by Brink and Pendock.

| Watch this File

File Information
Description

% MinCEP is a function for thresholding using Minimum Cross Entropy
% threshold selection of non-blank space of Image.
%
% [ILow, IHigh, threshold] = minCEP(I)
% Inputs: I 2D grayscale image
% minIntensity minimum intensity
% maxIntensity maximum intensity
%
% Outputs: ILow image with gray level bellow threshold
% Outputs: IHigh image with gray level upper threshold
% Outputs: threshold the threshold choosen by MinCE
%
% Description: This code implements the paper: "Minimum cross-entropy
% threshold selection" by Brink and Pendock
% This implemetation is modified to calculate threshold of non-blank space
% of Image as well as get minimum and maximum intensity of image.
%
% Example:
% img = imread('tire.tif');
% [ILow, IHigh, T] = minCEP(img);
% subplot(2,2,1), imshow(img);
% subplot(2,2,2), imshow(IHigh);
% [~, IHigh, T1] = minCEP(img, T);
% subplot(2,2,3), imshow(IHigh);
% [~, IHigh, T2] = minCEP(img, T2);
% subplot(2,2,4), imshow(IHigh);
%
%
% Coded by: Hoosein Dehghan (hd.dehghan@gmail.com)
%------------------------------------------------------------------------

MATLAB release MATLAB 7.13 (R2011b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
31 May 2013 anibal montenegro

I can not use this program. this error message is shown

?? Error: File: minCEP.m Line: 80 Column: 7
Expression or statement is incorrect--possibly unbalanced (, {, or [.

02 Mar 2013 ghali ahmed

thanks'

Contact us