Maybe there is something I don't see, but it seems like the input image for the unified quality score is converted from RGB to BGR (line 93 in modules\measures\src\UnifiedQualityScore.cpp) only to be converted back to RGB in CreateBlob (internally in cv::dnn::blobFromImage; line 82).
Is this necessary? Color conversion is a quite expensive operation in OpenCV.
Maybe there is something I don't see, but it seems like the input image for the unified quality score is converted from RGB to BGR (line 93 in modules\measures\src\UnifiedQualityScore.cpp) only to be converted back to RGB in CreateBlob (internally in cv::dnn::blobFromImage; line 82). Is this necessary? Color conversion is a quite expensive operation in OpenCV.