Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
9457fe6c
Commit
9457fe6c
authored
Sep 14, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1772 from mshabunin:fix-cnn_3dobj-build
parents
bd46b032
ef6cefb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test_cnn_3dobj_feature_extract.cpp
modules/cnn_3dobj/test/test_cnn_3dobj_feature_extract.cpp
+1
-1
No files found.
modules/cnn_3dobj/test/test_cnn_3dobj_feature_extract.cpp
View file @
9457fe6c
...
...
@@ -53,7 +53,7 @@ void CV_CNN_Feature_Test::run(int)
// Reference feature is computed by Caffe extract_features tool.
// To generate values for different images, use extract_features with the resetted image list in prototxt.
Mat
feature_reference
=
(
Mat_
<
float
>
(
1
,
3
)
<<
-
312.4805
,
8.4768486
,
-
224.98953
);
float
dist
=
norm
(
feature_test
-
feature_reference
);
float
dist
=
cvtest
::
norm
(
feature_test
,
feature_reference
,
NORM_L1
);
if
(
dist
>
5
)
{
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"Extracted featrue is not the same from the one extracted from Caffe."
);
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_MISSING_TEST_DATA
);
...
...
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