'for loop' function for side fill binary image from bottom to top. [closed]
How to write coding 'for loop' function to read pixels from bottom to top. Also how to do the side fill from bottom to the top of binary image after edge detection.
This is the image after edge detection :
I'm using python 2.7.3 and opencv 2.4.9
Refer to link text
watershed is the function you are looking for? (but first do that segmentation, for not going the wrong way)
No. I'm referring to this link http://www.roborealm.com/tutorial/Obs... . I got the edge detection image but I don't know how to coding the side fill from bottom.
What about a watershed on each column from the bottom? Then do the erosion...
okay. if I do a watershed, how to write the 'for loop' coding which start from the bottom. I have no idea..
Hmm they provide the actual code at the bottom of the post. Why not try to translate their approach 1:1 to OpenCV functions?