Ask Your Question
0

Where to find the feature extraction code for the training of a structured forest?

asked 2017-09-03 11:25:59 -0500

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!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2017-09-03 23:45:53 -0500

berak gravatar image

updated 2017-09-04 00:45:59 -0500

you mean, the // here your feature extraction code, part ?

imho, 7. is only relevant, IF you want to use your own feature generation.

(then you'd have to override the getFeatures() method, using similar code.)

if you just want to train a model with your data, use the builtin:

 cv::StructuredEdgeDetection pDollar = cv::createStructuredEdgeDetection( modelName);

(with the default RFFeatureGetter)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-09-03 11:25:59 -0500

Seen: 83 times

Last updated: Sep 04 '17