Skip to content

Why not replace drawings_object.writeImage with flag color mapping? #7

@dogod621

Description

@dogod621

The code of drawings_object.writeImage is weird...

why not use:

def writeImage(image):
    """ store label data to colored image """
    plt.imshow(image, cmap=plt.get_cmap('flag'))
    

it is much simpler and without a fixed class types.
It works fine to me.
out_0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions