MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / apply_coords

Method apply_coords

tensorpack/dataflow/imgaug/transform.py:144–147  ·  view source on GitHub ↗
(self, coords)

Source from the content-addressed store, hash-verified

142 return img[self.y0:self.y0 + self.h, self.x0:self.x0 + self.w]
143
144 def apply_coords(self, coords):
145 coords[:, 0] -= self.x0
146 coords[:, 1] -= self.y0
147 return coords
148
149
150class WarpAffineTransform(Transform):

Callers 1

transform.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected