ncnn中图像预处理采用Mat类的substract_mean_normalize,该函数所做的操作为: (x - mean) * norm 和我们一般用python做的预处理操作 (x/255 - mean) / std 是有差别的。