int im_cooc_matrix(im, m, xp, yp, xs, ys, dx, dy, sym)
IMAGE *im, *m;
int xp, yp, xs, ys;
int dx, dy;
int sym;
int im_cooc_asm(m, asmoment)
IMAGE *m;
double *asmoment;
int im_cooc_contrast(m, contrast)
IMAGE *m;
double *contrast;
int im_cooc_correlation(m, correlation)
IMAGE *m;
double *correlation;
int im_cooc_entropy(m, entropy)
IMAGE *m;
double *entropy;
If flag sym is 1, the created co-occurrence matrix is symmetric that is dispacement vectors (dx, dy), (-dx, -dy) create exactly the same matrix. If sym is 0, the created co-occurrence matrix is not symmetric that is dispacement vectors (dx, dy), (-dx, -dy) create different matrices.
im_cooc_asm() calculates the angular second moment of the co-occurrence matrix held by m. The result is returned into the location pointed by asmoment.
im_cooc_contrast() calculates the contrast of the co-occurrence matrix held by m. The result is returned into the location pointed by contrast.
im_cooc_correlation() calculates the correlation of the co-occurrence matrix held by m. The result is returned into the location pointed by correlation.
im_cooc_entropy() calculates the entropy of the co-occurrence matrix held by m. The result is returned into the location pointed by entropy.