# Question regarding input as 3D image and setting voxelbased = False

**URL:** <https://discourse.slicer.org/t/question-regarding-input-as-3d-image-and-setting-voxelbased-false/12261>\
**Category:** Radiomics\
**Created:** [June 29, 2020, 1:17am UTC](https://discourse.slicer.org/t/question-regarding-input-as-3d-image-and-setting-voxelbased-false/12261 "2020-06-29T01:17:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haoxin\_Zheng](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/haoxin_zheng/32/7280_2.png) [@Haoxin\_Zheng](https://discourse.slicer.org/u/Haoxin_Zheng)\
**Post date:** [June 29, 2020, 1:17am UTC](https://discourse.slicer.org/t/question-regarding-input-as-3d-image-and-setting-voxelbased-false/12261/1 "2020-06-29T01:17:17Z")

</div>

Hi,

I think I just asked 2 related question but I wish I could get answers from your side both if possible.

Im dealing with 2D MRI images. For each patient, the resolution in x-y direction is higher than the z direction, which means it is a very common case – a stack of 2D images for each patient. When I input a stack of the 2D images (seen as 3D image, ) and it’s corresponding stack of 2D mask image (seen as 3D mask image) to the “.execute” function, for example:

result\_vec = extractor.execute(curr\_img\_path, curr\_mask\_path, voxelBased=True/False)

Here, curr\_img\_path is the path to the 3D image (.nrrd format) and the curr\_mask\_path is the path to the 3D mask image (.nrrd format).

If I set voxelBased=True, then the returned result\_vec is a set of 3D images with respect to each radiomics features, but if I set voxelBased=False, the retured result\_vec is a feature vector that for each feature there is a corresponding scalar value.

My quesion:

1. If I’d like to calculate the radiomics feature for the entire 3D image as a whole, e.g. I want the firstorder\_10Percentile feature for this 3D image, do I need to set voxelBased = True? Or False?

2. If I set Voxelbased = True, what do the returned 3D feature maps mean?

Thanks!

---

<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:** [June 30, 2020, 10:46am UTC](https://discourse.slicer.org/t/question-regarding-input-as-3d-image-and-setting-voxelbased-false/12261/2 "2020-06-30T10:46:38Z")

</div>

Addressed in PyRadiomics issue [#600](https://github.com/Radiomics/pyradiomics/issues/600).

---

<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:** [June 30, 2020, 10:46am UTC](https://discourse.slicer.org/t/question-regarding-input-as-3d-image-and-setting-voxelbased-false/12261/3 "2020-06-30T10:46:45Z")

</div>


