adjust the two images

4 次查看(过去 30 天)
sombat supha
sombat supha 2019-2-7
I will adjust the color of the two images. (a1.jpeg, a2.jpeg) to have the same brightness How to write a program by matlab? Thanks

回答(1 个)

KSSV
KSSV 2019-2-7
Read the image using imread, to the output add any number, it will increase the brightness. There are other methods to do this, adding number is one of the method.
I = imread('peppers.png') ;
I1 = I+50 ;
figure(1) ; imshow(I) ;
figure(2) ; imshow(I1) ;
  1 个评论
sombat supha
sombat supha 2019-2-7
编辑:sombat supha 2019-2-7
I want the way to get numbers to add a1.jpeg and a2.jpeg making them the same brightness..
for example a1.jpeg+x = a2.jpeg+y ; (same brightness)
x=?
y=?

请先登录,再进行评论。

产品

Community Treasure Hunt

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

Start Hunting!

Translated by