#NEWLINE# def get_objects_edges( objects ) : #NEWLINE# #INDENT# m = objects [ 0 ] . get_mask ( ) #NEWLINE# m [ : ] = False #NEWLINE# for o in objects : #NEWLINE# #INDENT# m += o . get_mask ( ) #NEWLINE# #UNINDENT# md = ndimage . binary_dilation ( m ) #NEWLINE# return ( objects - m )