最近在研究P. Dollár的《Structured forests for fast edge detection》。在MATLAB中使用其提供的工具包能够得到很好的边缘提取效果,但是在使用OPENCV中的函数时,关于模型的训练函数:
Ptrcv::StructuredEdgeDetection createStructuredEdgeDetection(String model)
Parameters: model – model file name
中的模型不知道如何获得,使用MATLAB中的模型并不能够进行训练。目前网上找到了一个模型效果并不好,求大神指导如何将MATLAB中使用的BSD500应用于OPENCV的训练中。
可参考:https://stackoverflow.com/questions/33317152/model-file-for-opencvs-structured-edge-detector
以上链接为正解