No BSD License  


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

program Color balancing



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)
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

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

29 Oct 2012 Yu  
29 May 2012 Changkaizhao  
05 Dec 2011 ji

very good

04 Apr 2011 Austin

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.


26 Feb 2010 Tony

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

30 Mar 2008 Zhao Quanyou

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

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.

Contact us