【发布时间】:2019-08-29 07:55:41
【问题描述】:
所以我正在查找有关 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 语句,所以我有点困惑。 非常感谢
【问题讨论】:
标签: c++