MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / _flip_template

Method _flip_template

monai/utils/ordering.py:130–135  ·  view source on GitHub ↗
(self, template: np.ndarray)

Source from the content-addressed store, hash-verified

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:

Callers 1

_transform_templateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected