@Guilherme_Santos wrote:
Hi. I’m trying to use ofxOpenCv and ofxKinectV2 together but I can’t even set the pixel information from the kinect to an ofxCvColorImage properly.
My code is super simple:
void ofApp::setup(){
kinect.open();
color.allocate(960, 540);
}//--------------------------------------------------------------
void ofApp::update(){
kinect.update();
if (kinect.isFrameNew()) {
color.setFromPixels(kinect.getPixels());
}}
//--------------------------------------------------------------
void ofApp::draw(){
color.draw(0, 0, 960, 540);
}I should a result like an rgb from the camera, which is what I get when I use ofImage or ofTexture, but ofxCvColorImage results in this instead.
Posts: 5
Participants: 2
