I'm new to OpenCV and I want to do some edge detection with the help of a structured forest. I'm using this approach and it's working fine with a couple of pretrained models I found online. Now I want to train my own model with an own set of pictures and the corresponding ground truth data . The process of training is described in a tutorial, but I don't know where to find a feature extraction code which meets the requirements.
Thank you in advance!