(self, img)
| 99 | self.sigma = sigma |
| 100 | |
| 101 | def get_transform(self, img): |
| 102 | v = self.rng.rand(self.K, 2).astype('float32') - 0.5 |
| 103 | v = v * 2 * self.randrange |
| 104 | return TransformFactory(name=str(self), apply_image=lambda img: self._augment(img, v)) |
| 105 | |
| 106 | def _augment(self, img, v): |
| 107 | grid = self.grid + np.dot(self.gws, v) |
nothing calls this directly
no test coverage detected