Topic "memory"

MEMORY			    Monash Image Library			MEMORY

ALL MEMORY ALLOCATION REQUIRED WITH THE IMAGE STRUCTURE IS HANDLED BY THESE
FUNCTIONS. DIRECT MANIPULATION OF THE IMAGE STRUCTURE SHOULD ALWAYS BE
AVOIDED.

These functions can be used to create, copy and to change the bits per pixel
of an image. icscast should be used with 3 band images, and icast with 1
band images.

i_malloc checks the result from the C malloc function to ensure memory
allocation has been successful. This is used within many of the image
library functions.


Related Functions

icast convert image to newBPP Bits Per Pixel
icopy copy src image to dest image
icscast casts a 3 band image to bpp and may either normalise(=1) to [0..255] for 8, 24, 32, 48, 96 bpp images, or [0..1] for 192 and 384 bpp images. or it will standardise(=0) to the original colour space values (only on 192 and 384 bpp images).
icsmktemp creates a 3 band image of the colour space specified
idup duplicate image
imalloc allocates n x sizeof(TYPE) bytes of memory to var, checks if memory is allocated
imktemp creates new image, pixels are not zerod

Other Topics

index | userguide | full | arithmetic | basic | binary | blocks | colour | compress | display | docs | fft | hist | image | io | makefile | masks | memory | misc | morph | pixel | rgb | stats | transform | error | mapping