REGULAR BLACK LINES IN GLCM MATRIX

1 view (last 30 days)
HEMRAJ PATEL
HEMRAJ PATEL on 3 Jan 2022
Answered: yanqi liu on 4 Jan 2022
WHEN I RUN THIS, GLCM MATRIX IS LEAVING SOME OF THE BOXES. AND I AM GETTING A FIGURE WITH BLACK LINES AT REGULAR INTERVAL.
KINDLY HELP ME IN CORRECTION.
clc;
clear;
I1=imread("BASU.tiff");
I=double(im2gray(I1));
imshow(I);
glcm = graycomatrix(I,'Offset',[0 1],'NumLevels',400,'GrayLimits',[],'Symmetric',true);
imshow(glcm);

Answers (1)

yanqi liu
yanqi liu on 4 Jan 2022
yes,sir,may be upload your tif file,or use
imshow(log(abs(glcm)),[]);
to check

Categories

Find more on Images in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!