CNormalizedImagesUnit Class
The CNormalizedImagesUnit class represents an intermediate result unit whose type is normalized images.
Definition
Namespace: dynamsoft::ddn::intermediate_results
Assembly: DynamsoftDocumentNormalizer
class CNormalizedImagesUnit: CIntermediateResultUnit
Inheritance: CIntermediateResultUnit -> CNormalizedImagesUnit
Methods
Method | Description |
---|---|
GetCount |
Gets the count of CNormalizedImageElement objects in current object. |
GetNormalizedImage |
Gets a NormalizedImage object from current object. |
operator[] |
Gets a NormalizedImage object from current object by specifying a index. |
RemoveAllNormalizedImages |
Removes all the normalized images in current object. |
SetNormalizedImage |
Sets the normalized image. |
GetCount
Gets the count of CNormalizedImageElement
objects in current object.
int GetCount()
Return Value
The count of CNormalizedImageElement
objects in current object.
GetNormalizedImage
Gets a NormalizedImage object from current object.
const CNormalizedImageElement* GetNormalizedImage(int index)
Return Value
Returns the NormalizedImage object.
See Also
operator[]
Gets a NormalizedImage object from current object by specifying a index.
virtual const CNormalizedImageElement* operator[](int index) const = 0
Parameters
[in] index
The index of the desired CNormalizedImageElement object.
Return value
Returns a pointer to the CNormalizedImageElement object at the specified index.
RemoveAllNormalizedImages
Removes all the normalized images in current object.
virtual void RemoveAllNormalizedImages() = 0
SetNormalizedImage
Sets the normalized image.
virtual int SetNormalizedImage(const CNormalizedImageElement* element, const double matrixToOriginalImage[9] = IDENTITY_MATRIX) = 0
Parameters
[in] element
The normalized image to be set.
[in] matrixToOriginalImage
The matrix to original image.
Return value
Returns 0 if successful, otherwise returns a negative value.