Learn R Programming

gtexture (version 1.0.0)

differenceEntropy.matrix: Difference entropy is the entropy of marginal distribution of the difference in gray-level value equivalents x-y

Description

Difference entropy is the entropy of marginal distribution of the difference in gray-level value equivalents x-y

Usage

differenceEntropy.matrix(glcm, base = 2)

Value

float (single value: the entropy of the marginal distribution)

Arguments

glcm

gray level co-occurrence matrix

base

Base of the logarithm in differenceEntropy.

Examples

Run this code
# Calculate difference entropy of a given glcm (e.g. uniform matrix)
differenceEntropy.matrix(matrix(1,3,3))

Run the code above in your browser using DataLab