# draugr.opencv_utilities.transformation.cv2_transforms

Classes

`CV2Compose`(transforms) | Composes several augmentations together.
`Lambda`(lambd) | Applies a lambda as a transform.
`ConvertFromInts`() |
`SubtractMeans`(mean) | description
`CV2ToAbsoluteCoords`() |
`CV2ToPercentCoords`() |
`CV2Resize`([size]) | description
`CV2RandomSaturation`([lower, upper]) | description
`CV2RandomHue`([delta]) | description
`CV2RandomLightingNoise`() | description
`CV2ConvertColor`(current, transform) | description
`CV2RandomContrast`([lower, upper]) | description
`CV2RandomBrightness`([delta]) | description

`CV2RandomSampleCrop`()

Crop Arguments: img (Image): the image being input during training boxes (Tensor): the original bounding boxes in pt form labels (Tensor): the class labels for each bbox mode (float tuple): the min and max jaccard overlaps Return: (img, boxes, classes) img (Image): the cropped image boxes (Tensor): the adjusted bounding boxes in pt form labels (Tensor): the class labels for each bbox

`CV2Expand`(mean) | description
`CV2RandomMirror`() |
`CV2SwapChannels`(swaps) | Transforms a tensorized image by swapping the channels in the order specified in the swap tuple.
`CV2PhotometricDistort`() | description