Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to add to image ?

1 回表示 (過去 30 日間)
youbaa maa
youbaa maa 2019 年 5 月 6 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
helle everyone , i have this equation for adding two image
jjjj.PNG
I confused to useimadd or make a loop,and what does it mean the mean of image?

回答 (1 件)

Rik
Rik 2019 年 5 月 6 日
I would presume this means that you have an image where you add mean(X,'all') to the original. The loops are not needed in Matlab. You do need to make sure that you don't overflow your data type:
super_simple_image=uint8([0 250;100 150]);
X=super_simple_image;
X=X+mean(X,'all');
%data clips to 255: [125 255;255 255]
super_simple_image=uint8([0 250;100 150]);
X=double(super_simple_image);
X=X+mean(X,'all');
%data doesn't clip: [125 375;225 275]

Community Treasure Hunt

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

Start Hunting!

Translated by