ERROR while creating GLCM

조회 수: 1 (최근 30일)
sowjanya
sowjanya 2020년 1월 21일
댓글: Walter Roberson 2020년 1월 21일
% input image is obtained by stacking different bands(4,3,2)
I=imread('D:\project\stack.tif');
G=rgb2gray(I);
figure
imshow(G)
offsets=[0 1;-1 1; -1 0;-1 -1];
glcm=graycomatrix(G,'offset',offsets)
stats=graycoprops(glcm)
=>obtained WARNING is 'image is too big to fit 'and glc matrix is not produced along with its statistics
my grey image is of size 7438x7575 uint8
i have seen a suggested answer:-
imshow(G, 'InitialMagnification', 'fit')
but returns same warning
if i use resize command,will image loses its actual information? as i want to classify the features obtained.

채택된 답변

Walter Roberson
Walter Roberson 2020년 1월 21일
Change
imshow(G)
to
image(G)
colormap(gray(256));
if i use resize command,will image loses its actual information? as i want to classify the features obtained.
The size you display the image on the screen will not affect glcm analysis.
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 1월 21일
Sorry I have no information on that topic.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by