Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
opencvc++コードをPythonに転送しようとしました。しかし、私は以下のこの行を変更する方法がわかりませんでした:
((uchar *)(img-> imageData + img-> widthStep * i))[j];
このように書くと:(img.imageData + img.widthStep * i)[j]
このエラーメッセージが発生します:'cv2.cv.iplimage'オブジェクトに属性'imageData'がありません
簡単だ。
img[i, j](B, G, R)atpixelのタプルを提供しますi, j.
img[i, j]
(B, G, R)
i, j.