'for loop' function for side fill binary image from bottom to top. [closed]

asked 2015-11-20 02:33:35 -0600

dalilamahirah gravatar image

updated 2015-11-20 02:55:50 -0600

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 : image description

I'm using python 2.7.3 and opencv 2.4.9

Refer to link text

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by sturkmen
close date 2020-10-23 10:01:53.049356

Comments

watershed is the function you are looking for? (but first do that segmentation, for not going the wrong way)

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-11-20 03:54:09 -0600 )edit

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.

dalilamahirah gravatar imagedalilamahirah ( 2015-11-20 04:09:38 -0600 )edit

What about a watershed on each column from the bottom? Then do the erosion...

thdrksdfthmn gravatar imagethdrksdfthmn ( 2015-11-20 06:17:56 -0600 )edit

okay. if I do a watershed, how to write the 'for loop' coding which start from the bottom. I have no idea..

dalilamahirah gravatar imagedalilamahirah ( 2015-11-20 08:11:48 -0600 )edit

Hmm they provide the actual code at the bottom of the post. Why not try to translate their approach 1:1 to OpenCV functions?

StevenPuttemans gravatar imageStevenPuttemans ( 2015-11-23 08:25:56 -0600 )edit