Asked by FIR
on 24 Dec 2012

is there any source codes available for entropy encoding for images, please help

*No products are associated with this question.*

Answer by Image Analyst
on 24 Dec 2012

If you've heard of it, then I'm sure there are.

Answer by Walter Roberson
on 25 Dec 2012

Edited by Walter Roberson
on 25 Dec 2012

http://www.mathworks.com/help/stats/tabulate.html

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?

Show 7 older comments

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?

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn moreOpportunities for recent engineering grads.

Apply Today
## 2 Comments

## Walter Roberson (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/57318#comment_118880

What difficulty are you having with the code version of it that

youwrote?## FIR (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/57318#comment_118969

I am using 2010a version

code is

but taking long time to run and crashes out