Skip to content

Commit

Permalink
fix cvtColor src dst
Browse files Browse the repository at this point in the history
  • Loading branch information
aperture147 authored Feb 22, 2025
1 parent 0acb091 commit 795fad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/effects/Outline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ cv::Mat Outline::QImageToBGRACvMat(std::shared_ptr<QImage>& qimage) {

std::shared_ptr<QImage> Outline::BGRACvMatToQImage(cv::Mat img) {
cv::Mat final_img;
cv::cvtColor(final_img, img, cv::COLOR_RGBA2BGRA);
cv::cvtColor(img, final_img, cv::COLOR_RGBA2BGRA);
QImage qimage(final_img.data, final_img.cols, final_img.rows, final_img.step, QImage::Format_ARGB32);
std::shared_ptr<QImage> imgIn = std::make_shared<QImage>(qimage.convertToFormat(QImage::Format_RGBA8888_Premultiplied));
return imgIn;
Expand Down

0 comments on commit 795fad7

Please sign in to comment.