HISTENERGY - Energy feature derived from (co)occurrence matrices.

Contents

Description

Calculate the energy (2nd angular moment) feature derived from (co)occurrence matrices as defined in [HSD73].

This feature measures the occurrence E of repeated pairs within an image as [ST99]:

Syntax

   E = HISTENERGY(Pij);
   E = HISTENERGY(Pd);
   E = HISTENERGY(Pi);

References

See HISTCONTRAST.

See also

Ressembles: HISTCONTRAST, HISTHOMOGENEITY, HISTVARIANCE, HISTENTROPY2, HISTENTROPY10, HISTMAXIMUM, HISTMEAN, HISTDISSIMILARITY, HISTIDIFFERENCE, HISTCORRELATION, LOCALGLCM2D, LOCALGLOV2D, LOCALGLSDV2D.

Function implementation

function E = histenergy(pIJ,varargin)
% if nargin>1, nothing end
E = sum(pIJ(:) .* pIJ(:));
end % end of histenergy