@property<EOL><INDENT>def as_contours(self):<DEDENT>
contours = dict()<EOL>for byte_value in self.__byte_values:<EOL><INDENT>if byte_value == <NUM_LIT:0>:<EOL><INDENT>continue<EOL><DEDENT>mask = (self.__array == byte_value) * <NUM_LIT:255><EOL>found_contours = find_contours(mask, <NUM_LIT>, fully_connected='<STR_LIT>') <EOL>contours[byte_value] = ContourSet(found_contours)<EOL><DEDENT>return contours<EOL>
A dictionary of lists of contours keyed by byte_value