MCPcopy Create free account
hub / github.com/MearaY/StegaPy / set_image_pixels

Method set_image_pixels

StegaPy/util/image_util.py:161–164  ·  view source on GitHub ↗

设置图像像素

(image, pixels)

Source from the content-addressed store, hash-verified

159
160 @staticmethod
161 def set_image_pixels(image, pixels):
162 """设置图像像素"""
163 pixels = np.clip(pixels, 0, 255)
164 return Image.fromarray(pixels.astype(np.uint8))
165
166 @staticmethod
167 def get_yuv_from_image(image):

Callers 3

get_diffMethod · 0.80
get_diffMethod · 0.80
get_diffMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected