public void Reset() { mAcc32.SetTo(0.0f); mMask.SetTo(1); mFrameIter = 0; mCount16.SetTo(0); }
public PreProcessDepthMap_Variance(int width, int height) { sum = new FloatImage(width, height); sum.SetTo(0); sumSquare = new FloatImage(width, height); sumSquare.SetTo(0); n = new ShortImage(width, height); n.SetTo(0); }
public PreProcessDepthMap_Conservative(int width, int height, int numFrames, float validDelta) { mAcc32 = new FloatImage(width, height); mMask = new ByteImage(width, height); mMask.SetTo(1); mCount16 = new ShortImage(width, height); mCount16.SetTo(0); mValidDelta = validDelta; if (numFrames < 1 || numFrames >= 655536) { throw new System.ArgumentException("PreProcessDepthMap numFrames must be >= 1 && < 655536"); } mNumFrames = numFrames; mFrameIter = 0; }
public void Reset() { sum.SetTo(0); sumSquare.SetTo(0); n.SetTo(0); }