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 
Return to the default flat view Create a new topic Submit Reply
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.
[Message index]
 
Read Message
Read Message
Read Message
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 17:29:00 PDT 2025

Total time taken to generate the page: 0.00424 seconds