CoEnergy

Compute the energy of the co-occurrence matrix.

 

function call:

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

 

Arguments:

in_img1 input image, 3 channel RGB, 1 channel greyscale or binary image, or DICOM image. The image should be a co-occurrence matrix of dimension 256x256 per slice/colour-channel.

 

Description:

The CoEnergy function calculates the energy of co-occurrence matrix of an image.

num1 – the energy of the image used to create the input co-occurrence matrix image. Returns the sum of squared elements in the co-occurrence matrix.

 

Example:

img = openimage('lake.jpg');

h=figure;image(img);set(h,'Name','Input Image');

[out_img1]=vsg('CoOcMatGen',img);

[num1]=vsg('CoEnergy',out_img1)

h=figure;imagesc((out_img1(:,:,1)));colormap(gray);set(h,'Name','CooccurrenceMatrixGenerator');

num1 = 19256891

Notes:

1. For DICOM images, the function returns the mean energy per slice

2. For RGB images, the function returns the mean energy per colour plane.

 

Home     Functions    Back