jrkerns / pylinac

An image analysis library for medical physics
https://pylinac.readthedocs.io/en/latest/
MIT License
155 stars 98 forks source link

Obtaining deviations for each image during Winston-Luts test #279

Closed mlanaret closed 4 years ago

mlanaret commented 4 years ago

Dear, Thank you for your very interesting program ! How could i obtain the values of the deviations for each axis and for each image analyzed ? in addition to a graph, in the . PDF report. In addition, I cannot obtain an aesthetic report, my fields analyzed being very small (4mm conical collimator). Do you have a solution ? Thanks for your help !

Cordially

jrkerns commented 4 years ago

You will probably want the cax2bb_vector. That's the in-plane vector from field CAX to the BB.

wl = pylinac.WinstonLutz(...) wl.images[0].cax2bb_vector # will return a Vector w/ x/y/z components

To get the total deviation per axis there are specific methods for this, e.g. wl.collimator_iso_size.

I'm not sure what you mean about the report. Can you attach your PDF here?

mlanaret commented 4 years ago

Dear, The problem on the pdf is page 2 with the EPID images, these are 7.5mm conical collimator fields. I saw on the forum, the problem was recurrent and probably due to the very small sizes ed my fields.

Thank you for your answer, I would try your method to recover for each angulations, the deviation in the two axes of the center of the ball and not the vector between the two isocenters, that the quantities displayed in the graph "Relative Gantry displacement", i think. And put this numeric values on a tab in the pdf.

WL.pdf

Thanks you for all.

jrkerns commented 4 years ago

Closed in https://github.com/jrkerns/pylinac/commit/4db07ea246584bb6f0a91e2fe2831b077ff0e76d