We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bd46b03 + ef6cefb commit 9457fe6Copy full SHA for 9457fe6
modules/cnn_3dobj/test/test_cnn_3dobj_feature_extract.cpp
@@ -53,7 +53,7 @@ void CV_CNN_Feature_Test::run(int)
53
// Reference feature is computed by Caffe extract_features tool.
54
// To generate values for different images, use extract_features with the resetted image list in prototxt.
55
Mat feature_reference = (Mat_<float>(1,3) << -312.4805, 8.4768486, -224.98953);
56
- float dist = norm(feature_test - feature_reference);
+ float dist = cvtest::norm(feature_test, feature_reference, NORM_L1);
57
if (dist > 5) {
58
ts->printf(cvtest::TS::LOG, "Extracted featrue is not the same from the one extracted from Caffe.");
59
ts->set_failed_test_info(cvtest::TS::FAIL_MISSING_TEST_DATA);
0 commit comments