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 CenterFile Exchange에서 Large 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