0
我使用ofxPS3EyeGrabber
来获得两台同时工作的相机。我已经有两个图像,但现在我想用ofxOpenCv
对他们进行blob拘留。 现在我需要从ofTexture
获得ofxCvGrayscaleImage
。这里是我有:ofxCvGrayscale图像来自素材
if (videoGrabbers[i]->isFrameNew())
{
videoTextures[i].loadData(videoGrabbers[i]->getPixelsRef());
}
我需要的是这样的:
grayImg.setFromPixels(videoTextures[i]->getPixelsRef());
但那里有在ofTexture没有getPixelsRef()
。 谢谢!