4

Well, I think the best way to tackle this question is a little background and a code as an example. I chose MATLAB for this example though PyTorch / Keras would probably be as easy. This task requires the output to have the same dimensions as the input with per pixel classification (For other masks it could be regression as well). A modern CNN architecture ...


1

Instead of using a homegrown amalgamation of algorithms, I suggest you look in the scientific literature for existing solutions. People have solved the same problem over and over again, there exist many algorithms to detect lines. One very popular such method is Frangi's vesselness measure (A.F. Frangi et al, “Multiscale Vessel Enhancement Filtering”, MICCAI ...


Only top voted, non community-wiki answers of a minimum length are eligible