brightness and contrast in matlab « developers, developers, developers!

3
DEVELOPERS, DEVELOPERS, DEVELOPERS! MAKSIM SOROKIN IT BLOG Subscribe via RSS HOME ABOUT CONTACT SHIP THE SHIT Brightness and Contrast in Matlab « Developers, Developers, Developers! http://maksim.sorokin.dk/it/2010/11/08/brightness-and-contrast-in-matlab/ 1 of 3 1/27/2014 2:18 PM

Upload: vishal-nair

Post on 21-Oct-2015

20 views

Category:

Documents


1 download

DESCRIPTION

Brightness and Contrast in Matlab « Developers, Developers, Developers!

TRANSCRIPT

Page 1: Brightness and Contrast in Matlab « Developers, Developers, Developers!

DEVELOPERS, DEVELOPERS, DEVELOPERS!MAKSIM SOROKIN IT BLOG Subscribe via RSS

HOME ABOUT CONTACT SHIP THE SHIT

Brightness and Contrast in Matlab « Developers, Developers, Developers! http://maksim.sorokin.dk/it/2010/11/08/brightness-and-contrast-in-matlab/

1 of 3 1/27/2014 2:18 PM

Page 2: Brightness and Contrast in Matlab « Developers, Developers, Developers!

Tagged as: matlab Comments Off

you're a loserNovember 23rd, 2010 - 17:18

loser

Maksim SorokinNovember 23rd, 2010 - 18:47

Yeah, I think so too.

[Panasonic]March 23rd, 2011 - 15:33

really, thank you! sir!

your explanation is so easy to understand.

Daniel @warmth DelgadoDecember 6th, 2011 - 14:55

Saved my life dude! Thanks!

Brightness and Contrast in MatlabHere is cheap and easy way to change brightness or contrast in Matlab by percentage.

Where variables a, b, c and d are between 0 and 1.

To decrease contrast: increase a

To increase contrast: decrease b

To increase brightness: increase c

To decrease brightness: decrease d

Here is full example increasing contrast by 20%

Leave a comment

Tags

Apache Felix axis2 basic

authentication BAT bookContinuous Integration

convention CXF dependency

DOSGi Eclipseexample functional

programming general

GlassFish Haskell

injection installation

IzPack Java Java

EE 6 jboss JUnit 4

maven memory leak

MySQL networking OSGi p2

PACKT ProGuard registry rest

security SSH success story

tomcat tool tycho VBScript

versioning VMware webservices WindowsWindows registry

1 newImage = imadjust(originalImage, [a b], [c d]);

12345678910111213

originalImage = imread('img.tif'); %show original imagefigure;imshow(originalImage)title('Original Image'); contrastImage = imadjust(originalImage, [0 0.8], [0 1]); %show contrast imagefigure;imshow(contrastImage)title('Contrast Image');

Comments (4) Trackbacks (1) ( subscribe to comments on this post )

Brightness and Contrast in Matlab « Developers, Developers, Developers! http://maksim.sorokin.dk/it/2010/11/08/brightness-and-contrast-in-matlab/

2 of 3 1/27/2014 2:18 PM

Page 3: Brightness and Contrast in Matlab « Developers, Developers, Developers!

Copyright © 2014 Developers, Developers, Developers! · Powered by WordPress

Lightword Theme by Andrei LucaGo to top ↑

Brightness and Contrast in Matlab « Developers, Developers, Developers! http://maksim.sorokin.dk/it/2010/11/08/brightness-and-contrast-in-matlab/

3 of 3 1/27/2014 2:18 PM