Files
pixelarium/lib/imaging/Image.hpp
T
Kueffner, Maximilian 0b541348b0 can render 2 cv::mats
2025-03-14 19:32:40 +01:00

32 lines
669 B
C++

#pragma once
#include <filesystem>
#include <memory>
#include <opencv2/core/mat.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/opencv.hpp>
#include <string>
namespace pixelarium::imaging
{
class Image
{
public:
explicit Image(const std::string& uri);
// get back the defaults
Image() = default;
Image(const Image& other) = default;
Image(Image&& other) noexcept = default;
Image& operator=(const Image& other) = default;
Image& operator=(Image&& other) noexcept = default;
~Image() = default;
const cv::Mat& GetImage() const { return this->_img; }
private:
cv::Mat _img;
};
} // namespace pixelarium::imaging