PTdecode/CImg-1.3.0/examples/use_cimgmatlab.m

Wed, 05 Aug 2009 17:32:05 +0100

author
Philip Pemberton <philpem@philpem.me.uk>
date
Wed, 05 Aug 2009 17:32:05 +0100
changeset 18
fd1c6f6066da
parent 5
1204ebf9340d
permissions
-rwxr-xr-x

updated README

     1 /*-----------------------------------------------------------------------
     2   File : use_cimgmatlab.m
     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.
    10   This simple example implements a mex function that can be called
    11   as
    13   - v = cimgmatlab_cannyderiche(u,s)
    14   - v = cimgmatlab_cannyderiche(u,sx,sy)
    15   - v = cimgmatlab_cannyderiche(u,sx,sy,sz)
    17   The corresponding m-file is cimgmatlab_cannyderiche.m
    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
    24   The plugin home page is at
    25   http://www.itu.dk/people/francois/cimgmatlab.html
    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 --------------------------------------------------------------------------*/
    32 function v = cimgmatlab_cannyderiche(u,sx,sy,sz)