I want to use FREAK(an opencv key-point descriptor library),
generally speaking,
a source file which exist in opencv or vc++,
on the other hand i need to include the same header file to use the other functions, and when i use that source file i get "ambiguity error" how can i select to use that function from my current directory instead of interior function?
thank you so much for your help
This is exactly what namespaces are for. If you make sure your class is in a different namespace from the opencv class, you can specify which one to use when it's called.
If so, you can't instantiate it. That's the whole point of abstract classes - you can't instantiate them. You have to instantiate a subclass that implements all the virtual methods declared in the abstract class.
To be more precise, i used to use "cv::FREAK" as normal.
in my main, i had:
main()
{
cv::FREAK var;
var.compute(in, out);
}
and it worked,
but now i have "mycv::FREAK var;" instead.
in fact, i want to trace that code(it's a open-source library and at the same time exist in interior functions), so i download it and change my code a bit to do that,
what's the logical strategy to do it?
thank you so much for your help
actually, i haven't written this code,
it's an open source library which exist in opencv library ,
now i download the code and want to use this version instead of that built in version.