deepdisc.data_format.augment_image
Utilities for augmenting image data.
Attributes
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Crop an image to just the center portion |
|
Get the augmentation list |
|
Get the augmentation list |
|
Get the augmentation list |
|
Get the augmentation list |
Module Contents
- redden(image, rng_seed=None)[source]
- Parameters:
image (ndarray)
rng_seed (np.random.Generator) – Random state that is seeded. if none, use machine entropy.
- Return type:
augmented image
- gaussblur(image, rng_seed=None)[source]
- Parameters:
image (ndarray)
rng_seed (np.random.Generator) – Random state that is seeded. if none, use machine entropy.
- Return type:
augmented image
- multiband_gaussblur(image, rng_seed=None)[source]
- Parameters:
image (ndarray)
rng_seed (np.random.Generator) – Random state that is seeded. if none, use machine entropy.
- Return type:
augmented image
- addelementwise16(image, rng_seed=None)[source]
- Parameters:
image (ndarray)
rng_seed (np.random.Generator) – Random state that is seeded. if none, use machine entropy.
- Return type:
augmented image
- addelementwise8(image, rng_seed=None)[source]
- Parameters:
image (ndarray)
rng_seed (np.random.Generator) – Random state that is seeded. if none, use machine entropy.
- Return type:
augmented image
- addelementwise(image, rng_seed=None)[source]
- Parameters:
image (ndarray)
rng_seed (np.random.Generator) – Random state that is seeded. if none, use machine entropy.
- Return type:
augmented image
- centercrop(image)[source]
Crop an image to just the center portion
- Parameters:
image (ndarray)
- Return type:
cropped image
- train_augs(image)[source]
Get the augmentation list
- Parameters:
image (image) – The image to be augmented
- Returns:
augs – The list of augs for training. Set to RandomRotation, RandomFlip, RandomCrop
- Return type:
detectron_addons.KRandomAugmentationList
- dc2_train_augs(image)[source]
Get the augmentation list
- Parameters:
image (image) – The image to be augmented
- Returns:
augs – The list of augs for training. Set to RandomRotation, RandomFlip, RandomCrop
- Return type:
detectron_addons.KRandomAugmentationList