Augmentum package¶
Augmentum.Augmentum module¶
- Augmentum.Augmentum.augment_image(image_matrix)¶
Given a binary image (list of lists) returns an image dataset (list of images) by appling image augmentation techniques
- Parameters
matrix – matrix representing the grayscale image
- Returns
image dataset
- Return type
list of lists of lists
- Augmentum.Augmentum.process_image(ROWS=512, COLS=512)¶
Converts the .raw file in ./data folder to list of lists
- Parameters
ROWS – number of rows in grayscale image (fixed)
COLS – number of columns in grayscale image (fixed)
- Returns
matrix representing the grayscale image
- Return type
list of lists
- Augmentum.Augmentum.reflect(matrix)¶
Given a binary image (list of lists) reflects it by its vertical central axis
- Parameters
matrix – matrix representing the grayscale image
- Returns
grayscale image reflected by its vertical central axis
- Return type
list of lists
- Augmentum.Augmentum.right_shift(matrix, x)¶
Given a binary image (list of lists) shifts it to the right by x units (fills left values with 0)
- Parameters
matrix – matrix representing the grayscale image
x – unit for right shift
- Returns
grayscale image shifted right by x units
- Return type
list of lists
- Augmentum.Augmentum.rotate(matrix)¶
Given a binary image (list of lists) rotates it by 90 degrees (clockwise).
- Parameters
matrix – matrix representing the grayscale image
- Returns
grayscale image rotated by 90 degreees (clockwise)
- Return type
list of lists
- Augmentum.Augmentum.upsample_scaling(matrix)¶
Given a binary image (list of lists) scales the size of it by a factor of 2 by upsampling
- Parameters
matrix – matrix representing the grayscale image
- Returns
grayscale image scaled by a factor of 2
- Return type
list of lists