Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Zad1
- img = imread('rzeczka2.png');
- img_double = double(img);
- imgtemp(:,:,3) = img_double(:, :, 1);
- imgtemp(:,:,1) = img_double(:, :, 3);
- imgtemp(:,:,2) = img_double(:, :, 2);
- #Zad2
- img = imread('rzeczka2.png');
- img_double = double(img);
- subplot(2,2,1);
- imhist(img);
- ylim([0 15000]);
- subplot(2,2,2) ;
- imhist(img(:,:,1));
- ylim([0 7000]);
- subplot(2,2,3) ;
- imhist(img(:,:,2));
- ylim([0 7000]);
- subplot(2,2,4) ;
- imhist(img(:,:,3));
- ylim([0 9000]);
- #Zad3
- img = imread('rzeczka2.png');
- img_double = double(img);
- subplot(2,2,1);
- imhist(img*255);
- ylim([0 15000]);
- subplot(2,2,2) ;
- imhist(img(:,:,1)*1.2);
- ylim([0 7000]);
- xlim([0 300]);
- subplot(2,2,3) ;
- imhist(img(:,:,2));
- ylim([0 7000]);
- subplot(2,2,4) ;
- imhist(img(:,:,3));
- ylim([0 9000]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement