opencv基礎_2(圖像的掩膜操作)

1、獲取opencv圖像(Mat)指針。 (1)、Mat.ptr<uchar>(int i=0) 獲取像素矩陣的指針,索引i表示第幾行,從0開始計行數。 (2)、獲得當前行指針const uchar*  current= myImage.ptr<uchar>(row )。 (3)、獲取當前像素點Point(row, col)的像素值 Point(row, col) =current[col]。 2
相關文章
相關標籤/搜索