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