Hi @nick
I just looked at your question, together with my LKEB colleague Patrick de Koning, who has experience using the SWIG Python wrapper of ITK. Unfortunately, we haven’t found the answer to your question.
DetectedLines
wraps a C++ reference to an std::list
of LineSpatialObject
pointers. I can imagine that the wrapping would have been easier if std::vector
was used, instead of std::list
. For example, the Python wrapper of ITK’s VectorContainer does provide full access to the underlying std::vector
.
However, SWIG does support std::list
so I don’t really know why it does not work: https://github.com/swig/swig/blob/rel-4.0.0/Lib/python/std_list.i
Bradley @blowekamp do you have a clue?