Code covered by the BSD License  

Highlights from
EXACT HISTOGRAM SPECIFICATION/EQUALIZATION

4.5

4.5 | 2 ratings Rate this file 59 Downloads (last 30 days) File Size: 401.39 KB File ID: #26309
image thumbnail

EXACT HISTOGRAM SPECIFICATION/EQUALIZATION

by Anton Semechko

 

07 Jan 2010

Exact histogram specification/equalization for 2-D monochromatic images.

| Watch this File

File Information
Description

Histogram equalization is a traditional image enhancement technique which aims to improve visual appearance of the image by assigning equal number of pixels to all available intensity values. Histogram specification is a generalization of histogram equalization and is typically used as a standardization technique to normalize image with respect to a desired PDF or properties such as mean intensity, energy and entropy. Unlike classical histogram specification, exact histogram specification algorithm implemented here is able to modify the histogram of any image almost exactly (see snapshot).

In the attached .zip file you will find three M-files and one image. The M-file called EXACT_HISTOGRAM.M is an implementation of exact histogram specification algorithm as described in the following references:

1. Coltuc D. and Bolon P., 1999, "Strict ordering on discrete images and applications"
2. Coltuc D., Bolon P. and Chassery J-M., 2006, "Exact histogram specification", IEEE Transcations on Image Processing 15(5):1143-1152

Unpack the contents of the .rar file into your current working directory.
For a quick demo type: demoHS
For help type on how to use the function: help exact_histogram

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.6 (R2008a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
08 Jan 2010 Zhang Yanxiang

Excellent work!

19 Dec 2011 souphia nisus  
17 Feb 2012 Shashi

Hello Mr. Anton,

I have used the code for implementation of "Flattest Histogram Specification with accurate
brightness preservation" and have found a very different result on applying the exact histogram code attached here-in. It shows the entropy of the image to increase very significantly which is very much different from the results reported in few papers. I would like to know if there is some modification or an enhanced version of the code that you came up further as there seems to be some bug.

17 Feb 2012 Anton Semechko

There is no bug. The algorithm is implemented exactly as described by Cultuc et al. in the above references. You can provide any image with sufficient amount of textural variance and specify any histogram, you will see that the intensity distribution will be matched almost exactly ...

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
exact histogram specification Anton Semechko 08 Jan 2010 10:35:49
exact histogram matching Anton Semechko 08 Jan 2010 10:35:49
exact histogram equalization Anton Semechko 08 Jan 2010 10:35:49
histogram matching Anton Semechko 08 Jan 2010 10:35:49
histogram specification Anton Semechko 08 Jan 2010 10:35:49
histogram equalization Anton Semechko 08 Jan 2010 10:35:49
contrast enhancement Anton Semechko 08 Jan 2010 10:35:49
strict pixel ordering Anton Semechko 08 Jan 2010 10:35:49
exact histogram matching Dongni Zhang 18 Jul 2011 07:28:17
contrast enhancement GB chen 24 Aug 2011 14:49:52
histogram matching Umer 26 Oct 2011 15:50:52
exact histogram matching Shashi 17 Feb 2012 13:31:55

Contact us at files@mathworks.com