Filter löschen
Filter löschen

how to equalise the brightness of an image

2 Ansichten (letzte 30 Tage)
selim
selim am 10 Jul. 2012
Hello everybody, i have a rgb image ''cup''.
As we see, this has a non-uniform image right side of which is brighter.
I want to make addition only left side or maybe i can subtract from right side and create a new image.
I tried this : ...
cup=imread('cup.jpg');
sizeofcup=size(Image1);
middleofcoloumn=sizeofcup(2)/2;
NewImage= cup(:,1:middleofcoloumn)+50;
but it changes into gray and it is cropped.
how can i make it rgb and montage?

Akzeptierte Antwort

Image Analyst
Image Analyst am 10 Jul. 2012
You forgot that it is a color image. Try
NewImage = cup; % Initialize
New(:, 1:middleofcoloumn, :) = New(:, 1:middleofcoloumn, :) +50;

Weitere Antworten (0)

Kategorien

Mehr zu Modify Image Colors finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by