--
-- You received this message because you are subscribed to the Google Groups dicompyler group. To post to this group, send email to dicom...@googlegroups.com. To unsubscribe from this group, send email to dicompyler+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/dicompyler?hl=en
---
You received this message because you are subscribed to the Google Groups "dicompyler" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dicompyler+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
print ('ROI -->')
print(structures[7]['name'])
calcdvh = dvhcalc.get_dvh(rtStructFile, rtDosefile, 7)
print( calcdvh.plot())
DVH(cumulative, 4844 bins: [0.0:48.439999999999998] Gy, volume: 179.84000000000489 cm3, name: 'RECTUM', rx_dose: 0 Gy)
print('HISTOGRAM')
BinsWidth = calcdvh.bins[1] - calcdvh.bins[2]
plt.bar(calcdvh.bins[1:],calcdvh.counts,BinsWidth)
plt.axis([0.0, calcdvh.max+20, 0, np.amax(calcdvh.counts)])
plt.title('Histogram')
plt.show(block=True)I want a cumulative histogram but seems , this is not so.
Regards
Priyanka
Hi Priyanka,The DVH related tags are only present if the original treatment planning system exported them. The DVH calculation actually won't use these tags even if they present.The sample code shows how to calculate it independently of the tags.Let me know if you need more detail or information.Adit
On Tue, Sep 19, 2017 at 4:18 PM, <priya...@gmail.com> wrote:
HiI want to do DVH calculations but the RTDose Header does not have DVH related Tags in them as present in your sample files.Is there a way to still calculate the DVH ?Regards
--
-- You received this message because you are subscribed to the Google Groups dicompyler group. To post to this group, send email to dicom...@googlegroups.com. To unsubscribe from this group, send email to dicompyler+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/dicompyler?hl=en
---
You received this message because you are subscribed to the Google Groups "dicompyler" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dicompyler+...@googlegroups.com.
--
-- You received this message because you are subscribed to the Google Groups dicompyler group. To post to this group, send email to dicom...@googlegroups.com. To unsubscribe from this group, send email to dicompyler+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/dicompyler?hl=en
---
You received this message because you are subscribed to the Google Groups "dicompyler" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dicompyler+unsubscribe@googlegroups.com.
--
-- You received this message because you are subscribed to the Google Groups dicompyler group. To post to this group, send email to dicom...@googlegroups.com. To unsubscribe from this group, send email to dicompyler+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/dicompyler?hl=en
---
You received this message because you are subscribed to the Google Groups "dicompyler" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dicompyler+unsubscribe@googlegroups.com.