Why this error?
Afficher commentaires plus anciens
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
Réponses (2)
Yongjian Feng
le 28 Oct 2021
Modifié(e) : Yongjian Feng
le 28 Oct 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
le 29 Oct 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 commentaire
Nilna Almumtazah
le 30 Oct 2021
Catégories
En savoir plus sur Image Preview and Device Configuration dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!