필터 지우기
필터 지우기

how to get decompressed image for wcompress function ,and how to convert compressed image to binary?

조회 수: 1 (최근 30일)
i use wcompress to compress gray scale image.know i have the original image X and compressed image Xc i want to know how to get the decompressed image and how to convert compressed image to binary (no of bit per pixel<8) http://www.mathworks.com/help/wavelet/ref/wcompress.html
load mask;
[cr,bpp] = wcompress('c',X,'mask.wtc','spiht','maxloop',12)
% Then, it shows how to load the stored image from the file
% 'mask.wtc', uncompress it and delete the file 'mask.wtc'.
Xc = wcompress('u','mask.wtc');
delete('mask.wtc')
% The orginal and compressed images are displayed.
colormap(pink(255))
subplot(1,2,1); image(X); title('Original image')
axis square
subplot(1,2,2); image(Xc); title('Compressed image')
axis square

답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by