Code covered by the BSD License  

Highlights from
AUTO CONTRAST

4.25

4.2 | 4 ratings Rate this file 35 Downloads (last 30 days) File Size: 1.31 KB File ID: #10566
image thumbnail

AUTO CONTRAST

by Divakar Roy

 

29 Mar 2006 (Updated 25 May 2009)

Automatic adjustment of contrast of images

| Watch this File

File Information
Description

Automatically adjusts the contrast of images(color/gray) to the "optimum" level, using contrast stretching.

Acknowledgements
This submission has inspired the following:
CONTRAST CONTROLLER
MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (6)
24 Aug 2006 Y L  
16 Mar 2008 Bruce b

This works really well for adjusting images with poor contrast! Thanks

26 Aug 2008 m m  
15 Apr 2009 KIMO ORAN

but i need to calculate a contraste locale
thanks

31 Oct 2011 nurul hazwani

hi,
how to run this coding?

31 Oct 2011 Divakar Roy

Nurul,

If input_img and output_img are the input and output filenames, this is how you run it:
>> autocontrast(input_img,output_img);

Thanks!

Please login to add a comment or rating.
Updates
27 Aug 2007

Simplified code and faster operation

25 May 2009

Run-time reduced by 90% !!

Tag Activity for this File
Tag Applied By Date/Time
enhancement Divakar Roy 22 Oct 2008 08:20:53
automatic Divakar Roy 22 Oct 2008 08:20:53
contrast Divakar Roy 22 Oct 2008 08:20:53
intensity Divakar Roy 22 Oct 2008 08:20:53
image Divakar Roy 22 Oct 2008 08:20:53
adjust Divakar Roy 22 Oct 2008 08:20:53
auto Divakar Roy 26 May 2009 11:33:58
intensity asha rani 09 May 2011 12:39:22
image student 08 Jul 2011 02:58:51
enhancement student 10 Jul 2011 09:59:50
contrast student 10 Jul 2011 09:59:56

Contact us at files@mathworks.com