dicompyler/dicompyler-core

Change bin dimension

elifoo opened this issue · 4 comments

The script calculate the dose in cGy and thus the bin dimension is of 0.01. I would like to change bin dimension in 0.1 or 0.5 ... How I can obtain this? Thank you very well!

Are you referring to the dvhcalc module or the DVH class? Both are designed for 1 cGy bins. There hasn't been a request for alternate bin sizes as of yet. It may be possible to make changes to the code in both of those modules to accommodate this request.

Ok! I think that It can useful to reduce the time processing. I use DVH with 0.5Gy step (so every 50cGy)

I'll leave this issue open for a future contribution, but if you need bins resampled you can manually re-bin your histograms using numpy.

I am trying to implement this, @bastula could you elaborate on how re-binning can be done by numpy? Is it as simple as changing the relevant arguments in the return line of[ get_dvh](https://dicompyler-core.readthedocs.io/en/latest/_modules/dicompylercore/dvhcalc.html#get_dvh) or is there something more complex that needs to be done? I am also looking to have the binning controlled and this would be an excellent feature for a future contribution.