From: Do on
Hi everyone. Can anybody explain more detail the offset paramenter for graycomatrix function.

For example:
A = [1 1 5 6 8; 2 3 5 7 1; 4 5 7 1 2; 8 5 1 2 5];
glcm = graycomatrix(A, 'Offset', [0 1]);

As I understand, this will return the result as in the matlab example: http://www.mathworks.com/access/helpdesk/help/toolbox/images/graycomatrix.html

But what I got is
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 16
What is wrong here? Is the offset parameter is wong?
-----------------------
Thank you very much for your help.
From: Do on
Can anybody answer my question please? I really need to understand this crazy thing.