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

Method _pre_transform

monai/data/dataset.py:507–520  ·  view source on GitHub ↗

Process the data from original state up to the N element. Args: item_transformed: The data to be transformed Returns: the transformed element up to the N transform object

(self, item_transformed)

Source from the content-addressed store, hash-verified

505 self.cache_n_trans = cache_n_trans
506
507 def _pre_transform(self, item_transformed):
508 """
509 Process the data from original state up to the N element.
510
511 Args:
512 item_transformed: The data to be transformed
513
514 Returns:
515 the transformed element up to the N transform object
516 """
517 item_transformed = self.transform(item_transformed, end=self.cache_n_trans, threading=True)
518
519 reset_ops_id(item_transformed)
520 return item_transformed
521
522 def _post_transform(self, item_transformed):
523 """

Callers

nothing calls this directly

Calls 1

reset_ops_idFunction · 0.90

Tested by

no test coverage detected