Skip to content

Commit ef6cefb

Browse files
committed
Fixed cnn_3dobj module build
1 parent bd46b03 commit ef6cefb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/cnn_3dobj/test/test_cnn_3dobj_feature_extract.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void CV_CNN_Feature_Test::run(int)
5353
// Reference feature is computed by Caffe extract_features tool.
5454
// To generate values for different images, use extract_features with the resetted image list in prototxt.
5555
Mat feature_reference = (Mat_<float>(1,3) << -312.4805, 8.4768486, -224.98953);
56-
float dist = norm(feature_test - feature_reference);
56+
float dist = cvtest::norm(feature_test, feature_reference, NORM_L1);
5757
if (dist > 5) {
5858
ts->printf(cvtest::TS::LOG, "Extracted featrue is not the same from the one extracted from Caffe.");
5959
ts->set_failed_test_info(cvtest::TS::FAIL_MISSING_TEST_DATA);

0 commit comments

Comments
 (0)