entropy encoding for images

5 views (last 30 days)
FIR
FIR on 24 Dec 2012
is there any source codes available for entropy encoding for images, please help
  2 Comments
FIR
FIR on 25 Dec 2012
I am using 2010a version
code is
[dict,avglen] = huffmandict(symbols,p)
comp = huffmanenco(img,dict);
but taking long time to run and crashes out

Sign in to comment.

Answers (2)

Image Analyst
Image Analyst on 24 Dec 2012
  8 Comments
FIR
FIR on 25 Dec 2012
length(count)
ans =
238
>> sum(count <= 0)
ans =
8

Sign in to comment.


Walter Roberson
Walter Roberson on 25 Dec 2012
Edited: Walter Roberson on 25 Dec 2012
If x is a numeric array, TABLE is a numeric matrix. If the elements of x are nonnegative integers, TABLE includes 0 counts for integers between 1 and max(x) that do not appear in x.
But you already read the documentation so you already knew that, so somehow you must have gotten some negative counts. What does
count(counts <= 0)
show, and what does class(count) show?
  10 Comments
Walter Roberson
Walter Roberson on 25 Dec 2012
Sorry, Google doesn't seem to be accessible to me tonight. Perhaps you could try it from your end?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by