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