what wcompress error means

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 Commento

I suggest experimenting with
img - imread('bmp1.bmp');
wcompress('c', img, 'compimg1.wtc', 'stw')

Accedi per commentare.

 Risposta accettata

cev
cev il 8 Dic 2013
Modificato: cev il 8 Dic 2013

0 voti

x,y dimensions of image should be power of 2

Più risposte (1)

Bruno Pop-Stefanov
Bruno Pop-Stefanov il 7 Dic 2013

1 voto

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!

Richiesto:

cev
il 7 Dic 2013

Modificato:

cev
il 8 Dic 2013

Community Treasure Hunt

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

Start Hunting!

Translated by