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

Function resize_by_hw

python/singa/image_tool.py:142–145  ·  view source on GitHub ↗

Resize the image to be the given width and height

(img, size)

Source from the content-addressed store, hash-verified

140
141
142def resize_by_hw(img, size):
143 '''Resize the image to be the given width and height'''
144 new_img = img.resize((size[1], size[0]))
145 return new_img
146
147
148def color_cast(img, offset):

Callers 1

resize_by_hw_listMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected