# How do extract GLRLM features from a .jpg image

**URL:** <https://discourse.slicer.org/t/how-do-extract-glrlm-features-from-a-jpg-image/15505>\
**Category:** Radiomics\
**Tags:** python\
**Created:** [January 13, 2021, 2:05pm UTC](https://discourse.slicer.org/t/how-do-extract-glrlm-features-from-a-jpg-image/15505 "2021-01-13T14:05:06Z")\
**Posts on this page:** 3\
**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 13, 2021, 2:05pm UTC](https://discourse.slicer.org/t/how-do-extract-glrlm-features-from-a-jpg-image/15505/1 "2021-01-13T14:05:06Z")

</div>

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 GLRLM of 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:40pm UTC](https://discourse.slicer.org/t/how-do-extract-glrlm-features-from-a-jpg-image/15505/2 "2021-03-09T12:40:18Z")

</div>

Duplicate to [How do extract GLRLM features from a single .jpg image](https://discourse.slicer.org/t/how-do-extract-glrlm-features-from-a-single-jpg-image/15473)

---

<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:40pm UTC](https://discourse.slicer.org/t/how-do-extract-glrlm-features-from-a-jpg-image/15505/3 "2021-03-09T12:40:21Z")

</div>


