CLayoutAnalyzer
The CLayoutAnalyzer class provides a high-performance layout analysis engine. It analyzes the spatial distribution of quadrilaterals to detect and map structural patterns (Lines or Matrix), with logical grid position mapping and gap-filling inference.
Definition
Namespace: dynamsoft::utility
Assembly: DynamsoftUtility
class CLayoutAnalyzer
Methods
| Method | Description |
|---|---|
Analyze |
Performs layout analysis on an array of quadrilaterals and returns a result set. |
ReleaseResult |
Releases the memory associated with a LayoutAnalysisResult. |
Analyze
Performs layout analysis and allocates a result set.
static LayoutAnalysisResult* Analyze(
const CQuadrilateral inputQuads[],
int inputQuadCount,
const LayoutAnalysisParameter* pParam = nullptr
);
Parameters
[in] inputQuads Array of input quadrilaterals.
[in] inputQuadCount Number of elements in the input array.
[in] pParam Optional parameters to constrain the analysis.
Return Value
Returns a pointer to a LayoutAnalysisResult object, or nullptr on failure.
Note: The caller must release the returned pointer via
ReleaseResult().
See Also
ReleaseResult
Releases the memory associated with a LayoutAnalysisResult.
static void ReleaseResult(LayoutAnalysisResult* pResultSet);
Parameters
[in] pResultSet Pointer to the result set to be destroyed. No-op if nullptr.
See Also