Compute the homogeneity of the co-occurrence matrix.
function call:
[num1]=vsg('CoHomog',in_img1);
Arguments:
in_img1
input image, 3 channel
Description:
num1
– the homogeneity of the image used to create the input co-occurrence
matrix image.
This value measures the closeness of the distribution of elements in the
co-occurrence matrix
to its diagonal.
Example:
mg = openimage('lake.jpg');
%[img]=convert(img);
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');
[num1]=vsg('CoHomog',out_img1)
num1 = 9.7808e+004
Notes:
1. For DICOM images,
the function returns the mean homogeneity per slice
2. For