# How do extract GLRLM features from a single .jpg image

**URL:** <https://discourse.slicer.org/t/how-do-extract-glrlm-features-from-a-single-jpg-image/15473>\
**Category:** Radiomics\
**Tags:** python, radiomics\
**Created:** [January 12, 2021, 3:27pm UTC](https://discourse.slicer.org/t/how-do-extract-glrlm-features-from-a-single-jpg-image/15473 "2021-01-12T15:27:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohiuddin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mohiuddin/32/8447_2.png) [@Mohiuddin](https://discourse.slicer.org/u/Mohiuddin)\
**Post date:** [January 12, 2021, 3:27pm UTC](https://discourse.slicer.org/t/how-do-extract-glrlm-features-from-a-single-jpg-image/15473/1 "2021-01-12T15:27:47Z")

</div>

Operating system: Windows  
Slicer version:  
Expected behavior:  
Actual behavior:  
I am a learner and want to generate Gray Level Run Length Matrix features for a .jpg image. I am reading an image via opencv but could not understand about ‘mask’ input. Thus, can anybody help me by providing any sample code in python which can extract features using PyRadiomics.

---

<div class="post-metadata">

**Author:** ![JoostJM](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/joostjm/32/1091_2.png) [@JoostJM](https://discourse.slicer.org/u/JoostJM)\
**Post date:** [March 9, 2021, 12:39pm UTC](https://discourse.slicer.org/t/how-do-extract-glrlm-features-from-a-single-jpg-image/15473/2 "2021-03-09T12:39:30Z")

</div>

The PyRadiomics repository on github contains several example scripts detailing the usage of PyRadiomics. Additionally, you can find many details in the extensive online documentation at [pyradiomics.readthedocs.io](http://pyradiomics.readthedocs.io)
