(self, template: np.ndarray)
| 128 | return template |
| 129 | |
| 130 | def _flip_template(self, template: np.ndarray) -> np.ndarray: |
| 131 | if self.reflected_spatial_dims is not None: |
| 132 | for axis, to_reflect in enumerate(self.reflected_spatial_dims): |
| 133 | template = np.flip(template, axis=axis) if to_reflect else template |
| 134 | |
| 135 | return template |
| 136 | |
| 137 | def _rot90_template(self, template: np.ndarray) -> np.ndarray: |
| 138 | if self.rot90_axes is not None: |