HISTIDIFFERENCE - Inverse difference feature derived from (co)occurrence matrices.
Contents
Description
Calculate the inverse difference feature defined in [HSD73] from (co)occurrence matrices.
This feature measures the local inverse difference D in an image as [ST99]:
- GLCM case - with
the joint probability of the greylevel pair
:
- GLSDV case - with
the probability of the greylevel difference
:
Syntax
D = HISTIDIFFERENCE(Pd, d); D = HISTIDIFFERENCE(Pij, i, j);
References
See HISTCONTRAST.
See also
Ressembles: HISTCONTRAST, HISTENERGY, HISTHOMOGENEITY, HISTVARIANCE, HISTENTROPY2, HISTENTROPY10, HISTMAXIMUM, HISTMEAN, HISTDISSIMILARITY, HISTCORRELATION, LOCALGLCM2D, LOCALGLOV2D, LOCALGLSDV2D.
Function implementation
function D = histidifference(pIJ,I,varargin) D = I; if nargin>2 D = D - varargin{1}; end; D = 1 + abs(D); D = sum (pIJ(:) ./ D(:)); end % end of histidifference