IM Lua 5 Binding
[Utilities]

Collaboration diagram for IM Lua 5 Binding:

Functions

int imlua_open (lua_State *L)
void imlua_pushimage (lua_State *L, imImage *image)
imImageimlua_checkimage (lua_State *L, int param)
int imlua_open_capture (lua_State *L)
int imlua_open_process (lua_State *L)
int imlua_open_fftw (lua_State *L)

Detailed Description

Binding for the Lua 5 scripting language.
Lua 5.1 Copyright (C) 1994-2005 Lua.org, PUC-Rio
R. Ierusalimschy, L. H. de Figueiredo & W. Celes
http://www.lua.org
The name of the functions were changed because of the namespace "im" and because of the object orientation.
As a general rule use:
    imXxx  -> im.Xxx
    IM_XXX -> im.XXX
    imFileXXX(ifile,... -> ifile:XXX(...
    imImageXXX(image,... -> image:XXX(...
All the objects are garbage collected by the Lua garbage collector.
See imlua.h

Function Documentation

int imlua_open ( lua_State *  L  ) 

Initializes the Lua binding of the main IM library.
Returns 1 (leaves the "im" table on the top of the stack). You must link the application with the "imlua51" library.

void imlua_pushimage ( lua_State *  L,
imImage image 
)

Pushes an image as a metatable on the stack.

imImage* imlua_checkimage ( lua_State *  L,
int  param 
)

Gets an image as a metatable from the stack, checks for correct type.

int imlua_open_capture ( lua_State *  L  ) 

Initializes the Lua binding of the capture library.
Returns 1 (leaves the "im" table on the top of the stack). You must link the application with the "imlua_capture51" library.

int imlua_open_process ( lua_State *  L  ) 

Initializes the Lua binding of the process library.
Returns 1 (leaves the "im" table on the top of the stack). You must link the application with the "imlua_process51" library.

int imlua_open_fftw ( lua_State *  L  ) 

Initializes the Lua binding of the fourier transform library.
Returns 1 (leaves the "im" table on the top of the stack). You must link the application with the "imlua_fftw51" library.


Generated on Thu Oct 1 11:40:08 2009 for IM by  doxygen 1.6.1