SiftNodeType() : SiftFeatureDetectorNodeType() { // Just add one more output socket clearOutputs(); addOutput("Keypoints", ENodeFlowDataType::Keypoints); addOutput("Descriptors", ENodeFlowDataType::Array); setDescription("Extracts keypoints and computes descriptors using " "the Scale Invariant Feature Transform (SIFT) algorithm."); }
void SilenceRate::configure() { _thresholds = parameter("thresholds").toVectorReal(); clearOutputs(); for (int i=0; i<int(_thresholds.size()); ++i) { _outputs.push_back(new Source<Real>()); ostringstream outputName; outputName << "threshold_" << i; ostringstream thresholdIndex; thresholdIndex << i; declareOutput(*_outputs.back(), 1, outputName.str(), "the silence rate for threshold #" + thresholdIndex.str()); } }
~DynamicProperty() { clearInputs(); clearOutputs(); }
OutputSet::~OutputSet() { mCond.wakeAll(); //delete? may be deleted by vo's parent clearOutputs(); }