# Can SlicerRadiomics perform Feature selection for 2D imaging?

**URL:** <https://discourse.slicer.org/t/can-slicerradiomics-perform-feature-selection-for-2d-imaging/11903>\
**Category:** Radiomics\
**Created:** [June 6, 2020, 2:15pm UTC](https://discourse.slicer.org/t/can-slicerradiomics-perform-feature-selection-for-2d-imaging/11903 "2020-06-06T14:15:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![LinJP123](https://avatars.discourse-cdn.com/v4/letter/l/ce73a5/32.png) [@LinJP123](https://discourse.slicer.org/u/LinJP123)\
**Post date:** [June 6, 2020, 2:15pm UTC](https://discourse.slicer.org/t/can-slicerradiomics-perform-feature-selection-for-2d-imaging/11903/1 "2020-06-06T14:15:32Z")

</div>

Operating system:window 10  
Slicer version: 4.10.2  
Expected behavior:  
Actual behavior: Can the SlicerRadiomics perform Feature selection for 2D imaging? And how to set?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [June 6, 2020, 8:22pm UTC](https://discourse.slicer.org/t/can-slicerradiomics-perform-feature-selection-for-2d-imaging/11903/2 "2020-06-06T20:22:43Z")

</div>

Yes. just load a 2D image and Slicer will treat it as a one-slice volume.

---

<div class="post-metadata">

**Author:** ![LinJP123](https://avatars.discourse-cdn.com/v4/letter/l/ce73a5/32.png) [@LinJP123](https://discourse.slicer.org/u/LinJP123)\
**Post date:** [June 7, 2020, 4:36am UTC](https://discourse.slicer.org/t/can-slicerradiomics-perform-feature-selection-for-2d-imaging/11903/3 "2020-06-07T04:36:53Z")

</div>

Hi Steve!  
Thank you for your response. I have other questions. If I load a 2D image, how do I set parameters, such as Resampled voxel size, LoG filter kernel sizes and Wavelet-based features? Or I don’t need to set these parameters.

 ![Snipaste_2020-06-07_12-36-07](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/a/4ab7f0d7a73ddd4de6ecfe7fa535f2c6fc082778.png)

Best wishes!  
Lin Junpeng

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [June 7, 2020, 3:06pm UTC](https://discourse.slicer.org/t/can-slicerradiomics-perform-feature-selection-for-2d-imaging/11903/4 "2020-06-07T15:06:46Z")

</div>

> [@LinJP123](#):
>
> If I load a 2D image, how do I set parameters, such as Resampled voxel size, LoG filter kernel sizes and Wavelet-based features?

I’m not sure, but I don’t think it’s any different than in the 3D case - maybe @JoostJM can comment. I think you

---

<div class="post-metadata">

**Author:** ![LinJP123](https://avatars.discourse-cdn.com/v4/letter/l/ce73a5/32.png) [@LinJP123](https://discourse.slicer.org/u/LinJP123)\
**Post date:** [June 8, 2020, 3:11am UTC](https://discourse.slicer.org/t/can-slicerradiomics-perform-feature-selection-for-2d-imaging/11903/5 "2020-06-08T03:11:05Z")

</div>

Thank you very much!

---

<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 9, 2020, 8:11am UTC](https://discourse.slicer.org/t/can-slicerradiomics-perform-feature-selection-for-2d-imaging/11903/6 "2020-06-09T08:11:52Z")

</div>

Indeed no difference. The only thing that changes is that for resampledPixelSpacing, you need to fill in only 2 instead of 3 values. Be aware that this assumes truly 2D images. If it fails, carefully read the error message, this often contains clues as to where and how it failed.

---

<div class="post-metadata">

**Author:** ![LinJP123](https://avatars.discourse-cdn.com/v4/letter/l/ce73a5/32.png) [@LinJP123](https://discourse.slicer.org/u/LinJP123)\
**Post date:** [June 9, 2020, 9:03am UTC](https://discourse.slicer.org/t/can-slicerradiomics-perform-feature-selection-for-2d-imaging/11903/7 "2020-06-09T09:03:55Z")

</div>

OK! Thank you! I benefited a lot from your reply！

---

<div class="post-metadata">

**Author:** ![okanince](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/okanince/32/11146_2.png) [@okanince](https://discourse.slicer.org/u/okanince)\
**Post date:** [June 3, 2021, 9:13pm UTC](https://discourse.slicer.org/t/can-slicerradiomics-perform-feature-selection-for-2d-imaging/11903/8 "2021-06-03T21:13:41Z")

</div>

Hello everyone!  
I have a similar issue like @LinJP123 has. I am currently working on 2D ROI from a DICOM volume of CT scan in 3D Slicer. When I try to extract 2D features with voxel resampling as 1,1 and try to add a LoG filter, the system throws error as Wrong dimensionality (2-D) of resampledPixelSpacing, 3-D required.

How can I do pixel resampling and LoG filtering at the same time with 2D images.

Thank you for all your consideration :)🙂

---

<div class="post-metadata">

**Author:** ![jamessmith](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamessmith/32/11159_2.png) [@jamessmith](https://discourse.slicer.org/u/jamessmith)\
**Post date:** [June 5, 2021, 6:43pm UTC](https://discourse.slicer.org/t/can-slicerradiomics-perform-feature-selection-for-2d-imaging/11903/9 "2021-06-05T18:43:03Z")

</div>

Good question and perfect answers to this question. I appreciate that, thanks! [🤝](https://scholarsintel.com/)
