Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To get only the intersections, just use the Harris corner detector. It will have maximum values in the middle, no matter the line width.

To get the structure, use a morphological skeleton algorithm (it's a kind of adaptive erosion). It's not part of OpenCV if I remember correctly, but you can find some implementations on the web.