Mentions légales du service

Skip to content
Snippets Groups Projects

Filter Bank CSP bci example scenarios

Merged MONSEIGNE Thibaut requested to merge wip-tmonseigne-fbcsp-scenarios into master
41 files
+ 22513
58
Compare changes
  • Side-by-side
  • Inline
Files
41
@@ -8,7 +8,6 @@ using namespace /*OpenViBE::Plugins::*/@@Namespace@@;
bool CBoxAlgorithm@@ClassName@@::initialize()
{
@@AlgorithmInitialisation@@
@@AlgorithmInitialisationReferenceTargets@@
// If you need to retrieve setting values, use the FSettingValueAutoCast function.
// For example :
// - CString setting at index 0 in the setting list :
@@ -72,7 +71,7 @@ bool CBoxAlgorithm@@ClassName@@::process()
// the static box context describes the box inputs, outputs, settings structures
const IBox& staticBoxContext=this->getStaticBoxContext();
// the dynamic box context describes the current state of the box inputs and outputs (i.e. the chunks)
IBoxIO& boxContext=this->getDynamicBoxContext();
IBoxIO& boxContext = this->getDynamicBoxContext();
// here is some useful functions:
// - To get input/output/setting count:
@@ -90,7 +89,7 @@ bool CBoxAlgorithm@@ClassName@@::process()
// This example only iterate over the first input of type Signal, and output a modified Signal.
// thus, the box uses 1 decoder (m_signalDecoder) and 1 encoder (m_signalEncoder)
/*
IBoxIO& boxContext=this->getDynamicBoxContext();
IBoxIO& boxContext = this->getDynamicBoxContext();
//iterate over all chunk on input 0
for (size_t i = 0; i < boxContext.getInputChunkCount(0); ++i)
Loading