micro improvements

This commit is contained in:
Kueffner, Maximilian
2025-05-23 15:15:01 +02:00
parent 436a61790c
commit 167dc1f9d4
7 changed files with 19 additions and 13 deletions
+3 -1
View File
@@ -7,15 +7,17 @@
#include <tuple>
#include <utility>
#include "imaging/Image.hpp"
#include <opencv2/imgproc.hpp>
using namespace pixelarium::imaging;
pixelarium::render::CvMatRender::CvMatRender(const std::shared_ptr<Image>& img)
: _base(img), _texture(0)
{
this->_img = this->_base->GetImage().clone();
// this->_img = this->_base->GetImage().clone();
// // storing a copy of the to-be-rendered image with a "well-behaved"
// cv::cvtColor(this->_img, this->_img, cv::COLOR_BGR2RGBA);
this->_img = this->_base->GetImage().clone();
}
/*static*/ void pixelarium::render::matToTexture(const cv::Mat& image,