Rotations
Perform image rotation by 90 degrees, clockwise and counter-clockwise.
More...
|
int | rapp_rotate_cw_u8 (uint8_t *restrict dst, int dst_dim, const uint8_t *restrict src, int src_dim, int width, int height) |
| Rotate an 8-bit image 90 degrees in clockwise direction.
|
int | rapp_rotate_ccw_u8 (uint8_t *restrict dst, int dst_dim, const uint8_t *restrict src, int src_dim, int width, int height) |
| Rotate an 8-bit image 90 degrees in counter-clockwise direction.
|
|
int | rapp_rotate_cw_bin (uint8_t *restrict dst, int dst_dim, const uint8_t *restrict src, int src_dim, int width, int height) |
| Rotate a binary image 90 degrees in clockwise direction.
|
int | rapp_rotate_ccw_bin (uint8_t *restrict dst, int dst_dim, const uint8_t *restrict src, int src_dim, int width, int height) |
| Rotate a binary image 90 degrees in counter-clockwise direction.
|
Detailed Description
Perform image rotation by 90 degrees, clockwise and counter-clockwise.
All images must be aligned.
Next section: Logical Margins
Function Documentation
int rapp_rotate_cw_u8 |
( |
uint8_t *restrict |
dst, |
|
|
int |
dst_dim, |
|
|
const uint8_t *restrict |
src, |
|
|
int |
src_dim, |
|
|
int |
width, |
|
|
int |
height | |
|
) |
| | |
Rotate an 8-bit image 90 degrees in clockwise direction.
- Parameters:
-
[out] | dst | Destination pixel buffer. |
| dst_dim | Row dimension of the destination buffer. |
[in] | src | Source pixel buffer. |
| src_dim | Row dimension of the source buffer. |
| width | Source image width in pixels. |
| height | Source image height in pixels. |
- Returns:
- A negative error code on error, zero otherwise.
int rapp_rotate_cw_bin |
( |
uint8_t *restrict |
dst, |
|
|
int |
dst_dim, |
|
|
const uint8_t *restrict |
src, |
|
|
int |
src_dim, |
|
|
int |
width, |
|
|
int |
height | |
|
) |
| | |
Rotate a binary image 90 degrees in clockwise direction.
- Parameters:
-
[out] | dst | Destination pixel buffer. |
| dst_dim | Row dimension of the destination buffer. |
[in] | src | Source pixel buffer. |
| src_dim | Row dimension of the source buffer. |
| width | Source image width in pixels. |
| height | Source image height in pixels. |
- Returns:
- A negative error code on error, zero otherwise.
int rapp_rotate_ccw_u8 |
( |
uint8_t *restrict |
dst, |
|
|
int |
dst_dim, |
|
|
const uint8_t *restrict |
src, |
|
|
int |
src_dim, |
|
|
int |
width, |
|
|
int |
height | |
|
) |
| | |
Rotate an 8-bit image 90 degrees in counter-clockwise direction.
- Parameters:
-
[out] | dst | Destination pixel buffer. |
| dst_dim | Row dimension of the destination buffer. |
[in] | src | Source pixel buffer. |
| src_dim | Row dimension of the source buffer. |
| width | Source image width in pixels. |
| height | Source image height in pixels. |
- Returns:
- A negative error code on error, zero otherwise.
int rapp_rotate_ccw_bin |
( |
uint8_t *restrict |
dst, |
|
|
int |
dst_dim, |
|
|
const uint8_t *restrict |
src, |
|
|
int |
src_dim, |
|
|
int |
width, |
|
|
int |
height | |
|
) |
| | |
Rotate a binary image 90 degrees in counter-clockwise direction.
- Parameters:
-
[out] | dst | Destination pixel buffer. |
| dst_dim | Row dimension of the destination buffer. |
[in] | src | Source pixel buffer. |
| src_dim | Row dimension of the source buffer. |
| width | Source image width in pixels. |
| height | Source image height in pixels. |
- Returns:
- A negative error code on error, zero otherwise.