import cv2
img = cv2.imread(filename[, flags]) img = cv2.resize(src, dsize[, dst[, fx[, fy[, interpolation]]]]) img = cv2.cvtColor(src, code[, dst[, dstCn]]) cv2.imshow(winname, mat) cv2.imwrite(filename, img[, params]) cv2.waitKey() cv2.destroyAllWindows()
b,g,r = cv2.split(img) merge_img = cv2.merge((b,g,r))
roi = img[100:300, 30:350, :]
matrix = cv2.getRotationMatrix2D((w / 2, h / 2), 45, 1) image = cv2.warpAffine(image, matrix, (w, h), flags=cv2.INTER_LINEAR, borderMode=cv2.BORDER_CONSTANT, borderValue=[255, 255, 255])
image = cv2.flip(src, flipCode[, dst])
median_Blur = cv2.medianBlur(noise_img, 3) mean_Blur = cv2.blur(noise_img, (3, 3)) gaussian_Blur = cv2.GaussianBlur(noise_img, (3, 3), 0)
cv2.copyMakeBorder(src, top, bottom, left, right, borderType=cv2.BORDER_CONSTANT, value=[255, 255, 255])
dst = cv2.equalizeHist(img) plt.hist(dst.ravel(), 256, [0, 256], color='r')
dst=cv2.bitwise_and(src1, src2[, dst[, mask]]) dst=cv2.bitwise_not(src[, dst[, mask]])
|