# Convert JPG to nrrd

**URL:** <https://discourse.slicer.org/t/convert-jpg-to-nrrd/17047>\
**Category:** Radiomics\
**Created:** [April 12, 2021, 9:46pm UTC](https://discourse.slicer.org/t/convert-jpg-to-nrrd/17047 "2021-04-12T21:46:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tonyale1975](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tonyale1975/32/6503_2.png) [@Tonyale1975](https://discourse.slicer.org/u/Tonyale1975)\
**Post date:** [April 12, 2021, 9:46pm UTC](https://discourse.slicer.org/t/convert-jpg-to-nrrd/17047/1 "2021-04-12T21:46:47Z")

</div>

Dear PyRadiomics / 3DSlicer community,  
I imagine that the subject has already been discussed before. But, I couldn’t find the reference.  
I need to extract radiomic characteristics from .jpg images, is it possible?  
I tried to convert jpg to nrrd via 3DSlicer, and it worked. But when I call the Radiomics module, it only recognizes mask.nrrd (segmentation). Image.nrrd (volume) does not recognize.  
Could you please guide me on how to accomplish this task.  
Thank you very much.

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [April 12, 2021, 10:06pm UTC](https://discourse.slicer.org/t/convert-jpg-to-nrrd/17047/2 "2021-04-12T22:06:49Z")

</div>

If you open a JPG image and saved it as NRRD in Slicer, most likely it is saved as Vector Volume. I don’t know about pyRadiomics, but some modules work only with scalar volume. Try using Vector to Scalar module to convert your volume to scalar and see if it works.

---

<div class="post-metadata">

**Author:** ![Tonyale1975](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tonyale1975/32/6503_2.png) [@Tonyale1975](https://discourse.slicer.org/u/Tonyale1975)\
**Post date:** [April 14, 2021, 1:15am UTC](https://discourse.slicer.org/t/convert-jpg-to-nrrd/17047/3 "2021-04-14T01:15:00Z")

</div>

ok, I will try, thanks.
