# Fixed bin count in SlicerRadiomics

**URL:** <https://discourse.slicer.org/t/fixed-bin-count-in-slicerradiomics/6045>\
**Category:** Support\
**Tags:** radiomics\
**Created:** [March 6, 2019, 5:19pm UTC](https://discourse.slicer.org/t/fixed-bin-count-in-slicerradiomics/6045 "2019-03-06T17:19:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karin\_Meijer](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@Karin\_Meijer](https://discourse.slicer.org/u/Karin_Meijer)\
**Post date:** [March 6, 2019, 5:19pm UTC](https://discourse.slicer.org/t/fixed-bin-count-in-slicerradiomics/6045/1 "2019-03-06T17:19:11Z")

</div>

Hello,

Currently I am using the SlicerRadiomics extension and I noticed that features can only be calculated with a fixed bin width, which can be manually set. However, for my analysis I would prefer a fixed bin count. Is it for this extension in any way possible to change this setting to a fixed bin count of 64?

Thank you in advance.

Kind regards,  
Karin Meijer

---

<div class="post-metadata">

**Author:** ![fedorov](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fedorov/32/14_2.png) [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Post date:** [March 6, 2019, 5:24pm UTC](https://discourse.slicer.org/t/fixed-bin-count-in-slicerradiomics/6045/2 "2019-03-06T17:24:00Z")

</div>

You can use fixed bin count, but you will need to customize extraction using a “parameter file customization” instead of “manual customization”.

Please consult pyradiomics manual for how to prepare the parameter file: [Customizing the Extraction — pyradiomics v3.1.0rc2.post5+g6a761c4 documentation](https://pyradiomics.readthedocs.io/en/latest/customization.html#parameter-file), also see this relevant FAQ entry: [Frequently Asked Questions — pyradiomics v3.1.0rc2.post5+g6a761c4 documentation](https://pyradiomics.readthedocs.io/en/latest/faq.html#what-about-gray-value-discretization-fixed-bin-width-fixed-bin-count).

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/b/fb71b86a03d0f5c6ee6512a36684f99003766494.png)

---

<div class="post-metadata">

**Author:** ![Karin\_Meijer](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@Karin\_Meijer](https://discourse.slicer.org/u/Karin_Meijer)\
**Post date:** [March 11, 2019, 9:40am UTC](https://discourse.slicer.org/t/fixed-bin-count-in-slicerradiomics/6045/3 "2019-03-11T09:40:16Z")

</div>

Hi Andrey,

Thank you for your fast response.  
I will try to prepare a parameter file with the right settings.

Kind regards,  
Karin Meijer
