PTdecode/CImg-1.3.0/examples/use_cimgmatlab.m

Wed, 05 Aug 2009 15:00:54 +0100

author
Philip Pemberton <philpem@philpem.me.uk>
date
Wed, 05 Aug 2009 15:00:54 +0100
changeset 12
96e1df9bd27c
parent 5
1204ebf9340d
permissions
-rwxr-xr-x

small changes to hexdump code to stop a gcc warning on platforms where sizeof(int) != sizeof(int*) e.g. x86_64

philpem@5 1 /*-----------------------------------------------------------------------
philpem@5 2 File : use_cimgmatlab.m
philpem@5 3
philpem@5 4 Description: Example of use for the CImg plugin 'plugins/cimgmatlab.h'
philpem@5 5 which allows to use CImg in order to develop matlab external
philpem@5 6 functions (mex functions).
philpem@5 7 User should be familiar with Matlab C/C++ mex function concepts,
philpem@5 8 as this file is by no way a mex programming tutorial.
philpem@5 9
philpem@5 10 This simple example implements a mex function that can be called
philpem@5 11 as
philpem@5 12
philpem@5 13 - v = cimgmatlab_cannyderiche(u,s)
philpem@5 14 - v = cimgmatlab_cannyderiche(u,sx,sy)
philpem@5 15 - v = cimgmatlab_cannyderiche(u,sx,sy,sz)
philpem@5 16
philpem@5 17 The corresponding m-file is cimgmatlab_cannyderiche.m
philpem@5 18
philpem@5 19
philpem@5 20 Copyright : Francois Lauze - http://www.itu.dk/people/francois
philpem@5 21 This software is governed by the Gnu General Public License
philpem@5 22 see http://www.gnu.org/copyleft/gpl.html
philpem@5 23
philpem@5 24 The plugin home page is at
philpem@5 25 http://www.itu.dk/people/francois/cimgmatlab.html
philpem@5 26
philpem@5 27 for the compilation: using the mex utility provided with matlab, just
philpem@5 28 remember to add the -I flags with paths to CImg.h and/or cimgmatlab.h.
philpem@5 29 The default lcc cannot be used, it is a C compiler and not a C++ one!
philpem@5 30 --------------------------------------------------------------------------*/
philpem@5 31
philpem@5 32 function v = cimgmatlab_cannyderiche(u,sx,sy,sz)
philpem@5 33