Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy empty image

import numpy as np
img = np.zeros([100,100,3],dtype=np.uint8)
img.fill(255) # or img[:] = 255

# from https://stackoverflow.com/questions/10465747/how-to-create-a-white-image-in-python/10470485
 
PREVIOUS NEXT
Tagged: #numpy #empty #image
ADD COMMENT
Topic
Name
6+9 =