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);
我该如何做相反的事情?
请帮忙!
无符号字符 *入口点;...图像->图像数据=入口点;
确保更新:image->widthStep、image->width、image->height、image->nChannels 等。