what wcompress error means

1 次查看(过去 30 天)
cev
cev 2013-12-7
编辑: cev 2013-12-8
I want to compress an image using
wcompress( 'c','bmp1.bmp','compimg1.wtc','stw');
But I get an error Subscripted assignment dimension mismatch. What this error means?
  1 个评论
Walter Roberson
Walter Roberson 2013-12-7
I suggest experimenting with
img - imread('bmp1.bmp');
wcompress('c', img, 'compimg1.wtc', 'stw')

请先登录,再进行评论。

采纳的回答

cev
cev 2013-12-8
编辑:cev 2013-12-8
x,y dimensions of image should be power of 2

更多回答(1 个)

Bruno Pop-Stefanov
Bruno Pop-Stefanov 2013-12-7
There seems to be a bug in either wfandfcidx or wavedec2, which are internal functions called by wcompress. I am sorry I can't help you more, but until this bug is fixed you can try another compression method. EZW, SPIHT, and SPIHT 3D should work (I get the same error with WDR and ASWDR). Good luck!

类别

Help CenterFile Exchange 中查找有关 Denoising and Compression 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by