The following is stated in the documentation for wcompress: "X can be either a 2-D array containing an indexed image or a 3-D array of uint8 containing a truecolor image. Both the row and column size of the image must be powers of two."
Is there any way the 3-d image or datacube can be of a different type than uint8 and the rows and columns of something different than a number that is a power of two?
Is this possible or do I have to implement something myself?

 채택된 답변

Walter Roberson
Walter Roberson 2018년 3월 1일

1 개 추천

The code tests for power of 2, so that cannot be changed.
The code does not test for uint8. In my test with 'wdr' compression, if I did not specify 'bpp', 16 then the compression ran through but the uncompression had values that were maximum 255. In my test with 'wdr' compression when I specified 'bpp' 16, then the compression ran through and I did enough tracing that it looks like it should have worked, but the data structures produced created errors in decompression.

추가 답변 (1개)

Abhishek Ballaney
Abhishek Ballaney 2018년 3월 1일

0 개 추천

https://in.mathworks.com/help/wavelet/ref/wcompress.html

댓글 수: 3

Sivert Bakken
Sivert Bakken 2018년 3월 1일
This isn't really answering the question though
faten Abushmmala
faten Abushmmala 2022년 9월 23일
is there another function in matlab for compressing 1D data (speech or any signal) that is equivlant for wcompress ?
Walter Roberson
Walter Roberson 2022년 9월 23일
편집: Walter Roberson 2022년 9월 23일
Equivalent in what sense? What would it have to do differently than wcompress? There is a complete wavelet toolbox https://www.mathworks.com/help/wavelet/index.html

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Wavelet Toolbox에 대해 자세히 알아보기

태그

질문:

2018년 2월 28일

편집:

2022년 9월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by