victorgabr / ApertureComplexity

Python 3.x port of the Eclipse ESAPI plug-in script used in the study : Predicting deliverability of volumetric-modulated arc therapy (VMAT) plans using aperture complexity analysis
GNU General Public License v3.0
24 stars 8 forks source link

Vmat complexity metrics #4

Open zism opened 2 years ago

zism commented 2 years ago

Hi, I’m looking to calculate segment area and total beam area from a DicomRT VMAT plan. could someone help me?

victorgabr commented 2 years ago

This gives you area per aperture: https://github.com/victorgabr/ApertureComplexity/blob/aa101c64101f72022e9da534a155dbad3219eea9/complexity/PyComplexityMetric.py#L142

This gives the side perimeter:

https://github.com/victorgabr/ApertureComplexity/blob/aa101c64101f72022e9da534a155dbad3219eea9/complexity/ApertureMetric.py#L302

I hope it helps

zism commented 2 years ago

Thank you for reply, what About total beam area, is there a direct function or I should make the sum of seg area?

victorgabr commented 2 years ago

Thank you for reply, what About total beam area, is there a direct function or I should make the sum of seg area?

yes:

beam_seg_sum = sum(segment_areas)

amz2017 commented 10 months ago

I am trying to install complexity python packages, but I failed. Would you please help on that?

victorgabr commented 9 months ago

I am trying to install complexity python packages, but I failed. Would you please help on that?

You can clone the repository and run it from the source code.

But the command

python setup.py install

should install it on your python site-packages folder.