SIP Toolbox

hello_sip - Learn to add your own C routine to SIP

Calling Sequence

sum = hello_sip(a,b)

Input Parameters

Description

"hello_sip" is a very simple example routine. The aim is that new developers know quickly how to add a new C-language implemented function to SIP.

hello_sip(a,b)
simply returns a + b through a C routine.

The following files in the SIP sourcecode tree are related to the implementation of hello_sip:

    src/hello_int.c -- 
        interfaces C to Scilab
    config/libsip_build.sce -- 
        specifies the interface source files and scilab name; this
        script is ran by Scilab to compile the interface C routines
        into a shared library.

From AnImaL (aminal.sourceforge.net), 
    animal/hello.c -- 
        routine that returns a+b
    animal/hello.h -- 
        header with the prototype of hello
    animal/animal.h 
        general header for the internal C library

Authors

Ricardo Fabbri <ricardofabbri (AT) users DOT sf DOT net>

Availability

The latest version of the Scilab Image Processing toolbox can be found at

http://siptoolbox.sourceforge.net

Remarks

In the SIP source tree, start with the "hello.c" file inside the directory "src".

Obsolete: Figure 1 of the first SIP monograph (written in portuguese), which may be found in the SIP home page. SIP now uses an independent computer vision library, AnImaL, for its internal processing. See:

http://animal.sourceforge.net

Moreover, in the scilab source tree, the directories "examples/interface-tour-so" and "examples/interface-tutorial-so" provide detailed information on interfacing C and Scilab.