entropy encoding for images

6 ビュー (過去 30 日間)
FIR
FIR 2012 年 12 月 24 日
is there any source codes available for entropy encoding for images, please help
  2 件のコメント
Walter Roberson
Walter Roberson 2012 年 12 月 24 日
What difficulty are you having with the code version of it that you wrote?
FIR
FIR 2012 年 12 月 25 日
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

サインインしてコメントする。

回答 (2 件)

Image Analyst
Image Analyst 2012 年 12 月 24 日
  8 件のコメント
Walter Roberson
Walter Roberson 2012 年 12 月 25 日
what does
length(count)
show? And also
sum(count <= 0)
?
FIR
FIR 2012 年 12 月 25 日
length(count)
ans =
238
>> sum(count <= 0)
ans =
8

サインインしてコメントする。


Walter Roberson
Walter Roberson 2012 年 12 月 25 日
編集済み: Walter Roberson 2012 年 12 月 25 日
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 件のコメント
FIR
FIR 2012 年 12 月 25 日
after deleting zeros i get error
Error using ==> arithenco at 36
The symbol sequence parameter can take values only between 1 and the length of the
symbol counts parameter.
Error in ==> sample6 at 79
code=arithenco(seq,count);
Walter Roberson
Walter Roberson 2012 年 12 月 25 日
Sorry, Google doesn't seem to be accessible to me tonight. Perhaps you could try it from your end?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLarge Files and Big Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by