Converting the physical dose to biologically effective dose (BED)

Hi everyone
I have a DICOM RT dose file (It contains physical dose). I want to convert it to Biologically Effective Dose based on the below formula. That is, find the dose of each voxel (di) and put it in the formula and convert it to BED. Is it possible to convert a physical dose file to Biological dose file using 3DSlicer software?

(I think when the mouse is placed on the RT dose file in 3dSlicer, it shows the dose of each voxel (di) in Data probe. How can I get this dose and convert it to biologically effective dose? )
Can you guide me?
Thanks a lot


(n , a/b are constant.)

You can access the dose volume as numpy array as described here:

https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#get-value-of-a-volume-at-specific-voxel-coordinates

Then you can use numpy array operations to apply the formula. It is linear so there should be no problem. Let me know if you are stuck.