0

enter image description hereI have a binary image in which some lines are there at arbitrary angles( line pixels have some non zero value(suppose 1) and rest of the image having pixel values as zero).I have to extract each line separately(For Example, if there are 5 lines in an image,I can store the collection of pixels of each line into 5 separate lists) but I am unable to do so. I have utilised Hough line and hough line peaks of scikit-image which results in houghspace, angles and distances, but I am unable to utilise them to create such separate collection of pixels.Kindly guide and share the code if possible.(For illustration purpose,the image is attached.)

Shubham_geo
  • 368
  • 1
  • 4
  • 16
  • Is your image really as clean as that? With no noise? With perfectly continuous lines? Do the lines sometimes intersect? – Mark Setchell Dec 29 '19 at 18:12
  • @Mark Setchell -Yes the image is clean in fact it is a binary mask with no noise. In addition, the lines are continuous and yes they can intersect(the image attached is just for illustration purpose,consider the case of intersecting lines also). – Shubham_geo Dec 29 '19 at 19:53

0 Answers0