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
b88f5302
Commit
b88f5302
authored
Sep 23, 2013
by
Jin Ma
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused constructor.
parent
1bfe39f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
12 deletions
+1
-12
ocl.hpp
modules/ocl/include/opencv2/ocl/ocl.hpp
+0
-5
knearest.cpp
modules/ocl/src/knearest.cpp
+1
-7
No files found.
modules/ocl/include/opencv2/ocl/ocl.hpp
View file @
b88f5302
...
...
@@ -1900,8 +1900,6 @@ namespace cv
public
:
KNearestNeighbour
();
~
KNearestNeighbour
();
KNearestNeighbour
(
const
Mat
&
trainData
,
const
Mat
&
labels
,
const
Mat
&
sampleIdx
=
Mat
().
setTo
(
Scalar
::
all
(
0
)),
bool
isRegression
=
false
,
int
max_k
=
32
);
bool
train
(
const
Mat
&
trainData
,
Mat
&
labels
,
Mat
&
sampleIdx
=
Mat
().
setTo
(
Scalar
::
all
(
0
)),
bool
isRegression
=
false
,
int
max_k
=
32
,
bool
updateBase
=
false
);
...
...
@@ -1911,9 +1909,6 @@ namespace cv
void
find_nearest
(
const
oclMat
&
samples
,
int
k
,
oclMat
&
lables
);
private
:
int
max_k
,
var_count
;
int
total
;
bool
regression
;
oclMat
samples_ocl
;
};
}
...
...
modules/ocl/src/knearest.cpp
View file @
b88f5302
...
...
@@ -63,13 +63,7 @@ KNearestNeighbour::KNearestNeighbour()
KNearestNeighbour
::~
KNearestNeighbour
()
{
clear
();
}
KNearestNeighbour
::
KNearestNeighbour
(
const
Mat
&
train_data
,
const
Mat
&
responses
,
const
Mat
&
sample_idx
,
bool
is_regression
,
int
max_k
)
{
max_k
=
max_k
;
CvKNearest
::
train
(
train_data
,
responses
,
sample_idx
,
is_regression
,
max_k
);
samples_ocl
.
release
();
}
void
KNearestNeighbour
::
clear
()
...
...
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