Why this error?

1 Ansicht (letzte 30 Tage)
Nilna Almumtazah
Nilna Almumtazah am 28 Okt. 2021
Kommentiert: Nilna Almumtazah am 30 Okt. 2021
Does anyone know why this error? In SampleUsage, when using the 'Input.bmp' image, there is no error (successful), but an error appears as shown when using the 'Normal-1.bmp' image.
This is a link for the code https://in.mathworks.com/matlabcentral/fileexchange/25057-texture-feature-extraction-gldm I will be appreciated if someone guides me. Thank you

Antworten (2)

Yongjian Feng
Yongjian Feng am 28 Okt. 2021
Bearbeitet: Yongjian Feng am 28 Okt. 2021
Bitmap is two dimensional, right? It is a 2D matrix of integers, each integer for a pixel in the 2D plane.
Can you view that problematic BMP file using
imshow('Normal-1.bmp')

yanqi liu
yanqi liu am 29 Okt. 2021
sir,may be use
im=imread('Normal-1.bmp');
if ndims(im) == 3
im = rgb2gray(im);
end
d = 11;
[pdf1, pdf2, pdf3, pdf4] = GLDM(im, d);
  1 Kommentar
Nilna Almumtazah
Nilna Almumtazah am 30 Okt. 2021
Thanks for your answer, its works

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by