iDRS™ SDK 16
Loading...
Searching...
No Matches
CPerspective_interface.h
Go to the documentation of this file.
1
7#ifndef CPERSPECTIVE_INTERFACE_H
8
9#define CPERSPECTIVE_INTERFACE_H
10
11#include "CIDRS_interface.h"
13#include "CPolygon_interface.h"
14
15#include "idrs_common.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
31CPerspective CPerspective_Create(const CIDRS objIdrs, idrs_exception *pargException);
32
42PerspectiveCorners CPerspective_DetectDocumentCorners(CPerspective argCPerspective, const CImage argImage, idrs_exception *pargException);
43
53void CPerspective_CorrectPerspective(CPerspective argCPerspective, CImage argImage, const PerspectiveCorners* stPerspectiveCorners, idrs_exception *pargException);
54
73void CPerspective_SetCropToDocumentArea(CPerspective argCPerspective, IDRS_BOOL const bCropToDocumentArea, idrs_exception *pargException);
74
89IDRS_BOOL CPerspective_GetCropToDocumentArea(const CPerspective argCPerspective, idrs_exception *pargException);
90
98void CPerspective_Destroy(CPerspective argCPerspective, idrs_exception *pargException);
99
100#ifdef __cplusplus
101}
102#endif /* __cplusplus */
103
104#endif /* CPERSPECTIVE_INTERFACE_H */
Interface for CIDRS wrapper.
Interface for CImageOperation wrapper.
CPerspective CPerspective_Create(const CIDRS objIdrs, idrs_exception *pargException)
Creates a new CPerspective object.
void CPerspective_SetCropToDocumentArea(CPerspective argCPerspective, IDRS_BOOL const bCropToDocumentArea, idrs_exception *pargException)
Sets the flag to crop to document area.
void CPerspective_Destroy(CPerspective argCPerspective, idrs_exception *pargException)
Destroys a CPerspective handle.
void CPerspective_CorrectPerspective(CPerspective argCPerspective, CImage argImage, const PerspectiveCorners *stPerspectiveCorners, idrs_exception *pargException)
ApplyCorrection corrects perspective distortion of the supplied image using the provided corners.
PerspectiveCorners CPerspective_DetectDocumentCorners(CPerspective argCPerspective, const CImage argImage, idrs_exception *pargException)
DetectDocumentCorners retrieves the corners for the supplied image.
IDRS_BOOL CPerspective_GetCropToDocumentArea(const CPerspective argCPerspective, idrs_exception *pargException)
Gets the flag to crop to document area.
Interface for CPolygon wrapper.
The CImage class manages images for iDRS.
The CPerspective class offers perspective correction of document images captured by a camera....
IDRS_INT IDRS_BOOL
A Boolean value.
Definition idrsstd_interface.h:37
The PerspectiveCorners structure contains the four corners of a quadrilateral that represent the area...
Definition StructDefinitions_interface.h:52