Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Main Repositories
otb
Commits
e5de6f2f
Commit
e5de6f2f
authored
Jul 13, 2018
by
Victor Poughon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WRG: add missing override in CV RTrees wrapper
parent
93dcabad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
Modules/Learning/Supervised/include/otbCvRTreesWrapper.h
Modules/Learning/Supervised/include/otbCvRTreesWrapper.h
+16
-16
No files found.
Modules/Learning/Supervised/include/otbCvRTreesWrapper.h
View file @
e5de6f2f
...
...
@@ -69,22 +69,22 @@ public:
#ifdef OTB_OPENCV_3
#define OTB_CV_WRAP_PROPERTY(type,name) \
virtual type get##name() const; \
virtual void set##name(type val);
virtual type get##name() const
override
; \
virtual void set##name(type val)
override
;
#define OTB_CV_WRAP_PROPERTY_REF(type,name) \
virtual type get##name() const; \
virtual void set##name(const type &val);
virtual type get##name() const
override
; \
virtual void set##name(const type &val)
override
;
#define OTB_CV_WRAP_CSTREF_GET(type, name) \
virtual const type& get##name() const;
virtual const type& get##name() const
override
;
// TODO : wrap all method used
virtual
int
getVarCount
()
const
;
virtual
int
getVarCount
()
const
override
;
virtual
bool
isTrained
()
const
;
virtual
bool
isTrained
()
const
override
;
virtual
bool
isClassifier
()
const
;
virtual
bool
isClassifier
()
const
override
;
OTB_CV_WRAP_PROPERTY
(
int
,
MaxCategories
)
OTB_CV_WRAP_PROPERTY
(
int
,
MaxDepth
)
...
...
@@ -104,21 +104,21 @@ public:
OTB_CV_WRAP_CSTREF_GET
(
std
::
vector
<
cv
::
ml
::
DTrees
::
Split
>
,
Splits
)
OTB_CV_WRAP_CSTREF_GET
(
std
::
vector
<
int
>
,
Subsets
)
virtual
cv
::
Mat
getVarImportance
()
const
;
virtual
cv
::
Mat
getVarImportance
()
const
override
;
virtual
cv
::
String
getDefaultName
()
const
;
virtual
cv
::
String
getDefaultName
()
const
override
;
virtual
void
read
(
const
cv
::
FileNode
&
fn
);
virtual
void
read
(
const
cv
::
FileNode
&
fn
)
override
;
virtual
void
write
(
cv
::
FileStorage
&
fs
)
const
;
virtual
void
write
(
cv
::
FileStorage
&
fs
)
const
override
;
virtual
void
save
(
const
cv
::
String
&
filename
)
const
;
virtual
void
save
(
const
cv
::
String
&
filename
)
const
override
;
virtual
bool
train
(
cv
::
InputArray
samples
,
int
layout
,
cv
::
InputArray
responses
);
virtual
bool
train
(
cv
::
InputArray
samples
,
int
layout
,
cv
::
InputArray
responses
)
override
;
virtual
bool
train
(
const
cv
::
Ptr
<
cv
::
ml
::
TrainData
>&
trainData
,
int
flags
=
0
);
virtual
bool
train
(
const
cv
::
Ptr
<
cv
::
ml
::
TrainData
>&
trainData
,
int
flags
=
0
)
override
;
virtual
float
predict
(
cv
::
InputArray
samples
,
cv
::
OutputArray
results
=
cv
::
noArray
(),
int
flags
=
0
)
const
;
virtual
float
predict
(
cv
::
InputArray
samples
,
cv
::
OutputArray
results
=
cv
::
noArray
(),
int
flags
=
0
)
const
override
;
static
cv
::
Ptr
<
CvRTreesWrapper
>
create
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment