<< gsm2d SIP - Scilab Image Processing Toolbox hough >>

SIP - Scilab Image Processing Toolbox >> SIP - Scilab Image Processing Toolbox > hello_sip

hello_sip

Learn to add your own C routine to SIP

Calling Sequence

sum = hello_sip(a,b)

Parameters

a
double-precision scalar
b
double-precision scalar
c
double-precision scalar

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

Availability

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

http://siptoolbox.sourceforge.net


<< gsm2d SIP - Scilab Image Processing Toolbox hough >>