mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
3b12410b91
git-subtree-dir: external/CImg git-subtree-split: c0becdf881b0f3e2445975cac01c2422170d1fd9
34 lines
1.2 KiB
Matlab
34 lines
1.2 KiB
Matlab
/*-----------------------------------------------------------------------
|
|
File : use_cimgmatlab.m
|
|
|
|
Description: Example of use for the CImg plugin 'plugins/cimgmatlab.h'
|
|
which allows to use CImg in order to develop matlab external
|
|
functions (mex functions).
|
|
User should be familiar with Matlab C/C++ mex function concepts,
|
|
as this file is by no way a mex programming tutorial.
|
|
|
|
This simple example implements a mex function that can be called
|
|
as
|
|
|
|
- v = cimgmatlab_cannyderiche(u,s)
|
|
- v = cimgmatlab_cannyderiche(u,sx,sy)
|
|
- v = cimgmatlab_cannyderiche(u,sx,sy,sz)
|
|
|
|
The corresponding m-file is cimgmatlab_cannyderiche.m
|
|
|
|
|
|
Copyright : Francois Lauze - http://www.itu.dk/people/francois
|
|
This software is governed by the Gnu General Public License
|
|
see http://www.gnu.org/copyleft/gpl.html
|
|
|
|
The plugin home page is at
|
|
http://www.itu.dk/people/francois/cimgmatlab.html
|
|
|
|
for the compilation: using the mex utility provided with matlab, just
|
|
remember to add the -I flags with paths to CImg.h and/or cimgmatlab.h.
|
|
The default lcc cannot be used, it is a C compiler and not a C++ one!
|
|
--------------------------------------------------------------------------*/
|
|
|
|
function v = cimgmatlab_cannyderiche(u,sx,sy,sz)
|
|
|