Table of Contents
ComposeTransforms Objects
class ComposeTransforms()
Outputs the composition of each transformation passed in transforms
Brightness Objects
class Brightness()
Outputs the Brightness of each pixel in the image
__call__
| __call__(img: Union[ImageType, np.ndarray]) -> np.ndarray
Arguments:
img
Union[Image, np.ndarray] - Either a PIL image or numpy array with int8 values
Returns:
np.ndarray
- Converted image.
Deleted Parameters:
pic
PIL Image or numpy.ndarray - Image to be converted to tensor.
Saturation Objects
class Saturation()
Summary Outputs the saturation of each pixel in the image
__call__
| __call__(img: Union[ImageType, np.ndarray]) -> np.ndarray
Arguments:
img
Union[Image, np.ndarray] - Either a PIL image or numpy array with int8 values
Returns:
np.ndarray
- (1,number_pixels) array for saturation values for the image
Resize Objects
class Resize()
Helper Transform to resize images.
Attributes:
size
TYPE - Description
__call__
| __call__(img: Union[ImageType, np.ndarray]) -> np.ndarray
Arguments:
img
Union[ImageType, np.ndarray] - Description
Returns:
np.ndarray
- Description
Hue Objects
class Hue()
__call__
| __call__(img: Union[ImageType, np.ndarray]) -> np.ndarray
Arguments:
img
Union[Image, np.ndarray] - Either a PIL image or numpy array with int8 values
Returns:
np.ndarray
- (1,number_pixels) array for hue values for the image
SimpleBlur Objects
class SimpleBlur()
Simple Blur Ammount computation based on variance of laplacian Overall metric of how blurry is the image. No overall scale.
__call__
| __call__(img: Union[ImageType, np.ndarray]) -> float
Arguments:
img
Union[Image, np.ndarray] - Either a PIL image or numpy array with int8 values
Returns:
float
- variance of laplacian of image.