private void Calculate(Mat[] arrays, bool accumulate, CvArray <Byte> mask) { Debug.Assert(arrays.Length == _binSizes.Length, "Incompatible Dimension"); int[] channels = new int[arrays.Length]; for (int i = 0; i < arrays.Length; i++) { channels[i] = i; } using (VectorOfMat vm = new VectorOfMat(arrays)) { CvInvoke.CalcHist(vm, channels, mask == null ? null : mask.Mat, this, _binSizes, GetRangeAsFloatVec(), accumulate); } }
private void Calculate(Mat[] arrays, bool accumulate, CvArray <Byte> mask) { #if !(NETFX_CORE || (UNITY_ANDROID || UNITY_IPHONE || UNITY_STANDALONE || UNITY_METRO)) Debug.Assert(arrays.Length == _binSizes.Length, Properties.StringTable.IncompatibleDimension); #endif int[] channels = new int[arrays.Length]; for (int i = 0; i < arrays.Length; i++) { channels[i] = i; } using (VectorOfMat vm = new VectorOfMat(arrays)) { CvInvoke.CalcHist(vm, channels, mask == null ? null : mask.Mat, this, _binSizes, GetRangeAsFloatVec(), accumulate); } }