1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-15 20:37:07 +08:00

clamped BRISQUE output to 0-100

This commit is contained in:
clunietp
2019-09-04 13:14:03 -04:00
parent 1c60ce3088
commit ea84c59b90

View File

@@ -230,7 +230,7 @@ namespace
cv::Mat result;
model->predict(feat_mat, result);
return result.at<float>(0);
return std::min( std::max( result.at<float>(0), 0.f ), 100.f ); // clamp to [0-100]
}
// computes score for a single frame