00001 #include <stdlib.h>
00002 #include <math.h>
00003
00004 #ifndef __anigauss_h__
00005 #define __anigauss_h__
00006
00007 #ifdef COPYRIGHT_NOTICE
00008
00009 Copyright University of Amsterdam, 2002-2004. All rights reserved.
00010
00011 Contact person:
00012 Jan-Mark Geusebroek (mark@science.uva.nl, http:
00013 Intelligent Systems Lab Amsterdam
00014 Informatics Institute, Faculty of Science, University of Amsterdam
00015 Kruislaan 403, 1098 SJ Amsterdam, The Netherlands.
00016
00017
00018 This software is being made available for individual research use only.
00019 Any commercial use or redistribution of this software requires a license from
00020 the University of Amsterdam.
00021
00022 You may use this work subject to the following conditions:
00023
00024 1. This work is provided "as is" by the copyright holders, with
00025 absolutely no warranties of correctness, fitness, intellectual property
00026 ownership, or anything else whatsoever. You use the work
00027 entirely at your own risk. The copyright holders will not be liable for
00028 any legal damages whatsoever connected with the use of this work.
00029
00030 2. The copyright holders retain all copyright to the work. All copies of
00031 the work and all works derived from it must contain (1) this copyright
00032 notice, and (2) additional notices describing the content, dates and
00033 copyright holders of modifications or additions made to the work, if
00034 any, including distribution and use conditions and intellectual property
00035 claims. Derived works must be clearly distinguished from the original
00036 work, both by name and by the prominent inclusion of explicit
00037 descriptions of overlaps and differences.
00038
00039 3. The names and trademarks of the copyright holders may not be used in
00040 advertising or publicity related to this work without specific prior
00041 written permission.
00042
00043 4. In return for the free use of this work, you are requested, but not
00044 legally required, to do the following:
00045
00046 - If you become aware of factors that may significantly affect other
00047 users of the work, for example major bugs or
00048 deficiencies or possible intellectual property issues, you are
00049 requested to report them to the copyright holders, if possible
00050 including redistributable fixes or workarounds.
00051
00052 - If you use the work in scientific research or as part of a larger
00053 software system, you are requested to cite the use in any related
00054 publications or technical documentation. The work is based upon:
00055
00056 J. M. Geusebroek, A. W. M. Smeulders, and J. van de Weijer.
00057 Fast anisotropic gauss filtering. IEEE Trans. Image Processing,
00058 vol. 12, no. 8, pp. 938-943, 2003.
00059
00060 I.T. Young and L.J. van Vliet. Recursive implementation
00061 of the Gaussian filter. Signal Processing, vol. 44, pp. 139-151, 1995.
00062
00063 B. Triggs. Boundary conditions for Young-van Vliet recursive filtering.
00064 IEEE Trans. Signal Processing, submitted, 2004.
00065
00066 This copyright notice must be retained with all copies of the software,
00067 including any modified or derived versions.
00068
00069 #endif
00070
00071
00072 #ifndef PI
00073 #ifdef M_PI
00074 #define PI M_PI
00075 #else
00076 #define PI 3.14159265358979323846
00077 #endif
00078 #endif
00079
00080
00081
00082 #define SRCTYPE double
00083
00084
00085 #define DSTTYPE double
00086
00087
00088
00089 void anigauss(SRCTYPE *input, DSTTYPE *output, int sizex, int sizey,
00090 double sigmav, double sigmau, double phi, int orderv, int orderu);
00091
00092 #endif