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