Questions tagged [glcm]

The gray level co-occurrence matrix (GLCM) is a statistical method of texture analysis that describes texture through a set of statistical measures extracted from a matrix that computes how often pairs of pixels with specific values and in a specified spatial relationship occur in an image.

The GLCM is a tabulation of how often different combinations of pixel brightness values (gray levels) occur in an image for a certain pixel offset (distance and direction). This approach consists in representing texture through a feature vector whose components are statistics computed from the different GLCMs corresponding to the considered distance-direction combinations.

A good start on the field is having a look at The GLCM Tutorial.

115 questions
0
votes
2 answers

How to get the GLCM images to show in Matlab

I want to show the GLCMs of an image in Matlab. So far I've tried and been able to get only to the stats. I = imread('cameraman.tif'); glcm1 = graycomatrix(I); Stats = graycoprops(glcm1); And it results in the stats. Stats = Contrast:…
0
votes
1 answer

How to call back (display) the images which been extracted before?

I've done feature extraction using GLCM and k-nn for classification. What I need to do now is troubleshooting, to analyse why the images been classified wrongly. I want to display the nearest neighbor of the testing data, but not just points like…
0
votes
0 answers

Gray-Level Co-occurrence Matrices OpenCV function

I am using OpenCV 2.4.11,Win 7, VS2012. I searched the internet for glcm of an image. I found these links link1 and link2 and find out concept of glcm but my problem is remain and when run this code IplImage* inputIm =…
opencv train
  • 29
  • 2
  • 13
0
votes
1 answer

Python: Extract GLGCM features

There is a type of texture features called GLGCM (Gray Level Gradient Based Co-occurrence Matrix) that captures information about how different image gradients co-occur with each other. GLGCM is different from normal GLCM. Can anyone help me find an…
Ahmed Gad
  • 691
  • 1
  • 7
  • 26
0
votes
1 answer

How to improve the OCR accuracy rate of Neural Network in Matlab

I'm working on OCR for Arabic character. I want to try glcm as a features extraction method. I've got the code here: http://www.mathworks.com/matlabcentral/fileexchange/22187-glcm-texture-features Example of input images (character images): and…
Ana Ain
  • 173
  • 1
  • 3
  • 14
0
votes
1 answer

Convert complex double to double type in Matlab

I am doing a feature extraction using glcm method. The glcm output are in 'struct' type, while I need the output in double type. So, I've tried to convert it using several code showed below. To get Fetest1 code: srcFile = dir('D:…
Ana Ain
  • 173
  • 1
  • 3
  • 14
0
votes
0 answers

Combination of the characteristics of the images

I use three image features (Colour Histogram, GLCM, and Hu's seven invariant moments) in my project QBIC system using MATLAB. I don't know how to make the combination between such features.
0
votes
1 answer

Performace comparison between GLCM and LIRE for image matching

I want to create an image matching application. When I searched for it, I found two good approaches. 1) LIRE - Lucene Image Retrieval can be used to perform the image matching , where it implements various image matching algorithms and and also…
0
votes
0 answers

Does efficient GLCM gliding window exist in Python library?

I am using scikit-image's greycomatrix (GLCM) to extract features from an image. This method is quite fast, but when creating a feature map of an image with GLCM one needs to glide a window over the image and call greycomatrix once for each window.…
PaulMag
  • 3,928
  • 3
  • 18
  • 29
0
votes
1 answer

Compute GLCM texture feature in matlab

I want to extract GLCM texture feature from an image in my CBIR system.... I applied the following code: S=imread('A1.jpg'); S=rgb2gray(S); I= imresize (S, [350 350]); glcm45=graycomatrix(I,'offset',[-1 1],'NumLevel', 8,'Symmetric',true);…
zenab
  • 229
  • 3
  • 9
  • 20
0
votes
1 answer

GLCM on MATLAB, how to write a script to apply it on a large number of images

I was trying the GLCM on MATLAB but I have to feed the image one by one each and that takes me forever. Is there anyway we can feed a large number of images, say 1,000 to the GLCM? How to write such loop?
Anh Nguyen
  • 27
  • 2
  • 8
0
votes
1 answer

Capturing macro and micro geometry using image features

I am extracting image features for texture identification. I want to extract image features from a 2D image. These features should capture the micro as well as macro geometry of the image. I have tried to find out some algorithm which can give me…
0
votes
1 answer

how to calculate the feature vectors approximately for storing in excel sheet?

In my GUI I am using this matlab code to store the values in excel sheet.This code is calculating the glcm six features. function [Contrast,cor,ener,homo,Var,Entropy] = glcm_feature_extraction(I1) Contrast =…
0
votes
1 answer

Running GLCM through patches of an image in Matlab?

Is there a way to split an image into different boxes and run GLCM on each separate box? E.g. split a 1000 x 1000 image into 50 20 x 20 boxes. I'm looking to pinpoint regions of an image which show homogeneity - and then localise my analysis. I…
Mike Miller
  • 253
  • 6
  • 18
0
votes
1 answer

Matlab Co-occurrence Matrix

I'm sure this is a very simple mistake by me somewhere! But when I use Matlab's graycomatrix function, I don't get the expected result. Instead of a matrix output I expect, I always get an 8 x 8 (nearly) zero matrix with one entry in the bottom…
Mike Miller
  • 253
  • 6
  • 18