Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clear all
- IMG = imread('kierowca.png');
- %Y1=0.299*IMG(:,:,1)+0.587*IMG(:,:,2)+0.114*IMG(:,:,3);
- IMG_GRAY = rgb2gray(IMG);
- %jasnosc(image)
- %kontrast(image, jasnosc(image))
- subplot(2,3,1);
- imshow(IMG_GRAY, [0,255]);
- title('#1');
- %stala
- imageConst=double(IMG_GRAY)+15;
- subplot(2,3,2);
- imshow(imageConst, [0,255]);
- title('Stala');
- %mnozenie
- imageMu= min(double(IMG_GRAY)*2, 255);
- subplot(2,3,3);
- imshow(imageMu, [0,255]);
- title('Mnozenie');
- %potegowanie
- pot=min(double(IMG_GRAY).^(0.9), 255);
- %pot=double(image);
- %pot=pot.^0.1;
- %pot=pot-min(min(pot));
- %pot2=(pot/max(max(pot)))*255;
- subplot(2,3,4);
- imshow(pot, [0,255]);
- title('Potegowanie');
- %pier
- P = double(IMG_GRAY);
- subplot(2,3,5);
- P=P*sqrt(1.92);
- imshow(P, [0, 255]);
- title('Pierwiastek');
- %log
- gg = min(double(IMG_GRAY) / log(2), 255);
- ggT = gg - min(min(gg));
- gg = (ggT / max(max(ggT))) * 255;
- subplot(2,3,6);
- imshow(gg, [0, 255]);
- title('Logarytm');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement