CoOcMatGen

Compute the co-occurrence matrix.

 

function call:

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

 

Arguments:

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

 

Description:

A co-occurrence matrix generation for grey scale or colour images. out_img1 – An image which has dimensions 256x256 per slice/colour channel and the same number of slices/ colour channels as the input image. The output image represents the greyscale co-occurrence matrix of each channel/slice.

 

Example:

img = openimage('lake.jpg');

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

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

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

 

Notes:

1. For DICOM images, the function operates on all slices separately.

2. For RGB images, the function operates on all colour planes separately.

 

Home     Functions    Back