OpenCV函数

文章目录
  • cv2.imread(filename, flag)s
  • cv2.imread(filename, flag)
    flag控制读入图片的格式
    CV_LOAD_IMAGE_ANYDEPTH - If set, return 16-bit/32-bit image when the input has the corresponding depth, otherwise convert it to 8-bit.
    CV_LOAD_IMAGE_COLOR - If set, always convert image to the color one
    CV_LOAD_IMAGE_GRAYSCALE - If set, always convert image to the grayscale one
    0 Return a 3-channel color image.
    In the current implementation the alpha channel, if any, is stripped from the output image. Use negative value if you need the alpha channel.
    =0 Return a grayscale image.
    <0 Return the loaded image as is (with alpha channel)
  • cv2.imwrite()
  • cv2.finHomogrphy()
  • cv2.resize()
  • cv2.polylines()
  • cv2.getRotationMatrix2D()
  • cv2.warpAffine()