【发布时间】:2014-02-05 22:13:29
【问题描述】:
我想做的事:
将 Nao Robot 相机图像的 ROI 转换为 OpenCV::Mat 格式。稍后我将使用这个 OpenCV::Mat
情况:
Nao SDK 以ALImage 的格式提供图像。可以convert the ALImage to OpenCV::Mat format,但我不需要所有的图像,只需要一个小的 ROI。尽管 ALImage 提供了自己的ROI,但使用它的方法并不是很有帮助:
int getNumOfROIs () const
const ROI* getROI (int index) const
void addROI (const ROI &rect)
void cleanROIs ()
void setEnableROIs (bool enable)
bool isROIEnabled () const
问题:
如何使用这些 ROI?
【问题讨论】: