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
a2646062
Commit
a2646062
authored
Dec 16, 2016
by
Rostislav Vasilikhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ivx::Scalars replaced by immediate values
parent
1e2ad7e3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
featureselect.cpp
modules/imgproc/src/featureselect.cpp
+3
-4
No files found.
modules/imgproc/src/featureselect.cpp
View file @
a2646062
...
...
@@ -295,10 +295,10 @@ static bool openvx_harris(Mat image, OutputArray _corners,
ivx
::
Scalar
strengthThresh
=
ivx
::
Scalar
::
create
<
VX_TYPE_FLOAT32
>
(
context
,
0
);
//The gradient window size to use on the input.
ivx
::
Scalar
gradientSize
=
ivx
::
Scalar
::
create
<
VX_TYPE_INT32
>
(
context
,
3
)
;
vx_int32
gradientSize
=
3
;
//The block window size used to compute the harris corner score
ivx
::
Scalar
blockSize
=
ivx
::
Scalar
::
create
<
VX_TYPE_INT32
>
(
context
,
_blockSize
)
;
vx_int32
blockSize
=
_blockSize
;
//The scalar sensitivity threshold k from the Harris-Stephens equation
ivx
::
Scalar
sensivity
=
ivx
::
Scalar
::
create
<
VX_TYPE_FLOAT32
>
(
context
,
_harrisK
);
...
...
@@ -311,8 +311,7 @@ static bool openvx_harris(Mat image, OutputArray _corners,
ivx
::
Scalar
numCorners
=
ivx
::
Scalar
::
create
<
VX_TYPE_SIZE
>
(
context
,
0
);
IVX_CHECK_STATUS
(
vxuHarrisCorners
(
context
,
ovxImage
,
strengthThresh
,
minDistance
,
sensivity
,
gradientSize
.
getValue
<
vx_int32
>
(),
blockSize
.
getValue
<
vx_int32
>
(),
corners
,
numCorners
));
gradientSize
,
blockSize
,
corners
,
numCorners
));
std
::
vector
<
vx_keypoint_t
>
vxKeypoints
;
corners
.
copyTo
(
vxKeypoints
);
...
...
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