| 76 | } |
| 77 | |
| 78 | Data Augmentations::VerticalFlip(Data mData, float probability) { |
| 79 | float rand_number = RandomNum<float>(0, 1); |
| 80 | if (rand_number <= probability) { |
| 81 | |
| 82 | cv::flip(mData.image, mData.image, 0); |
| 83 | cv::flip(mData.mask, mData.mask, 0); |
| 84 | |
| 85 | } |
| 86 | return mData; |
| 87 | } |
| 88 | |
| 89 | Data Augmentations::RandomScaleRotate(Data mData, float probability, float rotate_limit, float scale_limit, int interpolation, int boder_mode) { |
| 90 | float rand_number = RandomNum<float>(0, 1); |
nothing calls this directly
no outgoing calls
no test coverage detected