filmov
tv
Histogram Sliding | Digital Image Processing | MATLAB
![preview_player](https://i.ytimg.com/vi/PGX0HWWBJGU/maxresdefault.jpg)
Показать описание
This technique consists of simply adding or subtracting a constant brightness value to all pixels in the image. The overall effect will be an image with comparable contrast properties, but higher or lower (respectively) average brightness.
Code :
clc
clear all
close all
warning off
x=I;
subplot(3,2,1);
imshow(I);
subplot(3,2,2);
imhist(I);
axis tight;
subplot(3,2,3);
I=I+50;
imshow(I);
subplot(3,2,4);
imhist(I);
axis tight;
I=x;
I=I-50;
subplot(3,2,5);
imshow(I);
subplot(3,2,6);
imhist(I);
axis tight;
Note:
You can use imadd or imsubtract also :-)
#ImageProcessing #HistogramSliding
Code :
clc
clear all
close all
warning off
x=I;
subplot(3,2,1);
imshow(I);
subplot(3,2,2);
imhist(I);
axis tight;
subplot(3,2,3);
I=I+50;
imshow(I);
subplot(3,2,4);
imhist(I);
axis tight;
I=x;
I=I-50;
subplot(3,2,5);
imshow(I);
subplot(3,2,6);
imhist(I);
axis tight;
Note:
You can use imadd or imsubtract also :-)
#ImageProcessing #HistogramSliding