Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- flag = False
- while col < lastcol:
- if col contains pixel:
- if flag = False
- flag = True
- start = col
- if col doesn't contain pixel:
- if flag = True
- flag = False
- end = col
- for r in range(rows)
- write to output pixels - start to end plus padding
- col += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement