c00c2c71ac
* scratch adding histogram to image views Histograms should come from some sort of histogram service. This is currently just a POC. * custom logger implementation w/o spdlog * missing cmake file * fix tests * use operator<< over direct stream exposure * rm print header * add threading test + refactor towards interface libraries omits the need for =target_include_directories= calls /everywhere/ * rm print header * rm constexpr * templated thread_pool * fix doxyfile * default enable doc building * czi reader refactor * rm erroneous include expression * clang-format * single lib include with PUBLIC visibility * compile imgui stdlib * clang format * documentation update centralize `LogLevelToString` to `ILog.hpp` update docs and examples
26 lines
676 B
C++
26 lines
676 B
C++
#pragma once
|
|
|
|
#include "ILog.hpp"
|
|
#include "IPixelariumImageView.hpp"
|
|
#include "resource.hpp"
|
|
|
|
namespace pixelarium::application
|
|
{
|
|
/// @brief Factory for instantiating matching views to different implementations of IPixelariumImage.
|
|
class ImageViewFactory
|
|
{
|
|
using Image = imaging::IPixelariumImageCvMat;
|
|
using Pool = resources::ImageResourcePool;
|
|
using Log = utils::log::ILog;
|
|
|
|
public:
|
|
explicit ImageViewFactory(Pool& pool, const Log& log) : image_pool_(pool), log_(log) {}
|
|
|
|
std::unique_ptr<IPixelariumImageView> RenderImage(resources::ResourceKey id);
|
|
|
|
private:
|
|
Pool& image_pool_;
|
|
const Log& log_;
|
|
};
|
|
} // namespace pixelarium::application
|