I want to have the descriptor for keypoints with color information. so, i want to use "OpponentColorDescriptorExtractor" as mentioned here:
I am using the following code but i am getting an error:
The following code is working:
SiftDescriptorExtractor detector;
Ptr<DescriptorExtractor> oppDescExtractor;
OpponentColorDescriptorExtractor opponentDescExtractor(oppDescExtractor);
The error is:
OpenCV Error: Assertion failed (!descriptorExtractor.empty()) in OpponentColorDescriptorExtractor,
So, how should i declare "OpponentColorDescriptorExtractor" ?