MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / apply_image

Method apply_image

tensorpack/dataflow/imgaug/transform.py:141–142  ·  view source on GitHub ↗
(self, img)

Source from the content-addressed store, hash-verified

139 self._init(locals())
140
141 def apply_image(self, img):
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

Callers 2

apply_imageMethod · 0.45
transform.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected