本文整理汇总了C++中ofVideoGrabber::draw方法的典型用法代码示例。如果您正苦于以下问题:C++ ofVideoGrabber::draw方法的具体用法?C++ ofVideoGrabber::draw怎么用?C++ ofVideoGrabber::draw使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ofVideoGrabber
的用法示例。
在下文中一共展示了ofVideoGrabber::draw方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: draw
void draw() {
ofSetColor(255);
cam.draw(0, 0);
tracker.draw();
glPointSize(4);
ofSetColor(ofColor::red);
trackerDataSave.draw();
ofSetColor(ofColor::blue);
trackerDataLoad.draw();
}
示例2: draw
void draw() {
cam.draw(0, 0);
ofPushStyle();
ofNoFill();
ofSetLineWidth(2);
for(int i = 0; i < results.size(); i++) {
ofDrawRectangle(results[i]);
ofDrawBitmapStringHighlight(ofToString(i), results[i].getPosition() + ofPoint(-5,-5));
}
ofPopStyle();
ofDrawBitmapStringHighlight("press any key to track", 10,20);
}
示例3: draw
void draw() {
ofPushMatrix();
float screenWidth = config["screen"]["width"];
float screenHeight = config["screen"]["height"];
float camWidth = config["camera"]["width"];
float camHeight = config["camera"]["height"];
ofTranslate(screenWidth / 2, screenHeight / 2);
ofRotateZDeg(config["camera"]["rotate"]);
ofTranslate(-camWidth / 2, -camHeight / 2);
if(cam->isInitialized()) {
cam->draw(0,0);
}
clipping.draw(0, 0);
ofPopMatrix();
if(cam->isInitialized()) {
drawHistogram(cam->getPixels(), mouseY);
}
}
示例4: draw
//--------------------------------------------------------------
void testApp::draw(){
videoGrabber.draw(0, 200);
// make sure all OpenCL kernels have finished executing before drawing
openCL.finish();
// draw the OpenGL texture (which was mapped to the OpenCL image)
clImage[activeImageIndex].getTexture().draw(vidWidth, 200);
ofDrawBitmapString( " app FPS : " + ofToString(ofGetFrameRate(), 2)
+ "\n capture FPS : " + ofToString(captureFPS, 2)
+ "\n"
+ "\n doBlur (b) : " + (doBlur ? "X" : "")
+ "\n blurAmount (1-9) : " + ofToString(blurAmount)
+ "\n doFlipX (x) : " + (doFlipX ? "X" : "")
+ "\n doFlipY (y) : " + (doFlipY ? "X" : "")
+ "\n doGreyscale (g) : " + (doGreyscale ? "X" : "")
+ "\n doInvert (i) : " + (doInvert ? "X" : "")
+ "\n doThreshold (t) : " + (doThreshold ? "X" : "")
+ "\n threshLevel ([]) : " + ofToString(threshLevel, 2)
, 30, 30);
}
示例5: setTexture
//--------------------------------------------------------------
void VisualRingBuffer::setTexture(ofVideoGrabber grabber){
begin();
grabber.draw(0, 0, width, height);
end();
}