error: CvANN_MLP does not name a type

error: CvANN_MLP does not name a type

我正在 opencv-3.1 中编译我的程序,但出现以下错误

error: `CvANN_MLP` does not name a type

程序在 opencv-2.4 中正确编译。

我无法在任何 the opencv-3.1 个头文件中找到 CvANN_MLP 个词。

谁能告诉我问题出在哪里?

根据 Upgrade guide,它在 3.0 中从 CvANN_MLP 更改为 cv::ml::ANN_MLP