Image Resize
[Image Processing]
Detailed Description
- Operations to change the image size.
- See im_process_loc.h
Functions | |
int | imProcessReduce (const imImage *src_image, imImage *dst_image, int order) |
int | imProcessResize (const imImage *src_image, imImage *dst_image, int order) |
void | imProcessReduceBy4 (const imImage *src_image, imImage *dst_image) |
void | imProcessCrop (const imImage *src_image, imImage *dst_image, int xmin, int ymin) |
void | imProcessInsert (const imImage *src_image, const imImage *region_image, imImage *dst_image, int xmin, int ymin) |
void | imProcessAddMargins (const imImage *src_image, imImage *dst_image, int xmin, int ymin) |
Function Documentation
|
Only reduze the image size using the given decimation order.
im.ProcessReduce(src_image: imImage, dst_image: imImage, order: number) -> counter: boolean [in Lua 5] im.ProcessReduceNew(image: imImage, order: number) -> counter: boolean, new_image: imImage [in Lua 5] |
|
Change the image size using the given interpolation order.
im.ProcessResize(src_image: imImage, dst_image: imImage, order: number) -> counter: boolean [in Lua 5] im.ProcessResizeNew(image: imImage, order: number) -> counter: boolean, new_image: imImage [in Lua 5] |
|
Reduze the image area by 4 (w/2,h/2).
im.ProcessReduceBy4(src_image: imImage, dst_image: imImage) [in Lua 5] im.ProcessReduceBy4New(image: imImage) -> new_image: imImage [in Lua 5] |
|
Extract a rectangular region from an image.
im.ProcessCrop(src_image: imImage, dst_image: imImage, xmin: number, ymin: number) [in Lua 5] im.ProcessCropNew(image: imImage, xmin: number, xmax: number, ymin: number, ymax: number) -> new_image: imImage [in Lua 5] |
|
Insert a rectangular region in an image.
im.ProcessInsert(src_image: imImage, region_image: imImage, dst_image: imImage, xmin: number, ymin: number) [in Lua 5] im.ProcessInsertNew(image: imImage, region_image: imImage, xmin: number, ymin: number) -> new_image: imImage [in Lua 5] |
|
Increase the image size by adding pixels with zero value.
im.ProcessAddMargins(src_image: imImage, dst_image: imImage, xmin: number, ymin: number) [in Lua 5] im.ProcessAddMarginsNew(image: imImage, xmin: number, xmax: number, ymin: number, ymax: number) -> new_image: imImage [in Lua 5] |