PTdecode/CImg-1.3.0/examples/use_cimgmatlab.m

changeset 5
1204ebf9340d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/PTdecode/CImg-1.3.0/examples/use_cimgmatlab.m	Mon Aug 03 14:09:20 2009 +0100
     1.3 @@ -0,0 +1,33 @@
     1.4 +/*-----------------------------------------------------------------------
     1.5 +  File : use_cimgmatlab.m
     1.6 +
     1.7 +  Description: Example of use for the CImg plugin 'plugins/cimgmatlab.h'
     1.8 +  which allows to use CImg in order to develop matlab external
     1.9 +  functions (mex functions).
    1.10 +  User should be familiar with Matlab C/C++ mex function concepts,
    1.11 +  as this file is by no way a mex programming tutorial.
    1.12 +
    1.13 +  This simple example implements a mex function that can be called
    1.14 +  as
    1.15 +
    1.16 +  - v = cimgmatlab_cannyderiche(u,s)
    1.17 +  - v = cimgmatlab_cannyderiche(u,sx,sy)
    1.18 +  - v = cimgmatlab_cannyderiche(u,sx,sy,sz)
    1.19 +
    1.20 +  The corresponding m-file is cimgmatlab_cannyderiche.m
    1.21 +
    1.22 +
    1.23 +  Copyright : Francois Lauze - http://www.itu.dk/people/francois
    1.24 +  This software is governed by the Gnu General Public License
    1.25 +  see http://www.gnu.org/copyleft/gpl.html
    1.26 +
    1.27 +  The plugin home page is at
    1.28 +  http://www.itu.dk/people/francois/cimgmatlab.html
    1.29 +
    1.30 +  for the compilation: using the mex utility provided with matlab, just
    1.31 +  remember to add the -I flags with paths to CImg.h and/or cimgmatlab.h.
    1.32 +  The default lcc cannot be used, it is a C compiler and not a C++ one!
    1.33 +--------------------------------------------------------------------------*/
    1.34 +
    1.35 +function v = cimgmatlab_cannyderiche(u,sx,sy,sz)
    1.36 +