CDeskewedImagesUnit Class
The CDeskewedImagesUnit class represents an intermediate result unit whose type is Deskewed images.
Definition
Namespace: dynamsoft::ddn::intermediate_results
Assembly: DynamsoftDocumentNormalizer
class CDeskewedImagesUnit: CIntermediateResultUnit
Inheritance: CIntermediateResultUnit -> CDeskewedImagesUnit
Methods
| Method | Description |
|---|---|
GetDeskewedImage |
Gets a DeskewedImage object from current object. |
SetDeskewedImage |
Sets the Deskewed image. |
| Methods Inherited from CIntermediateResultUnit: | |
GetHashId |
Gets the hash ID of the unit. |
GetOriginalImageHashId |
Gets the hash ID of the original image. |
GetOriginalImageTag |
Gets the image tag of the original image. |
GetType |
Gets the type of the intermediate result unit. |
Clone |
Creates a copy of the intermediate result unit. |
SetHashId |
Sets the hash ID of the unit. |
SetOriginalImageHashId |
Sets the hash ID of the original image. |
SetOriginalImageTag |
Sets the image tag of the original image. |
Retain |
Increases the reference count of the unit. |
Release |
Decreases the reference count of the unit. |
GetTransformMatrix |
Gets the transformation matrix via TransformMatrixType. |
SetTransformMatrix |
Sets the transformation matrix via TransformMatrixType. |
GetDeskewedImage
Gets a DeskewedImage object from current unit.
virtual const CDeskewedImageElement* GetDeskewedImage() const = 0;
Return Value
Returns the CDeskewedImageElement object.
See Also
SetDeskewedImage
Sets the Deskewed image.
virtual int SetDeskewedImage(const CDeskewedImageElement* element, const double matrixToOriginalImage[9] = IDENTITY_MATRIX) = 0;
Parameters
[in] element The Deskewed image to be set.
[in] matrixToOriginalImage The matrix to original image.
Return value
Returns 0 if successful, otherwise returns a negative value.