Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Conver ofImage to ofxCvColorImage?

$
0
0

@thedofl wrote:

See an attached screenshot. I made ofImage(left) from ofFbo and converted to ofxCvColorImage(right); What's wrong with this converting?

fbo.begin();
ofClear(0, 0, 0, 255);
.......drawing somthing
fbo.end();

fbo.readToPixels(pixels);
image.setFromPixels(pixels);
image.update();
image.draw(0, 0);


colorImg.setFromPixels(image.getPixels());
colorImg.draw(100, 0);

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles