DICOMCoEng

Compute the energy of the co-occurrence matrix.

 

function call:

[array1]=vsg('DICOMCoEng',in_img1);

 

Arguments:

in_img1 -  input image, a DICOM CoOccurrence matrix image, generated with the CoOcMatGen function. Each slice of the input image is the cooccurrence matrix of the original input DICOM image to the CoOcMatGen function.

 

Description:

array1 – one dimensional array of values. Each value is the greyscale energy value of a corresponding coocurrence matrix slice of the input dicom image. For Dicom images, data should be normalized between 0-255 for Co-Occurrence matrix generation.

 

Example:

[filename, chosenDirectory] = uigetfile('*.dcm', 'Pick an M-file');

filePath = [chosenDirectory filename]; %complete path

stackOfImages=vsg('DICOMRead',filePath);  %4D array of data

maxVal = max(max(max(max(stackOfImages))));

stackOfImages = (stackOfImages/maxVal)*255; %normalizing the data

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

[array1]=vsg('DICOMCoHomog',out_img1);

 

Notes:

1. For RGB images, the function operates on all colour planes together and returns a single energy value per slice for all of the colour planes.

2. Requires XMedCon software (version xmedcon-0.10.5-1-win32).

3. DICOM data should be in a separate folder.

Home       Functions       Back