can render 2 cv::mats

This commit is contained in:
Kueffner, Maximilian
2025-03-14 19:32:40 +01:00
parent 5ecc38a9ca
commit 0b541348b0
15 changed files with 290 additions and 12 deletions
+15
View File
@@ -0,0 +1,15 @@
#include "Image.hpp"
#include <filesystem>
#include <opencv2/imgcodecs.hpp>
#include <stdexcept>
pixelarium::imaging::Image::Image(const std::string& uri)
{
if (!std::filesystem::exists(uri))
{
throw std::runtime_error("File not found");
}
this->_img = cv::imread(uri);
}