Open srvanderplas opened 6 years ago
Yes, you are right, but that is not how it is implemented by the author of LSD line segment detector (original C code is here https://github.com/theWorldCreator/LSD). If union is set to 1, pixels are untouched. I think you should post your question at that repository to get further details.
image_line_segment_detector(img, union = T)
returns a pixel matrix the size of the image with all 0 values. Ideally, this would also update when union = T so that joined lines are represented by the same number.