ocrd_cis/ocropy/ocrolib/morph.py
def remove_marked(image,markers):
    """Given a marker image, remove all the connected components
    that overlap markers."""
    marked = keep_marked(image,markers)
    return image*(marked==0)
Given a marker image, remove all the connected components
    that overlap markers.
Given a marker image, remove all the connected components
that overlap markers.
Given a marker image remove all the connected components that overlap markers .
def remove_marked(image,markers):
    marked = keep_marked(image,markers)
    return image*(marked==0)
def remove_marked ( image , markers ) : marked = keep_marked ( image , markers ) return image * ( marked == 0 )
Given a marker image, remove all the connected components
that overlap markers.
Given a marker image remove all the connected components that overlap markers .
"""Given a marker image, remove all the connected components
    that overlap markers."""
image
markers