projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42ac312
)
proper initialization for ccimpl in bool CascadeClassifier::read(const FileNode
author
berak
<px1704@web.de>
Sat, 8 Feb 2014 13:42:09 +0000
(14:42 +0100)
committer
berak
<px1704@web.de>
Sat, 8 Feb 2014 13:42:09 +0000
(14:42 +0100)
modules/objdetect/src/cascadedetect.cpp
patch
|
blob
|
history
diff --git
a/modules/objdetect/src/cascadedetect.cpp
b/modules/objdetect/src/cascadedetect.cpp
index
ef9d21e
..
68b923e
100644
(file)
--- a/
modules/objdetect/src/cascadedetect.cpp
+++ b/
modules/objdetect/src/cascadedetect.cpp
@@
-1557,7
+1557,7
@@
bool CascadeClassifier::load( const String& filename )
bool CascadeClassifier::read(const FileNode &root)
{
- Ptr<CascadeClassifierImpl> ccimpl;
+ Ptr<CascadeClassifierImpl> ccimpl
= makePtr<CascadeClassifierImpl>()
;
bool ok = ccimpl->read_(root);
if( ok )
cc = ccimpl.staticCast<BaseCascadeClassifier>();