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.
このコード スニペットを使用して、IplImage データを動的配列にキャストしました。
unsigned char *data = reinterpret_cast <unsigned char*> (image->imageData);
どうすれば逆にできますか?
助けてください!
unsigned char *エントリポイント; ... image->imageData = エントリポイント;
image->widthStep、image->width、image->height、image->nChannels などを必ず更新してください。