OpenCV implements StructuredEdgeDetection based on the random forest based approach outlined in "Structured Forests for Fast Edge Detection" (2013) by P. Dollár and C. Zitnick. The authors have published an implementation for Matlab and there's also one for Python, both of which also contain a pretrained model based on the BSDS500 dataset.
The OpenCV implementation seems to be lacking a pretrained model and I'm also unable to uncover what format the only constructor it offers expects:
Ptr<cv::StructuredEdgeDetection> createStructuredEdgeDetection(String model)
The only available constructor
Parameters: model
The documentation also doesn't outline how to train the OpenCV implementation, so I'm left quite in the dark.
To recap, how to use the OpenCV implementation? Is a trained model available? If not, how to train one using OpenCV?