필터 지우기
필터 지우기

how to equalise the brightness of an image

조회 수: 2 (최근 30일)
selim
selim 2012년 7월 10일
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?

채택된 답변

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Modify Image Colors에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by