Problem with LeedTOR

156 views
Skip to first unread message

Amine Adjoud

unread,
May 10, 2021, 11:07:08 AM5/10/21
to Pylinac
Hi, 
 I have a problem while using LeedsTOR: when I run the leeds.analyze() function, the regions of interest are not positioned in the right place. I tried with the parameter invert=true but I still have the same problem. Does anyone have a solution?

 Thanks in advance,

 Amine
Capture d’écran 2021-05-10 à 17.00.15.pngCapture d’écran 2021-05-10 à 17.01.39.png

James Kerns

unread,
May 10, 2021, 3:09:32 PM5/10/21
to Pylinac
This looks like a scaling issue. Is your phantom sitting on the EPID or at isocenter? 

The large noise and vertical banding could be affecting the ring detection. I would try applying a gaussian filter first to see if that fixes it. 

leeds = LeedsTOR(...)
leeds.image.filter(size=3, kind='gaussian')
leeds.analyze(...)

There is one other more involved option but let's see if that fixes it first. 

Amine Adjoud

unread,
May 11, 2021, 3:52:23 AM5/11/21
to Pylinac
I am using the phantom to evaluate the performances of a conventional radiology imaging. Is pylinac not compatible with this kind of tests?

The Gaussian filter is working but my ftm values are affecting by it size.

James Kerns

unread,
May 11, 2021, 9:42:09 AM5/11/21
to Pylinac
I don't know if others have used it for conventional radiology. In theory, as long as the phantom is at isocenter then it should work. If applying the gaussian filter results in a correct detection then the issue is indeed about the large noise in the image. There is a workaround, which is to override the size of the phantom:

# perform the gaussian filter like earlier to get a valid analysis
leeds = LeedsTOR(...)
leeds.image.filter(...)
leeds.analyze(...)

# now take the phantom center location value and pass it to a new analysis
size = leeds.phantom_radius

leeds2 = LeedsTOR(...)  # load the same image, but we don't filter this one
leeds2.analyze(..., size_override=size)
....

Let me know how it works out.

Amine Adjoud

unread,
May 12, 2021, 3:45:59 AM5/12/21
to Pylinac
Thanks! I have good results changing the size.

Julio Almansa

unread,
May 12, 2021, 2:00:15 PM5/12/21
to Amine Adjoud, Pylinac
I'm not using it for conventional radiology but I tried for this use.

With the phantom on top of the detector and using raw images here is the analysis for two images (with or without Cu filter).

The code i used:
from pylinac import LeedsTOR
leeds = LeedsTOR('TOR18FG.dcm')
leeds.analyze(low_contrast_threshold=0.05, high_contrast_threshold=0.5)

Captura de pantalla de 2021-05-12 19-45-52.png

Captura de pantalla de 2021-05-12 19-44-28.png

I think that the only issue is with the High-frequency rMTF because the 9 ROIs used is not enough for the resolution of conventional radiology images.



----------
Julio Almansa López
Hosp. Universitario Virgen de las Nieves


--
You received this message because you are subscribed to the Google Groups "Pylinac" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylinac+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylinac/4a8b6136-d0a8-4eab-b9d7-21fee7537039n%40googlegroups.com.

James Kerns

unread,
May 12, 2021, 3:16:04 PM5/12/21
to Pylinac
Julio, 
     Good to know, thanks! For my linac kV imaging 9 was more than enough 😁 I can work on including the other ROIs. 

Julio Almansa

unread,
May 17, 2021, 4:49:47 AM5/17/21
to James Kerns, Pylinac
James,

It would be fine if you can include more ROIs !

One question: Is there any way to change the estimator for the relative mtf to be the standard deviation of the ROI.

Thanks ?
JALmansa
----------
Julio Almansa López
Tfno Hospital: 647563335 (corp: 695836)
FEA Radiofisica Hospitalaria
UGC Física y Protección Radiológica

Hosp. Universitario Virgen de las Nieves
Avda. de las Fuerzas Armadas nº2. 18014, Granada
juliof.al...@juntadeandalucia.es

----------
jalmans...@gmail.com
Tlf: 659711957
skype: jalmansa_



James Kerns

unread,
May 17, 2021, 9:25:36 AM5/17/21
to Pylinac
If you can find a paper or source that uses the standard deviation as the metric for calculating MTF then I will consider adding it. Up to now, I've not heard of doing such a thing. 
Reply all
Reply to author
Forward
0 new messages