Is there an existing function in OpenCV that allows line-fitting across the major axis of bright pixel clusters? (see below) I want to automate the detection of short filaments in a series of images.
I have tried fitting the minimum bounding box around these features, but with little accuracy. I also found skeletonizing (using the Zhang-Suen method) these features quite difficult, as it seems to connect what used to be distinct pixel clusters.