Skip to content

asus4/ofxAlgorithmParameterGroup

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 

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

Releases

No releases published

Packages

No packages published