Create a transform that inverts the geometric changes (i.e. change of coordinates) of this transform. Note that the inverse is meant for geometric changes only. The inverse of photometric transforms that do not change coordinates is defined to be a no-op, ev
(self)
| 201 | setattr(cls, "apply_" + data_type, func) |
| 202 | |
| 203 | def inverse(self) -> "Transform": |
| 204 | """ |
| 205 | Create a transform that inverts the geometric changes (i.e. change of |
| 206 | coordinates) of this transform. |
| 207 | |
| 208 | Note that the inverse is meant for geometric changes only. |
| 209 | The inverse of photometric transforms that do not change coordinates |
| 210 | is defined to be a no-op, even if they may be invertible. |
| 211 | |
| 212 | Returns: |
| 213 | Transform: |
| 214 | """ |
| 215 | raise NotImplementedError |
| 216 | |
| 217 | def __repr__(self): |
| 218 | """ |