How to deal with HoughTransform2DLinesImageFilter GetLines() method in python

Dear @matt.mccormick thank you for your welcome and your reply.

What I’m trying to do, is to apply the hough transform for lines to an image and get the lines found by the algorithm.

Here is a sample of the code I’m using

houghF = itk.HoughTransform2DLinesImageFilter[itk.F, itk.F].New()
houghF.SetInput(edges)
houghF.SetAngleResolution(100)
houghF.SetNumberOfLines(2)
houghF.Update()
DetectedLines=houghF.GetLines()
I expected the var “DetectedLines” to be a list/array of 2 entries. However, it is ‘SwigPyObject’.
My question is: how do I access to the lines contained in the var “DetectedLines”?

Thanks