MATLAB Answers


how to equalise the brightness of an image

Asked by selim
on 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 : ...

      NewImage= cup(:,1:middleofcoloumn)+50;

but it changes into gray and it is cropped.

how can i make it rgb and montage?



No products are associated with this question.

1 Answer

Answer by Image Analyst
on 10 Jul 2012
 Accepted answer

You forgot that it is a color image. Try

NewImage = cup; % Initialize
New(:, 1:middleofcoloumn, :) = New(:, 1:middleofcoloumn, :) +50;


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!