bool IsFilteredPixel(Byte[, ,] playerMask, Byte[, ,] skinMask, int x, int y, int depth) { return (skinMask == null || skinMask[y, x, 0] > 0) && (playerMask == null || playerMask[y, x, 0] > 0) && depth > HandInputParams.MinDepth; }