Make ofxGui controls for cv::Algorithm
C++ Makefile
Latest commit 93a7095 Sep 11, 2015 @asus4 Fix
Permalink
Failed to load latest commit information.
example Remove unused. Sep 11, 2015
src Fix Sep 11, 2015
.gitignore Initial commit Sep 11, 2015
LICENSE Initial commit Sep 11, 2015
README.md Remove unused. Sep 11, 2015

README.md

ofxAlgorithmParameterGroup

Make ofxGui controls for cv::Algorithm

class ofApp : public ofBaseApp {
    // ....
    ofxPanel gui;
    ofxAlgorithmParameterGroup parameters;
};

void ofApp::setup() {
    // Any cv::Algorithm
    cv::Ptr<cv::FeatureDetector> detector = FeatureDetector::create("ORB");
    parameters.setAlgorithm(detector);

    cv::BackgroundSubtractorMOG2 mog2;
    parameters.setAlgorithm(&mog2);

    gui.setup();
    gui.add(parameters);
}

Require

  • openFrameworks v0.9.0RC1 or more
  • ofxGui
  • ofxCv or ofxOpenCv