X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fcv%2F_cv.h;fp=src%2Fcv%2F_cv.h;h=c73faaf4f317ca2b4298e781a54edb553bcffaa1;hb=e4c14cdbdf2fe805e79cd96ded236f57e7b89060;hp=0000000000000000000000000000000000000000;hpb=454138ff8a20f6edb9b65a910101403d8b520643;p=opencv diff --git a/src/cv/_cv.h b/src/cv/_cv.h new file mode 100644 index 0000000..c73faaf --- /dev/null +++ b/src/cv/_cv.h @@ -0,0 +1,139 @@ +/*M/////////////////////////////////////////////////////////////////////////////////////// +// +// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. +// +// By downloading, copying, installing or using the software you agree to this license. +// If you do not agree to this license, do not download, install, +// copy or use the software. +// +// +// License Agreement +// For Open Source Computer Vision Library +// +// Copyright (C) 2000-2008, Intel Corporation, all rights reserved. +// Copyright (C) 2009, Willow Garage Inc., all rights reserved. +// Third party copyrights are property of their respective owners. +// +// Redistribution and use in source and binary forms, with or without modification, +// are permitted provided that the following conditions are met: +// +// * Redistribution's of source code must retain the above copyright notice, +// this list of conditions and the following disclaimer. +// +// * Redistribution's in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. +// +// * The name of the copyright holders may not be used to endorse or promote products +// derived from this software without specific prior written permission. +// +// This software is provided by the copyright holders and contributors "as is" and +// any express or implied warranties, including, but not limited to, the implied +// warranties of merchantability and fitness for a particular purpose are disclaimed. +// In no event shall the Intel Corporation or contributors be liable for any direct, +// indirect, incidental, special, exemplary, or consequential damages +// (including, but not limited to, procurement of substitute goods or services; +// loss of use, data, or profits; or business interruption) however caused +// and on any theory of liability, whether in contract, strict liability, +// or tort (including negligence or otherwise) arising in any way out of +// the use of this software, even if advised of the possibility of such damage. +// +//M*/ + +#ifndef _CV_INTERNAL_H_ +#define _CV_INTERNAL_H_ + +#if defined _MSC_VER && _MSC_VER >= 1200 + /* disable warnings related to inline functions */ + #pragma warning( disable: 4251 4711 4710 4514 ) +#endif + +#include "cv.h" +#include "cxmisc.h" +#include +#include +#include +#include +#include +#include +#include + +#ifdef __BORLANDC__ +#ifndef WIN32 + #define WIN32 +#endif +#ifndef _WIN32 + #define _WIN32 +#endif + #define CV_DLL + #undef _CV_ALWAYS_PROFILE_ + #define _CV_ALWAYS_NO_PROFILE_ +#endif + +#ifdef HAVE_IPP +#include "ipp.h" + +CV_INLINE IppiSize ippiSize(int width, int height) +{ + IppiSize size = { width, height }; + return size; +} +#endif + +/* helper tables */ +extern const uchar icvSaturate8u_cv[]; +#define CV_FAST_CAST_8U(t) (assert(-256 <= (t) || (t) <= 512), icvSaturate8u_cv[(t)+256]) +#define CV_CALC_MIN_8U(a,b) (a) -= CV_FAST_CAST_8U((a) - (b)) +#define CV_CALC_MAX_8U(a,b) (a) += CV_FAST_CAST_8U((b) - (a)) + +// -256.f ... 511.f +extern const float icv8x32fTab_cv[]; +#define CV_8TO32F(x) icv8x32fTab_cv[(x)+256] + +// (-128.f)^2 ... (255.f)^2 +extern const float icv8x32fSqrTab[]; +#define CV_8TO32F_SQR(x) icv8x32fSqrTab[(x)+128] + +namespace cv +{ + +enum { INTER_BITS=5, INTER_BITS2=INTER_BITS*2, + INTER_TAB_SIZE=(1<& coords, vector& coeffs ); +void crossCorr( const Mat& src, const Mat& templ, Mat& dst, + Point anchor=Point(0,0), double delta=0, + int borderType=BORDER_REFLECT_101 ); + +} + +typedef struct CvPyramid +{ + uchar **ptr; + CvSize *sz; + double *rate; + int *step; + uchar *state; + int level; +} +CvPyramid; + +#ifndef IPPI_CALL +#define IPPI_CALL(func) CV_Assert((func) >= 0) +#endif + +#include "_cvmatrix.h" +#include "_cvgeom.h" +#include "_cvimgproc.h" + +#endif /*_CV_INTERNAL_H_*/