FOSSredder 0.5.0
Loading...
Searching...
No Matches
opencv::MaskAdapter Class Reference

#include <MaskAdapter.h>

Static Public Member Functions

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.

Detailed Description

Definition at line 19 of file MaskAdapter.h.

Member Function Documentation

◆ makeLineMask()

cv::Mat opencv::MaskAdapter::makeLineMask ( const cv::Mat & gray,
bool horizontal )
static

Creates a binary line mask for text or table detection.

Parameters
grayThe grayscale source image.
horizontalTrue for a horizontal line mask, false for a vertical one.
Returns
The generated mask image.

Definition at line 17 of file MaskAdapter.cpp.

◆ mask()

ports::MaskResult opencv::MaskAdapter::mask ( const ports::MaskRequest & req,
std::shared_ptr< core::ports::diagnostics::IDiagnostics > debugger = nullptr )
static

Builds a whiteout mask for the requested image region.

Parameters
reqThe mask request containing the source image and crop geometry.
debuggerOptional debugger used for trace output.
Returns
The mask result with binary mask bytes and masked image bytes.

Definition at line 52 of file MaskAdapter.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: