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
0 answers

Calculating Gray Level Co-occurrence Matrices (GLCM)

GLCM considers the relation between two pixels at a time, called the reference and the neighbour pixel. Based on the selection of the neighbour pixel generally 4 different Gray Level Co-occurrence Matrices (GLCM) can be calculated for an…
user3347358
  • 13
  • 1
  • 6
0
votes
1 answer

Up-to-date multicore computing in triple for-loop in R

I want to calculate GLCM with 488 raster files. Because of the enormous calculation time i want to use all the power of my multicore processor (AMD Phenom II 6-core).…
loki
  • 9,816
  • 7
  • 56
  • 82
0
votes
1 answer

Matlab- Put rectangle on image

I have a sliding window on my image. If the average intensity within that window is > 210 then GLCM features are calculated on that window. If the GLCM features meet the conditions in the if statements then a rectangle should be drawn around this…
user1853871
  • 249
  • 5
  • 21
0
votes
0 answers

Calculation of Haralick texture features from matrix

I have this normalized grey-level co-occurence matrix (GLCM) d <- matrix(c(0,0,0,0,0,0,0,0,0,0, 0,0.093654267,0.0253829322,0.0021881838,0.0013129103,0,0,0,0,0, …
loki
  • 9,816
  • 7
  • 56
  • 82
0
votes
1 answer

Image analysis through GLCM Matrix

I have a image for which I have to calculate the GLCM texture of a selected region. How can I calculate this? I have to calculate the GLCM only for gray area.
0
votes
2 answers

OpenCV how to get GLCM gray-level co-occurrence matrix

I am trying to extract features using GLCM (gray-level co-occurrence matrix (GLCM) from image) in OpenCV. In matlab we have graycomatrix. Does we have any function in openCV for the same purpose? If not, then what is the best solution to achieve it…
wolvorinePk
  • 1,760
  • 5
  • 36
  • 67
0
votes
1 answer

not getting glcm matrix dimensions for 8 bit grayscale image

As theory states, a glcm matrix is said to have dimensions of 2^x by 2^x where x is the grayscale depth of the image. My problem is that I get a 8 by 8 matrix instead of a 2^8 By 2^8 matrix when I run it on a 8 bit grayscale image. Could someone…
klijo
  • 15,761
  • 8
  • 34
  • 49
-1
votes
1 answer

How to convert C++ implementation of GLCM into Java?

I got the following snippet from GitHub to compute the gray level co-occurrence matrix (GLCM) through OpenCV: float energy=0,contrast=0,homogenity=0,IDM=0,entropy=0,mean1=0; int row=img.rows,col=img.cols; Mat…
AciD IoN
  • 159
  • 1
  • 1
  • 10
-2
votes
1 answer

Gray Level Co-occurence Matrix

I try to implement the GLCM method with the formula from wikipedia, but I have problems to fill my GLCM due to indices problems with matlab. I have also used NitdepthQuantisation to reduce the number of Gray Levels, but for now I use the full 8…
Xeno1987
  • 75
  • 8
-2
votes
1 answer

calculate variogram/GLCM with a raster output in R

I'd like to use the geostatistical texture to classify my remote sensing data, but I can't find a package that give a result I want---it should result a raster type output, so that I can use it with spectral date (such as TM) in R. I search this…
logan
  • 327
  • 3
  • 8
1 2 3 4 5 6 7
8