Squashed 'third_party/cimg/' content from commit 4b66369
Change-Id: I7454d9107a08dba899fd4659731733049165ae0a
git-subtree-dir: third_party/cimg
git-subtree-split: 4b66369ab4e34a46119d6c43e9adce061bb40f4b
diff --git a/examples/use_cimgmatlab.m b/examples/use_cimgmatlab.m
new file mode 100644
index 0000000..30abf66
--- /dev/null
+++ b/examples/use_cimgmatlab.m
@@ -0,0 +1,33 @@
+/*-----------------------------------------------------------------------
+ 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)
+