please, take a look at opencv/samples/cpp/houghlines.cpp sample. It's your primary competitor. E.g. load building.jpg, apply canny edge detector to it and then apply your line detector. If you want, please, add an option to your sample to run canny edge detector before LSD. This way you can pass building.jpg right into your sample without preprocessing the image.