MCPcopy Create free account
hub / github.com/apache/singa / rotate_by_range

Method rotate_by_range

python/singa/image_tool.py:341–348  ·  view source on GitHub ↗

Args: rng: a tuple (begin,end) in degree, include begin, exclude end inplace: inplace imgs or not ( return new_imgs)

(self, rng, inplace=True)

Source from the content-addressed store, hash-verified

339 return new_imgs
340
341 def rotate_by_range(self, rng, inplace=True):
342 '''
343 Args:
344 rng: a tuple (begin,end) in degree, include begin, exclude end
345 inplace: inplace imgs or not ( return new_imgs)
346 '''
347 angle_list = list(range(rng[0], rng[1]))
348 return self.rotate_by_list(angle_list, 1, inplace)
349
350 def rotate_by_list(self, angle_list, num_case=1, inplace=True):
351 '''

Callers

nothing calls this directly

Calls 1

rotate_by_listMethod · 0.95

Tested by

no test coverage detected