OpenCV对一个二维矩阵进行填充一个多边形
OpenCV对一个二维矩阵进行填充一个多边形
roiMask01 = np.zeros((self.imgsize[1], self.imgsize[0]))
roiMask01 = cv.fillPoly(roiMask01, line, color)
roiMask01Assis
roiMask01 = np.zeros((self.imgsize[1], self.imgsize[0]), np.uint8)
cv.fillConvexPoly(roiMask01, line, (255, 255))
cv.imshow("window_name", roiMask01), cv.waitKey(0)
enratio