EntropyCalc

Compute the entropy of the input image. Entropy is a statistical measure of randomness that can be used to characterise the texture of an input image.

 

function call:

[num1]=vsg('EntropyCalc',in_img1);

 

Arguments:

in_img1 input image, 3 channel RGB, 1 channel greyscale or binary image, or DICOM image.

 

Description:

The num1 – a double representing the greyscale intensity entropy for the image.

 

Example:

img1 = openimage('lake.jpg');

[num1]=vsg('EntropyCalc',img1)

num1 = 5.3307

 

Notes:

1. For DICOM images, the function finds the entropy across all slices.

2. For RGB images, the function finds the entropy across all colour planes.

Home       Functions       Back