[Pythonの+ OpenCVの学習ログ]幅と高さの画像を取得します

rows = outImg.shape[0]
    cols = outImg.shape[1]
    for i in range(rows):#height(rows) of image
        for j in range(cols):#width(colums) of image
            outImg[i, j] = abs(255 - outImg[i, j])

おすすめ

転載: blog.csdn.net/weixin_39589455/article/details/88556091