Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MCS and MI #1

Closed
yograjyog opened this issue Aug 6, 2020 · 4 comments
Closed

MCS and MI #1

yograjyog opened this issue Aug 6, 2020 · 4 comments

Comments

@yograjyog
Copy link

Hello Victor! Is there any possibility to calculate other metrics like MCS, MI with this script? I really appreciate your help. Many Thanks.

@victorgabr
Copy link
Owner

The list of implemented metrics is located at:

https://github.com/victorgabr/ApertureComplexity/blob/master/complexity/PyComplexityMetric.py

I am not sure what you mean by MCS, but there are many on the file above.

@yograjyog
Copy link
Author

Thanks. Can u plz give a sample code on how to calculate MeanApertureAreaMetric. Appreciate your help.

I have tried this

`from complexity.PyComplexityMetric import MeanApertureAreaMetric
from complexity.dicomrt import RTPlan

if name == 'main':

pfile ='E:\MedPhy\Medical Physics Library\Research\Aperture Shape Controller Evaluation\High.dcm'
plan_info = RTPlan(filename=pfile)
plan_dict = plan_info.get_plan()
beams = [beam for k, beam in plan_dict['beams'].items()]
complexity_obj = MeanApertureAreaMetric()
mean_aperture_area = complexity_obj.Calculate`????

I am stuck.

@victorgabr
Copy link
Owner

I have added more examples.
Other metrics inherited from PyComplexityMetric. So the API for usage is the same.
Check the README.md.

There are also more complex metrics on the file:
https://github.com/victorgabr/ApertureComplexity/blob/master/complexity/misc.py

Including MCS.

@yograjyog
Copy link
Author

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants