mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53: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:
@@ -56,7 +56,7 @@ CV_INIT_ALGORITHM(EM, "StatModel.EM",
|
||||
|
||||
bool initModule_ml(void)
|
||||
{
|
||||
Ptr<Algorithm> em = createEM_hidden();
|
||||
Ptr<Algorithm> em = createEM_ptr_hidden();
|
||||
return em->info() != 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user