MATLAB: Storing values and comparing images

extraction of featuresimage processing

hello,
i found the max . min intensities values of image and also the glcm features and how i want to store these values to compare with other images.
how do i storeand compare those.

Best Answer

  • Hi Smruti, Refer the code below.
    % Read your image here
    I = imread('cameraman.tif');
    % Properties of gray-level co-occurrence matrix
    statsVal = graycoprops(I); % GCLM values are stored in statsVal
    % Max value
    maxVal = max(I(:)); % max value are stored in maxVal
    % Min value
    minVal = min(I(:)); % min value are stored in minVal
    % Display values
    disp(['Contrast value: ', num2str(statsVal.Contrast)]);
    disp(['Correlation value: ', num2str(statsVal.Correlation)]);
    disp(['Energy value: ', num2str(statsVal.Energy)]);
    disp(['Homogeneity value: ', num2str(statsVal.Homogeneity)]);
    disp(['Max value: ', num2str(maxVal)]);
    disp(['Min value: ', num2str(minVal)]);