improved the stabilize effect integration

This commit is contained in:
Brenno
2020-07-15 10:29:08 -03:00
parent 6d547650dc
commit d6e0a69c1f
13 changed files with 225 additions and 164 deletions

View File

@@ -953,7 +953,7 @@ cv::Mat Frame::GetImageCV()
}
std::shared_ptr<QImage> Frame::Mat2Qimage(cv::Mat img){
// cv::cvtColor(img, img, cv::COLOR_BGR2RGB);
cv::cvtColor(img, img, cv::COLOR_BGR2RGB);
std::shared_ptr<QImage> imgIn = std::shared_ptr<QImage>(new QImage((uchar*) img.data, img.cols, img.rows, img.step, QImage::Format_RGB888));
// Always convert to RGBA8888 (if different)
if (imgIn->format() != QImage::Format_RGBA8888)