<分区>
所以我正在查找有关 2D Haar 小波变换的代码。还有这个 if 语句让我感到困惑。
部分代码如下所示:
unsigned char indexMask[4]; // the '4' here supposed to be a variable but I'm going to keep it simple here
for (int k = 0; k < 4; k++) {
indexMask[k] = 0;
}
for (int j = 1; j <= 5; j+=2) {
if (indexMask[j/2]) {
//some codes here
}
}
我的困惑是,这里的 if 语句检查什么?这是我第一次看到以这种方式构造的 if 语句,所以我有点困惑。 非常感谢