Compute the contrast of the co-occurrence matrix.
function call:
[num1]=vsg('CoContrast',in_img1);
Arguments:
in_img1
input image, 3 channel
Description:
num1
– the contrast of the image used to create the input co-occurrence
matrix image.
Returns a measure of the intensity contrast between a pixel and its
neighbour over the whole image.
Example:
img = openimage('lake.jpg');
h=figure;image(img);set(h,'Name','Input
Image');
[out_img1]=vsg('CoOcMatGen',img);
[num1]=vsg('CoContrast',out_img1);
h=figure;imagesc((out_img1(:,:,1)));colormap(gray);set(h,'Name','CooccurrenceMatrixGenerator');
Notes:
1. For DICOM images,
the function returns the mean contrast per slice
2. For