dlpy.images.ImageTable.random_mutations

ImageTable.random_mutations(color_jitter=True, color_shift=True, darken=False, horizontal_flip=True, invert_pixels=False, lighten=False, pyramid_down=False, pyramid_up=False, rotate_left=False, rotate_right=False, sharpen=False, vertical_flip=True, inplace=True, random_ratio=None)

Generate random mutations from the images in the ImageTable

Parameters
color_jitterbool, optional

Specifies whether to apply color jittering to an input image.

color_shiftbool, optional

Specifies whether to randomly change pixel intensity values of an input image.

darkenbool, optional

Specifies whether to darken the input image.

horizontal_flipbool, optional

Specifies whether to flip the input image horizontally.

invert_pixelsbool, optional

Specifies whether to invert all pixels in the input image.

lightenbool, optional

Specifies whether to lighten the input image.

pyramid_downbool, optional

Specifies whether to downsample and then blur the input image.

pyramid_upbool, optional

Specifies whether to upsample and then blur the input image.

rotate_leftbool, optional

Specifies whether to rotate the input image to the left.

rotate_rightbool, optional

Specifies whether to rotate the input image to the right.

sharpenbool, optional

Specifies whether to sharpen the input image.

vertical_flipbool, optional

Specifies whether to vertically flip the input image.

inplacebool, optional

Specifies if the input table will be used as the resulting table or not. Default : True

random_ratiodouble, optional

Specifies the ratio of the randomness. The smaller value would yield less number of images in the resulting table.

Returns
——-
:class:`ImageTable`

If inplace=True

None

If inplace=False