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

Method _get_threshold

monai/transforms/intensity/array.py:2741–2745  ·  view source on GitHub ↗
(self, image, mode)

Source from the content-addressed store, hash-verified

2739 )
2740
2741 def _get_threshold(self, image, mode):
2742 threshold = self.thresholds.get(mode)
2743 if callable(threshold):
2744 return threshold(image)
2745 return threshold
2746
2747 def __call__(self, image: NdarrayOrTensor):
2748 image = convert_to_tensor(image, track_meta=get_track_meta())

Callers 1

__call__Method · 0.95

Calls 1

getMethod · 0.80

Tested by

no test coverage detected