|
Scanbot SDK
|
Typedefs | |
| typedef struct scanbotsdk_image_manipulator_t | scanbotsdk_image_manipulator_t |
| scanbotsdk_image_manipulator_t class | |
| typedef struct scanbotsdk_image_manipulator_t scanbotsdk_image_manipulator_t |
scanbotsdk_image_manipulator_t class
API for image processing. If applicable on the platform, all the methods return images with the same liveness flag as the input image.
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_image_manipulator_create | ( | scanbotsdk_image_manipulator_t ** | result | ) |
Creates a new instance of scanbotsdk_image_manipulator with given params and stores it in the location specified by the last argument.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| result | Pointer to a variable that will store the created instance of scanbotsdk_image_manipulator_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_image_manipulator_crop_rect | ( | scanbotsdk_image_manipulator_t * | self, |
| scanbotsdk_image_t * | image, | ||
| scanbotsdk_rectf_t | rect, | ||
| scanbotsdk_image_t ** | result ) |
Crops out the given rectangle from the image.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| self | Pointer to the instance of scanbotsdk_image_manipulator_t method to be called on |
| image | The image to crop. The value must not be null. |
| rect | The rectangle in normalized coordinates to crop. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_image_manipulator_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_image_manipulator_flip | ( | scanbotsdk_image_manipulator_t * | self, |
| scanbotsdk_image_t * | image, | ||
| scanbotsdk_image_origin_t | origin, | ||
| scanbotsdk_image_t ** | result ) |
Flips the given image horizontally or vertically.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| self | Pointer to the instance of scanbotsdk_image_manipulator_t method to be called on |
| image | The image to flip The value must not be null. |
| origin | Location of the image origin in the image coordinate system. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_image_manipulator_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_image_manipulator_free | ( | scanbotsdk_image_manipulator_t * | self | ) |
Frees the memory allocated for the instance of scanbotsdk_image_manipulator_t. If null is passed, the function does nothing.
| self | Pointer to the instance of scanbotsdk_image_manipulator_t to be freed |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_image_manipulator_resize | ( | scanbotsdk_image_manipulator_t * | self, |
| scanbotsdk_image_t * | image, | ||
| int | size, | ||
| scanbotsdk_image_t ** | result ) |
Resizes the given image to the given size.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| self | Pointer to the instance of scanbotsdk_image_manipulator_t method to be called on |
| image | The image to resize The value must not be null. |
| size | Size of the longer side of the image. |
| result | Pointer to a variable that will store the created instance of scanbotsdk_image_manipulator_t |
| SBSDK_API scanbotsdk_error_code_t scanbotsdk_image_manipulator_rotate | ( | scanbotsdk_image_manipulator_t * | self, |
| scanbotsdk_image_t * | image, | ||
| scanbotsdk_image_rotation_t | rotation, | ||
| scanbotsdk_image_t ** | result ) |
Rotates the given image by the given angle.
As a rule if a function argument is a pointer to a scanbotsdk structure (scanbotsdk_..._t*) then the corresponding objects after function execution are left in valid but unspecified state, the caller is still responsible for freeing them. Exceptions are scanbotsdk_image_t*, scanbotdk_random_access_source_t* (if applicable) which are guaranteed to be in the original state.
| self | Pointer to the instance of scanbotsdk_image_manipulator_t method to be called on |
| image | The image to rotate The value must not be null. |
| rotation | Rotation to be applied |
| result | Pointer to a variable that will store the created instance of scanbotsdk_image_manipulator_t |