Geometric Operations
[Image Processing]
Detailed Description
- Operations to change the shape of the image.
- See im_process_loc.h
Functions | |
void | imProcessCalcRotateSize (int width, int height, int *new_width, int *new_height, double cos0, double sin0) |
int | imProcessRotate (const imImage *src_image, imImage *dst_image, double cos0, double sin0, int order) |
int | imProcessRotateRef (const imImage *src_image, imImage *dst_image, double cos0, double sin0, int x, int y, int to_origin, int order) |
void | imProcessRotate90 (const imImage *src_image, imImage *dst_image, int dir_clockwise) |
void | imProcessRotate180 (const imImage *src_image, imImage *dst_image) |
void | imProcessMirror (const imImage *src_image, imImage *dst_image) |
void | imProcessFlip (const imImage *src_image, imImage *dst_image) |
int | imProcessRadial (const imImage *src_image, imImage *dst_image, float k1, int order) |
int | imProcessSwirl (const imImage *src_image, imImage *dst_image, float k1, int order) |
void | imProcessInterlaceSplit (const imImage *src_image, imImage *dst_image1, imImage *dst_image2) |
Function Documentation
|
Calculates the size of the new image after rotation.
im.ProcessCalcRotateSize(width: number, height: number, cos0: number, sin0: number) [in Lua 5] |
|
Rotates the image using the given interpolation order (see imProcessResize).
im.ProcessRotate(src_image: imImage, dst_image: imImage, cos0: number, sin0: number, order: number) -> counter: boolean [in Lua 5] im.ProcessRotateNew(image: imImage, cos0: number, sin0: number, order: number) -> counter: boolean, new_image: imImage [in Lua 5] |
|
Rotates the image using the given interpolation order (see imProcessResize).
im.ProcessRotateRef(src_image: imImage, dst_image: imImage, cos0: number, sin0: number, x: number, y: number, to_origin: boolean, order: number) -> counter: boolean [in Lua 5] im.ProcessRotateRefNew(image: imImage, cos0: number, sin0: number, x: number, y: number, to_origin: boolean, order: number) -> counter: boolean, new_image: imImage [in Lua 5] |
|
Rotates the image in 90 degrees counterclockwise or clockwise. Swap columns by lines.
im.ProcessRotate90(src_image: imImage, dst_image: imImage, dir_clockwise: boolean) [in Lua 5] im.ProcessRotate90New(image: imImage, dir_clockwise: boolean) -> new_image: imImage [in Lua 5] |
|
Rotates the image in 180 degrees. Swap columns and swap lines.
im.ProcessRotate180(src_image: imImage, dst_image: imImage) [in Lua 5] im.ProcessRotate180New(image: imImage) -> new_image: imImage [in Lua 5] |
|
Mirror the image in a horizontal flip. Swap columns.
im.ProcessMirror(src_image: imImage, dst_image: imImage) [in Lua 5] im.ProcessMirrorNew(image: imImage) -> new_image: imImage [in Lua 5] |
|
Apply a vertical flip. Swap lines.
im.ProcessFlip(src_image: imImage, dst_image: imImage) [in Lua 5] im.ProcessFlipNew(image: imImage) -> new_image: imImage [in Lua 5] |
|
Apply a radial distortion using the given interpolation order (see imProcessResize).
im.ProcessRadial(src_image: imImage, dst_image: imImage, k1: number, order: number) -> counter: boolean [in Lua 5] im.ProcessRadialNew(image: imImage, k1: number, order: number) -> counter: boolean, new_image: imImage [in Lua 5] |
|
Apply a swirl distortion using the given interpolation order (see imProcessResize).
im.ProcessSwirl(src_image: imImage, dst_image: imImage, k: number, order: number) -> counter: boolean [in Lua 5] im.ProcessSwirlNew(image: imImage, k: number, order: number) -> counter: boolean, new_image: imImage [in Lua 5] |
|
Split the image in two images, one containing the odd lines and other containing the even lines.
im.ProcessInterlaceSplit(src_image: imImage, dst_image1: imImage, dst_image2: imImage) [in Lua 5] im.ProcessInterlaceSplitNew(image: imImage) -> new_image1: imImage, new_image2: imImage [in Lua 5] |