Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
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)
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.
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.