XY Flip
XY flip transform.
XYFlip
Bases: Transform
Flip image along X and Y axis, one at a time.
This transform randomly flips one of the last two axes.
This transform expects C(Z)YX dimensions.
Attributes:
| Name | Type | Description |
|---|---|---|
axis_indices |
List[int]
|
Indices of the axes that can be flipped. |
rng |
Generator
|
Random number generator. |
p |
float
|
Probability of applying the transform. |
seed |
Optional[int]
|
Random seed. |
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
flip_x
|
bool
|
Whether to flip along the X axis, by default True. |
True
|
flip_y
|
bool
|
Whether to flip along the Y axis, by default True. |
True
|
p
|
float
|
Probability of applying the transform, by default 0.5. |
0.5
|
seed
|
Optional[int]
|
Random seed, by default None. |
None
|