How do extract GLRLM features from a .jpg image

Duplicate to How do extract GLRLM features from a single .jpg image