Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
a0f2203f
Commit
a0f2203f
authored
Jan 09, 2013
by
marina.kolpakova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
raplase error output on CV_Error
parent
dd8de0c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
octave.cpp
modules/ml/src/octave.cpp
+1
-4
No files found.
modules/ml/src/octave.cpp
View file @
a0f2203f
...
...
@@ -221,7 +221,6 @@ void cv::Octave::processPositives(const Dataset* dataset, const FeaturePool* poo
integrals
.
create
(
pool
->
size
(),
(
w
/
shrinkage
+
1
)
*
(
h
/
shrinkage
*
10
+
1
),
CV_32SC1
);
int
total
=
0
;
// for (svector::const_iterator it = dataset.pos.begin(); it != dataset.pos.end(); ++it)
for
(
int
curr
=
0
;
curr
<
dataset
->
available
(
Dataset
::
POSITIVE
);
++
curr
)
{
cv
::
Mat
sample
=
dataset
->
get
(
Dataset
::
POSITIVE
,
curr
);
...
...
@@ -247,7 +246,6 @@ void cv::Octave::generateNegatives(const Dataset* dataset, const FeaturePool* po
sft
::
Random
::
engine
eng
(
65633343L
);
sft
::
Random
::
engine
idxEng
(
764224349868L
);
// int w = boundingBox.width;
int
h
=
boundingBox
.
height
;
int
nimages
=
dataset
->
available
(
Dataset
::
NEGATIVE
);
...
...
@@ -276,7 +274,6 @@ void cv::Octave::generateNegatives(const Dataset* dataset, const FeaturePool* po
pool
->
preprocess
(
frame
,
channels
);
dprintf
(
"generated %d %d
\n
"
,
dx
,
dy
);
// // if (predict(sum))
{
responses
.
ptr
<
float
>
(
i
)[
0
]
=
0.
f
;
...
...
@@ -436,7 +433,7 @@ bool cv::Octave::train(const Dataset* dataset, const FeaturePool* pool, int weak
bool
ok
=
train
(
trainData
,
responses
,
varIdx
,
sampleIdx
,
varType
,
missingMask
);
if
(
!
ok
)
std
::
cout
<<
"ERROR: tree can not be trained "
<<
std
::
endl
;
CV_Error
(
CV_StsInternal
,
"ERROR: tree can not be trained"
)
;
return
ok
;
}
...
...
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