View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
program Color balancing

3.3 | 7 ratings Rate this file 12 Downloads (last 30 days) File Size: 1.35 KB File ID: #14294 Version: 1.0

program Color balancing


Jeny Rajan (view profile)


16 Mar 2007 (Updated )

A simple program for color balancing

| Watch this File

File Information

A simple program for color balancing

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.0.1 (R14SP1)
MATLAB Search Path
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (12)
12 Dec 2014 xu rui

xu rui (view profile)

Matlab code could run,but the speed is ont fast.Maybe there are double for-loop in code.

01 Nov 2013 Nicolas

The function is badly written. There are unused variables lying around, and the 2 for loops could be removed in favor of the usual Matlab tricks for computational efficiency.
The results are not that visually satisfying either - the color temperature is definitely off on some of the images I tried this function on.

27 Jul 2013 hussain

hai , i am hussain
i need how to improve an image white balanced , and colour corrected....
plz help me

Comment only
29 Oct 2012 Yu

Yu (view profile)

29 May 2012 Changkaizhao

05 Dec 2011 ji

ji (view profile)

very good

Comment only
04 Apr 2011 Austin

Austin (view profile)

Thanks this was useful. This script is slow only because of the first double for-loop doing a dynamic memory allocation each time the condition is met. MATLAB is terrible with dynamic memory allocations. Simply add:

Ciny = zeros(1,x*y);

right before the outer for loop (for i=1:x), and then add:

Ciny(cnt:end) = [];

right at the end of the for loop (right above cnt=cnt-1; and then the sort) to get rid of the unused memory. This speeds up the code tremendously.


Comment only
26 Feb 2010 Tony

Tony (view profile)

The program is good. But computationally intensive.

08 Jan 2009 pupu QQ

the effect is good enough,better than some comercial software in China ,for exmaple neo imaging.theory based on a taiwan paper on IEEE

Comment only
30 Mar 2008 Zhao Quanyou

program for this paper
A Novel Automatic White Balance Method
For Digital Still Cameras

Comment only
21 Sep 2007 randy copl

29 Aug 2007 Jacques Landry

No commenting of any kind in the file! No description! Mileading keywords. Color or white balances require a calibration file. This does not so is useless.

22 Apr 2016 1.0

adding BSD license

Contact us