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

Method _apply_gaussian

monai/apps/nuclick/transforms.py:516–520  ·  view source on GitHub ↗
(self, t)

Source from the content-addressed store, hash-verified

514 return torch.stack(patches)
515
516 def _apply_gaussian(self, t):
517 if not self.gaussian or torch.count_nonzero(t) == 0:
518 return t
519 x = GaussianFilter(spatial_dims=2, truncated=self.truncated, sigma=self.sigma)(t.unsqueeze(0).unsqueeze(0))
520 return x.squeeze(0).squeeze(0)
521
522
523class PostFilterLabeld(MapTransform):

Callers 1

Calls 1

GaussianFilterClass · 0.90

Tested by

no test coverage detected