Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

is this code correct according to this paper? plz help meee

1 Ansicht (letzte 30 Tage)
shivu shetty
shivu shetty am 2 Apr. 2018
Geschlossen: John D'Errico am 8 Apr. 2018
clear all [FileName,PathName] = uigetfile('*.*','Select the image file'); nomfich=[PathName,FileName]; ima=imread(nomfich); HSV=rgb2hsv(ima); H=HSV(:,:,1); S=HSV(:,:,2); V=HSV(:,:,3); SE = strel('line',1,1); H = imdilate(H,SE); S = imdilate(S,SE); V = imdilate(V,SE); [hca1,hch1,hcv1,hcd1] = dwt2(H,'bior1.3'); [sca1,sch1,scv1,scd1] = dwt2(S,'bior1.3'); [vca1,vch1,vcv1,vcd1] = dwt2(V,'bior1.3');
LH=hch1+hcv1+hcd1; LS=sch1+scv1+scd1; LV=vch1+vcv1+vcd1;
a=idwt2(LH,hch1,hcv1,hcd1,'bior1.3'); %figure,imshow(a); b=idwt2(LS,sch1,scv1,scd1,'bior1.3'); %figure,imshow(b); c=idwt2(LV,vch1,vcv1,vcd1,'bior1.3'); %figure,imshow(c); %hsvimg=a+b+c;
HSV1(:,:,1)=a; HSV1(:,:,2)=b; HSV1(:,:,3)=c;
figure,imshow(HSV1); title('reconstructed HSV image');
rgbimg=hsv2rgb(HSV1); figure,imshow(rgbimg); %imhist(rgbimg); title('reconstructed rgb image');
grayimg=rgb2gray(rgbimg); figure,imshow(grayimg); %imhist(grayimg);
level = graythresh(grayimg); BW = im2bw(grayimg,level); imshow(BW);
SI=size(BW); %im=rgb2gray(BW);%figure(11); imshow(im); h=figure(1); imshow(BW);set(h,'name',nomfich);

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by