mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Added to CV_INIT_ALGORITHM a Ptr creation function, for convenience.
Also changed the static functions to inline, to stop GCC complaining about unused functions.
This commit is contained in:
@@ -58,8 +58,8 @@ CV_INIT_ALGORITHM(SCascade, "CascadeDetector.SCascade",
|
||||
|
||||
bool initModule_softcascade(void)
|
||||
{
|
||||
Ptr<Algorithm> sc = createSCascade_hidden();
|
||||
Ptr<Algorithm> sc1 = createDetector_hidden();
|
||||
Ptr<Algorithm> sc = createSCascade_ptr_hidden();
|
||||
Ptr<Algorithm> sc1 = createDetector_ptr_hidden();
|
||||
return (sc1->info() != 0) && (sc->info() != 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user