Functions

Image Operations

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.

Function Documentation

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.

diffImage ( long *  image1,
long *  image2,
const int  rows,
const int  cols 
)

Takes the differences of image1 and image2 and returns pointer to result. EXPERIMENTAL.

Definition at line 454 of file image.c.

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.

Ensure to only reference inside arrays

Definition at line 417 of file image.c.

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.

Allocate new image memory

Extract relevant part of image to form cropped image.

Definition at line 401 of file image.c.