oa::image::random_flip
Randomly mirror input horizontally and/or vertically. p_horizontal and p_vertical are independent probabilities in [0, 1]. Both coin draws are derived from seed, so the same recipe flips the same way on every run. Errors Returns an error when either probability is outside [0, 1] or non-finite, or the flip fails.
Function Documentation
Randomly mirror input horizontally and/or vertically. p_horizontal and p_vertical are independent probabilities in [0, 1]. Both coin draws are derived from seed, so the same recipe flips the same way on every run. Errors Returns an error when either probability is outside [0, 1] or non-finite, or the flip fails.