error in spiht algorithm

2 views (last 30 days)
Tanvi
Tanvi on 19 Nov 2014
Commented: KALYAN ACHARJYA on 20 Nov 2020
hello sir!! i am getting an error at a line for uncompression in spiht algorithm.
  4 Comments
NANDITA SHARMA
NANDITA SHARMA on 20 Nov 2020
You can add i1=imresize( i1, [256 256]), then run the code. I hope it will successfully run now. 'spiht' runs on square matrix. may be for that reason you are getting the error.
KALYAN ACHARJYA
KALYAN ACHARJYA on 20 Nov 2020
In this case the number of rows and columns of image must be a power of two, though, the post is quite old.

Sign in to comment.

Answers (0)

Categories

Find more on Denoising and Compression in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!