function sw=sweetandsauer2(p1,va)
var=imread(va);
xgray=double(var);
r=xgray(:,:,1);
%r=xgray(81:88,81:88,1);
g=xgray(:,:,2);
%g=xgray(81:88,81:88,2);
b=xgray(:,:,3);
%b=xgray(81:88,81:88,3);
Y=0.299*r+0.587*g+0.114*b;
U=b-Y;
V=r-Y;
Y=dct2color(p1,Y);
U=dct3color(p1,U);
V=dct3color(p1,V);
b=Y+U;
r=V+Y;
g=(Y-0.299*r-0.114*b)/(0.587);
xgray(:,:,1)=r;
xgray(:,:,2)=g;
xgray(:,:,3)=b;
sw=imagesc(uint8(xgray));

