Advertisement
LightningIsMyName

Edge walking in 8 connectivity

Jul 8th, 2011
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. Definition: 8-connectivity
  2. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3. A neighbour can be on any one of the 8 adjacent pixels (and not only on the 4
  4. neighbours on the left/top/right/bottom)
  5.  
  6. My question is whether following observation is right?
  7.  
  8. Observation
  9. ~~~~~~~~~~~~
  10. When walking around the edges of a white area, in 8-connectivity, then a pixel
  11. would be repeated twice, only in the following cases:
  12. 1. It's left and right neighbours are both black
  13. 2. It's top and bottom neighbours are both black
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement