Files
pixelarium/lib/imaging/Image.hpp
T

32 lines
669 B
C++
Raw Normal View History

2025-03-14 19:32:40 +01:00
#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