I have taken a passport photo(3.5cm*4.5cm) having resolution 300 pixels/cm.I have detected the face(as my region of interest) also, based on the skin color detection.Now i want to compress the face using lossless comp. tech &rest using lossy tech.

2 次查看(过去 30 天)
I have taken a passport photo(3.5cm*4.5cm) having resolution 300 pixels/cm.I have detected the face(as my region of interest) also, based on the skin color detection.Now i want to compress the face using DWT in a lossless way and the remaining portion of the image with a lossy technique.Can anybody help me by providing the code or links for help.
Thanks in advance

回答(1 个)

azizullah khan
azizullah khan 2014-1-31
x=imread('passportsizeimage');
[cA,cH,cV,cD] = dwt2(uint8(k),'db5');
figure('name','DWT')
imshow(cA,[0 255]),title('shows CA ')

类别

Help CenterFile Exchange 中查找有关 Signal Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by