Commit ea84c59b authored by clunietp's avatar clunietp

clamped BRISQUE output to 0-100

parent 1c60ce30
...@@ -230,7 +230,7 @@ namespace ...@@ -230,7 +230,7 @@ namespace
cv::Mat result; cv::Mat result;
model->predict(feat_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 // computes score for a single frame
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment