![175977113-5874a3f9-515b-42d3-a01f-73297934b912(2)](https://user-images.githubusercontent.com/681989/178302569-9feda32c-aaa9-4929-a285-6242fa777cc3.jpg)
Minor changes
- [`A.Rotate`](https://albumentations.ai/docs/api_reference/full_reference/#albumentations.augmentations.geometric.rotate.Rotate) and [`A.ShiftScaleRotate`](https://albumentations.ai/docs/api_reference/full_reference/#albumentations.augmentations.geometric.transforms.ShiftScaleRotate) now support new rotation method for bounding boxes, `ellipse`. (1203 by victor1cea)
- [`A.Rotate`](https://albumentations.ai/docs/api_reference/full_reference/#albumentations.augmentations.geometric.rotate.Rotate) now supports new argument `crop_border`. If set to True, the rotated image will be cropped as much as possible to eliminate pixel values at the edges that were not well defined after rotation. (1214 by bonlime)
- Tests that use multiprocessing now run much faster (1218 by Dipet)
- Improved type hints (1219 by Dipet )
- Fixed a deprecation warning in `match_histograms`. (1121 by BloodAxe)
Bugfixes
- [`A.CropNonEmptyMaskIfExists`](https://albumentations.ai/docs/api_reference/full_reference/#albumentations.augmentations.crops.transforms.CropNonEmptyMaskIfExists) modified the first element of `masks` in-place. Now, this behavior is fixed and [`A.CropNonEmptyMaskIfExists`](https://albumentations.ai/docs/api_reference/full_reference/#albumentations.augmentations.crops.transforms.CropNonEmptyMaskIfExists) doesn't do in-place modification of input masks. (1193 by ORippler).
- Albumentations now correctly serialized and desirealized `fill_value` and `mask_fill_value` parameters for [`A.GridDropout`](https://albumentations.ai/docs/api_reference/full_reference/#albumentations.augmentations.dropout.grid_dropout.GridDropout). (1191 by victor1cea)
- [`A.ColorJitter`](https://albumentations.ai/docs/api_reference/full_reference/#albumentations.augmentations.transforms.ColorJitter) now correctly works with [`A.ReplayCompose`](https://albumentations.ai/docs/examples/replay/). (#1199 by zakajd)
- Fixed incorrect behavior of [`A.ColorJitter`](https://albumentations.ai/docs/api_reference/full_reference/#albumentations.augmentations.transforms.ColorJitter) for `np.float32` input images when `contrast` is set to 0 (previously, all values were set to 0.5 instead of using the average value).. (1207 by Dipet)
- [`A.Rotate`](https://albumentations.ai/docs/api_reference/full_reference/#albumentations.augmentations.geometric.rotate.Rotate), [`A.Affine`](https://albumentations.ai/docs/api_reference/full_reference/#albumentations.augmentations.geometric.transforms.Affine) and [`A.ShiftScaleRotate`](https://albumentations.ai/docs/api_reference/full_reference/#albumentations.augmentations.geometric.transforms.ShiftScaleRotate) now do rotation in the same way. Fixed incorrect rotation angle for [`A.Affine`](https://albumentations.ai/docs/api_reference/full_reference/#albumentations.augmentations.geometric.transforms.Affine). [`A.Rotate`](https://albumentations.ai/docs/api_reference/full_reference/#albumentations.augmentations.geometric.rotate.Rotate) and [`A.ShiftScaleRotate`](https://albumentations.ai/docs/api_reference/full_reference/#albumentations.augmentations.geometric.transforms.ShiftScaleRotate) now correctly rotate the keypoints 90 degrees and don't leave black lines around the edges of the image. (1091 by Dipet )