Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- img1 = imread('D:\TAPI\Laborator 3-20170321\images\Fig3.jpg');
- Ihsi=rgb2hsi(img1);
- i=Ihsi(:,:,3);
- h=Ihsi(:,:,1);
- s=Ihsi(:,:,2);
- f=fspecial('average');
- so=fspecial('sobel');
- img_h =imfilter(i,so); %histeq(i);
- hsi=cat(3,h,s,img_h);
- rgb=hsi2rgb(hsi);
- subplot(1,3,1)
- imshow(img1)
- subplot(1,3,2)
- imshow(rgb)
- r=img1(:,:,1);
- g=img1(:,:,2);
- b=img1(:,:,3);
- rh =imfilter(r,so);% histeq(r);
- gh = imfilter(g,so);%histeq(g);
- bh = imfilter(b,so);%histeq(b);
- rgbh=cat(3,rh,gh,bh);
- subplot(1,3,3)
- imshow(rgbh)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement