comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » gray-level co-occurrence matrix (GLCM)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
gray-level co-occurrence matrix (GLCM) [message #71148] Tue, 01 June 2010 06:33 Go to next message
j.coenia@gmail.com is currently offline  j.coenia@gmail.com
Messages: 36
Registered: December 2008
Member
Is there an efficient and versatile gray-level co-occurence matrix
(GLCM) routine in IDL, or in someone's library? Found routines called
"graycomatrix" and "graycoprops" for MATLAB. Anything like that for
IDL?
Re: gray-level co-occurrence matrix (GLCM) [message #89732 is a reply to message #71148] Sat, 22 November 2014 12:45 Go to previous messageGo to next message
mediterraneo is currently offline  mediterraneo
Messages: 1
Registered: November 2014
Junior Member
On Tuesday, June 1, 2010 3:33:50 PM UTC+2, j.co...@gmail.com wrote:
> Is there an efficient and versatile gray-level co-occurence matrix
> (GLCM) routine in IDL, or in someone's library? Found routines called
> "graycomatrix" and "graycoprops" for MATLAB. Anything like that for
> IDL?

It seems that there aren't.
This is in my humble opinion a big mistake and a missed opportunity for IDL
that, at the end of the 2014, doesn't have routine for the calculation of texture indices. As also I am interested in the topic, I wrote to IDL two weeks
ago and did not receive any answer.
There are more than ten years that IDL is immovable.
Re: gray-level co-occurrence matrix (GLCM) [message #89733 is a reply to message #71148] Sun, 23 November 2014 10:53 Go to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
Le mardi 1 juin 2010 15:33:50 UTC+2, j.co...@gmail.com a écrit :
> Is there an efficient and versatile gray-level co-occurence matrix
> (GLCM) routine in IDL, or in someone's library? Found routines called
> "graycomatrix" and "graycoprops" for MATLAB. Anything like that for
> IDL?

For computing GLCM of an image IMG (2D-array of bytes), I would simply do:

n = N_elements(img)
;left shift the image array
img_shifted = shift(img,1,0)
;vectorize both arrays
img = reform(img,n)
img_shifted = reform(img_shifted,n)
;compute GLCM
glcm = hist_2D(img,img_shifted,MIN1=0,MIN2=0)

alx.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to convert Julian date into Gregorian date format in IDL?
Next Topic: extract an array from an structure

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:40:35 PDT 2025

Total time taken to generate the page: 0.00590 seconds