Exemple #1
0
// return const 2D signal made from a slice of the 3D data in place. 
const MLSignal MLSignal::getFrame(int i) const
{
	// only valid for 3D signals
	assert(mDepthBits > 1);
	
	// use slice constructor as return value.
	return MLSignal(this, i);
}
void BoxFilter2D::setDims(int w, int h) 
{
	for(int i=0; i<mDelay.size(); ++i)
	{
		mDelay[i] = MLSignal(w, h);
	}
	
	mAccum.setDims(w, h);
	mDelayIdx = 0;
}
Exemple #3
0
// helper functions
MLSignal MLSignal::copyWithLoopAtEnd(const MLSignal& src, int loopLength)
{
	return MLSignal(src, kLoopType1DEnd, loopLength);
}