想将python keras训练的模型部署到c++中实现加速但是不太熟悉c++,可以请问下在c中有什么方法实现类似mnist数据集这种np.reshape的方法吗,代码片段如下
```python
x = cv2.resize(x, (width, height))
x = x.reshape(1, width, height, 1)
x = x.astype('float32')
x /= 255
model.predict()
print(np.argmax)
```)
大概是reshape成为一个(-1,28,28,1)的图像矩阵后输入并推理