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
ce992c82
Commit
ce992c82
authored
Feb 06, 2014
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ocl: update gftt
parent
e371901d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
featureselect.cpp
modules/imgproc/src/featureselect.cpp
+1
-1
test_gftt.cpp
modules/imgproc/test/ocl/test_gftt.cpp
+2
-2
No files found.
modules/imgproc/src/featureselect.cpp
View file @
ce992c82
...
@@ -124,7 +124,7 @@ static bool ocl_goodFeaturesToTrack( InputArray _image, OutputArray _corners,
...
@@ -124,7 +124,7 @@ static bool ocl_goodFeaturesToTrack( InputArray _image, OutputArray _corners,
tmpCorners
.
resize
(
total
);
tmpCorners
.
resize
(
total
);
Mat
mcorners
(
1
,
totalb
,
CV_8UC1
,
&
tmpCorners
[
0
]);
Mat
mcorners
(
1
,
totalb
,
CV_8UC1
,
&
tmpCorners
[
0
]);
corners
.
colRange
(
0
,
totalb
).
getMat
(
ACCESS_READ
).
copyTo
(
mcorners
);
corners
.
colRange
(
0
,
totalb
).
copyTo
(
mcorners
);
}
}
std
::
sort
(
tmpCorners
.
begin
(),
tmpCorners
.
end
()
);
std
::
sort
(
tmpCorners
.
begin
(),
tmpCorners
.
end
()
);
...
...
modules/imgproc/test/ocl/test_gftt.cpp
View file @
ce992c82
...
@@ -84,8 +84,8 @@ PARAM_TEST_CASE(GoodFeaturesToTrack, double, bool)
...
@@ -84,8 +84,8 @@ PARAM_TEST_CASE(GoodFeaturesToTrack, double, bool)
void
UMatToVector
(
const
UMat
&
um
,
std
::
vector
<
Point2f
>
&
v
)
const
void
UMatToVector
(
const
UMat
&
um
,
std
::
vector
<
Point2f
>
&
v
)
const
{
{
v
.
resize
(
points
.
cols
);
v
.
resize
(
um
.
size
().
area
()
);
um
.
getMat
(
ACCESS_READ
).
copyTo
(
v
);
um
.
copyTo
(
Mat
(
um
.
size
(),
CV_32FC2
,
&
v
[
0
])
);
}
}
};
};
...
...
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