Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy image processing

print('# of dims: ',img.ndim)     # dimension of an image
print('Img shape: ',img.shape)    # shape of an image
print('Dtype: ',img.dtype)
print(img[20, 20])                # pixel value at [R, G, B]
print(img[:, :, 2].min())         # min pixel value at channel B
Source by www.analyticsvidhya.com #
 
PREVIOUS NEXT
Tagged: #numpy #image #processing
ADD COMMENT
Topic
Name
2+7 =