Functions |
NTTW_DLL_SYM long * | cropImage (long *initImage, const int initRows, const int initCols, const int newRows, const int newCols) |
| Crops the image to the size provided from the centre. EXPERIMENTAL.
|
NTTW_DLL_SYM long * | truncateImage (long *initImage, const int initRows, const int initCols, const int newRows, const int newCols) |
| Crops the image to the size provided from the top left-hand side. EXPERIMENTAL.
|
NTTW_DLL_SYM long * | embedImage (long *initImage, const int initRows, const int initCols, const int newRows, const int newCols) |
| Embeds the image to the size provided from the top left-hand corner. EXPERIMENTAL.
|
NTTW_DLL_SYM long * | diffImage (long *image1, long *image2, const int rows, const int cols) |
| Takes the differences of image1 and image2 and returns pointer to result. EXPERIMENTAL.
|
cropImage |
( |
long * |
initImage, |
|
|
const int |
initRows, |
|
|
const int |
initCols, |
|
|
const int |
newRows, |
|
|
const int |
newCols | |
|
) |
| | |
Crops the image to the size provided from the centre. EXPERIMENTAL.
Set bounds of new image to extract
Allocate new image memory
Extract relevant part of image to form cropped image.
Definition at line 367 of file image.c.