neodroidvision.utilities.torch_utilities.transforms.blocky

Created on 5/5/22

Classes

BlockyMask([mode, color, max_size])

Randomly blocks out parts of an image Select mode from constant or rgb (random RGB values) Color is relevant in constant mode.

RandomBlock([mode, color, max_size])

Randomly blocks out parts of an image Select mode from constant or rgb (random RGB values) Color is relevant in constant mode.

RandomImageBlocking(root_dir[, apply, ...])

Inserts random .png images on top of the input image Expects RGBA images, but will use RGB images without warning