Hi everyone !
The Tutorial has indeed a mistake.
Code:
ip_pMatrixMaximumAlgorithm_Matrix->setDimensionCount(3);
Is totally irrelevant. This line should not be present... I added it to test the dimension verification in the Algorithm, and forgot to remove it when writing the tutorial on the website. My fault, sorry.
Quote:
If I leave dimensions to 3 then the check above prevents the algorithm from doing any real work.
If I set dimensions to 2 then check is OK, but it terminates with the above error.
Indeed, happens to me also.
When you re-set the dimension count into a matrix, it gets re-initialized (buffer deleted, resized, etc.).
Simply delete the line:Code:
if(m_oSignalDecoder.isHeaderReceived())
{
ip_pMatrixMaximumAlgorithm_Matrix->setDimensionCount(3);
if(!m_pMatrixMaximumAlgorithm->process(OVP_Algorithm_MatrixMaximum_InputTriggerId_Initialize))
{
return false;
}
m_oSignalEncoder.encodeHeader(0);
l_rDynamicBoxContext.markOutputAsReadyToSend(0, l_rDynamicBoxContext.getInputChunkStartTime(0, i),
l_rDynamicBoxContext.getInputChunkEndTime(0, i));
}
And it should be ok.
thank you for bringing this to our attention !
If you find another mistake in the tutorials or documentation, please tell us

Laurent-
_________________
Follow us on twitter >>
openvibebciCheckout my (old) blog for some OpenViBE tips & tricks :
here !