Austin Schuh | 8c794d5 | 2019-03-03 21:17:37 -0800 | [diff] [blame^] | 1 | /*----------------------------------------------------------------------- |
| 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 | |
| 32 | function v = cimgmatlab_cannyderiche(u,sx,sy,sz) |
| 33 | |