FOSSredder 0.5.0
Loading...
Searching...
No Matches
MaskAdapter.h
Go to the documentation of this file.
1
5
6#pragma once
7
10#include <memory>
11#include <opencv2/opencv.hpp>
12
13namespace core::ports::diagnostics { class IDiagnostics; }
14
15namespace opencv {
16
17namespace ports = core::ports::document_image_processing;
18
20public:
27 static ports::MaskResult mask(const ports::MaskRequest& req, std::shared_ptr<core::ports::diagnostics::IDiagnostics> debugger = nullptr);
34 static cv::Mat makeLineMask(const cv::Mat& gray, bool horizontal);
35};
36
37} // namespace opencv
Request types for document image processing operations.
Result types for document image processing operations.
Port for writing optional diagnostic artifacts.
static ports::MaskResult mask(const ports::MaskRequest &req, std::shared_ptr< core::ports::diagnostics::IDiagnostics > debugger=nullptr)
Builds a whiteout mask for the requested image region.
static cv::Mat makeLineMask(const cv::Mat &gray, bool horizontal)
Creates a binary line mask for text or table detection.