109469 lines
3.3 MiB
109469 lines
3.3 MiB
/* ----------------------------------------------------------------------------
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
* Version 1.3.40
|
|
*
|
|
* This file is not intended to be easily readable and contains a number of
|
|
* coding conventions designed to improve portability and efficiency. Do not make
|
|
* changes to this file unless you know what you are doing--modify the SWIG
|
|
* interface file instead.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
#define SWIGPYTHON
|
|
#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
|
|
|
|
|
|
#ifdef __cplusplus
|
|
/* SwigValueWrapper is described in swig.swg */
|
|
template<typename T> class SwigValueWrapper {
|
|
struct SwigMovePointer {
|
|
T *ptr;
|
|
SwigMovePointer(T *p) : ptr(p) { }
|
|
~SwigMovePointer() { delete ptr; }
|
|
SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
|
|
} pointer;
|
|
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
|
|
SwigValueWrapper(const SwigValueWrapper<T>& rhs);
|
|
public:
|
|
SwigValueWrapper() : pointer(0) { }
|
|
SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
|
|
operator T&() const { return *pointer.ptr; }
|
|
T *operator&() { return pointer.ptr; }
|
|
};
|
|
|
|
template <typename T> T SwigValueInit() {
|
|
return T();
|
|
}
|
|
#endif
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* This section contains generic SWIG labels for method/variable
|
|
* declarations/attributes, and other compiler dependent labels.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* template workaround for compilers that cannot correctly implement the C++ standard */
|
|
#ifndef SWIGTEMPLATEDISAMBIGUATOR
|
|
# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
|
|
# define SWIGTEMPLATEDISAMBIGUATOR template
|
|
# elif defined(__HP_aCC)
|
|
/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
|
|
/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
|
|
# define SWIGTEMPLATEDISAMBIGUATOR template
|
|
# else
|
|
# define SWIGTEMPLATEDISAMBIGUATOR
|
|
# endif
|
|
#endif
|
|
|
|
/* inline attribute */
|
|
#ifndef SWIGINLINE
|
|
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
|
|
# define SWIGINLINE inline
|
|
# else
|
|
# define SWIGINLINE
|
|
# endif
|
|
#endif
|
|
|
|
/* attribute recognised by some compilers to avoid 'unused' warnings */
|
|
#ifndef SWIGUNUSED
|
|
# if defined(__GNUC__)
|
|
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
|
# define SWIGUNUSED __attribute__ ((__unused__))
|
|
# else
|
|
# define SWIGUNUSED
|
|
# endif
|
|
# elif defined(__ICC)
|
|
# define SWIGUNUSED __attribute__ ((__unused__))
|
|
# else
|
|
# define SWIGUNUSED
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
|
# if defined(_MSC_VER)
|
|
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef SWIGUNUSEDPARM
|
|
# ifdef __cplusplus
|
|
# define SWIGUNUSEDPARM(p)
|
|
# else
|
|
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
|
# endif
|
|
#endif
|
|
|
|
/* internal SWIG method */
|
|
#ifndef SWIGINTERN
|
|
# define SWIGINTERN static SWIGUNUSED
|
|
#endif
|
|
|
|
/* internal inline SWIG method */
|
|
#ifndef SWIGINTERNINLINE
|
|
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
|
|
#endif
|
|
|
|
/* exporting methods */
|
|
#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
|
# ifndef GCC_HASCLASSVISIBILITY
|
|
# define GCC_HASCLASSVISIBILITY
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef SWIGEXPORT
|
|
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
|
# if defined(STATIC_LINKED)
|
|
# define SWIGEXPORT
|
|
# else
|
|
# define SWIGEXPORT __declspec(dllexport)
|
|
# endif
|
|
# else
|
|
# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
|
|
# define SWIGEXPORT __attribute__ ((visibility("default")))
|
|
# else
|
|
# define SWIGEXPORT
|
|
# endif
|
|
# endif
|
|
#endif
|
|
|
|
/* calling conventions for Windows */
|
|
#ifndef SWIGSTDCALL
|
|
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
|
# define SWIGSTDCALL __stdcall
|
|
# else
|
|
# define SWIGSTDCALL
|
|
# endif
|
|
#endif
|
|
|
|
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
|
|
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
|
|
# define _CRT_SECURE_NO_DEPRECATE
|
|
#endif
|
|
|
|
/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
|
|
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
|
|
# define _SCL_SECURE_NO_DEPRECATE
|
|
#endif
|
|
|
|
|
|
|
|
/* Python.h has to appear first */
|
|
#include <Python.h>
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* swigrun.swg
|
|
*
|
|
* This file contains generic C API SWIG runtime support for pointer
|
|
* type checking.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* This should only be incremented when either the layout of swig_type_info changes,
|
|
or for whatever reason, the runtime changes incompatibly */
|
|
#define SWIG_RUNTIME_VERSION "4"
|
|
|
|
/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
|
|
#ifdef SWIG_TYPE_TABLE
|
|
# define SWIG_QUOTE_STRING(x) #x
|
|
# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
|
|
# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
|
|
#else
|
|
# define SWIG_TYPE_TABLE_NAME
|
|
#endif
|
|
|
|
/*
|
|
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
|
|
creating a static or dynamic library from the SWIG runtime code.
|
|
In 99.9% of the cases, SWIG just needs to declare them as 'static'.
|
|
|
|
But only do this if strictly necessary, ie, if you have problems
|
|
with your compiler or suchlike.
|
|
*/
|
|
|
|
#ifndef SWIGRUNTIME
|
|
# define SWIGRUNTIME SWIGINTERN
|
|
#endif
|
|
|
|
#ifndef SWIGRUNTIMEINLINE
|
|
# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
|
|
#endif
|
|
|
|
/* Generic buffer size */
|
|
#ifndef SWIG_BUFFER_SIZE
|
|
# define SWIG_BUFFER_SIZE 1024
|
|
#endif
|
|
|
|
/* Flags for pointer conversions */
|
|
#define SWIG_POINTER_DISOWN 0x1
|
|
#define SWIG_CAST_NEW_MEMORY 0x2
|
|
|
|
/* Flags for new pointer objects */
|
|
#define SWIG_POINTER_OWN 0x1
|
|
|
|
|
|
/*
|
|
Flags/methods for returning states.
|
|
|
|
The SWIG conversion methods, as ConvertPtr, return and integer
|
|
that tells if the conversion was successful or not. And if not,
|
|
an error code can be returned (see swigerrors.swg for the codes).
|
|
|
|
Use the following macros/flags to set or process the returning
|
|
states.
|
|
|
|
In old versions of SWIG, code such as the following was usually written:
|
|
|
|
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
|
|
// success code
|
|
} else {
|
|
//fail code
|
|
}
|
|
|
|
Now you can be more explicit:
|
|
|
|
int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
|
|
if (SWIG_IsOK(res)) {
|
|
// success code
|
|
} else {
|
|
// fail code
|
|
}
|
|
|
|
which is the same really, but now you can also do
|
|
|
|
Type *ptr;
|
|
int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
|
|
if (SWIG_IsOK(res)) {
|
|
// success code
|
|
if (SWIG_IsNewObj(res) {
|
|
...
|
|
delete *ptr;
|
|
} else {
|
|
...
|
|
}
|
|
} else {
|
|
// fail code
|
|
}
|
|
|
|
I.e., now SWIG_ConvertPtr can return new objects and you can
|
|
identify the case and take care of the deallocation. Of course that
|
|
also requires SWIG_ConvertPtr to return new result values, such as
|
|
|
|
int SWIG_ConvertPtr(obj, ptr,...) {
|
|
if (<obj is ok>) {
|
|
if (<need new object>) {
|
|
*ptr = <ptr to new allocated object>;
|
|
return SWIG_NEWOBJ;
|
|
} else {
|
|
*ptr = <ptr to old object>;
|
|
return SWIG_OLDOBJ;
|
|
}
|
|
} else {
|
|
return SWIG_BADOBJ;
|
|
}
|
|
}
|
|
|
|
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
|
|
more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
|
|
SWIG errors code.
|
|
|
|
Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
|
|
allows to return the 'cast rank', for example, if you have this
|
|
|
|
int food(double)
|
|
int fooi(int);
|
|
|
|
and you call
|
|
|
|
food(1) // cast rank '1' (1 -> 1.0)
|
|
fooi(1) // cast rank '0'
|
|
|
|
just use the SWIG_AddCast()/SWIG_CheckState()
|
|
*/
|
|
|
|
#define SWIG_OK (0)
|
|
#define SWIG_ERROR (-1)
|
|
#define SWIG_IsOK(r) (r >= 0)
|
|
#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
|
|
|
|
/* The CastRankLimit says how many bits are used for the cast rank */
|
|
#define SWIG_CASTRANKLIMIT (1 << 8)
|
|
/* The NewMask denotes the object was created (using new/malloc) */
|
|
#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
|
|
/* The TmpMask is for in/out typemaps that use temporal objects */
|
|
#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
|
|
/* Simple returning values */
|
|
#define SWIG_BADOBJ (SWIG_ERROR)
|
|
#define SWIG_OLDOBJ (SWIG_OK)
|
|
#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
|
|
#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
|
|
/* Check, add and del mask methods */
|
|
#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
|
|
#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
|
|
#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
|
|
#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
|
|
#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
|
|
#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
|
|
|
|
/* Cast-Rank Mode */
|
|
#if defined(SWIG_CASTRANK_MODE)
|
|
# ifndef SWIG_TypeRank
|
|
# define SWIG_TypeRank unsigned long
|
|
# endif
|
|
# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
|
|
# define SWIG_MAXCASTRANK (2)
|
|
# endif
|
|
# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
|
|
# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
|
|
SWIGINTERNINLINE int SWIG_AddCast(int r) {
|
|
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
|
|
}
|
|
SWIGINTERNINLINE int SWIG_CheckState(int r) {
|
|
return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
|
|
}
|
|
#else /* no cast-rank mode */
|
|
# define SWIG_AddCast
|
|
# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
|
|
#endif
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef void *(*swig_converter_func)(void *, int *);
|
|
typedef struct swig_type_info *(*swig_dycast_func)(void **);
|
|
|
|
/* Structure to store information on one type */
|
|
typedef struct swig_type_info {
|
|
const char *name; /* mangled name of this type */
|
|
const char *str; /* human readable name of this type */
|
|
swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
|
|
struct swig_cast_info *cast; /* linked list of types that can cast into this type */
|
|
void *clientdata; /* language specific type data */
|
|
int owndata; /* flag if the structure owns the clientdata */
|
|
} swig_type_info;
|
|
|
|
/* Structure to store a type and conversion function used for casting */
|
|
typedef struct swig_cast_info {
|
|
swig_type_info *type; /* pointer to type that is equivalent to this type */
|
|
swig_converter_func converter; /* function to cast the void pointers */
|
|
struct swig_cast_info *next; /* pointer to next cast in linked list */
|
|
struct swig_cast_info *prev; /* pointer to the previous cast */
|
|
} swig_cast_info;
|
|
|
|
/* Structure used to store module information
|
|
* Each module generates one structure like this, and the runtime collects
|
|
* all of these structures and stores them in a circularly linked list.*/
|
|
typedef struct swig_module_info {
|
|
swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
|
|
size_t size; /* Number of types in this module */
|
|
struct swig_module_info *next; /* Pointer to next element in circularly linked list */
|
|
swig_type_info **type_initial; /* Array of initially generated type structures */
|
|
swig_cast_info **cast_initial; /* Array of initially generated casting structures */
|
|
void *clientdata; /* Language specific module data */
|
|
} swig_module_info;
|
|
|
|
/*
|
|
Compare two type names skipping the space characters, therefore
|
|
"char*" == "char *" and "Class<int>" == "Class<int >", etc.
|
|
|
|
Return 0 when the two name types are equivalent, as in
|
|
strncmp, but skipping ' '.
|
|
*/
|
|
SWIGRUNTIME int
|
|
SWIG_TypeNameComp(const char *f1, const char *l1,
|
|
const char *f2, const char *l2) {
|
|
for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
|
|
while ((*f1 == ' ') && (f1 != l1)) ++f1;
|
|
while ((*f2 == ' ') && (f2 != l2)) ++f2;
|
|
if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
|
|
}
|
|
return (int)((l1 - f1) - (l2 - f2));
|
|
}
|
|
|
|
/*
|
|
Check type equivalence in a name list like <name1>|<name2>|...
|
|
Return 0 if not equal, 1 if equal
|
|
*/
|
|
SWIGRUNTIME int
|
|
SWIG_TypeEquiv(const char *nb, const char *tb) {
|
|
int equiv = 0;
|
|
const char* te = tb + strlen(tb);
|
|
const char* ne = nb;
|
|
while (!equiv && *ne) {
|
|
for (nb = ne; *ne; ++ne) {
|
|
if (*ne == '|') break;
|
|
}
|
|
equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
|
|
if (*ne) ++ne;
|
|
}
|
|
return equiv;
|
|
}
|
|
|
|
/*
|
|
Check type equivalence in a name list like <name1>|<name2>|...
|
|
Return 0 if equal, -1 if nb < tb, 1 if nb > tb
|
|
*/
|
|
SWIGRUNTIME int
|
|
SWIG_TypeCompare(const char *nb, const char *tb) {
|
|
int equiv = 0;
|
|
const char* te = tb + strlen(tb);
|
|
const char* ne = nb;
|
|
while (!equiv && *ne) {
|
|
for (nb = ne; *ne; ++ne) {
|
|
if (*ne == '|') break;
|
|
}
|
|
equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
|
|
if (*ne) ++ne;
|
|
}
|
|
return equiv;
|
|
}
|
|
|
|
|
|
/*
|
|
Check the typename
|
|
*/
|
|
SWIGRUNTIME swig_cast_info *
|
|
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
|
|
if (ty) {
|
|
swig_cast_info *iter = ty->cast;
|
|
while (iter) {
|
|
if (strcmp(iter->type->name, c) == 0) {
|
|
if (iter == ty->cast)
|
|
return iter;
|
|
/* Move iter to the top of the linked list */
|
|
iter->prev->next = iter->next;
|
|
if (iter->next)
|
|
iter->next->prev = iter->prev;
|
|
iter->next = ty->cast;
|
|
iter->prev = 0;
|
|
if (ty->cast) ty->cast->prev = iter;
|
|
ty->cast = iter;
|
|
return iter;
|
|
}
|
|
iter = iter->next;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
|
|
*/
|
|
SWIGRUNTIME swig_cast_info *
|
|
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
|
|
if (ty) {
|
|
swig_cast_info *iter = ty->cast;
|
|
while (iter) {
|
|
if (iter->type == from) {
|
|
if (iter == ty->cast)
|
|
return iter;
|
|
/* Move iter to the top of the linked list */
|
|
iter->prev->next = iter->next;
|
|
if (iter->next)
|
|
iter->next->prev = iter->prev;
|
|
iter->next = ty->cast;
|
|
iter->prev = 0;
|
|
if (ty->cast) ty->cast->prev = iter;
|
|
ty->cast = iter;
|
|
return iter;
|
|
}
|
|
iter = iter->next;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
Cast a pointer up an inheritance hierarchy
|
|
*/
|
|
SWIGRUNTIMEINLINE void *
|
|
SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
|
|
return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
|
|
}
|
|
|
|
/*
|
|
Dynamic pointer casting. Down an inheritance hierarchy
|
|
*/
|
|
SWIGRUNTIME swig_type_info *
|
|
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
|
|
swig_type_info *lastty = ty;
|
|
if (!ty || !ty->dcast) return ty;
|
|
while (ty && (ty->dcast)) {
|
|
ty = (*ty->dcast)(ptr);
|
|
if (ty) lastty = ty;
|
|
}
|
|
return lastty;
|
|
}
|
|
|
|
/*
|
|
Return the name associated with this type
|
|
*/
|
|
SWIGRUNTIMEINLINE const char *
|
|
SWIG_TypeName(const swig_type_info *ty) {
|
|
return ty->name;
|
|
}
|
|
|
|
/*
|
|
Return the pretty name associated with this type,
|
|
that is an unmangled type name in a form presentable to the user.
|
|
*/
|
|
SWIGRUNTIME const char *
|
|
SWIG_TypePrettyName(const swig_type_info *type) {
|
|
/* The "str" field contains the equivalent pretty names of the
|
|
type, separated by vertical-bar characters. We choose
|
|
to print the last name, as it is often (?) the most
|
|
specific. */
|
|
if (!type) return NULL;
|
|
if (type->str != NULL) {
|
|
const char *last_name = type->str;
|
|
const char *s;
|
|
for (s = type->str; *s; s++)
|
|
if (*s == '|') last_name = s+1;
|
|
return last_name;
|
|
}
|
|
else
|
|
return type->name;
|
|
}
|
|
|
|
/*
|
|
Set the clientdata field for a type
|
|
*/
|
|
SWIGRUNTIME void
|
|
SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
|
|
swig_cast_info *cast = ti->cast;
|
|
/* if (ti->clientdata == clientdata) return; */
|
|
ti->clientdata = clientdata;
|
|
|
|
while (cast) {
|
|
if (!cast->converter) {
|
|
swig_type_info *tc = cast->type;
|
|
if (!tc->clientdata) {
|
|
SWIG_TypeClientData(tc, clientdata);
|
|
}
|
|
}
|
|
cast = cast->next;
|
|
}
|
|
}
|
|
SWIGRUNTIME void
|
|
SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
|
|
SWIG_TypeClientData(ti, clientdata);
|
|
ti->owndata = 1;
|
|
}
|
|
|
|
/*
|
|
Search for a swig_type_info structure only by mangled name
|
|
Search is a O(log #types)
|
|
|
|
We start searching at module start, and finish searching when start == end.
|
|
Note: if start == end at the beginning of the function, we go all the way around
|
|
the circular list.
|
|
*/
|
|
SWIGRUNTIME swig_type_info *
|
|
SWIG_MangledTypeQueryModule(swig_module_info *start,
|
|
swig_module_info *end,
|
|
const char *name) {
|
|
swig_module_info *iter = start;
|
|
do {
|
|
if (iter->size) {
|
|
register size_t l = 0;
|
|
register size_t r = iter->size - 1;
|
|
do {
|
|
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
|
|
register size_t i = (l + r) >> 1;
|
|
const char *iname = iter->types[i]->name;
|
|
if (iname) {
|
|
register int compare = strcmp(name, iname);
|
|
if (compare == 0) {
|
|
return iter->types[i];
|
|
} else if (compare < 0) {
|
|
if (i) {
|
|
r = i - 1;
|
|
} else {
|
|
break;
|
|
}
|
|
} else if (compare > 0) {
|
|
l = i + 1;
|
|
}
|
|
} else {
|
|
break; /* should never happen */
|
|
}
|
|
} while (l <= r);
|
|
}
|
|
iter = iter->next;
|
|
} while (iter != end);
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
Search for a swig_type_info structure for either a mangled name or a human readable name.
|
|
It first searches the mangled names of the types, which is a O(log #types)
|
|
If a type is not found it then searches the human readable names, which is O(#types).
|
|
|
|
We start searching at module start, and finish searching when start == end.
|
|
Note: if start == end at the beginning of the function, we go all the way around
|
|
the circular list.
|
|
*/
|
|
SWIGRUNTIME swig_type_info *
|
|
SWIG_TypeQueryModule(swig_module_info *start,
|
|
swig_module_info *end,
|
|
const char *name) {
|
|
/* STEP 1: Search the name field using binary search */
|
|
swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
|
|
if (ret) {
|
|
return ret;
|
|
} else {
|
|
/* STEP 2: If the type hasn't been found, do a complete search
|
|
of the str field (the human readable name) */
|
|
swig_module_info *iter = start;
|
|
do {
|
|
register size_t i = 0;
|
|
for (; i < iter->size; ++i) {
|
|
if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
|
|
return iter->types[i];
|
|
}
|
|
iter = iter->next;
|
|
} while (iter != end);
|
|
}
|
|
|
|
/* neither found a match */
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
Pack binary data into a string
|
|
*/
|
|
SWIGRUNTIME char *
|
|
SWIG_PackData(char *c, void *ptr, size_t sz) {
|
|
static const char hex[17] = "0123456789abcdef";
|
|
register const unsigned char *u = (unsigned char *) ptr;
|
|
register const unsigned char *eu = u + sz;
|
|
for (; u != eu; ++u) {
|
|
register unsigned char uu = *u;
|
|
*(c++) = hex[(uu & 0xf0) >> 4];
|
|
*(c++) = hex[uu & 0xf];
|
|
}
|
|
return c;
|
|
}
|
|
|
|
/*
|
|
Unpack binary data from a string
|
|
*/
|
|
SWIGRUNTIME const char *
|
|
SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
|
|
register unsigned char *u = (unsigned char *) ptr;
|
|
register const unsigned char *eu = u + sz;
|
|
for (; u != eu; ++u) {
|
|
register char d = *(c++);
|
|
register unsigned char uu;
|
|
if ((d >= '0') && (d <= '9'))
|
|
uu = ((d - '0') << 4);
|
|
else if ((d >= 'a') && (d <= 'f'))
|
|
uu = ((d - ('a'-10)) << 4);
|
|
else
|
|
return (char *) 0;
|
|
d = *(c++);
|
|
if ((d >= '0') && (d <= '9'))
|
|
uu |= (d - '0');
|
|
else if ((d >= 'a') && (d <= 'f'))
|
|
uu |= (d - ('a'-10));
|
|
else
|
|
return (char *) 0;
|
|
*u = uu;
|
|
}
|
|
return c;
|
|
}
|
|
|
|
/*
|
|
Pack 'void *' into a string buffer.
|
|
*/
|
|
SWIGRUNTIME char *
|
|
SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
|
|
char *r = buff;
|
|
if ((2*sizeof(void *) + 2) > bsz) return 0;
|
|
*(r++) = '_';
|
|
r = SWIG_PackData(r,&ptr,sizeof(void *));
|
|
if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
|
|
strcpy(r,name);
|
|
return buff;
|
|
}
|
|
|
|
SWIGRUNTIME const char *
|
|
SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
|
|
if (*c != '_') {
|
|
if (strcmp(c,"NULL") == 0) {
|
|
*ptr = (void *) 0;
|
|
return name;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
return SWIG_UnpackData(++c,ptr,sizeof(void *));
|
|
}
|
|
|
|
SWIGRUNTIME char *
|
|
SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
|
|
char *r = buff;
|
|
size_t lname = (name ? strlen(name) : 0);
|
|
if ((2*sz + 2 + lname) > bsz) return 0;
|
|
*(r++) = '_';
|
|
r = SWIG_PackData(r,ptr,sz);
|
|
if (lname) {
|
|
strncpy(r,name,lname+1);
|
|
} else {
|
|
*r = 0;
|
|
}
|
|
return buff;
|
|
}
|
|
|
|
SWIGRUNTIME const char *
|
|
SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
if (*c != '_') {
|
|
if (strcmp(c,"NULL") == 0) {
|
|
memset(ptr,0,sz);
|
|
return name;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
return SWIG_UnpackData(++c,ptr,sz);
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/* Errors in SWIG */
|
|
#define SWIG_UnknownError -1
|
|
#define SWIG_IOError -2
|
|
#define SWIG_RuntimeError -3
|
|
#define SWIG_IndexError -4
|
|
#define SWIG_TypeError -5
|
|
#define SWIG_DivisionByZero -6
|
|
#define SWIG_OverflowError -7
|
|
#define SWIG_SyntaxError -8
|
|
#define SWIG_ValueError -9
|
|
#define SWIG_SystemError -10
|
|
#define SWIG_AttributeError -11
|
|
#define SWIG_MemoryError -12
|
|
#define SWIG_NullReferenceError -13
|
|
|
|
|
|
|
|
/* Compatibility macros for Python 3 */
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
|
|
#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
|
|
#define PyInt_Check(x) PyLong_Check(x)
|
|
#define PyInt_AsLong(x) PyLong_AsLong(x)
|
|
#define PyInt_FromLong(x) PyLong_FromLong(x)
|
|
#define PyString_Format(fmt, args) PyUnicode_Format(fmt, args)
|
|
|
|
#endif
|
|
|
|
#ifndef Py_TYPE
|
|
# define Py_TYPE(op) ((op)->ob_type)
|
|
#endif
|
|
|
|
/* SWIG APIs for compatibility of both Python 2 & 3 */
|
|
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
# define SWIG_Python_str_FromFormat PyUnicode_FromFormat
|
|
#else
|
|
# define SWIG_Python_str_FromFormat PyString_FromFormat
|
|
#endif
|
|
|
|
|
|
/* Warning: This function will allocate a new string in Python 3,
|
|
* so please call SWIG_Python_str_DelForPy3(x) to free the space.
|
|
*/
|
|
SWIGINTERN char*
|
|
SWIG_Python_str_AsChar(PyObject *str)
|
|
{
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
char *cstr;
|
|
char *newstr;
|
|
Py_ssize_t len;
|
|
str = PyUnicode_AsUTF8String(str);
|
|
PyBytes_AsStringAndSize(str, &cstr, &len);
|
|
newstr = (char *) malloc(len+1);
|
|
memcpy(newstr, cstr, len+1);
|
|
Py_XDECREF(str);
|
|
return newstr;
|
|
#else
|
|
return PyString_AsString(str);
|
|
#endif
|
|
}
|
|
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
# define SWIG_Python_str_DelForPy3(x) free( (void*) (x) )
|
|
#else
|
|
# define SWIG_Python_str_DelForPy3(x)
|
|
#endif
|
|
|
|
|
|
SWIGINTERN PyObject*
|
|
SWIG_Python_str_FromChar(const char *c)
|
|
{
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
return PyUnicode_FromString(c);
|
|
#else
|
|
return PyString_FromString(c);
|
|
#endif
|
|
}
|
|
|
|
/* Add PyOS_snprintf for old Pythons */
|
|
#if PY_VERSION_HEX < 0x02020000
|
|
# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
|
|
# define PyOS_snprintf _snprintf
|
|
# else
|
|
# define PyOS_snprintf snprintf
|
|
# endif
|
|
#endif
|
|
|
|
/* A crude PyString_FromFormat implementation for old Pythons */
|
|
#if PY_VERSION_HEX < 0x02020000
|
|
|
|
#ifndef SWIG_PYBUFFER_SIZE
|
|
# define SWIG_PYBUFFER_SIZE 1024
|
|
#endif
|
|
|
|
static PyObject *
|
|
PyString_FromFormat(const char *fmt, ...) {
|
|
va_list ap;
|
|
char buf[SWIG_PYBUFFER_SIZE * 2];
|
|
int res;
|
|
va_start(ap, fmt);
|
|
res = vsnprintf(buf, sizeof(buf), fmt, ap);
|
|
va_end(ap);
|
|
return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
|
|
}
|
|
#endif
|
|
|
|
/* Add PyObject_Del for old Pythons */
|
|
#if PY_VERSION_HEX < 0x01060000
|
|
# define PyObject_Del(op) PyMem_DEL((op))
|
|
#endif
|
|
#ifndef PyObject_DEL
|
|
# define PyObject_DEL PyObject_Del
|
|
#endif
|
|
|
|
/* A crude PyExc_StopIteration exception for old Pythons */
|
|
#if PY_VERSION_HEX < 0x02020000
|
|
# ifndef PyExc_StopIteration
|
|
# define PyExc_StopIteration PyExc_RuntimeError
|
|
# endif
|
|
# ifndef PyObject_GenericGetAttr
|
|
# define PyObject_GenericGetAttr 0
|
|
# endif
|
|
#endif
|
|
|
|
/* Py_NotImplemented is defined in 2.1 and up. */
|
|
#if PY_VERSION_HEX < 0x02010000
|
|
# ifndef Py_NotImplemented
|
|
# define Py_NotImplemented PyExc_RuntimeError
|
|
# endif
|
|
#endif
|
|
|
|
/* A crude PyString_AsStringAndSize implementation for old Pythons */
|
|
#if PY_VERSION_HEX < 0x02010000
|
|
# ifndef PyString_AsStringAndSize
|
|
# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
|
|
# endif
|
|
#endif
|
|
|
|
/* PySequence_Size for old Pythons */
|
|
#if PY_VERSION_HEX < 0x02000000
|
|
# ifndef PySequence_Size
|
|
# define PySequence_Size PySequence_Length
|
|
# endif
|
|
#endif
|
|
|
|
/* PyBool_FromLong for old Pythons */
|
|
#if PY_VERSION_HEX < 0x02030000
|
|
static
|
|
PyObject *PyBool_FromLong(long ok)
|
|
{
|
|
PyObject *result = ok ? Py_True : Py_False;
|
|
Py_INCREF(result);
|
|
return result;
|
|
}
|
|
#endif
|
|
|
|
/* Py_ssize_t for old Pythons */
|
|
/* This code is as recommended by: */
|
|
/* http://www.python.org/dev/peps/pep-0353/#conversion-guidelines */
|
|
#if PY_VERSION_HEX < 0x02050000 && !defined(PY_SSIZE_T_MIN)
|
|
typedef int Py_ssize_t;
|
|
# define PY_SSIZE_T_MAX INT_MAX
|
|
# define PY_SSIZE_T_MIN INT_MIN
|
|
#endif
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* error manipulation
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
SWIGRUNTIME PyObject*
|
|
SWIG_Python_ErrorType(int code) {
|
|
PyObject* type = 0;
|
|
switch(code) {
|
|
case SWIG_MemoryError:
|
|
type = PyExc_MemoryError;
|
|
break;
|
|
case SWIG_IOError:
|
|
type = PyExc_IOError;
|
|
break;
|
|
case SWIG_RuntimeError:
|
|
type = PyExc_RuntimeError;
|
|
break;
|
|
case SWIG_IndexError:
|
|
type = PyExc_IndexError;
|
|
break;
|
|
case SWIG_TypeError:
|
|
type = PyExc_TypeError;
|
|
break;
|
|
case SWIG_DivisionByZero:
|
|
type = PyExc_ZeroDivisionError;
|
|
break;
|
|
case SWIG_OverflowError:
|
|
type = PyExc_OverflowError;
|
|
break;
|
|
case SWIG_SyntaxError:
|
|
type = PyExc_SyntaxError;
|
|
break;
|
|
case SWIG_ValueError:
|
|
type = PyExc_ValueError;
|
|
break;
|
|
case SWIG_SystemError:
|
|
type = PyExc_SystemError;
|
|
break;
|
|
case SWIG_AttributeError:
|
|
type = PyExc_AttributeError;
|
|
break;
|
|
default:
|
|
type = PyExc_RuntimeError;
|
|
}
|
|
return type;
|
|
}
|
|
|
|
|
|
SWIGRUNTIME void
|
|
SWIG_Python_AddErrorMsg(const char* mesg)
|
|
{
|
|
PyObject *type = 0;
|
|
PyObject *value = 0;
|
|
PyObject *traceback = 0;
|
|
|
|
if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
|
|
if (value) {
|
|
char *tmp;
|
|
PyObject *old_str = PyObject_Str(value);
|
|
PyErr_Clear();
|
|
Py_XINCREF(type);
|
|
|
|
PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
|
|
SWIG_Python_str_DelForPy3(tmp);
|
|
Py_DECREF(old_str);
|
|
Py_DECREF(value);
|
|
} else {
|
|
PyErr_SetString(PyExc_RuntimeError, mesg);
|
|
}
|
|
}
|
|
|
|
#if defined(SWIG_PYTHON_NO_THREADS)
|
|
# if defined(SWIG_PYTHON_THREADS)
|
|
# undef SWIG_PYTHON_THREADS
|
|
# endif
|
|
#endif
|
|
#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
|
|
# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
|
|
# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
|
|
# define SWIG_PYTHON_USE_GIL
|
|
# endif
|
|
# endif
|
|
# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
|
|
# ifndef SWIG_PYTHON_INITIALIZE_THREADS
|
|
# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
|
|
# endif
|
|
# ifdef __cplusplus /* C++ code */
|
|
class SWIG_Python_Thread_Block {
|
|
bool status;
|
|
PyGILState_STATE state;
|
|
public:
|
|
void end() { if (status) { PyGILState_Release(state); status = false;} }
|
|
SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
|
|
~SWIG_Python_Thread_Block() { end(); }
|
|
};
|
|
class SWIG_Python_Thread_Allow {
|
|
bool status;
|
|
PyThreadState *save;
|
|
public:
|
|
void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
|
|
SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
|
|
~SWIG_Python_Thread_Allow() { end(); }
|
|
};
|
|
# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
|
|
# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
|
|
# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
|
|
# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
|
|
# else /* C code */
|
|
# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
|
|
# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
|
|
# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
|
|
# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
|
|
# endif
|
|
# else /* Old thread way, not implemented, user must provide it */
|
|
# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
|
|
# define SWIG_PYTHON_INITIALIZE_THREADS
|
|
# endif
|
|
# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
|
|
# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
|
|
# endif
|
|
# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
|
|
# define SWIG_PYTHON_THREAD_END_BLOCK
|
|
# endif
|
|
# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
|
|
# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
|
|
# endif
|
|
# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
|
|
# define SWIG_PYTHON_THREAD_END_ALLOW
|
|
# endif
|
|
# endif
|
|
#else /* No thread support */
|
|
# define SWIG_PYTHON_INITIALIZE_THREADS
|
|
# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
|
|
# define SWIG_PYTHON_THREAD_END_BLOCK
|
|
# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
|
|
# define SWIG_PYTHON_THREAD_END_ALLOW
|
|
#endif
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* Python API portion that goes into the runtime
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#if 0
|
|
} /* cc-mode */
|
|
#endif
|
|
#endif
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* Constant declarations
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* Constant Types */
|
|
#define SWIG_PY_POINTER 4
|
|
#define SWIG_PY_BINARY 5
|
|
|
|
/* Constant information structure */
|
|
typedef struct swig_const_info {
|
|
int type;
|
|
char *name;
|
|
long lvalue;
|
|
double dvalue;
|
|
void *pvalue;
|
|
swig_type_info **ptype;
|
|
} swig_const_info;
|
|
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* Wrapper of PyInstanceMethod_New() used in Python 3
|
|
* It is exported to the generated module, used for -fastproxy
|
|
* ----------------------------------------------------------------------------- */
|
|
SWIGRUNTIME PyObject* SWIG_PyInstanceMethod_New(PyObject *self, PyObject *func)
|
|
{
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
return PyInstanceMethod_New(func);
|
|
#else
|
|
return NULL;
|
|
#endif
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
#if 0
|
|
{ /* cc-mode */
|
|
#endif
|
|
}
|
|
#endif
|
|
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* See the LICENSE file for information on copyright, usage and redistribution
|
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
|
*
|
|
* pyrun.swg
|
|
*
|
|
* This file contains the runtime support for Python modules
|
|
* and includes code for managing global variables and pointer
|
|
* type checking.
|
|
*
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* Common SWIG API */
|
|
|
|
/* for raw pointers */
|
|
#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
|
|
#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
|
|
#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
|
|
#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
|
|
#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
|
|
#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
|
|
#define swig_owntype int
|
|
|
|
/* for raw packed data */
|
|
#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
|
|
#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
|
|
|
|
/* for class or struct pointers */
|
|
#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
|
|
#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
|
|
|
|
/* for C or C++ function pointers */
|
|
#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
|
|
#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
|
|
|
|
/* for C++ member pointers, ie, member methods */
|
|
#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
|
|
#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
|
|
|
|
|
|
/* Runtime API */
|
|
|
|
#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
|
|
#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
|
|
#define SWIG_NewClientData(obj) SwigPyClientData_New(obj)
|
|
|
|
#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
|
|
#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
|
|
#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
|
|
#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
|
|
#define SWIG_fail goto fail
|
|
|
|
|
|
/* Runtime API implementation */
|
|
|
|
/* Error manipulation */
|
|
|
|
SWIGINTERN void
|
|
SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
|
|
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
|
|
PyErr_SetObject(errtype, obj);
|
|
Py_DECREF(obj);
|
|
SWIG_PYTHON_THREAD_END_BLOCK;
|
|
}
|
|
|
|
SWIGINTERN void
|
|
SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
|
|
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
|
|
PyErr_SetString(errtype, (char *) msg);
|
|
SWIG_PYTHON_THREAD_END_BLOCK;
|
|
}
|
|
|
|
#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
|
|
|
|
/* Set a constant value */
|
|
|
|
SWIGINTERN void
|
|
SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
|
|
PyDict_SetItemString(d, (char*) name, obj);
|
|
Py_DECREF(obj);
|
|
}
|
|
|
|
/* Append a value to the result obj */
|
|
|
|
SWIGINTERN PyObject*
|
|
SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
|
|
#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
|
|
if (!result) {
|
|
result = obj;
|
|
} else if (result == Py_None) {
|
|
Py_DECREF(result);
|
|
result = obj;
|
|
} else {
|
|
if (!PyList_Check(result)) {
|
|
PyObject *o2 = result;
|
|
result = PyList_New(1);
|
|
PyList_SetItem(result, 0, o2);
|
|
}
|
|
PyList_Append(result,obj);
|
|
Py_DECREF(obj);
|
|
}
|
|
return result;
|
|
#else
|
|
PyObject* o2;
|
|
PyObject* o3;
|
|
if (!result) {
|
|
result = obj;
|
|
} else if (result == Py_None) {
|
|
Py_DECREF(result);
|
|
result = obj;
|
|
} else {
|
|
if (!PyTuple_Check(result)) {
|
|
o2 = result;
|
|
result = PyTuple_New(1);
|
|
PyTuple_SET_ITEM(result, 0, o2);
|
|
}
|
|
o3 = PyTuple_New(1);
|
|
PyTuple_SET_ITEM(o3, 0, obj);
|
|
o2 = result;
|
|
result = PySequence_Concat(o2, o3);
|
|
Py_DECREF(o2);
|
|
Py_DECREF(o3);
|
|
}
|
|
return result;
|
|
#endif
|
|
}
|
|
|
|
/* Unpack the argument tuple */
|
|
|
|
SWIGINTERN int
|
|
SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
|
|
{
|
|
if (!args) {
|
|
if (!min && !max) {
|
|
return 1;
|
|
} else {
|
|
PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
|
|
name, (min == max ? "" : "at least "), (int)min);
|
|
return 0;
|
|
}
|
|
}
|
|
if (!PyTuple_Check(args)) {
|
|
PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
|
|
return 0;
|
|
} else {
|
|
register Py_ssize_t l = PyTuple_GET_SIZE(args);
|
|
if (l < min) {
|
|
PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
|
|
name, (min == max ? "" : "at least "), (int)min, (int)l);
|
|
return 0;
|
|
} else if (l > max) {
|
|
PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
|
|
name, (min == max ? "" : "at most "), (int)max, (int)l);
|
|
return 0;
|
|
} else {
|
|
register int i;
|
|
for (i = 0; i < l; ++i) {
|
|
objs[i] = PyTuple_GET_ITEM(args, i);
|
|
}
|
|
for (; l < max; ++l) {
|
|
objs[l] = 0;
|
|
}
|
|
return i + 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* A functor is a function object with one single object argument */
|
|
#if PY_VERSION_HEX >= 0x02020000
|
|
#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
|
|
#else
|
|
#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
|
|
#endif
|
|
|
|
/*
|
|
Helper for static pointer initialization for both C and C++ code, for example
|
|
static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
|
|
*/
|
|
#ifdef __cplusplus
|
|
#define SWIG_STATIC_POINTER(var) var
|
|
#else
|
|
#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
|
|
#endif
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* Pointer declarations
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* Flags for new pointer objects */
|
|
#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
|
|
#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
|
|
|
|
#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#if 0
|
|
} /* cc-mode */
|
|
#endif
|
|
#endif
|
|
|
|
/* How to access Py_None */
|
|
#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
|
# ifndef SWIG_PYTHON_NO_BUILD_NONE
|
|
# ifndef SWIG_PYTHON_BUILD_NONE
|
|
# define SWIG_PYTHON_BUILD_NONE
|
|
# endif
|
|
# endif
|
|
#endif
|
|
|
|
#ifdef SWIG_PYTHON_BUILD_NONE
|
|
# ifdef Py_None
|
|
# undef Py_None
|
|
# define Py_None SWIG_Py_None()
|
|
# endif
|
|
SWIGRUNTIMEINLINE PyObject *
|
|
_SWIG_Py_None(void)
|
|
{
|
|
PyObject *none = Py_BuildValue((char*)"");
|
|
Py_DECREF(none);
|
|
return none;
|
|
}
|
|
SWIGRUNTIME PyObject *
|
|
SWIG_Py_None(void)
|
|
{
|
|
static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
|
|
return none;
|
|
}
|
|
#endif
|
|
|
|
/* The python void return value */
|
|
|
|
SWIGRUNTIMEINLINE PyObject *
|
|
SWIG_Py_Void(void)
|
|
{
|
|
PyObject *none = Py_None;
|
|
Py_INCREF(none);
|
|
return none;
|
|
}
|
|
|
|
/* SwigPyClientData */
|
|
|
|
typedef struct {
|
|
PyObject *klass;
|
|
PyObject *newraw;
|
|
PyObject *newargs;
|
|
PyObject *destroy;
|
|
int delargs;
|
|
int implicitconv;
|
|
} SwigPyClientData;
|
|
|
|
SWIGRUNTIMEINLINE int
|
|
SWIG_Python_CheckImplicit(swig_type_info *ty)
|
|
{
|
|
SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
|
|
return data ? data->implicitconv : 0;
|
|
}
|
|
|
|
SWIGRUNTIMEINLINE PyObject *
|
|
SWIG_Python_ExceptionType(swig_type_info *desc) {
|
|
SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
|
|
PyObject *klass = data ? data->klass : 0;
|
|
return (klass ? klass : PyExc_RuntimeError);
|
|
}
|
|
|
|
|
|
SWIGRUNTIME SwigPyClientData *
|
|
SwigPyClientData_New(PyObject* obj)
|
|
{
|
|
if (!obj) {
|
|
return 0;
|
|
} else {
|
|
SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
|
|
/* the klass element */
|
|
data->klass = obj;
|
|
Py_INCREF(data->klass);
|
|
/* the newraw method and newargs arguments used to create a new raw instance */
|
|
if (PyClass_Check(obj)) {
|
|
data->newraw = 0;
|
|
data->newargs = obj;
|
|
Py_INCREF(obj);
|
|
} else {
|
|
#if (PY_VERSION_HEX < 0x02020000)
|
|
data->newraw = 0;
|
|
#else
|
|
data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
|
|
#endif
|
|
if (data->newraw) {
|
|
Py_INCREF(data->newraw);
|
|
data->newargs = PyTuple_New(1);
|
|
PyTuple_SetItem(data->newargs, 0, obj);
|
|
} else {
|
|
data->newargs = obj;
|
|
}
|
|
Py_INCREF(data->newargs);
|
|
}
|
|
/* the destroy method, aka as the C++ delete method */
|
|
data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
|
|
if (PyErr_Occurred()) {
|
|
PyErr_Clear();
|
|
data->destroy = 0;
|
|
}
|
|
if (data->destroy) {
|
|
int flags;
|
|
Py_INCREF(data->destroy);
|
|
flags = PyCFunction_GET_FLAGS(data->destroy);
|
|
#ifdef METH_O
|
|
data->delargs = !(flags & (METH_O));
|
|
#else
|
|
data->delargs = 0;
|
|
#endif
|
|
} else {
|
|
data->delargs = 0;
|
|
}
|
|
data->implicitconv = 0;
|
|
return data;
|
|
}
|
|
}
|
|
|
|
SWIGRUNTIME void
|
|
SwigPyClientData_Del(SwigPyClientData* data)
|
|
{
|
|
Py_XDECREF(data->newraw);
|
|
Py_XDECREF(data->newargs);
|
|
Py_XDECREF(data->destroy);
|
|
}
|
|
|
|
/* =============== SwigPyObject =====================*/
|
|
|
|
typedef struct {
|
|
PyObject_HEAD
|
|
void *ptr;
|
|
swig_type_info *ty;
|
|
int own;
|
|
PyObject *next;
|
|
} SwigPyObject;
|
|
|
|
SWIGRUNTIME PyObject *
|
|
SwigPyObject_long(SwigPyObject *v)
|
|
{
|
|
return PyLong_FromVoidPtr(v->ptr);
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
SwigPyObject_format(const char* fmt, SwigPyObject *v)
|
|
{
|
|
PyObject *res = NULL;
|
|
PyObject *args = PyTuple_New(1);
|
|
if (args) {
|
|
if (PyTuple_SetItem(args, 0, SwigPyObject_long(v)) == 0) {
|
|
PyObject *ofmt = SWIG_Python_str_FromChar(fmt);
|
|
if (ofmt) {
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
res = PyUnicode_Format(ofmt,args);
|
|
#else
|
|
res = PyString_Format(ofmt,args);
|
|
#endif
|
|
Py_DECREF(ofmt);
|
|
}
|
|
Py_DECREF(args);
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
SwigPyObject_oct(SwigPyObject *v)
|
|
{
|
|
return SwigPyObject_format("%o",v);
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
SwigPyObject_hex(SwigPyObject *v)
|
|
{
|
|
return SwigPyObject_format("%x",v);
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
#ifdef METH_NOARGS
|
|
SwigPyObject_repr(SwigPyObject *v)
|
|
#else
|
|
SwigPyObject_repr(SwigPyObject *v, PyObject *args)
|
|
#endif
|
|
{
|
|
const char *name = SWIG_TypePrettyName(v->ty);
|
|
PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", name, v);
|
|
if (v->next) {
|
|
#ifdef METH_NOARGS
|
|
PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
|
|
#else
|
|
PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next, args);
|
|
#endif
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
PyObject *joined = PyUnicode_Concat(repr, nrep);
|
|
Py_DecRef(repr);
|
|
Py_DecRef(nrep);
|
|
repr = joined;
|
|
#else
|
|
PyString_ConcatAndDel(&repr,nrep);
|
|
#endif
|
|
}
|
|
return repr;
|
|
}
|
|
|
|
SWIGRUNTIME int
|
|
SwigPyObject_print(SwigPyObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
|
|
{
|
|
char *str;
|
|
#ifdef METH_NOARGS
|
|
PyObject *repr = SwigPyObject_repr(v);
|
|
#else
|
|
PyObject *repr = SwigPyObject_repr(v, NULL);
|
|
#endif
|
|
if (repr) {
|
|
str = SWIG_Python_str_AsChar(repr);
|
|
fputs(str, fp);
|
|
SWIG_Python_str_DelForPy3(str);
|
|
Py_DECREF(repr);
|
|
return 0;
|
|
} else {
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
SwigPyObject_str(SwigPyObject *v)
|
|
{
|
|
char result[SWIG_BUFFER_SIZE];
|
|
return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
|
|
SWIG_Python_str_FromChar(result) : 0;
|
|
}
|
|
|
|
SWIGRUNTIME int
|
|
SwigPyObject_compare(SwigPyObject *v, SwigPyObject *w)
|
|
{
|
|
void *i = v->ptr;
|
|
void *j = w->ptr;
|
|
return (i < j) ? -1 : ((i > j) ? 1 : 0);
|
|
}
|
|
|
|
/* Added for Python 3.x, would it also be useful for Python 2.x? */
|
|
SWIGRUNTIME PyObject*
|
|
SwigPyObject_richcompare(SwigPyObject *v, SwigPyObject *w, int op)
|
|
{
|
|
PyObject* res;
|
|
if( op != Py_EQ && op != Py_NE ) {
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
if( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) )
|
|
res = Py_True;
|
|
else
|
|
res = Py_False;
|
|
Py_INCREF(res);
|
|
return res;
|
|
}
|
|
|
|
|
|
SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
|
|
|
|
SWIGRUNTIME PyTypeObject*
|
|
SwigPyObject_type(void) {
|
|
static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
|
|
return type;
|
|
}
|
|
|
|
SWIGRUNTIMEINLINE int
|
|
SwigPyObject_Check(PyObject *op) {
|
|
return (Py_TYPE(op) == SwigPyObject_type())
|
|
|| (strcmp(Py_TYPE(op)->tp_name,"SwigPyObject") == 0);
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
SwigPyObject_New(void *ptr, swig_type_info *ty, int own);
|
|
|
|
SWIGRUNTIME void
|
|
SwigPyObject_dealloc(PyObject *v)
|
|
{
|
|
SwigPyObject *sobj = (SwigPyObject *) v;
|
|
PyObject *next = sobj->next;
|
|
if (sobj->own == SWIG_POINTER_OWN) {
|
|
swig_type_info *ty = sobj->ty;
|
|
SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
|
|
PyObject *destroy = data ? data->destroy : 0;
|
|
if (destroy) {
|
|
/* destroy is always a VARARGS method */
|
|
PyObject *res;
|
|
if (data->delargs) {
|
|
/* we need to create a temporary object to carry the destroy operation */
|
|
PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
|
|
res = SWIG_Python_CallFunctor(destroy, tmp);
|
|
Py_DECREF(tmp);
|
|
} else {
|
|
PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
|
|
PyObject *mself = PyCFunction_GET_SELF(destroy);
|
|
res = ((*meth)(mself, v));
|
|
}
|
|
Py_XDECREF(res);
|
|
}
|
|
#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
|
|
else {
|
|
const char *name = SWIG_TypePrettyName(ty);
|
|
printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
|
|
}
|
|
#endif
|
|
}
|
|
Py_XDECREF(next);
|
|
PyObject_DEL(v);
|
|
}
|
|
|
|
SWIGRUNTIME PyObject*
|
|
SwigPyObject_append(PyObject* v, PyObject* next)
|
|
{
|
|
SwigPyObject *sobj = (SwigPyObject *) v;
|
|
#ifndef METH_O
|
|
PyObject *tmp = 0;
|
|
if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
|
|
next = tmp;
|
|
#endif
|
|
if (!SwigPyObject_Check(next)) {
|
|
return NULL;
|
|
}
|
|
sobj->next = next;
|
|
Py_INCREF(next);
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGRUNTIME PyObject*
|
|
#ifdef METH_NOARGS
|
|
SwigPyObject_next(PyObject* v)
|
|
#else
|
|
SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
|
|
#endif
|
|
{
|
|
SwigPyObject *sobj = (SwigPyObject *) v;
|
|
if (sobj->next) {
|
|
Py_INCREF(sobj->next);
|
|
return sobj->next;
|
|
} else {
|
|
return SWIG_Py_Void();
|
|
}
|
|
}
|
|
|
|
SWIGINTERN PyObject*
|
|
#ifdef METH_NOARGS
|
|
SwigPyObject_disown(PyObject *v)
|
|
#else
|
|
SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
|
|
#endif
|
|
{
|
|
SwigPyObject *sobj = (SwigPyObject *)v;
|
|
sobj->own = 0;
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject*
|
|
#ifdef METH_NOARGS
|
|
SwigPyObject_acquire(PyObject *v)
|
|
#else
|
|
SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
|
|
#endif
|
|
{
|
|
SwigPyObject *sobj = (SwigPyObject *)v;
|
|
sobj->own = SWIG_POINTER_OWN;
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject*
|
|
SwigPyObject_own(PyObject *v, PyObject *args)
|
|
{
|
|
PyObject *val = 0;
|
|
#if (PY_VERSION_HEX < 0x02020000)
|
|
if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
|
|
#else
|
|
if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
|
|
#endif
|
|
{
|
|
return NULL;
|
|
}
|
|
else
|
|
{
|
|
SwigPyObject *sobj = (SwigPyObject *)v;
|
|
PyObject *obj = PyBool_FromLong(sobj->own);
|
|
if (val) {
|
|
#ifdef METH_NOARGS
|
|
if (PyObject_IsTrue(val)) {
|
|
SwigPyObject_acquire(v);
|
|
} else {
|
|
SwigPyObject_disown(v);
|
|
}
|
|
#else
|
|
if (PyObject_IsTrue(val)) {
|
|
SwigPyObject_acquire(v,args);
|
|
} else {
|
|
SwigPyObject_disown(v,args);
|
|
}
|
|
#endif
|
|
}
|
|
return obj;
|
|
}
|
|
}
|
|
|
|
#ifdef METH_O
|
|
static PyMethodDef
|
|
swigobject_methods[] = {
|
|
{(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
|
|
{(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
|
|
{(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
|
|
{(char *)"append", (PyCFunction)SwigPyObject_append, METH_O, (char *)"appends another 'this' object"},
|
|
{(char *)"next", (PyCFunction)SwigPyObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
|
|
{(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_NOARGS, (char *)"returns object representation"},
|
|
{0, 0, 0, 0}
|
|
};
|
|
#else
|
|
static PyMethodDef
|
|
swigobject_methods[] = {
|
|
{(char *)"disown", (PyCFunction)SwigPyObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
|
|
{(char *)"acquire", (PyCFunction)SwigPyObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
|
|
{(char *)"own", (PyCFunction)SwigPyObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
|
|
{(char *)"append", (PyCFunction)SwigPyObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
|
|
{(char *)"next", (PyCFunction)SwigPyObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
|
|
{(char *)"__repr__",(PyCFunction)SwigPyObject_repr, METH_VARARGS, (char *)"returns object representation"},
|
|
{0, 0, 0, 0}
|
|
};
|
|
#endif
|
|
|
|
#if PY_VERSION_HEX < 0x02020000
|
|
SWIGINTERN PyObject *
|
|
SwigPyObject_getattr(SwigPyObject *sobj,char *name)
|
|
{
|
|
return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
|
|
}
|
|
#endif
|
|
|
|
SWIGRUNTIME PyTypeObject*
|
|
_PySwigObject_type(void) {
|
|
static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
|
|
|
|
static PyNumberMethods SwigPyObject_as_number = {
|
|
(binaryfunc)0, /*nb_add*/
|
|
(binaryfunc)0, /*nb_subtract*/
|
|
(binaryfunc)0, /*nb_multiply*/
|
|
/* nb_divide removed in Python 3 */
|
|
#if PY_VERSION_HEX < 0x03000000
|
|
(binaryfunc)0, /*nb_divide*/
|
|
#endif
|
|
(binaryfunc)0, /*nb_remainder*/
|
|
(binaryfunc)0, /*nb_divmod*/
|
|
(ternaryfunc)0,/*nb_power*/
|
|
(unaryfunc)0, /*nb_negative*/
|
|
(unaryfunc)0, /*nb_positive*/
|
|
(unaryfunc)0, /*nb_absolute*/
|
|
(inquiry)0, /*nb_nonzero*/
|
|
0, /*nb_invert*/
|
|
0, /*nb_lshift*/
|
|
0, /*nb_rshift*/
|
|
0, /*nb_and*/
|
|
0, /*nb_xor*/
|
|
0, /*nb_or*/
|
|
#if PY_VERSION_HEX < 0x03000000
|
|
0, /*nb_coerce*/
|
|
#endif
|
|
(unaryfunc)SwigPyObject_long, /*nb_int*/
|
|
#if PY_VERSION_HEX < 0x03000000
|
|
(unaryfunc)SwigPyObject_long, /*nb_long*/
|
|
#else
|
|
0, /*nb_reserved*/
|
|
#endif
|
|
(unaryfunc)0, /*nb_float*/
|
|
#if PY_VERSION_HEX < 0x03000000
|
|
(unaryfunc)SwigPyObject_oct, /*nb_oct*/
|
|
(unaryfunc)SwigPyObject_hex, /*nb_hex*/
|
|
#endif
|
|
#if PY_VERSION_HEX >= 0x03000000 /* 3.0 */
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
|
|
#elif PY_VERSION_HEX >= 0x02050000 /* 2.5.0 */
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
|
|
#elif PY_VERSION_HEX >= 0x02020000 /* 2.2.0 */
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
|
|
#elif PY_VERSION_HEX >= 0x02000000 /* 2.0.0 */
|
|
0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
|
|
#endif
|
|
};
|
|
|
|
static PyTypeObject swigpyobject_type;
|
|
static int type_init = 0;
|
|
if (!type_init) {
|
|
const PyTypeObject tmp
|
|
= {
|
|
/* PyObject header changed in Python 3 */
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
PyVarObject_HEAD_INIT(&PyType_Type, 0)
|
|
#else
|
|
PyObject_HEAD_INIT(NULL)
|
|
0, /* ob_size */
|
|
#endif
|
|
(char *)"SwigPyObject", /* tp_name */
|
|
sizeof(SwigPyObject), /* tp_basicsize */
|
|
0, /* tp_itemsize */
|
|
(destructor)SwigPyObject_dealloc, /* tp_dealloc */
|
|
(printfunc)SwigPyObject_print, /* tp_print */
|
|
#if PY_VERSION_HEX < 0x02020000
|
|
(getattrfunc)SwigPyObject_getattr, /* tp_getattr */
|
|
#else
|
|
(getattrfunc)0, /* tp_getattr */
|
|
#endif
|
|
(setattrfunc)0, /* tp_setattr */
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
|
|
#else
|
|
(cmpfunc)SwigPyObject_compare, /* tp_compare */
|
|
#endif
|
|
(reprfunc)SwigPyObject_repr, /* tp_repr */
|
|
&SwigPyObject_as_number, /* tp_as_number */
|
|
0, /* tp_as_sequence */
|
|
0, /* tp_as_mapping */
|
|
(hashfunc)0, /* tp_hash */
|
|
(ternaryfunc)0, /* tp_call */
|
|
(reprfunc)SwigPyObject_str, /* tp_str */
|
|
PyObject_GenericGetAttr, /* tp_getattro */
|
|
0, /* tp_setattro */
|
|
0, /* tp_as_buffer */
|
|
Py_TPFLAGS_DEFAULT, /* tp_flags */
|
|
swigobject_doc, /* tp_doc */
|
|
0, /* tp_traverse */
|
|
0, /* tp_clear */
|
|
(richcmpfunc)SwigPyObject_richcompare, /* tp_richcompare */
|
|
0, /* tp_weaklistoffset */
|
|
#if PY_VERSION_HEX >= 0x02020000
|
|
0, /* tp_iter */
|
|
0, /* tp_iternext */
|
|
swigobject_methods, /* tp_methods */
|
|
0, /* tp_members */
|
|
0, /* tp_getset */
|
|
0, /* tp_base */
|
|
0, /* tp_dict */
|
|
0, /* tp_descr_get */
|
|
0, /* tp_descr_set */
|
|
0, /* tp_dictoffset */
|
|
0, /* tp_init */
|
|
0, /* tp_alloc */
|
|
0, /* tp_new */
|
|
0, /* tp_free */
|
|
0, /* tp_is_gc */
|
|
0, /* tp_bases */
|
|
0, /* tp_mro */
|
|
0, /* tp_cache */
|
|
0, /* tp_subclasses */
|
|
0, /* tp_weaklist */
|
|
#endif
|
|
#if PY_VERSION_HEX >= 0x02030000
|
|
0, /* tp_del */
|
|
#endif
|
|
#ifdef COUNT_ALLOCS
|
|
0,0,0,0 /* tp_alloc -> tp_next */
|
|
#endif
|
|
};
|
|
swigpyobject_type = tmp;
|
|
/* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */
|
|
#if PY_VERSION_HEX < 0x03000000
|
|
swigpyobject_type.ob_type = &PyType_Type;
|
|
#endif
|
|
type_init = 1;
|
|
}
|
|
return &swigpyobject_type;
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
|
|
{
|
|
SwigPyObject *sobj = PyObject_NEW(SwigPyObject, SwigPyObject_type());
|
|
if (sobj) {
|
|
sobj->ptr = ptr;
|
|
sobj->ty = ty;
|
|
sobj->own = own;
|
|
sobj->next = 0;
|
|
}
|
|
return (PyObject *)sobj;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* Implements a simple Swig Packed type, and use it instead of string
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
typedef struct {
|
|
PyObject_HEAD
|
|
void *pack;
|
|
swig_type_info *ty;
|
|
size_t size;
|
|
} SwigPyPacked;
|
|
|
|
SWIGRUNTIME int
|
|
SwigPyPacked_print(SwigPyPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
|
|
{
|
|
char result[SWIG_BUFFER_SIZE];
|
|
fputs("<Swig Packed ", fp);
|
|
if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
|
|
fputs("at ", fp);
|
|
fputs(result, fp);
|
|
}
|
|
fputs(v->ty->name,fp);
|
|
fputs(">", fp);
|
|
return 0;
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
SwigPyPacked_repr(SwigPyPacked *v)
|
|
{
|
|
char result[SWIG_BUFFER_SIZE];
|
|
if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
|
|
return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
|
|
} else {
|
|
return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name);
|
|
}
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
SwigPyPacked_str(SwigPyPacked *v)
|
|
{
|
|
char result[SWIG_BUFFER_SIZE];
|
|
if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
|
|
return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
|
|
} else {
|
|
return SWIG_Python_str_FromChar(v->ty->name);
|
|
}
|
|
}
|
|
|
|
SWIGRUNTIME int
|
|
SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
|
|
{
|
|
size_t i = v->size;
|
|
size_t j = w->size;
|
|
int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
|
|
return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
|
|
}
|
|
|
|
SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
|
|
|
|
SWIGRUNTIME PyTypeObject*
|
|
SwigPyPacked_type(void) {
|
|
static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
|
|
return type;
|
|
}
|
|
|
|
SWIGRUNTIMEINLINE int
|
|
SwigPyPacked_Check(PyObject *op) {
|
|
return ((op)->ob_type == _PySwigPacked_type())
|
|
|| (strcmp((op)->ob_type->tp_name,"SwigPyPacked") == 0);
|
|
}
|
|
|
|
SWIGRUNTIME void
|
|
SwigPyPacked_dealloc(PyObject *v)
|
|
{
|
|
if (SwigPyPacked_Check(v)) {
|
|
SwigPyPacked *sobj = (SwigPyPacked *) v;
|
|
free(sobj->pack);
|
|
}
|
|
PyObject_DEL(v);
|
|
}
|
|
|
|
SWIGRUNTIME PyTypeObject*
|
|
_PySwigPacked_type(void) {
|
|
static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
|
|
static PyTypeObject swigpypacked_type;
|
|
static int type_init = 0;
|
|
if (!type_init) {
|
|
const PyTypeObject tmp
|
|
= {
|
|
/* PyObject header changed in Python 3 */
|
|
#if PY_VERSION_HEX>=0x03000000
|
|
PyVarObject_HEAD_INIT(&PyType_Type, 0)
|
|
#else
|
|
PyObject_HEAD_INIT(NULL)
|
|
0, /* ob_size */
|
|
#endif
|
|
(char *)"SwigPyPacked", /* tp_name */
|
|
sizeof(SwigPyPacked), /* tp_basicsize */
|
|
0, /* tp_itemsize */
|
|
(destructor)SwigPyPacked_dealloc, /* tp_dealloc */
|
|
(printfunc)SwigPyPacked_print, /* tp_print */
|
|
(getattrfunc)0, /* tp_getattr */
|
|
(setattrfunc)0, /* tp_setattr */
|
|
#if PY_VERSION_HEX>=0x03000000
|
|
0, /* tp_reserved in 3.0.1 */
|
|
#else
|
|
(cmpfunc)SwigPyPacked_compare, /* tp_compare */
|
|
#endif
|
|
(reprfunc)SwigPyPacked_repr, /* tp_repr */
|
|
0, /* tp_as_number */
|
|
0, /* tp_as_sequence */
|
|
0, /* tp_as_mapping */
|
|
(hashfunc)0, /* tp_hash */
|
|
(ternaryfunc)0, /* tp_call */
|
|
(reprfunc)SwigPyPacked_str, /* tp_str */
|
|
PyObject_GenericGetAttr, /* tp_getattro */
|
|
0, /* tp_setattro */
|
|
0, /* tp_as_buffer */
|
|
Py_TPFLAGS_DEFAULT, /* tp_flags */
|
|
swigpacked_doc, /* tp_doc */
|
|
0, /* tp_traverse */
|
|
0, /* tp_clear */
|
|
0, /* tp_richcompare */
|
|
0, /* tp_weaklistoffset */
|
|
#if PY_VERSION_HEX >= 0x02020000
|
|
0, /* tp_iter */
|
|
0, /* tp_iternext */
|
|
0, /* tp_methods */
|
|
0, /* tp_members */
|
|
0, /* tp_getset */
|
|
0, /* tp_base */
|
|
0, /* tp_dict */
|
|
0, /* tp_descr_get */
|
|
0, /* tp_descr_set */
|
|
0, /* tp_dictoffset */
|
|
0, /* tp_init */
|
|
0, /* tp_alloc */
|
|
0, /* tp_new */
|
|
0, /* tp_free */
|
|
0, /* tp_is_gc */
|
|
0, /* tp_bases */
|
|
0, /* tp_mro */
|
|
0, /* tp_cache */
|
|
0, /* tp_subclasses */
|
|
0, /* tp_weaklist */
|
|
#endif
|
|
#if PY_VERSION_HEX >= 0x02030000
|
|
0, /* tp_del */
|
|
#endif
|
|
#ifdef COUNT_ALLOCS
|
|
0,0,0,0 /* tp_alloc -> tp_next */
|
|
#endif
|
|
};
|
|
swigpypacked_type = tmp;
|
|
/* for Python 3 the ob_type already assigned in PyVarObject_HEAD_INIT() */
|
|
#if PY_VERSION_HEX < 0x03000000
|
|
swigpypacked_type.ob_type = &PyType_Type;
|
|
#endif
|
|
type_init = 1;
|
|
}
|
|
return &swigpypacked_type;
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
|
|
{
|
|
SwigPyPacked *sobj = PyObject_NEW(SwigPyPacked, SwigPyPacked_type());
|
|
if (sobj) {
|
|
void *pack = malloc(size);
|
|
if (pack) {
|
|
memcpy(pack, ptr, size);
|
|
sobj->pack = pack;
|
|
sobj->ty = ty;
|
|
sobj->size = size;
|
|
} else {
|
|
PyObject_DEL((PyObject *) sobj);
|
|
sobj = 0;
|
|
}
|
|
}
|
|
return (PyObject *) sobj;
|
|
}
|
|
|
|
SWIGRUNTIME swig_type_info *
|
|
SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
|
|
{
|
|
if (SwigPyPacked_Check(obj)) {
|
|
SwigPyPacked *sobj = (SwigPyPacked *)obj;
|
|
if (sobj->size != size) return 0;
|
|
memcpy(ptr, sobj->pack, size);
|
|
return sobj->ty;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* pointers/data manipulation
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
SWIGRUNTIMEINLINE PyObject *
|
|
_SWIG_This(void)
|
|
{
|
|
return SWIG_Python_str_FromChar("this");
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
SWIG_This(void)
|
|
{
|
|
static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
|
|
return swig_this;
|
|
}
|
|
|
|
/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
|
|
|
|
/* TODO: I don't know how to implement the fast getset in Python 3 right now */
|
|
#if PY_VERSION_HEX>=0x03000000
|
|
#define SWIG_PYTHON_SLOW_GETSET_THIS
|
|
#endif
|
|
|
|
SWIGRUNTIME SwigPyObject *
|
|
SWIG_Python_GetSwigThis(PyObject *pyobj)
|
|
{
|
|
if (SwigPyObject_Check(pyobj)) {
|
|
return (SwigPyObject *) pyobj;
|
|
} else {
|
|
PyObject *obj = 0;
|
|
#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
|
|
if (PyInstance_Check(pyobj)) {
|
|
obj = _PyInstance_Lookup(pyobj, SWIG_This());
|
|
} else {
|
|
PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
|
|
if (dictptr != NULL) {
|
|
PyObject *dict = *dictptr;
|
|
obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
|
|
} else {
|
|
#ifdef PyWeakref_CheckProxy
|
|
if (PyWeakref_CheckProxy(pyobj)) {
|
|
PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
|
|
return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
|
|
}
|
|
#endif
|
|
obj = PyObject_GetAttr(pyobj,SWIG_This());
|
|
if (obj) {
|
|
Py_DECREF(obj);
|
|
} else {
|
|
if (PyErr_Occurred()) PyErr_Clear();
|
|
return 0;
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
obj = PyObject_GetAttr(pyobj,SWIG_This());
|
|
if (obj) {
|
|
Py_DECREF(obj);
|
|
} else {
|
|
if (PyErr_Occurred()) PyErr_Clear();
|
|
return 0;
|
|
}
|
|
#endif
|
|
if (obj && !SwigPyObject_Check(obj)) {
|
|
/* a PyObject is called 'this', try to get the 'real this'
|
|
SwigPyObject from it */
|
|
return SWIG_Python_GetSwigThis(obj);
|
|
}
|
|
return (SwigPyObject *)obj;
|
|
}
|
|
}
|
|
|
|
/* Acquire a pointer value */
|
|
|
|
SWIGRUNTIME int
|
|
SWIG_Python_AcquirePtr(PyObject *obj, int own) {
|
|
if (own == SWIG_POINTER_OWN) {
|
|
SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
|
|
if (sobj) {
|
|
int oldown = sobj->own;
|
|
sobj->own = own;
|
|
return oldown;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
/* Convert a pointer value */
|
|
|
|
SWIGRUNTIME int
|
|
SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
|
|
if (!obj) return SWIG_ERROR;
|
|
if (obj == Py_None) {
|
|
if (ptr) *ptr = 0;
|
|
return SWIG_OK;
|
|
} else {
|
|
SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
|
|
if (own)
|
|
*own = 0;
|
|
while (sobj) {
|
|
void *vptr = sobj->ptr;
|
|
if (ty) {
|
|
swig_type_info *to = sobj->ty;
|
|
if (to == ty) {
|
|
/* no type cast needed */
|
|
if (ptr) *ptr = vptr;
|
|
break;
|
|
} else {
|
|
swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
|
|
if (!tc) {
|
|
sobj = (SwigPyObject *)sobj->next;
|
|
} else {
|
|
if (ptr) {
|
|
int newmemory = 0;
|
|
*ptr = SWIG_TypeCast(tc,vptr,&newmemory);
|
|
if (newmemory == SWIG_CAST_NEW_MEMORY) {
|
|
assert(own);
|
|
if (own)
|
|
*own = *own | SWIG_CAST_NEW_MEMORY;
|
|
}
|
|
}
|
|
break;
|
|
}
|
|
}
|
|
} else {
|
|
if (ptr) *ptr = vptr;
|
|
break;
|
|
}
|
|
}
|
|
if (sobj) {
|
|
if (own)
|
|
*own = *own | sobj->own;
|
|
if (flags & SWIG_POINTER_DISOWN) {
|
|
sobj->own = 0;
|
|
}
|
|
return SWIG_OK;
|
|
} else {
|
|
int res = SWIG_ERROR;
|
|
if (flags & SWIG_POINTER_IMPLICIT_CONV) {
|
|
SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
|
|
if (data && !data->implicitconv) {
|
|
PyObject *klass = data->klass;
|
|
if (klass) {
|
|
PyObject *impconv;
|
|
data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
|
|
impconv = SWIG_Python_CallFunctor(klass, obj);
|
|
data->implicitconv = 0;
|
|
if (PyErr_Occurred()) {
|
|
PyErr_Clear();
|
|
impconv = 0;
|
|
}
|
|
if (impconv) {
|
|
SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
|
|
if (iobj) {
|
|
void *vptr;
|
|
res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
|
|
if (SWIG_IsOK(res)) {
|
|
if (ptr) {
|
|
*ptr = vptr;
|
|
/* transfer the ownership to 'ptr' */
|
|
iobj->own = 0;
|
|
res = SWIG_AddCast(res);
|
|
res = SWIG_AddNewMask(res);
|
|
} else {
|
|
res = SWIG_AddCast(res);
|
|
}
|
|
}
|
|
}
|
|
Py_DECREF(impconv);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Convert a function ptr value */
|
|
|
|
SWIGRUNTIME int
|
|
SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
|
|
if (!PyCFunction_Check(obj)) {
|
|
return SWIG_ConvertPtr(obj, ptr, ty, 0);
|
|
} else {
|
|
void *vptr = 0;
|
|
|
|
/* here we get the method pointer for callbacks */
|
|
const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
|
|
const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
|
|
if (desc)
|
|
desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
|
|
if (!desc)
|
|
return SWIG_ERROR;
|
|
if (ty) {
|
|
swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
|
|
if (tc) {
|
|
int newmemory = 0;
|
|
*ptr = SWIG_TypeCast(tc,vptr,&newmemory);
|
|
assert(!newmemory); /* newmemory handling not yet implemented */
|
|
} else {
|
|
return SWIG_ERROR;
|
|
}
|
|
} else {
|
|
*ptr = vptr;
|
|
}
|
|
return SWIG_OK;
|
|
}
|
|
}
|
|
|
|
/* Convert a packed value value */
|
|
|
|
SWIGRUNTIME int
|
|
SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
|
|
swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
|
|
if (!to) return SWIG_ERROR;
|
|
if (ty) {
|
|
if (to != ty) {
|
|
/* check type cast? */
|
|
swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
|
|
if (!tc) return SWIG_ERROR;
|
|
}
|
|
}
|
|
return SWIG_OK;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* Create a new pointer object
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/*
|
|
Create a new instance object, without calling __init__, and set the
|
|
'this' attribute.
|
|
*/
|
|
|
|
SWIGRUNTIME PyObject*
|
|
SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
|
|
{
|
|
#if (PY_VERSION_HEX >= 0x02020000)
|
|
PyObject *inst = 0;
|
|
PyObject *newraw = data->newraw;
|
|
if (newraw) {
|
|
inst = PyObject_Call(newraw, data->newargs, NULL);
|
|
if (inst) {
|
|
#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
|
|
PyObject **dictptr = _PyObject_GetDictPtr(inst);
|
|
if (dictptr != NULL) {
|
|
PyObject *dict = *dictptr;
|
|
if (dict == NULL) {
|
|
dict = PyDict_New();
|
|
*dictptr = dict;
|
|
PyDict_SetItem(dict, SWIG_This(), swig_this);
|
|
}
|
|
}
|
|
#else
|
|
PyObject *key = SWIG_This();
|
|
PyObject_SetAttr(inst, key, swig_this);
|
|
#endif
|
|
}
|
|
} else {
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
inst = PyBaseObject_Type.tp_new((PyTypeObject*) data->newargs, Py_None, Py_None);
|
|
PyObject_SetAttr(inst, SWIG_This(), swig_this);
|
|
Py_TYPE(inst)->tp_flags &= ~Py_TPFLAGS_VALID_VERSION_TAG;
|
|
#else
|
|
PyObject *dict = PyDict_New();
|
|
PyDict_SetItem(dict, SWIG_This(), swig_this);
|
|
inst = PyInstance_NewRaw(data->newargs, dict);
|
|
Py_DECREF(dict);
|
|
#endif
|
|
}
|
|
return inst;
|
|
#else
|
|
#if (PY_VERSION_HEX >= 0x02010000)
|
|
PyObject *inst;
|
|
PyObject *dict = PyDict_New();
|
|
PyDict_SetItem(dict, SWIG_This(), swig_this);
|
|
inst = PyInstance_NewRaw(data->newargs, dict);
|
|
Py_DECREF(dict);
|
|
return (PyObject *) inst;
|
|
#else
|
|
PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
|
|
if (inst == NULL) {
|
|
return NULL;
|
|
}
|
|
inst->in_class = (PyClassObject *)data->newargs;
|
|
Py_INCREF(inst->in_class);
|
|
inst->in_dict = PyDict_New();
|
|
if (inst->in_dict == NULL) {
|
|
Py_DECREF(inst);
|
|
return NULL;
|
|
}
|
|
#ifdef Py_TPFLAGS_HAVE_WEAKREFS
|
|
inst->in_weakreflist = NULL;
|
|
#endif
|
|
#ifdef Py_TPFLAGS_GC
|
|
PyObject_GC_Init(inst);
|
|
#endif
|
|
PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
|
|
return (PyObject *) inst;
|
|
#endif
|
|
#endif
|
|
}
|
|
|
|
SWIGRUNTIME void
|
|
SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
|
|
{
|
|
PyObject *dict;
|
|
#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
|
|
PyObject **dictptr = _PyObject_GetDictPtr(inst);
|
|
if (dictptr != NULL) {
|
|
dict = *dictptr;
|
|
if (dict == NULL) {
|
|
dict = PyDict_New();
|
|
*dictptr = dict;
|
|
}
|
|
PyDict_SetItem(dict, SWIG_This(), swig_this);
|
|
return;
|
|
}
|
|
#endif
|
|
dict = PyObject_GetAttrString(inst, (char*)"__dict__");
|
|
PyDict_SetItem(dict, SWIG_This(), swig_this);
|
|
Py_DECREF(dict);
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *
|
|
SWIG_Python_InitShadowInstance(PyObject *args) {
|
|
PyObject *obj[2];
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
|
|
return NULL;
|
|
} else {
|
|
SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
|
|
if (sthis) {
|
|
SwigPyObject_append((PyObject*) sthis, obj[1]);
|
|
} else {
|
|
SWIG_Python_SetSwigThis(obj[0], obj[1]);
|
|
}
|
|
return SWIG_Py_Void();
|
|
}
|
|
}
|
|
|
|
/* Create a new pointer object */
|
|
|
|
SWIGRUNTIME PyObject *
|
|
SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
|
|
if (!ptr) {
|
|
return SWIG_Py_Void();
|
|
} else {
|
|
int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
|
|
PyObject *robj = SwigPyObject_New(ptr, type, own);
|
|
SwigPyClientData *clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
|
|
if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
|
|
PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
|
|
if (inst) {
|
|
Py_DECREF(robj);
|
|
robj = inst;
|
|
}
|
|
}
|
|
return robj;
|
|
}
|
|
}
|
|
|
|
/* Create a new packed object */
|
|
|
|
SWIGRUNTIMEINLINE PyObject *
|
|
SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
|
|
return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------------*
|
|
* Get type list
|
|
* -----------------------------------------------------------------------------*/
|
|
|
|
#ifdef SWIG_LINK_RUNTIME
|
|
void *SWIG_ReturnGlobalTypeList(void *);
|
|
#endif
|
|
|
|
SWIGRUNTIME swig_module_info *
|
|
SWIG_Python_GetModule(void) {
|
|
static void *type_pointer = (void *)0;
|
|
/* first check if module already created */
|
|
if (!type_pointer) {
|
|
#ifdef SWIG_LINK_RUNTIME
|
|
type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
|
|
#else
|
|
type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
|
|
(char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
|
|
if (PyErr_Occurred()) {
|
|
PyErr_Clear();
|
|
type_pointer = (void *)0;
|
|
}
|
|
#endif
|
|
}
|
|
return (swig_module_info *) type_pointer;
|
|
}
|
|
|
|
#if PY_MAJOR_VERSION < 2
|
|
/* PyModule_AddObject function was introduced in Python 2.0. The following function
|
|
is copied out of Python/modsupport.c in python version 2.3.4 */
|
|
SWIGINTERN int
|
|
PyModule_AddObject(PyObject *m, char *name, PyObject *o)
|
|
{
|
|
PyObject *dict;
|
|
if (!PyModule_Check(m)) {
|
|
PyErr_SetString(PyExc_TypeError,
|
|
"PyModule_AddObject() needs module as first arg");
|
|
return SWIG_ERROR;
|
|
}
|
|
if (!o) {
|
|
PyErr_SetString(PyExc_TypeError,
|
|
"PyModule_AddObject() needs non-NULL value");
|
|
return SWIG_ERROR;
|
|
}
|
|
|
|
dict = PyModule_GetDict(m);
|
|
if (dict == NULL) {
|
|
/* Internal error -- modules must have a dict! */
|
|
PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
|
|
PyModule_GetName(m));
|
|
return SWIG_ERROR;
|
|
}
|
|
if (PyDict_SetItemString(dict, name, o))
|
|
return SWIG_ERROR;
|
|
Py_DECREF(o);
|
|
return SWIG_OK;
|
|
}
|
|
#endif
|
|
|
|
SWIGRUNTIME void
|
|
SWIG_Python_DestroyModule(void *vptr)
|
|
{
|
|
swig_module_info *swig_module = (swig_module_info *) vptr;
|
|
swig_type_info **types = swig_module->types;
|
|
size_t i;
|
|
for (i =0; i < swig_module->size; ++i) {
|
|
swig_type_info *ty = types[i];
|
|
if (ty->owndata) {
|
|
SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
|
|
if (data) SwigPyClientData_Del(data);
|
|
}
|
|
}
|
|
Py_DECREF(SWIG_This());
|
|
}
|
|
|
|
SWIGRUNTIME void
|
|
SWIG_Python_SetModule(swig_module_info *swig_module) {
|
|
static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
|
|
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
/* Add a dummy module object into sys.modules */
|
|
PyObject *module = PyImport_AddModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION);
|
|
#else
|
|
PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
|
|
swig_empty_runtime_method_table);
|
|
#endif
|
|
PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
|
|
if (pointer && module) {
|
|
PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
|
|
} else {
|
|
Py_XDECREF(pointer);
|
|
}
|
|
}
|
|
|
|
/* The python cached type query */
|
|
SWIGRUNTIME PyObject *
|
|
SWIG_Python_TypeCache(void) {
|
|
static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
|
|
return cache;
|
|
}
|
|
|
|
SWIGRUNTIME swig_type_info *
|
|
SWIG_Python_TypeQuery(const char *type)
|
|
{
|
|
PyObject *cache = SWIG_Python_TypeCache();
|
|
PyObject *key = SWIG_Python_str_FromChar(type);
|
|
PyObject *obj = PyDict_GetItem(cache, key);
|
|
swig_type_info *descriptor;
|
|
if (obj) {
|
|
descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
|
|
} else {
|
|
swig_module_info *swig_module = SWIG_Python_GetModule();
|
|
descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
|
|
if (descriptor) {
|
|
obj = PyCObject_FromVoidPtr(descriptor, NULL);
|
|
PyDict_SetItem(cache, key, obj);
|
|
Py_DECREF(obj);
|
|
}
|
|
}
|
|
Py_DECREF(key);
|
|
return descriptor;
|
|
}
|
|
|
|
/*
|
|
For backward compatibility only
|
|
*/
|
|
#define SWIG_POINTER_EXCEPTION 0
|
|
#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
|
|
#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
|
|
|
|
SWIGRUNTIME int
|
|
SWIG_Python_AddErrMesg(const char* mesg, int infront)
|
|
{
|
|
if (PyErr_Occurred()) {
|
|
PyObject *type = 0;
|
|
PyObject *value = 0;
|
|
PyObject *traceback = 0;
|
|
PyErr_Fetch(&type, &value, &traceback);
|
|
if (value) {
|
|
char *tmp;
|
|
PyObject *old_str = PyObject_Str(value);
|
|
Py_XINCREF(type);
|
|
PyErr_Clear();
|
|
if (infront) {
|
|
PyErr_Format(type, "%s %s", mesg, tmp = SWIG_Python_str_AsChar(old_str));
|
|
} else {
|
|
PyErr_Format(type, "%s %s", tmp = SWIG_Python_str_AsChar(old_str), mesg);
|
|
}
|
|
SWIG_Python_str_DelForPy3(tmp);
|
|
Py_DECREF(old_str);
|
|
}
|
|
return 1;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
SWIGRUNTIME int
|
|
SWIG_Python_ArgFail(int argnum)
|
|
{
|
|
if (PyErr_Occurred()) {
|
|
/* add information about failing argument */
|
|
char mesg[256];
|
|
PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
|
|
return SWIG_Python_AddErrMesg(mesg, 1);
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
SWIGRUNTIMEINLINE const char *
|
|
SwigPyObject_GetDesc(PyObject *self)
|
|
{
|
|
SwigPyObject *v = (SwigPyObject *)self;
|
|
swig_type_info *ty = v ? v->ty : 0;
|
|
return ty ? ty->str : (char*)"";
|
|
}
|
|
|
|
SWIGRUNTIME void
|
|
SWIG_Python_TypeError(const char *type, PyObject *obj)
|
|
{
|
|
if (type) {
|
|
#if defined(SWIG_COBJECT_TYPES)
|
|
if (obj && SwigPyObject_Check(obj)) {
|
|
const char *otype = (const char *) SwigPyObject_GetDesc(obj);
|
|
if (otype) {
|
|
PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'SwigPyObject(%s)' is received",
|
|
type, otype);
|
|
return;
|
|
}
|
|
} else
|
|
#endif
|
|
{
|
|
const char *otype = (obj ? obj->ob_type->tp_name : 0);
|
|
if (otype) {
|
|
PyObject *str = PyObject_Str(obj);
|
|
const char *cstr = str ? SWIG_Python_str_AsChar(str) : 0;
|
|
if (cstr) {
|
|
PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
|
|
type, otype, cstr);
|
|
SWIG_Python_str_DelForPy3(cstr);
|
|
} else {
|
|
PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
|
|
type, otype);
|
|
}
|
|
Py_XDECREF(str);
|
|
return;
|
|
}
|
|
}
|
|
PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
|
|
} else {
|
|
PyErr_Format(PyExc_TypeError, "unexpected type is received");
|
|
}
|
|
}
|
|
|
|
|
|
/* Convert a pointer value, signal an exception on a type mismatch */
|
|
SWIGRUNTIME void *
|
|
SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
|
|
void *result;
|
|
if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
|
|
PyErr_Clear();
|
|
#if SWIG_POINTER_EXCEPTION
|
|
if (flags) {
|
|
SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
|
|
SWIG_Python_ArgFail(argnum);
|
|
}
|
|
#endif
|
|
}
|
|
return result;
|
|
}
|
|
|
|
|
|
#ifdef __cplusplus
|
|
#if 0
|
|
{ /* cc-mode */
|
|
#endif
|
|
}
|
|
#endif
|
|
|
|
|
|
|
|
#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
|
|
|
|
#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
|
|
|
|
|
|
|
|
/* define the PyAPI_FUNC macro if it doesn't exist, for example with Python
|
|
version below 2.3... But not really tested... */
|
|
#ifndef PyAPI_FUNC
|
|
# define PyAPI_FUNC(RTYPE) RTYPE
|
|
#endif
|
|
|
|
/* remove the PyInt_AS_LONG if defined, as this cause problems on RedHat */
|
|
#ifdef PyInt_AS_LONG
|
|
#undef PyInt_AS_LONG
|
|
#endif
|
|
|
|
/* wrapper to the better function PyInt_AsLong, removing problems
|
|
with RedHat (I hope) */
|
|
long PyInt_AS_LONG (PyObject *obj) {
|
|
return PyInt_AsLong (obj);
|
|
}
|
|
|
|
/* remove the PyFloat_AS_DOUBLE if defined, to prevent errors */
|
|
#ifdef PyFloat_AS_DOUBLE
|
|
#undef PyFloat_AS_DOUBLE
|
|
#endif
|
|
|
|
/* wrapper to the better function PyFloat_AS_DOUBLE, to prevent errors */
|
|
double PyFloat_AS_DOUBLE (PyObject *obj) {
|
|
return PyFloat_AsDouble (obj);
|
|
}
|
|
|
|
|
|
#define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0)
|
|
|
|
|
|
/* -------- TYPES TABLE (BEGIN) -------- */
|
|
|
|
#define SWIGTYPE_p_Cv32suf swig_types[0]
|
|
#define SWIGTYPE_p_Cv64suf swig_types[1]
|
|
#define SWIGTYPE_p_CvAttrList swig_types[2]
|
|
#define SWIGTYPE_p_CvAvgComp swig_types[3]
|
|
#define SWIGTYPE_p_CvBox2D swig_types[4]
|
|
#define SWIGTYPE_p_CvChain swig_types[5]
|
|
#define SWIGTYPE_p_CvChainPtReader swig_types[6]
|
|
#define SWIGTYPE_p_CvConDensation swig_types[7]
|
|
#define SWIGTYPE_p_CvConnectedComp swig_types[8]
|
|
#define SWIGTYPE_p_CvContour swig_types[9]
|
|
#define SWIGTYPE_p_CvContourTree swig_types[10]
|
|
#define SWIGTYPE_p_CvConvexityDefect swig_types[11]
|
|
#define SWIGTYPE_p_CvFeatureTree swig_types[12]
|
|
#define SWIGTYPE_p_CvFileNode swig_types[13]
|
|
#define SWIGTYPE_p_CvFileNode_data swig_types[14]
|
|
#define SWIGTYPE_p_CvFileStorage swig_types[15]
|
|
#define SWIGTYPE_p_CvFilter swig_types[16]
|
|
#define SWIGTYPE_p_CvFont swig_types[17]
|
|
#define SWIGTYPE_p_CvGenericHash swig_types[18]
|
|
#define SWIGTYPE_p_CvGraph swig_types[19]
|
|
#define SWIGTYPE_p_CvGraphEdge swig_types[20]
|
|
#define SWIGTYPE_p_CvGraphScanner swig_types[21]
|
|
#define SWIGTYPE_p_CvGraphVtx swig_types[22]
|
|
#define SWIGTYPE_p_CvGraphVtx2D swig_types[23]
|
|
#define SWIGTYPE_p_CvHaarClassifier swig_types[24]
|
|
#define SWIGTYPE_p_CvHaarClassifierCascade swig_types[25]
|
|
#define SWIGTYPE_p_CvHaarFeature swig_types[26]
|
|
#define SWIGTYPE_p_CvHaarFeature_rect swig_types[27]
|
|
#define SWIGTYPE_p_CvHaarStageClassifier swig_types[28]
|
|
#define SWIGTYPE_p_CvHidHaarClassifierCascade swig_types[29]
|
|
#define SWIGTYPE_p_CvHistogram swig_types[30]
|
|
#define SWIGTYPE_p_CvHuMoments swig_types[31]
|
|
#define SWIGTYPE_p_CvImage swig_types[32]
|
|
#define SWIGTYPE_p_CvKalman swig_types[33]
|
|
#define SWIGTYPE_p_CvLSH swig_types[34]
|
|
#define SWIGTYPE_p_CvLSHOperations swig_types[35]
|
|
#define SWIGTYPE_p_CvLineIterator swig_types[36]
|
|
#define SWIGTYPE_p_CvMSERParams swig_types[37]
|
|
#define SWIGTYPE_p_CvMat swig_types[38]
|
|
#define SWIGTYPE_p_CvMatND swig_types[39]
|
|
#define SWIGTYPE_p_CvMatND_data swig_types[40]
|
|
#define SWIGTYPE_p_CvMatND_dim swig_types[41]
|
|
#define SWIGTYPE_p_CvMat_data swig_types[42]
|
|
#define SWIGTYPE_p_CvMatrix swig_types[43]
|
|
#define SWIGTYPE_p_CvMatrix3 swig_types[44]
|
|
#define SWIGTYPE_p_CvMemBlock swig_types[45]
|
|
#define SWIGTYPE_p_CvMemStorage swig_types[46]
|
|
#define SWIGTYPE_p_CvMemStoragePos swig_types[47]
|
|
#define SWIGTYPE_p_CvModule swig_types[48]
|
|
#define SWIGTYPE_p_CvModuleInfo swig_types[49]
|
|
#define SWIGTYPE_p_CvMoments swig_types[50]
|
|
#define SWIGTYPE_p_CvNArrayIterator swig_types[51]
|
|
#define SWIGTYPE_p_CvNextEdgeType swig_types[52]
|
|
#define SWIGTYPE_p_CvPOSITObject swig_types[53]
|
|
#define SWIGTYPE_p_CvPluginFuncInfo swig_types[54]
|
|
#define SWIGTYPE_p_CvPoint swig_types[55]
|
|
#define SWIGTYPE_p_CvPoint2D32f swig_types[56]
|
|
#define SWIGTYPE_p_CvPoint2D64f swig_types[57]
|
|
#define SWIGTYPE_p_CvPoint3D32f swig_types[58]
|
|
#define SWIGTYPE_p_CvPoint3D64f swig_types[59]
|
|
#define SWIGTYPE_p_CvQuadEdge2D swig_types[60]
|
|
#define SWIGTYPE_p_CvRNG_Wrapper swig_types[61]
|
|
#define SWIGTYPE_p_CvRandState swig_types[62]
|
|
#define SWIGTYPE_p_CvRect swig_types[63]
|
|
#define SWIGTYPE_p_CvSURFParams swig_types[64]
|
|
#define SWIGTYPE_p_CvSURFPoint swig_types[65]
|
|
#define SWIGTYPE_p_CvScalar swig_types[66]
|
|
#define SWIGTYPE_p_CvSeq swig_types[67]
|
|
#define SWIGTYPE_p_CvSeqBlock swig_types[68]
|
|
#define SWIGTYPE_p_CvSeqReader swig_types[69]
|
|
#define SWIGTYPE_p_CvSeqWriter swig_types[70]
|
|
#define SWIGTYPE_p_CvSet swig_types[71]
|
|
#define SWIGTYPE_p_CvSetElem swig_types[72]
|
|
#define SWIGTYPE_p_CvSize swig_types[73]
|
|
#define SWIGTYPE_p_CvSize2D32f swig_types[74]
|
|
#define SWIGTYPE_p_CvSlice swig_types[75]
|
|
#define SWIGTYPE_p_CvSparseMat swig_types[76]
|
|
#define SWIGTYPE_p_CvSparseMatIterator swig_types[77]
|
|
#define SWIGTYPE_p_CvSparseNode swig_types[78]
|
|
#define SWIGTYPE_p_CvStarDetectorParams swig_types[79]
|
|
#define SWIGTYPE_p_CvStarKeypoint swig_types[80]
|
|
#define SWIGTYPE_p_CvStereoBMState swig_types[81]
|
|
#define SWIGTYPE_p_CvStereoGCState swig_types[82]
|
|
#define SWIGTYPE_p_CvString swig_types[83]
|
|
#define SWIGTYPE_p_CvStringHashNode swig_types[84]
|
|
#define SWIGTYPE_p_CvSubdiv2D swig_types[85]
|
|
#define SWIGTYPE_p_CvSubdiv2DEdge_Wrapper swig_types[86]
|
|
#define SWIGTYPE_p_CvSubdiv2DPoint swig_types[87]
|
|
#define SWIGTYPE_p_CvSubdiv2DPointLocation swig_types[88]
|
|
#define SWIGTYPE_p_CvTermCriteria swig_types[89]
|
|
#define SWIGTYPE_p_CvTreeNodeIterator swig_types[90]
|
|
#define SWIGTYPE_p_CvTupleT_CvPoint_2_t swig_types[91]
|
|
#define SWIGTYPE_p_CvTupleT_float_2_t swig_types[92]
|
|
#define SWIGTYPE_p_CvTupleT_float_3_t swig_types[93]
|
|
#define SWIGTYPE_p_CvType swig_types[94]
|
|
#define SWIGTYPE_p_CvTypeInfo swig_types[95]
|
|
#define SWIGTYPE_p_CvTypedSeqT_CvConnectedComp_t swig_types[96]
|
|
#define SWIGTYPE_p_CvTypedSeqT_CvPoint2D32f_t swig_types[97]
|
|
#define SWIGTYPE_p_CvTypedSeqT_CvPoint_t swig_types[98]
|
|
#define SWIGTYPE_p_CvTypedSeqT_CvQuadEdge2D_t swig_types[99]
|
|
#define SWIGTYPE_p_CvTypedSeqT_CvRect_t swig_types[100]
|
|
#define SWIGTYPE_p_CvTypedSeqT_CvSeq_p_t swig_types[101]
|
|
#define SWIGTYPE_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t swig_types[102]
|
|
#define SWIGTYPE_p_CvTypedSeqT_CvTupleT_float_2_t_t swig_types[103]
|
|
#define SWIGTYPE_p_CvTypedSeqT_CvTupleT_float_3_t_t swig_types[104]
|
|
#define SWIGTYPE_p__CvContourScanner swig_types[105]
|
|
#define SWIGTYPE_p__IplConvKernel swig_types[106]
|
|
#define SWIGTYPE_p__IplConvKernelFP swig_types[107]
|
|
#define SWIGTYPE_p__IplImage swig_types[108]
|
|
#define SWIGTYPE_p__IplROI swig_types[109]
|
|
#define SWIGTYPE_p__IplTileInfo swig_types[110]
|
|
#define SWIGTYPE_p_a_2__float swig_types[111]
|
|
#define SWIGTYPE_p_a_2__signed_char swig_types[112]
|
|
#define SWIGTYPE_p_a_3__float swig_types[113]
|
|
#define SWIGTYPE_p_allocator_type swig_types[114]
|
|
#define SWIGTYPE_p_char swig_types[115]
|
|
#define SWIGTYPE_p_difference_type swig_types[116]
|
|
#define SWIGTYPE_p_double swig_types[117]
|
|
#define SWIGTYPE_p_f_int_int_int_int_int__p__IplROI swig_types[118]
|
|
#define SWIGTYPE_p_f_int_int_int_p_char_p_char_int_int_int_int_int_p_IplROI_p_IplImage_p_void_p_IplTileInfo__p__IplImage swig_types[119]
|
|
#define SWIGTYPE_p_f_int_p_q_const__char_p_q_const__char_p_q_const__char_int_p_void__int swig_types[120]
|
|
#define SWIGTYPE_p_f_p_CvFileStorage_p_CvFileNode__p_void swig_types[121]
|
|
#define SWIGTYPE_p_f_p_CvFileStorage_p_q_const__char_p_q_const__void_CvAttrList__void swig_types[122]
|
|
#define SWIGTYPE_p_f_p__IplImage_int__void swig_types[123]
|
|
#define SWIGTYPE_p_f_p__IplImage_int_int__void swig_types[124]
|
|
#define SWIGTYPE_p_f_p_p_void__void swig_types[125]
|
|
#define SWIGTYPE_p_f_p_q_const__IplImage__p__IplImage swig_types[126]
|
|
#define SWIGTYPE_p_f_p_q_const__char_int__p_CvMat swig_types[127]
|
|
#define SWIGTYPE_p_f_p_q_const__char_int__p__IplImage swig_types[128]
|
|
#define SWIGTYPE_p_f_p_q_const__char_p_q_const__void__void swig_types[129]
|
|
#define SWIGTYPE_p_f_p_q_const__char_p_q_const__void_p_q_const__int__int swig_types[130]
|
|
#define SWIGTYPE_p_f_p_q_const__float_p_q_const__float_p_void__float swig_types[131]
|
|
#define SWIGTYPE_p_f_p_q_const__void__int swig_types[132]
|
|
#define SWIGTYPE_p_f_p_q_const__void__p_void swig_types[133]
|
|
#define SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__int swig_types[134]
|
|
#define SWIGTYPE_p_f_p_void_p_void__int swig_types[135]
|
|
#define SWIGTYPE_p_f_size_t_p_void__p_void swig_types[136]
|
|
#define SWIGTYPE_p_float swig_types[137]
|
|
#define SWIGTYPE_p_int swig_types[138]
|
|
#define SWIGTYPE_p_int64_t swig_types[139]
|
|
#define SWIGTYPE_p_p_CvFileStorage swig_types[140]
|
|
#define SWIGTYPE_p_p_CvGraphEdge swig_types[141]
|
|
#define SWIGTYPE_p_p_CvGraphVtx swig_types[142]
|
|
#define SWIGTYPE_p_p_CvHistogram swig_types[143]
|
|
#define SWIGTYPE_p_p_CvLSH swig_types[144]
|
|
#define SWIGTYPE_p_p_CvMat swig_types[145]
|
|
#define SWIGTYPE_p_p_CvMatND swig_types[146]
|
|
#define SWIGTYPE_p_p_CvPOSITObject swig_types[147]
|
|
#define SWIGTYPE_p_p_CvPoint swig_types[148]
|
|
#define SWIGTYPE_p_p_CvSeq swig_types[149]
|
|
#define SWIGTYPE_p_p_CvSeqBlock swig_types[150]
|
|
#define SWIGTYPE_p_p_CvSetElem swig_types[151]
|
|
#define SWIGTYPE_p_p_CvStereoBMState swig_types[152]
|
|
#define SWIGTYPE_p_p_CvStereoGCState swig_types[153]
|
|
#define SWIGTYPE_p_p_CvSubdiv2DPoint swig_types[154]
|
|
#define SWIGTYPE_p_p_CvTypedSeqT_CvConnectedComp_t swig_types[155]
|
|
#define SWIGTYPE_p_p_CvTypedSeqT_CvPoint2D32f_t swig_types[156]
|
|
#define SWIGTYPE_p_p_CvTypedSeqT_CvPoint_t swig_types[157]
|
|
#define SWIGTYPE_p_p_CvTypedSeqT_CvQuadEdge2D_t swig_types[158]
|
|
#define SWIGTYPE_p_p_CvTypedSeqT_CvRect_t swig_types[159]
|
|
#define SWIGTYPE_p_p_CvTypedSeqT_CvSeq_p_t swig_types[160]
|
|
#define SWIGTYPE_p_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t swig_types[161]
|
|
#define SWIGTYPE_p_p_CvTypedSeqT_CvTupleT_float_2_t_t swig_types[162]
|
|
#define SWIGTYPE_p_p_CvTypedSeqT_CvTupleT_float_3_t_t swig_types[163]
|
|
#define SWIGTYPE_p_p_PyObject swig_types[164]
|
|
#define SWIGTYPE_p_p__CvContourScanner swig_types[165]
|
|
#define SWIGTYPE_p_p__IplImage swig_types[166]
|
|
#define SWIGTYPE_p_p_char swig_types[167]
|
|
#define SWIGTYPE_p_p_float swig_types[168]
|
|
#define SWIGTYPE_p_p_p_CvMat swig_types[169]
|
|
#define SWIGTYPE_p_p_unsigned_char swig_types[170]
|
|
#define SWIGTYPE_p_p_void swig_types[171]
|
|
#define SWIGTYPE_p_short swig_types[172]
|
|
#define SWIGTYPE_p_signed_char swig_types[173]
|
|
#define SWIGTYPE_p_size_t swig_types[174]
|
|
#define SWIGTYPE_p_size_type swig_types[175]
|
|
#define SWIGTYPE_p_std__invalid_argument swig_types[176]
|
|
#define SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t swig_types[177]
|
|
#define SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__allocator_type swig_types[178]
|
|
#define SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type swig_types[179]
|
|
#define SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t swig_types[180]
|
|
#define SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t__allocator_type swig_types[181]
|
|
#define SWIGTYPE_p_swig__SwigPyIterator swig_types[182]
|
|
#define SWIGTYPE_p_uint64_t swig_types[183]
|
|
#define SWIGTYPE_p_unsigned_char swig_types[184]
|
|
#define SWIGTYPE_p_unsigned_int swig_types[185]
|
|
#define SWIGTYPE_p_unsigned_short swig_types[186]
|
|
#define SWIGTYPE_p_value_type swig_types[187]
|
|
#define SWIGTYPE_p_void swig_types[188]
|
|
static swig_type_info *swig_types[190];
|
|
static swig_module_info swig_module = {swig_types, 189, 0, 0, 0, 0};
|
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
|
|
|
/* -------- TYPES TABLE (END) -------- */
|
|
|
|
#if (PY_VERSION_HEX <= 0x02000000)
|
|
# if !defined(SWIG_PYTHON_CLASSIC)
|
|
# error "This python version requires swig to be run with the '-classic' option"
|
|
# endif
|
|
#endif
|
|
|
|
/*-----------------------------------------------
|
|
@(target):= _cv.so
|
|
------------------------------------------------*/
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
# define SWIG_init PyInit__cv
|
|
|
|
#else
|
|
# define SWIG_init init_cv
|
|
|
|
#endif
|
|
#define SWIG_name "_cv"
|
|
|
|
#define SWIGVERSION 0x010340
|
|
#define SWIG_VERSION SWIGVERSION
|
|
|
|
|
|
#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
|
|
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
|
|
|
|
|
|
#include <stdexcept>
|
|
|
|
|
|
namespace swig {
|
|
class SwigPtr_PyObject {
|
|
protected:
|
|
PyObject *_obj;
|
|
|
|
public:
|
|
SwigPtr_PyObject() :_obj(0)
|
|
{
|
|
}
|
|
|
|
SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
|
|
{
|
|
Py_XINCREF(_obj);
|
|
}
|
|
|
|
SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
|
|
{
|
|
if (initial_ref) {
|
|
Py_XINCREF(_obj);
|
|
}
|
|
}
|
|
|
|
SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item)
|
|
{
|
|
Py_XINCREF(item._obj);
|
|
Py_XDECREF(_obj);
|
|
_obj = item._obj;
|
|
return *this;
|
|
}
|
|
|
|
~SwigPtr_PyObject()
|
|
{
|
|
Py_XDECREF(_obj);
|
|
}
|
|
|
|
operator PyObject *() const
|
|
{
|
|
return _obj;
|
|
}
|
|
|
|
PyObject *operator->() const
|
|
{
|
|
return _obj;
|
|
}
|
|
};
|
|
}
|
|
|
|
|
|
namespace swig {
|
|
struct SwigVar_PyObject : SwigPtr_PyObject {
|
|
SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
|
|
|
|
SwigVar_PyObject & operator = (PyObject* obj)
|
|
{
|
|
Py_XDECREF(_obj);
|
|
_obj = obj;
|
|
return *this;
|
|
}
|
|
};
|
|
}
|
|
|
|
|
|
#include "pyhelpers.h"
|
|
#include "pycvseq.hpp"
|
|
#include "error.h"
|
|
|
|
|
|
|
|
#include "pyhelpers.h"
|
|
|
|
static CvArr * PyObject_to_CvArr(PyObject * obj, bool * freearg);
|
|
|
|
// convert a python sequence/array/list object into a c-array
|
|
#define PyObject_AsArrayImpl(func, ctype, ptype) \
|
|
int func(PyObject * obj, ctype * array, int len){ \
|
|
void * mat_vptr=NULL; \
|
|
void * im_vptr=NULL; \
|
|
if(PyNumber_Check(obj)){ \
|
|
memset( array, 0, sizeof(ctype)*len ); \
|
|
array[0] = PyObject_As##ptype( obj ); \
|
|
} \
|
|
else if(PyList_Check(obj) || PyTuple_Check(obj)){ \
|
|
int seqsize = PySequence_Size(obj); \
|
|
for(int i=0; i<len && i<seqsize; i++){ \
|
|
if(i<seqsize){ \
|
|
array[i] = PyObject_As##ptype( PySequence_GetItem(obj, i) ); \
|
|
} \
|
|
else{ \
|
|
array[i] = 0; \
|
|
} \
|
|
} \
|
|
} \
|
|
else if( SWIG_ConvertPtr(obj, &mat_vptr, SWIGTYPE_p_CvMat, 0)!=-1 || \
|
|
SWIG_ConvertPtr(obj, &im_vptr, SWIGTYPE_p__IplImage, 0)!=-1) \
|
|
{ \
|
|
CvMat * mat = (CvMat *) mat_vptr; \
|
|
CvMat stub; \
|
|
if(im_vptr) mat = cvGetMat(im_vptr, &stub); \
|
|
if( mat->rows!=1 && mat->cols!=1 ){ \
|
|
PyErr_SetString( PyExc_TypeError, \
|
|
"PyObject_As*Array: CvArr must be row or column vector" ); \
|
|
return -1; \
|
|
} \
|
|
if( mat->rows==1 && mat->cols==1 ){ \
|
|
CvScalar val; \
|
|
if( len!=CV_MAT_CN(mat->type) ){ \
|
|
PyErr_SetString( PyExc_TypeError, \
|
|
"PyObject_As*Array: CvArr channels != length" ); \
|
|
return -1; \
|
|
} \
|
|
val = cvGet1D(mat, 0); \
|
|
for(int i=0; i<len; i++){ \
|
|
array[i] = (ctype) val.val[i]; \
|
|
} \
|
|
} \
|
|
else{ \
|
|
mat = cvReshape(mat, &stub, -1, mat->rows*mat->cols); \
|
|
if( mat->rows != len ){ \
|
|
PyErr_SetString( PyExc_TypeError, \
|
|
"PyObject_As*Array: CvArr rows or cols must equal length" ); \
|
|
return -1; \
|
|
} \
|
|
for(int i=0; i<len; i++){ \
|
|
CvScalar val = cvGet1D(mat, i); \
|
|
array[i] = (ctype) val.val[0]; \
|
|
} \
|
|
} \
|
|
} \
|
|
else{ \
|
|
PyErr_SetString( PyExc_TypeError, \
|
|
"PyObject_As*Array: Expected a number, sequence or CvArr" ); \
|
|
return -1; \
|
|
} \
|
|
return 0; \
|
|
}
|
|
|
|
PyObject_AsArrayImpl( PyObject_AsFloatArray, float, Double );
|
|
PyObject_AsArrayImpl( PyObject_AsDoubleArray, double, Double );
|
|
PyObject_AsArrayImpl( PyObject_AsLongArray, int, Long );
|
|
|
|
static CvPoint PyObject_to_CvPoint(PyObject * obj){
|
|
CvPoint val;
|
|
CvPoint *ptr;
|
|
CvPoint2D32f * ptr2D32f;
|
|
CvScalar * scalar;
|
|
|
|
if( SWIG_ConvertPtr(obj, (void**)&ptr, SWIGTYPE_p_CvPoint, 0) != -1) {
|
|
return *ptr;
|
|
}
|
|
if( SWIG_ConvertPtr(obj, (void**)&ptr2D32f, SWIGTYPE_p_CvPoint2D32f, 0) != -1) {
|
|
return cvPointFrom32f( *ptr2D32f );
|
|
}
|
|
if( SWIG_ConvertPtr(obj, (void**)&scalar, SWIGTYPE_p_CvScalar, 0) != -1) {
|
|
return cvPointFrom32f(cvPoint2D32f( scalar->val[0], scalar->val[1] ));
|
|
}
|
|
if(PyObject_AsLongArray(obj, (int *) &val, 2) != -1){
|
|
return val;
|
|
}
|
|
|
|
PyErr_SetString( PyExc_TypeError, "could not convert to CvPoint");
|
|
return cvPoint(0,0);
|
|
}
|
|
|
|
static CvPoint2D32f PyObject_to_CvPoint2D32f(PyObject * obj){
|
|
CvPoint2D32f val;
|
|
CvPoint2D32f *ptr2D32f;
|
|
CvPoint *ptr;
|
|
CvScalar * scalar;
|
|
if( SWIG_ConvertPtr(obj, (void**)&ptr2D32f, SWIGTYPE_p_CvPoint2D32f, 0) != -1) {
|
|
return *ptr2D32f;
|
|
}
|
|
if( SWIG_ConvertPtr(obj, (void**)&ptr, SWIGTYPE_p_CvPoint, 0) != -1) {
|
|
return cvPointTo32f(*ptr);
|
|
}
|
|
if( SWIG_ConvertPtr(obj, (void**)&scalar, SWIGTYPE_p_CvScalar, 0) != -1) {
|
|
return cvPoint2D32f( scalar->val[0], scalar->val[1] );
|
|
}
|
|
if(PyObject_AsFloatArray(obj, (float *) &val, 2) != -1){
|
|
return val;
|
|
}
|
|
PyErr_SetString(PyExc_TypeError, "could not convert to CvPoint2D32f");
|
|
return cvPoint2D32f(0,0);
|
|
}
|
|
|
|
/* Check if this object can be interpreted as a CvScalar */
|
|
static bool CvScalar_Check(PyObject * obj){
|
|
void * vptr;
|
|
CvScalar val;
|
|
return SWIG_ConvertPtr(obj, &vptr, SWIGTYPE_p_CvScalar, 0 ) != -1 ||
|
|
SWIG_ConvertPtr(obj, &vptr, SWIGTYPE_p_CvPoint2D32f, 0 ) != -1 ||
|
|
SWIG_ConvertPtr(obj, &vptr, SWIGTYPE_p_CvPoint, 0 ) != -1 ||
|
|
PyObject_AsDoubleArray(obj, val.val, 4) !=-1;
|
|
}
|
|
|
|
static CvScalar PyObject_to_CvScalar(PyObject * obj){
|
|
CvScalar val;
|
|
CvScalar * ptr;
|
|
CvPoint2D32f *ptr2D32f;
|
|
CvPoint *pt_ptr;
|
|
void * vptr;
|
|
if( SWIG_ConvertPtr(obj, &vptr, SWIGTYPE_p_CvScalar, 0 ) != -1)
|
|
{
|
|
ptr = (CvScalar *) vptr;
|
|
return *ptr;
|
|
}
|
|
if( SWIG_ConvertPtr(obj, (void**)&ptr2D32f, SWIGTYPE_p_CvPoint2D32f, 0) != -1) {
|
|
return cvScalar(ptr2D32f->x, ptr2D32f->y);
|
|
}
|
|
if( SWIG_ConvertPtr(obj, (void**)&pt_ptr, SWIGTYPE_p_CvPoint, 0) != -1) {
|
|
return cvScalar(pt_ptr->x, pt_ptr->y);
|
|
}
|
|
if(PyObject_AsDoubleArray(obj, val.val, 4)!=-1){
|
|
return val;
|
|
}
|
|
return cvScalar(-1,-1,-1,-1);
|
|
}
|
|
|
|
static int CvArr_Check( PyObject * obj )
|
|
{
|
|
void *ptr;
|
|
if( obj == Py_None ||
|
|
SWIG_IsOK( SWIG_ConvertPtr(obj, &ptr, SWIGTYPE_p_void, 0) ) ||
|
|
SWIG_IsOK( SWIG_ConvertPtr(obj, &ptr, SWIGTYPE_p_CvMat, 0) ) ||
|
|
SWIG_IsOK( SWIG_ConvertPtr(obj, &ptr, SWIGTYPE_p_CvSeq, 0) ) ||
|
|
SWIG_IsOK( SWIG_ConvertPtr(obj, &ptr, SWIGTYPE_p_CvContour, 0) ) ||
|
|
SWIG_IsOK( SWIG_ConvertPtr(obj, &ptr, SWIGTYPE_p_CvSparseMat, 0) ) ||
|
|
SWIG_IsOK( SWIG_ConvertPtr(obj, &ptr, SWIGTYPE_p_CvMatND, 0) ) ||
|
|
PyObject_HasAttrString(obj, "__array_interface__") ||
|
|
PySequence_Check(obj) )
|
|
{
|
|
return 1;
|
|
}
|
|
PyErr_Clear();
|
|
return 0;
|
|
}
|
|
|
|
/* if python sequence type, convert to CvMat or CvMatND */
|
|
static CvArr * PyObject_to_CvArr (PyObject * obj, bool * freearg)
|
|
{
|
|
CvArr * cvarr = NULL;
|
|
*freearg = false;
|
|
|
|
if ( obj == Py_None )
|
|
{
|
|
// Interpret None as NULL pointer
|
|
return NULL;
|
|
}
|
|
else if( SWIG_IsOK( SWIG_ConvertPtr(obj, (void **)& cvarr, SWIGTYPE_p_void, 0) ) ||
|
|
SWIG_IsOK( SWIG_ConvertPtr (obj, (void** )& cvarr, SWIGTYPE_p_CvMat, 0) ) ||
|
|
SWIG_IsOK( SWIG_ConvertPtr (obj, (void **)& cvarr, SWIGTYPE_p_CvSeq, 0) ) ||
|
|
SWIG_IsOK( SWIG_ConvertPtr (obj, (void **)& cvarr, SWIGTYPE_p_CvContour, 0) ) ||
|
|
SWIG_IsOK( SWIG_ConvertPtr (obj, (void **)& cvarr, SWIGTYPE_p_CvSparseMat, 0) ) ||
|
|
SWIG_IsOK( SWIG_ConvertPtr (obj, (void **)& cvarr, SWIGTYPE_p_CvMatND, 0) ))
|
|
{
|
|
// we got a directly wrapped void * pointer, OpenCV array or sequence type
|
|
return cvarr;
|
|
}
|
|
else if (PyObject_HasAttrString (obj, "__array_interface__"))
|
|
{
|
|
// if we didn't get our own datatype, let's see if it supports the array protocol
|
|
// array protocol is great because we just have to create another header but can
|
|
// use the original data without copying
|
|
cvarr = PyArray_to_CvArr (obj);
|
|
*freearg = (cvarr != NULL);
|
|
}
|
|
else if (PySequence_Check (obj))
|
|
{
|
|
// our next bet is a tuple or list of tuples or lists this has to be copied over, however
|
|
cvarr = PySequence_to_CvArr (obj);
|
|
*freearg = (cvarr != NULL);
|
|
}
|
|
else if (PyLong_Check (obj) && PyLong_AsLong (obj) == 0)
|
|
{
|
|
// Interpret a '0' integer as a NULL pointer
|
|
* freearg = false;
|
|
return NULL;
|
|
}
|
|
else
|
|
{
|
|
// TODO, throw an error here
|
|
return NULL;
|
|
}
|
|
|
|
return cvarr;
|
|
}
|
|
|
|
|
|
static int PyObject_GetElemType(PyObject * obj){
|
|
void *vptr;
|
|
if(SWIG_ConvertPtr(obj, &vptr, SWIGTYPE_p_CvPoint, 0) != -1) return CV_32SC2;
|
|
if(SWIG_ConvertPtr(obj, &vptr, SWIGTYPE_p_CvSize, 0) != -1) return CV_32SC2;
|
|
if(SWIG_ConvertPtr(obj, &vptr, SWIGTYPE_p_CvRect, 0) != -1) return CV_32SC4;
|
|
if(SWIG_ConvertPtr(obj, &vptr, SWIGTYPE_p_CvSize2D32f, 0) != -1) return CV_32FC2;
|
|
if(SWIG_ConvertPtr(obj, &vptr, SWIGTYPE_p_CvPoint2D32f, 0) != -1) return CV_32FC2;
|
|
if(SWIG_ConvertPtr(obj, &vptr, SWIGTYPE_p_CvPoint3D32f, 0) != -1) return CV_32FC3;
|
|
if(SWIG_ConvertPtr(obj, &vptr, SWIGTYPE_p_CvPoint2D64f, 0) != -1) return CV_64FC2;
|
|
if(SWIG_ConvertPtr(obj, &vptr, SWIGTYPE_p_CvPoint3D64f, 0) != -1) return CV_64FC3;
|
|
if(SWIG_ConvertPtr(obj, &vptr, SWIGTYPE_p_CvScalar, 0) != -1) return CV_64FC4;
|
|
if(PyTuple_Check(obj) || PyList_Check(obj)) return CV_MAKE_TYPE(CV_32F, PySequence_Size( obj ));
|
|
if(PyLong_Check(obj)) return CV_32S;
|
|
return CV_32F;
|
|
}
|
|
|
|
|
|
|
|
// Wrapper class
|
|
class CvRNG_Wrapper {
|
|
private:
|
|
CvRNG m_val;
|
|
public:
|
|
CvRNG_Wrapper( const CvRNG & val ) :
|
|
m_val(val)
|
|
{
|
|
}
|
|
CvRNG * ptr() { return &m_val; }
|
|
CvRNG & ref() { return m_val; }
|
|
bool operator==(const CvRNG_Wrapper & x){
|
|
return m_val==x.m_val;
|
|
}
|
|
bool operator!=(const CvRNG_Wrapper & x){
|
|
return m_val!=x.m_val;
|
|
}
|
|
};
|
|
|
|
|
|
SWIGINTERNINLINE PyObject*
|
|
SWIG_From_bool (bool value)
|
|
{
|
|
return PyBool_FromLong(value ? 1 : 0);
|
|
}
|
|
|
|
|
|
// Wrapper class
|
|
class CvSubdiv2DEdge_Wrapper {
|
|
private:
|
|
CvSubdiv2DEdge m_val;
|
|
public:
|
|
CvSubdiv2DEdge_Wrapper( const CvSubdiv2DEdge & val ) :
|
|
m_val(val)
|
|
{
|
|
}
|
|
CvSubdiv2DEdge * ptr() { return &m_val; }
|
|
CvSubdiv2DEdge & ref() { return m_val; }
|
|
bool operator==(const CvSubdiv2DEdge_Wrapper & x){
|
|
return m_val==x.m_val;
|
|
}
|
|
bool operator!=(const CvSubdiv2DEdge_Wrapper & x){
|
|
return m_val!=x.m_val;
|
|
}
|
|
};
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_double (PyObject *obj, double *val)
|
|
{
|
|
int res = SWIG_TypeError;
|
|
if (PyFloat_Check(obj)) {
|
|
if (val) *val = PyFloat_AsDouble(obj);
|
|
return SWIG_OK;
|
|
} else if (PyInt_Check(obj)) {
|
|
if (val) *val = PyInt_AsLong(obj);
|
|
return SWIG_OK;
|
|
} else if (PyLong_Check(obj)) {
|
|
double v = PyLong_AsDouble(obj);
|
|
if (!PyErr_Occurred()) {
|
|
if (val) *val = v;
|
|
return SWIG_OK;
|
|
} else {
|
|
PyErr_Clear();
|
|
}
|
|
}
|
|
#ifdef SWIG_PYTHON_CAST_MODE
|
|
{
|
|
int dispatch = 0;
|
|
double d = PyFloat_AsDouble(obj);
|
|
if (!PyErr_Occurred()) {
|
|
if (val) *val = d;
|
|
return SWIG_AddCast(SWIG_OK);
|
|
} else {
|
|
PyErr_Clear();
|
|
}
|
|
if (!dispatch) {
|
|
long v = PyLong_AsLong(obj);
|
|
if (!PyErr_Occurred()) {
|
|
if (val) *val = v;
|
|
return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
|
|
} else {
|
|
PyErr_Clear();
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
return res;
|
|
}
|
|
|
|
|
|
#include <float.h>
|
|
|
|
|
|
#include <math.h>
|
|
|
|
|
|
SWIGINTERNINLINE int
|
|
SWIG_CanCastAsInteger(double *d, double min, double max) {
|
|
double x = *d;
|
|
if ((min <= x && x <= max)) {
|
|
double fx = floor(x);
|
|
double cx = ceil(x);
|
|
double rd = ((x - fx) < 0.5) ? fx : cx; /* simple rint */
|
|
if ((errno == EDOM) || (errno == ERANGE)) {
|
|
errno = 0;
|
|
} else {
|
|
double summ, reps, diff;
|
|
if (rd < x) {
|
|
diff = x - rd;
|
|
} else if (rd > x) {
|
|
diff = rd - x;
|
|
} else {
|
|
return 1;
|
|
}
|
|
summ = rd + x;
|
|
reps = diff/summ;
|
|
if (reps < 8*DBL_EPSILON) {
|
|
*d = rd;
|
|
return 1;
|
|
}
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val)
|
|
{
|
|
if (PyInt_Check(obj)) {
|
|
long v = PyInt_AsLong(obj);
|
|
if (v >= 0) {
|
|
if (val) *val = v;
|
|
return SWIG_OK;
|
|
} else {
|
|
return SWIG_OverflowError;
|
|
}
|
|
} else if (PyLong_Check(obj)) {
|
|
unsigned long v = PyLong_AsUnsignedLong(obj);
|
|
if (!PyErr_Occurred()) {
|
|
if (val) *val = v;
|
|
return SWIG_OK;
|
|
} else {
|
|
PyErr_Clear();
|
|
}
|
|
}
|
|
#ifdef SWIG_PYTHON_CAST_MODE
|
|
{
|
|
int dispatch = 0;
|
|
unsigned long v = PyLong_AsUnsignedLong(obj);
|
|
if (!PyErr_Occurred()) {
|
|
if (val) *val = v;
|
|
return SWIG_AddCast(SWIG_OK);
|
|
} else {
|
|
PyErr_Clear();
|
|
}
|
|
if (!dispatch) {
|
|
double d;
|
|
int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
|
|
if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ULONG_MAX)) {
|
|
if (val) *val = (unsigned long)(d);
|
|
return res;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
return SWIG_TypeError;
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE int
|
|
SWIG_AsVal_size_t (PyObject * obj, size_t *val)
|
|
{
|
|
unsigned long v;
|
|
int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
|
|
if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
|
|
return res;
|
|
}
|
|
|
|
|
|
#include "cvshadow.h"
|
|
|
|
|
|
#include <stdexcept>
|
|
|
|
|
|
#if defined(__GNUC__)
|
|
# if __GNUC__ == 2 && __GNUC_MINOR <= 96
|
|
# define SWIG_STD_NOMODERN_STL
|
|
# endif
|
|
#endif
|
|
|
|
|
|
#include <string>
|
|
#include <stdexcept>
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
namespace swig {
|
|
struct stop_iteration {
|
|
};
|
|
|
|
struct SwigPyIterator {
|
|
private:
|
|
SwigPtr_PyObject _seq;
|
|
|
|
protected:
|
|
SwigPyIterator(PyObject *seq) : _seq(seq)
|
|
{
|
|
}
|
|
|
|
public:
|
|
virtual ~SwigPyIterator() {}
|
|
|
|
// Access iterator method, required by Python
|
|
virtual PyObject *value() const = 0;
|
|
|
|
// Forward iterator method, required by Python
|
|
virtual SwigPyIterator *incr(size_t n = 1) = 0;
|
|
|
|
// Backward iterator method, very common in C++, but not required in Python
|
|
virtual SwigPyIterator *decr(size_t /*n*/ = 1)
|
|
{
|
|
throw stop_iteration();
|
|
}
|
|
|
|
// Random access iterator methods, but not required in Python
|
|
virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const
|
|
{
|
|
throw std::invalid_argument("operation not supported");
|
|
}
|
|
|
|
virtual bool equal (const SwigPyIterator &/*x*/) const
|
|
{
|
|
throw std::invalid_argument("operation not supported");
|
|
}
|
|
|
|
// C++ common/needed methods
|
|
virtual SwigPyIterator *copy() const = 0;
|
|
|
|
PyObject *next()
|
|
{
|
|
SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
|
|
PyObject *obj = value();
|
|
incr();
|
|
SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
|
|
return obj;
|
|
}
|
|
|
|
/* Make an alias for Python 3.x */
|
|
PyObject *__next__()
|
|
{
|
|
return next();
|
|
}
|
|
|
|
PyObject *previous()
|
|
{
|
|
SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads
|
|
decr();
|
|
PyObject *obj = value();
|
|
SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
|
|
return obj;
|
|
}
|
|
|
|
SwigPyIterator *advance(ptrdiff_t n)
|
|
{
|
|
return (n > 0) ? incr(n) : decr(-n);
|
|
}
|
|
|
|
bool operator == (const SwigPyIterator& x) const
|
|
{
|
|
return equal(x);
|
|
}
|
|
|
|
bool operator != (const SwigPyIterator& x) const
|
|
{
|
|
return ! operator==(x);
|
|
}
|
|
|
|
SwigPyIterator& operator += (ptrdiff_t n)
|
|
{
|
|
return *advance(n);
|
|
}
|
|
|
|
SwigPyIterator& operator -= (ptrdiff_t n)
|
|
{
|
|
return *advance(-n);
|
|
}
|
|
|
|
SwigPyIterator* operator + (ptrdiff_t n) const
|
|
{
|
|
return copy()->advance(n);
|
|
}
|
|
|
|
SwigPyIterator* operator - (ptrdiff_t n) const
|
|
{
|
|
return copy()->advance(-n);
|
|
}
|
|
|
|
ptrdiff_t operator - (const SwigPyIterator& x) const
|
|
{
|
|
return x.distance(*this);
|
|
}
|
|
|
|
static swig_type_info* descriptor() {
|
|
static int init = 0;
|
|
static swig_type_info* desc = 0;
|
|
if (!init) {
|
|
desc = SWIG_TypeQuery("swig::SwigPyIterator *");
|
|
init = 1;
|
|
}
|
|
return desc;
|
|
}
|
|
};
|
|
}
|
|
|
|
|
|
#define SWIG_From_long PyInt_FromLong
|
|
|
|
|
|
SWIGINTERNINLINE PyObject *
|
|
SWIG_From_ptrdiff_t (ptrdiff_t value)
|
|
{
|
|
return SWIG_From_long (static_cast< long >(value));
|
|
}
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_long (PyObject *obj, long* val)
|
|
{
|
|
if (PyInt_Check(obj)) {
|
|
if (val) *val = PyInt_AsLong(obj);
|
|
return SWIG_OK;
|
|
} else if (PyLong_Check(obj)) {
|
|
long v = PyLong_AsLong(obj);
|
|
if (!PyErr_Occurred()) {
|
|
if (val) *val = v;
|
|
return SWIG_OK;
|
|
} else {
|
|
PyErr_Clear();
|
|
}
|
|
}
|
|
#ifdef SWIG_PYTHON_CAST_MODE
|
|
{
|
|
int dispatch = 0;
|
|
long v = PyInt_AsLong(obj);
|
|
if (!PyErr_Occurred()) {
|
|
if (val) *val = v;
|
|
return SWIG_AddCast(SWIG_OK);
|
|
} else {
|
|
PyErr_Clear();
|
|
}
|
|
if (!dispatch) {
|
|
double d;
|
|
int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
|
|
if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, LONG_MAX)) {
|
|
if (val) *val = (long)(d);
|
|
return res;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
return SWIG_TypeError;
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE int
|
|
SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val)
|
|
{
|
|
long v;
|
|
int res = SWIG_AsVal_long (obj, val ? &v : 0);
|
|
if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v);
|
|
return res;
|
|
}
|
|
|
|
|
|
#include <stdexcept>
|
|
|
|
|
|
#include <algorithm>
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
#include <utility>
|
|
|
|
|
|
#include <map>
|
|
#include <algorithm>
|
|
#include <stdexcept>
|
|
|
|
|
|
namespace swig {
|
|
template <class Type>
|
|
struct noconst_traits {
|
|
typedef Type noconst_type;
|
|
};
|
|
|
|
template <class Type>
|
|
struct noconst_traits<const Type> {
|
|
typedef Type noconst_type;
|
|
};
|
|
|
|
/*
|
|
type categories
|
|
*/
|
|
struct pointer_category { };
|
|
struct value_category { };
|
|
|
|
/*
|
|
General traits that provides type_name and type_info
|
|
*/
|
|
template <class Type> struct traits { };
|
|
|
|
template <class Type>
|
|
inline const char* type_name() {
|
|
return traits<typename noconst_traits<Type >::noconst_type >::type_name();
|
|
}
|
|
|
|
template <class Type>
|
|
struct traits_info {
|
|
static swig_type_info *type_query(std::string name) {
|
|
name += " *";
|
|
return SWIG_TypeQuery(name.c_str());
|
|
}
|
|
static swig_type_info *type_info() {
|
|
static swig_type_info *info = type_query(type_name<Type>());
|
|
return info;
|
|
}
|
|
};
|
|
|
|
template <class Type>
|
|
inline swig_type_info *type_info() {
|
|
return traits_info<Type>::type_info();
|
|
}
|
|
|
|
/*
|
|
Partial specialization for pointers
|
|
*/
|
|
template <class Type> struct traits <Type *> {
|
|
typedef pointer_category category;
|
|
static std::string make_ptr_name(const char* name) {
|
|
std::string ptrname = name;
|
|
ptrname += " *";
|
|
return ptrname;
|
|
}
|
|
static const char* type_name() {
|
|
static std::string name = make_ptr_name(swig::type_name<Type>());
|
|
return name.c_str();
|
|
}
|
|
};
|
|
|
|
template <class Type, class Category>
|
|
struct traits_as { };
|
|
|
|
template <class Type, class Category>
|
|
struct traits_check { };
|
|
|
|
}
|
|
|
|
|
|
namespace swig {
|
|
/*
|
|
Traits that provides the from method
|
|
*/
|
|
template <class Type> struct traits_from_ptr {
|
|
static PyObject *from(Type *val, int owner = 0) {
|
|
return SWIG_NewPointerObj(val, type_info<Type>(), owner);
|
|
}
|
|
};
|
|
|
|
template <class Type> struct traits_from {
|
|
static PyObject *from(const Type& val) {
|
|
return traits_from_ptr<Type>::from(new Type(val), 1);
|
|
}
|
|
};
|
|
|
|
template <class Type> struct traits_from<Type *> {
|
|
static PyObject *from(Type* val) {
|
|
return traits_from_ptr<Type>::from(val, 0);
|
|
}
|
|
};
|
|
|
|
template <class Type> struct traits_from<const Type *> {
|
|
static PyObject *from(const Type* val) {
|
|
return traits_from_ptr<Type>::from(const_cast<Type*>(val), 0);
|
|
}
|
|
};
|
|
|
|
|
|
template <class Type>
|
|
inline PyObject *from(const Type& val) {
|
|
return traits_from<Type>::from(val);
|
|
}
|
|
|
|
template <class Type>
|
|
inline PyObject *from_ptr(Type* val, int owner) {
|
|
return traits_from_ptr<Type>::from(val, owner);
|
|
}
|
|
|
|
/*
|
|
Traits that provides the asval/as/check method
|
|
*/
|
|
template <class Type>
|
|
struct traits_asptr {
|
|
static int asptr(PyObject *obj, Type **val) {
|
|
Type *p;
|
|
int res = SWIG_ConvertPtr(obj, (void**)&p, type_info<Type>(), 0);
|
|
if (SWIG_IsOK(res)) {
|
|
if (val) *val = p;
|
|
}
|
|
return res;
|
|
}
|
|
};
|
|
|
|
template <class Type>
|
|
inline int asptr(PyObject *obj, Type **vptr) {
|
|
return traits_asptr<Type>::asptr(obj, vptr);
|
|
}
|
|
|
|
template <class Type>
|
|
struct traits_asval {
|
|
static int asval(PyObject *obj, Type *val) {
|
|
if (val) {
|
|
Type *p = 0;
|
|
int res = traits_asptr<Type>::asptr(obj, &p);
|
|
if (!SWIG_IsOK(res)) return res;
|
|
if (p) {
|
|
typedef typename noconst_traits<Type>::noconst_type noconst_type;
|
|
*(const_cast<noconst_type*>(val)) = *p;
|
|
if (SWIG_IsNewObj(res)){
|
|
delete p;
|
|
res = SWIG_DelNewMask(res);
|
|
}
|
|
return res;
|
|
} else {
|
|
return SWIG_ERROR;
|
|
}
|
|
} else {
|
|
return traits_asptr<Type>::asptr(obj, (Type **)(0));
|
|
}
|
|
}
|
|
};
|
|
|
|
template <class Type> struct traits_asval<Type*> {
|
|
static int asval(PyObject *obj, Type **val) {
|
|
if (val) {
|
|
typedef typename noconst_traits<Type>::noconst_type noconst_type;
|
|
noconst_type *p = 0;
|
|
int res = traits_asptr<noconst_type>::asptr(obj, &p);
|
|
if (SWIG_IsOK(res)) {
|
|
*(const_cast<noconst_type**>(val)) = p;
|
|
}
|
|
return res;
|
|
} else {
|
|
return traits_asptr<Type>::asptr(obj, (Type **)(0));
|
|
}
|
|
}
|
|
};
|
|
|
|
template <class Type>
|
|
inline int asval(PyObject *obj, Type *val) {
|
|
return traits_asval<Type>::asval(obj, val);
|
|
}
|
|
|
|
template <class Type>
|
|
struct traits_as<Type, value_category> {
|
|
static Type as(PyObject *obj, bool throw_error) {
|
|
Type v;
|
|
int res = asval(obj, &v);
|
|
if (!obj || !SWIG_IsOK(res)) {
|
|
if (!PyErr_Occurred()) {
|
|
::SWIG_Error(SWIG_TypeError, swig::type_name<Type>());
|
|
}
|
|
if (throw_error) throw std::invalid_argument("bad type");
|
|
}
|
|
return v;
|
|
}
|
|
};
|
|
|
|
template <class Type>
|
|
struct traits_as<Type, pointer_category> {
|
|
static Type as(PyObject *obj, bool throw_error) {
|
|
Type *v = 0;
|
|
int res = (obj ? traits_asptr<Type>::asptr(obj, &v) : SWIG_ERROR);
|
|
if (SWIG_IsOK(res) && v) {
|
|
if (SWIG_IsNewObj(res)) {
|
|
Type r(*v);
|
|
delete v;
|
|
return r;
|
|
} else {
|
|
return *v;
|
|
}
|
|
} else {
|
|
// Uninitialized return value, no Type() constructor required.
|
|
static Type *v_def = (Type*) malloc(sizeof(Type));
|
|
if (!PyErr_Occurred()) {
|
|
SWIG_Error(SWIG_TypeError, swig::type_name<Type>());
|
|
}
|
|
if (throw_error) throw std::invalid_argument("bad type");
|
|
memset(v_def,0,sizeof(Type));
|
|
return *v_def;
|
|
}
|
|
}
|
|
};
|
|
|
|
template <class Type>
|
|
struct traits_as<Type*, pointer_category> {
|
|
static Type* as(PyObject *obj, bool throw_error) {
|
|
Type *v = 0;
|
|
int res = (obj ? traits_asptr<Type>::asptr(obj, &v) : SWIG_ERROR);
|
|
if (SWIG_IsOK(res)) {
|
|
return v;
|
|
} else {
|
|
if (!PyErr_Occurred()) {
|
|
SWIG_Error(SWIG_TypeError, swig::type_name<Type>());
|
|
}
|
|
if (throw_error) throw std::invalid_argument("bad type");
|
|
return 0;
|
|
}
|
|
}
|
|
};
|
|
|
|
template <class Type>
|
|
inline Type as(PyObject *obj, bool te = false) {
|
|
return traits_as<Type, typename traits<Type>::category>::as(obj, te);
|
|
}
|
|
|
|
template <class Type>
|
|
struct traits_check<Type, value_category> {
|
|
static bool check(PyObject *obj) {
|
|
int res = obj ? asval(obj, (Type *)(0)) : SWIG_ERROR;
|
|
return SWIG_IsOK(res) ? true : false;
|
|
}
|
|
};
|
|
|
|
template <class Type>
|
|
struct traits_check<Type, pointer_category> {
|
|
static bool check(PyObject *obj) {
|
|
int res = obj ? asptr(obj, (Type **)(0)) : SWIG_ERROR;
|
|
return SWIG_IsOK(res) ? true : false;
|
|
}
|
|
};
|
|
|
|
template <class Type>
|
|
inline bool check(PyObject *obj) {
|
|
return traits_check<Type, typename traits<Type>::category>::check(obj);
|
|
}
|
|
}
|
|
|
|
|
|
#include <functional>
|
|
|
|
namespace std {
|
|
template <>
|
|
struct less <PyObject *>: public binary_function<PyObject *, PyObject *, bool>
|
|
{
|
|
bool
|
|
operator()(PyObject * v, PyObject *w) const
|
|
{
|
|
bool res;
|
|
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
|
|
res = PyObject_RichCompareBool(v, w, Py_LT) ? true : false;
|
|
/* This may fall into a case of inconsistent
|
|
eg. ObjA > ObjX > ObjB
|
|
but ObjA < ObjB
|
|
*/
|
|
if( PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_TypeError) )
|
|
{
|
|
/* Objects can't be compared, this mostly occurred in Python 3.0 */
|
|
/* Compare their ptr directly for a workaround */
|
|
res = (v < w);
|
|
PyErr_Clear();
|
|
}
|
|
SWIG_PYTHON_THREAD_END_BLOCK;
|
|
return res;
|
|
}
|
|
};
|
|
|
|
template <>
|
|
struct less <swig::SwigPtr_PyObject>: public binary_function<swig::SwigPtr_PyObject, swig::SwigPtr_PyObject, bool>
|
|
{
|
|
bool
|
|
operator()(const swig::SwigPtr_PyObject& v, const swig::SwigPtr_PyObject& w) const
|
|
{
|
|
return std::less<PyObject *>()(v, w);
|
|
}
|
|
};
|
|
|
|
template <>
|
|
struct less <swig::SwigVar_PyObject>: public binary_function<swig::SwigVar_PyObject, swig::SwigVar_PyObject, bool>
|
|
{
|
|
bool
|
|
operator()(const swig::SwigVar_PyObject& v, const swig::SwigVar_PyObject& w) const
|
|
{
|
|
return std::less<PyObject *>()(v, w);
|
|
}
|
|
};
|
|
|
|
}
|
|
|
|
namespace swig {
|
|
template <> struct traits<PyObject *> {
|
|
typedef value_category category;
|
|
static const char* type_name() { return "PyObject *"; }
|
|
};
|
|
|
|
template <> struct traits_asval<PyObject * > {
|
|
typedef PyObject * value_type;
|
|
static int asval(PyObject *obj, value_type *val) {
|
|
if (val) *val = obj;
|
|
return SWIG_OK;
|
|
}
|
|
};
|
|
|
|
template <>
|
|
struct traits_check<PyObject *, value_category> {
|
|
static bool check(PyObject *) {
|
|
return true;
|
|
}
|
|
};
|
|
|
|
template <> struct traits_from<PyObject *> {
|
|
typedef PyObject * value_type;
|
|
static PyObject *from(const value_type& val) {
|
|
Py_XINCREF(val);
|
|
return val;
|
|
}
|
|
};
|
|
|
|
}
|
|
|
|
namespace swig {
|
|
inline size_t
|
|
check_index(ptrdiff_t i, size_t size, bool insert = false) {
|
|
if ( i < 0 ) {
|
|
if ((size_t) (-i) <= size)
|
|
return (size_t) (i + size);
|
|
} else if ( (size_t) i < size ) {
|
|
return (size_t) i;
|
|
} else if (insert && ((size_t) i == size)) {
|
|
return size;
|
|
}
|
|
|
|
throw std::out_of_range("index out of range");
|
|
}
|
|
|
|
inline size_t
|
|
slice_index(ptrdiff_t i, size_t size) {
|
|
if ( i < 0 ) {
|
|
if ((size_t) (-i) <= size) {
|
|
return (size_t) (i + size);
|
|
} else {
|
|
throw std::out_of_range("index out of range");
|
|
}
|
|
} else {
|
|
return ( (size_t) i < size ) ? ((size_t) i) : size;
|
|
}
|
|
}
|
|
|
|
template <class Sequence, class Difference>
|
|
inline typename Sequence::iterator
|
|
getpos(Sequence* self, Difference i) {
|
|
typename Sequence::iterator pos = self->begin();
|
|
std::advance(pos, check_index(i,self->size()));
|
|
return pos;
|
|
}
|
|
|
|
template <class Sequence, class Difference>
|
|
inline typename Sequence::const_iterator
|
|
cgetpos(const Sequence* self, Difference i) {
|
|
typename Sequence::const_iterator pos = self->begin();
|
|
std::advance(pos, check_index(i,self->size()));
|
|
return pos;
|
|
}
|
|
|
|
template <class Sequence, class Difference>
|
|
inline Sequence*
|
|
getslice(const Sequence* self, Difference i, Difference j) {
|
|
typename Sequence::size_type size = self->size();
|
|
typename Sequence::size_type ii = swig::check_index(i, size);
|
|
typename Sequence::size_type jj = swig::slice_index(j, size);
|
|
|
|
if (jj > ii) {
|
|
typename Sequence::const_iterator vb = self->begin();
|
|
typename Sequence::const_iterator ve = self->begin();
|
|
std::advance(vb,ii);
|
|
std::advance(ve,jj);
|
|
return new Sequence(vb, ve);
|
|
} else {
|
|
return new Sequence();
|
|
}
|
|
}
|
|
|
|
template <class Sequence, class Difference, class InputSeq>
|
|
inline void
|
|
setslice(Sequence* self, Difference i, Difference j, const InputSeq& v) {
|
|
typename Sequence::size_type size = self->size();
|
|
typename Sequence::size_type ii = swig::check_index(i, size, true);
|
|
typename Sequence::size_type jj = swig::slice_index(j, size);
|
|
if (jj < ii) jj = ii;
|
|
size_t ssize = jj - ii;
|
|
if (ssize <= v.size()) {
|
|
typename Sequence::iterator sb = self->begin();
|
|
typename InputSeq::const_iterator vmid = v.begin();
|
|
std::advance(sb,ii);
|
|
std::advance(vmid, jj - ii);
|
|
self->insert(std::copy(v.begin(), vmid, sb), vmid, v.end());
|
|
} else {
|
|
typename Sequence::iterator sb = self->begin();
|
|
typename Sequence::iterator se = self->begin();
|
|
std::advance(sb,ii);
|
|
std::advance(se,jj);
|
|
self->erase(sb,se);
|
|
self->insert(sb, v.begin(), v.end());
|
|
}
|
|
}
|
|
|
|
template <class Sequence, class Difference>
|
|
inline void
|
|
delslice(Sequence* self, Difference i, Difference j) {
|
|
typename Sequence::size_type size = self->size();
|
|
typename Sequence::size_type ii = swig::check_index(i, size, true);
|
|
typename Sequence::size_type jj = swig::slice_index(j, size);
|
|
if (jj > ii) {
|
|
typename Sequence::iterator sb = self->begin();
|
|
typename Sequence::iterator se = self->begin();
|
|
std::advance(sb,ii);
|
|
std::advance(se,jj);
|
|
self->erase(sb,se);
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
#if defined(__SUNPRO_CC) && defined(_RWSTD_VER)
|
|
# if !defined(SWIG_NO_STD_NOITERATOR_TRAITS_STL)
|
|
# define SWIG_STD_NOITERATOR_TRAITS_STL
|
|
# endif
|
|
#endif
|
|
|
|
#if !defined(SWIG_STD_NOITERATOR_TRAITS_STL)
|
|
#include <iterator>
|
|
#else
|
|
namespace std {
|
|
template <class Iterator>
|
|
struct iterator_traits {
|
|
typedef ptrdiff_t difference_type;
|
|
typedef typename Iterator::value_type value_type;
|
|
};
|
|
|
|
template <class Iterator, class Category,class T, class Reference, class Pointer, class Distance>
|
|
struct iterator_traits<__reverse_bi_iterator<Iterator,Category,T,Reference,Pointer,Distance> > {
|
|
typedef Distance difference_type;
|
|
typedef T value_type;
|
|
};
|
|
|
|
template <class T>
|
|
struct iterator_traits<T*> {
|
|
typedef T value_type;
|
|
typedef ptrdiff_t difference_type;
|
|
};
|
|
|
|
template<typename _InputIterator>
|
|
inline typename iterator_traits<_InputIterator>::difference_type
|
|
distance(_InputIterator __first, _InputIterator __last)
|
|
{
|
|
typename iterator_traits<_InputIterator>::difference_type __n = 0;
|
|
while (__first != __last) {
|
|
++__first; ++__n;
|
|
}
|
|
return __n;
|
|
}
|
|
}
|
|
#endif
|
|
|
|
|
|
namespace swig {
|
|
template<typename OutIterator>
|
|
class SwigPyIterator_T : public SwigPyIterator
|
|
{
|
|
public:
|
|
typedef OutIterator out_iterator;
|
|
typedef typename std::iterator_traits<out_iterator>::value_type value_type;
|
|
typedef SwigPyIterator_T<out_iterator> self_type;
|
|
|
|
SwigPyIterator_T(out_iterator curr, PyObject *seq)
|
|
: SwigPyIterator(seq), current(curr)
|
|
{
|
|
}
|
|
|
|
const out_iterator& get_current() const
|
|
{
|
|
return current;
|
|
}
|
|
|
|
|
|
bool equal (const SwigPyIterator &iter) const
|
|
{
|
|
const self_type *iters = dynamic_cast<const self_type *>(&iter);
|
|
if (iters) {
|
|
return (current == iters->get_current());
|
|
} else {
|
|
throw std::invalid_argument("bad iterator type");
|
|
}
|
|
}
|
|
|
|
ptrdiff_t distance(const SwigPyIterator &iter) const
|
|
{
|
|
const self_type *iters = dynamic_cast<const self_type *>(&iter);
|
|
if (iters) {
|
|
return std::distance(current, iters->get_current());
|
|
} else {
|
|
throw std::invalid_argument("bad iterator type");
|
|
}
|
|
}
|
|
|
|
protected:
|
|
out_iterator current;
|
|
};
|
|
|
|
template <class ValueType>
|
|
struct from_oper
|
|
{
|
|
typedef const ValueType& argument_type;
|
|
typedef PyObject *result_type;
|
|
result_type operator()(argument_type v) const
|
|
{
|
|
return swig::from(v);
|
|
}
|
|
};
|
|
|
|
template<typename OutIterator,
|
|
typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
|
|
typename FromOper = from_oper<ValueType> >
|
|
class SwigPyIteratorOpen_T : public SwigPyIterator_T<OutIterator>
|
|
{
|
|
public:
|
|
FromOper from;
|
|
typedef OutIterator out_iterator;
|
|
typedef ValueType value_type;
|
|
typedef SwigPyIterator_T<out_iterator> base;
|
|
typedef SwigPyIteratorOpen_T<OutIterator, ValueType, FromOper> self_type;
|
|
|
|
SwigPyIteratorOpen_T(out_iterator curr, PyObject *seq)
|
|
: SwigPyIterator_T<OutIterator>(curr, seq)
|
|
{
|
|
}
|
|
|
|
PyObject *value() const {
|
|
return from(static_cast<const value_type&>(*(base::current)));
|
|
}
|
|
|
|
SwigPyIterator *copy() const
|
|
{
|
|
return new self_type(*this);
|
|
}
|
|
|
|
SwigPyIterator *incr(size_t n = 1)
|
|
{
|
|
while (n--) {
|
|
++base::current;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
SwigPyIterator *decr(size_t n = 1)
|
|
{
|
|
while (n--) {
|
|
--base::current;
|
|
}
|
|
return this;
|
|
}
|
|
};
|
|
|
|
template<typename OutIterator,
|
|
typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
|
|
typename FromOper = from_oper<ValueType> >
|
|
class SwigPyIteratorClosed_T : public SwigPyIterator_T<OutIterator>
|
|
{
|
|
public:
|
|
FromOper from;
|
|
typedef OutIterator out_iterator;
|
|
typedef ValueType value_type;
|
|
typedef SwigPyIterator_T<out_iterator> base;
|
|
typedef SwigPyIteratorClosed_T<OutIterator, ValueType, FromOper> self_type;
|
|
|
|
SwigPyIteratorClosed_T(out_iterator curr, out_iterator first, out_iterator last, PyObject *seq)
|
|
: SwigPyIterator_T<OutIterator>(curr, seq), begin(first), end(last)
|
|
{
|
|
}
|
|
|
|
PyObject *value() const {
|
|
if (base::current == end) {
|
|
throw stop_iteration();
|
|
} else {
|
|
return from(static_cast<const value_type&>(*(base::current)));
|
|
}
|
|
}
|
|
|
|
SwigPyIterator *copy() const
|
|
{
|
|
return new self_type(*this);
|
|
}
|
|
|
|
SwigPyIterator *incr(size_t n = 1)
|
|
{
|
|
while (n--) {
|
|
if (base::current == end) {
|
|
throw stop_iteration();
|
|
} else {
|
|
++base::current;
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
|
|
SwigPyIterator *decr(size_t n = 1)
|
|
{
|
|
while (n--) {
|
|
if (base::current == begin) {
|
|
throw stop_iteration();
|
|
} else {
|
|
--base::current;
|
|
}
|
|
}
|
|
return this;
|
|
}
|
|
|
|
private:
|
|
out_iterator begin;
|
|
out_iterator end;
|
|
};
|
|
|
|
template<typename OutIter>
|
|
inline SwigPyIterator*
|
|
make_output_iterator(const OutIter& current, const OutIter& begin,const OutIter& end, PyObject *seq = 0)
|
|
{
|
|
return new SwigPyIteratorClosed_T<OutIter>(current, begin, end, seq);
|
|
}
|
|
|
|
template<typename OutIter>
|
|
inline SwigPyIterator*
|
|
make_output_iterator(const OutIter& current, PyObject *seq = 0)
|
|
{
|
|
return new SwigPyIteratorOpen_T<OutIter>(current, seq);
|
|
}
|
|
}
|
|
|
|
|
|
namespace swig
|
|
{
|
|
template <class T>
|
|
struct SwigPySequence_Ref
|
|
{
|
|
SwigPySequence_Ref(PyObject* seq, int index)
|
|
: _seq(seq), _index(index)
|
|
{
|
|
}
|
|
|
|
operator T () const
|
|
{
|
|
swig::SwigVar_PyObject item = PySequence_GetItem(_seq, _index);
|
|
try {
|
|
return swig::as<T>(item, true);
|
|
} catch (std::exception& e) {
|
|
char msg[1024];
|
|
sprintf(msg, "in sequence element %d ", _index);
|
|
if (!PyErr_Occurred()) {
|
|
::SWIG_Error(SWIG_TypeError, swig::type_name<T>());
|
|
}
|
|
SWIG_Python_AddErrorMsg(msg);
|
|
SWIG_Python_AddErrorMsg(e.what());
|
|
throw;
|
|
}
|
|
}
|
|
|
|
SwigPySequence_Ref& operator=(const T& v)
|
|
{
|
|
PySequence_SetItem(_seq, _index, swig::from<T>(v));
|
|
return *this;
|
|
}
|
|
|
|
private:
|
|
PyObject* _seq;
|
|
int _index;
|
|
};
|
|
|
|
template <class T>
|
|
struct SwigPySequence_ArrowProxy
|
|
{
|
|
SwigPySequence_ArrowProxy(const T& x): m_value(x) {}
|
|
const T* operator->() const { return &m_value; }
|
|
operator const T*() const { return &m_value; }
|
|
T m_value;
|
|
};
|
|
|
|
template <class T, class Reference >
|
|
struct SwigPySequence_InputIterator
|
|
{
|
|
typedef SwigPySequence_InputIterator<T, Reference > self;
|
|
|
|
typedef std::random_access_iterator_tag iterator_category;
|
|
typedef Reference reference;
|
|
typedef T value_type;
|
|
typedef T* pointer;
|
|
typedef int difference_type;
|
|
|
|
SwigPySequence_InputIterator()
|
|
{
|
|
}
|
|
|
|
SwigPySequence_InputIterator(PyObject* seq, int index)
|
|
: _seq(seq), _index(index)
|
|
{
|
|
}
|
|
|
|
reference operator*() const
|
|
{
|
|
return reference(_seq, _index);
|
|
}
|
|
|
|
SwigPySequence_ArrowProxy<T>
|
|
operator->() const {
|
|
return SwigPySequence_ArrowProxy<T>(operator*());
|
|
}
|
|
|
|
bool operator==(const self& ri) const
|
|
{
|
|
return (_index == ri._index) && (_seq == ri._seq);
|
|
}
|
|
|
|
bool operator!=(const self& ri) const
|
|
{
|
|
return !(operator==(ri));
|
|
}
|
|
|
|
self& operator ++ ()
|
|
{
|
|
++_index;
|
|
return *this;
|
|
}
|
|
|
|
self& operator -- ()
|
|
{
|
|
--_index;
|
|
return *this;
|
|
}
|
|
|
|
self& operator += (difference_type n)
|
|
{
|
|
_index += n;
|
|
return *this;
|
|
}
|
|
|
|
self operator +(difference_type n) const
|
|
{
|
|
return self(_seq, _index + n);
|
|
}
|
|
|
|
self& operator -= (difference_type n)
|
|
{
|
|
_index -= n;
|
|
return *this;
|
|
}
|
|
|
|
self operator -(difference_type n) const
|
|
{
|
|
return self(_seq, _index - n);
|
|
}
|
|
|
|
difference_type operator - (const self& ri) const
|
|
{
|
|
return _index - ri._index;
|
|
}
|
|
|
|
bool operator < (const self& ri) const
|
|
{
|
|
return _index < ri._index;
|
|
}
|
|
|
|
reference
|
|
operator[](difference_type n) const
|
|
{
|
|
return reference(_seq, _index + n);
|
|
}
|
|
|
|
private:
|
|
PyObject* _seq;
|
|
difference_type _index;
|
|
};
|
|
|
|
template <class T>
|
|
struct SwigPySequence_Cont
|
|
{
|
|
typedef SwigPySequence_Ref<T> reference;
|
|
typedef const SwigPySequence_Ref<T> const_reference;
|
|
typedef T value_type;
|
|
typedef T* pointer;
|
|
typedef int difference_type;
|
|
typedef int size_type;
|
|
typedef const pointer const_pointer;
|
|
typedef SwigPySequence_InputIterator<T, reference> iterator;
|
|
typedef SwigPySequence_InputIterator<T, const_reference> const_iterator;
|
|
|
|
SwigPySequence_Cont(PyObject* seq) : _seq(0)
|
|
{
|
|
if (!PySequence_Check(seq)) {
|
|
throw std::invalid_argument("a sequence is expected");
|
|
}
|
|
_seq = seq;
|
|
Py_INCREF(_seq);
|
|
}
|
|
|
|
~SwigPySequence_Cont()
|
|
{
|
|
Py_XDECREF(_seq);
|
|
}
|
|
|
|
size_type size() const
|
|
{
|
|
return static_cast<size_type>(PySequence_Size(_seq));
|
|
}
|
|
|
|
bool empty() const
|
|
{
|
|
return size() == 0;
|
|
}
|
|
|
|
iterator begin()
|
|
{
|
|
return iterator(_seq, 0);
|
|
}
|
|
|
|
const_iterator begin() const
|
|
{
|
|
return const_iterator(_seq, 0);
|
|
}
|
|
|
|
iterator end()
|
|
{
|
|
return iterator(_seq, size());
|
|
}
|
|
|
|
const_iterator end() const
|
|
{
|
|
return const_iterator(_seq, size());
|
|
}
|
|
|
|
reference operator[](difference_type n)
|
|
{
|
|
return reference(_seq, n);
|
|
}
|
|
|
|
const_reference operator[](difference_type n) const
|
|
{
|
|
return const_reference(_seq, n);
|
|
}
|
|
|
|
bool check(bool set_err = true) const
|
|
{
|
|
int s = size();
|
|
for (int i = 0; i < s; ++i) {
|
|
swig::SwigVar_PyObject item = PySequence_GetItem(_seq, i);
|
|
if (!swig::check<value_type>(item)) {
|
|
if (set_err) {
|
|
char msg[1024];
|
|
sprintf(msg, "in sequence element %d", i);
|
|
SWIG_Error(SWIG_RuntimeError, msg);
|
|
}
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
private:
|
|
PyObject* _seq;
|
|
};
|
|
|
|
}
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_float (PyObject * obj, float *val)
|
|
{
|
|
double v;
|
|
int res = SWIG_AsVal_double (obj, &v);
|
|
if (SWIG_IsOK(res)) {
|
|
if ((v < -FLT_MAX || v > FLT_MAX)) {
|
|
return SWIG_OverflowError;
|
|
} else {
|
|
if (val) *val = static_cast< float >(v);
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
|
|
|
|
#define SWIG_From_double PyFloat_FromDouble
|
|
|
|
|
|
SWIGINTERNINLINE PyObject *
|
|
SWIG_From_float (float value)
|
|
{
|
|
return SWIG_From_double (value);
|
|
}
|
|
|
|
|
|
namespace swig {
|
|
template <> struct traits<float > {
|
|
typedef value_category category;
|
|
static const char* type_name() { return"float"; }
|
|
};
|
|
template <> struct traits_asval<float > {
|
|
typedef float value_type;
|
|
static int asval(PyObject *obj, value_type *val) {
|
|
return SWIG_AsVal_float (obj, val);
|
|
}
|
|
};
|
|
template <> struct traits_from<float > {
|
|
typedef float value_type;
|
|
static PyObject *from(const value_type& val) {
|
|
return SWIG_From_float (val);
|
|
}
|
|
};
|
|
}
|
|
|
|
|
|
namespace swig {
|
|
template <class SwigPySeq, class Seq>
|
|
inline void
|
|
assign(const SwigPySeq& swigpyseq, Seq* seq) {
|
|
// seq->assign(swigpyseq.begin(), swigpyseq.end()); // not used as not always implemented
|
|
typedef typename SwigPySeq::value_type value_type;
|
|
typename SwigPySeq::const_iterator it = swigpyseq.begin();
|
|
for (;it != swigpyseq.end(); ++it) {
|
|
seq->insert(seq->end(),(value_type)(*it));
|
|
}
|
|
}
|
|
|
|
template <class Seq, class T = typename Seq::value_type >
|
|
struct traits_asptr_stdseq {
|
|
typedef Seq sequence;
|
|
typedef T value_type;
|
|
|
|
static int asptr(PyObject *obj, sequence **seq) {
|
|
if (obj == Py_None || SWIG_Python_GetSwigThis(obj)) {
|
|
sequence *p;
|
|
if (::SWIG_ConvertPtr(obj,(void**)&p,
|
|
swig::type_info<sequence>(),0) == SWIG_OK) {
|
|
if (seq) *seq = p;
|
|
return SWIG_OLDOBJ;
|
|
}
|
|
} else if (PySequence_Check(obj)) {
|
|
try {
|
|
SwigPySequence_Cont<value_type> swigpyseq(obj);
|
|
if (seq) {
|
|
sequence *pseq = new sequence();
|
|
assign(swigpyseq, pseq);
|
|
*seq = pseq;
|
|
return SWIG_NEWOBJ;
|
|
} else {
|
|
return swigpyseq.check() ? SWIG_OK : SWIG_ERROR;
|
|
}
|
|
} catch (std::exception& e) {
|
|
if (seq) {
|
|
if (!PyErr_Occurred()) {
|
|
PyErr_SetString(PyExc_TypeError, e.what());
|
|
}
|
|
}
|
|
return SWIG_ERROR;
|
|
}
|
|
}
|
|
return SWIG_ERROR;
|
|
}
|
|
};
|
|
|
|
template <class Seq, class T = typename Seq::value_type >
|
|
struct traits_from_stdseq {
|
|
typedef Seq sequence;
|
|
typedef T value_type;
|
|
typedef typename Seq::size_type size_type;
|
|
typedef typename sequence::const_iterator const_iterator;
|
|
|
|
static PyObject *from(const sequence& seq) {
|
|
#ifdef SWIG_PYTHON_EXTRA_NATIVE_CONTAINERS
|
|
swig_type_info *desc = swig::type_info<sequence>();
|
|
if (desc && desc->clientdata) {
|
|
return SWIG_NewPointerObj(new sequence(seq), desc, SWIG_POINTER_OWN);
|
|
}
|
|
#endif
|
|
size_type size = seq.size();
|
|
if (size <= (size_type)INT_MAX) {
|
|
PyObject *obj = PyTuple_New((int)size);
|
|
int i = 0;
|
|
for (const_iterator it = seq.begin();
|
|
it != seq.end(); ++it, ++i) {
|
|
PyTuple_SetItem(obj,i,swig::from<value_type>(*it));
|
|
}
|
|
return obj;
|
|
} else {
|
|
PyErr_SetString(PyExc_OverflowError,"sequence size not valid in python");
|
|
return NULL;
|
|
}
|
|
}
|
|
};
|
|
}
|
|
|
|
|
|
namespace swig {
|
|
template <class T>
|
|
struct traits_asptr<std::vector<T> > {
|
|
static int asptr(PyObject *obj, std::vector<T> **vec) {
|
|
return traits_asptr_stdseq<std::vector<T> >::asptr(obj, vec);
|
|
}
|
|
};
|
|
|
|
template <class T>
|
|
struct traits_from<std::vector<T> > {
|
|
static PyObject *from(const std::vector<T>& vec) {
|
|
return traits_from_stdseq<std::vector<T> >::from(vec);
|
|
}
|
|
};
|
|
}
|
|
|
|
|
|
namespace swig {
|
|
template <> struct traits<std::vector<float, std::allocator< float > > > {
|
|
typedef pointer_category category;
|
|
static const char* type_name() {
|
|
return "std::vector<" "float" "," "std::allocator< float >" " >";
|
|
}
|
|
};
|
|
}
|
|
|
|
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_float_Sg__iterator(std::vector< float > *self,PyObject **PYTHON_SELF){
|
|
return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
|
|
}
|
|
SWIGINTERN bool std_vector_Sl_float_Sg____nonzero__(std::vector< float > const *self){
|
|
return !(self->empty());
|
|
}
|
|
SWIGINTERN bool std_vector_Sl_float_Sg____bool__(std::vector< float > const *self){
|
|
return !(self->empty());
|
|
}
|
|
SWIGINTERN std::vector< float >::size_type std_vector_Sl_float_Sg____len__(std::vector< float > const *self){
|
|
return self->size();
|
|
}
|
|
|
|
SWIGINTERNINLINE PyObject*
|
|
SWIG_From_unsigned_SS_long (unsigned long value)
|
|
{
|
|
return (value > LONG_MAX) ?
|
|
PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE PyObject *
|
|
SWIG_From_size_t (size_t value)
|
|
{
|
|
return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
|
|
}
|
|
|
|
SWIGINTERN std::vector< float >::value_type std_vector_Sl_float_Sg__pop(std::vector< float > *self){
|
|
if (self->size() == 0)
|
|
throw std::out_of_range("pop from empty container");
|
|
std::vector<float,std::allocator< float > >::value_type x = self->back();
|
|
self->pop_back();
|
|
return x;
|
|
}
|
|
SWIGINTERN std::vector< float,std::allocator< float > > *std_vector_Sl_float_Sg____getslice__(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::difference_type j){
|
|
return swig::getslice(self, i, j);
|
|
}
|
|
SWIGINTERN void std_vector_Sl_float_Sg____setslice__(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::difference_type j,std::vector< float,std::allocator< float > > const &v){
|
|
swig::setslice(self, i, j, v);
|
|
}
|
|
SWIGINTERN void std_vector_Sl_float_Sg____delslice__(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::difference_type j){
|
|
swig::delslice(self, i, j);
|
|
}
|
|
SWIGINTERN void std_vector_Sl_float_Sg____delitem____SWIG_0(std::vector< float > *self,std::vector< float >::difference_type i){
|
|
self->erase(swig::getpos(self,i));
|
|
}
|
|
SWIGINTERN std::vector< float,std::allocator< float > > *std_vector_Sl_float_Sg____getitem____SWIG_0(std::vector< float > *self,PySliceObject *slice){
|
|
Py_ssize_t i, j, step;
|
|
if( !PySlice_Check(slice) ) {
|
|
SWIG_Error(SWIG_TypeError, "Slice object expected.");
|
|
return NULL;
|
|
}
|
|
PySlice_GetIndices(slice, self->size(), &i, &j, &step);
|
|
return swig::getslice(self, i, j);
|
|
}
|
|
SWIGINTERN void std_vector_Sl_float_Sg____setitem____SWIG_0(std::vector< float > *self,PySliceObject *slice,std::vector< float,std::allocator< float > > const &v){
|
|
Py_ssize_t i, j, step;
|
|
if( !PySlice_Check(slice) ) {
|
|
SWIG_Error(SWIG_TypeError, "Slice object expected.");
|
|
return;
|
|
}
|
|
PySlice_GetIndices(slice, self->size(), &i, &j, &step);
|
|
swig::setslice(self, i, j, v);
|
|
}
|
|
SWIGINTERN void std_vector_Sl_float_Sg____delitem____SWIG_1(std::vector< float > *self,PySliceObject *slice){
|
|
Py_ssize_t i, j, step;
|
|
if( !PySlice_Check(slice) ) {
|
|
SWIG_Error(SWIG_TypeError, "Slice object expected.");
|
|
return;
|
|
}
|
|
PySlice_GetIndices(slice, self->size(), &i, &j, &step);
|
|
swig::delslice(self, i,j);
|
|
}
|
|
SWIGINTERN std::vector< float >::value_type const &std_vector_Sl_float_Sg____getitem____SWIG_1(std::vector< float > const *self,std::vector< float >::difference_type i){
|
|
return *(swig::cgetpos(self, i));
|
|
}
|
|
SWIGINTERN void std_vector_Sl_float_Sg____setitem____SWIG_1(std::vector< float > *self,std::vector< float >::difference_type i,std::vector< float >::value_type const &x){
|
|
*(swig::getpos(self,i)) = x;
|
|
}
|
|
SWIGINTERN void std_vector_Sl_float_Sg__append(std::vector< float > *self,std::vector< float >::value_type const &x){
|
|
self->push_back(x);
|
|
}
|
|
|
|
namespace swig {
|
|
template <> struct traits<CvPoint > {
|
|
typedef pointer_category category;
|
|
static const char* type_name() { return"CvPoint"; }
|
|
};
|
|
}
|
|
|
|
|
|
namespace swig {
|
|
template <> struct traits<std::vector<CvPoint, std::allocator< CvPoint > > > {
|
|
typedef pointer_category category;
|
|
static const char* type_name() {
|
|
return "std::vector<" "CvPoint" "," "std::allocator< CvPoint >" " >";
|
|
}
|
|
};
|
|
}
|
|
|
|
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_CvPoint_Sg__iterator(std::vector< CvPoint > *self,PyObject **PYTHON_SELF){
|
|
return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
|
|
}
|
|
SWIGINTERN bool std_vector_Sl_CvPoint_Sg____nonzero__(std::vector< CvPoint > const *self){
|
|
return !(self->empty());
|
|
}
|
|
SWIGINTERN bool std_vector_Sl_CvPoint_Sg____bool__(std::vector< CvPoint > const *self){
|
|
return !(self->empty());
|
|
}
|
|
SWIGINTERN std::vector< CvPoint >::size_type std_vector_Sl_CvPoint_Sg____len__(std::vector< CvPoint > const *self){
|
|
return self->size();
|
|
}
|
|
SWIGINTERN std::vector< CvPoint >::value_type std_vector_Sl_CvPoint_Sg__pop(std::vector< CvPoint > *self){
|
|
if (self->size() == 0)
|
|
throw std::out_of_range("pop from empty container");
|
|
std::vector<CvPoint,std::allocator< CvPoint > >::value_type x = self->back();
|
|
self->pop_back();
|
|
return x;
|
|
}
|
|
SWIGINTERN std::vector< CvPoint,std::allocator< CvPoint > > *std_vector_Sl_CvPoint_Sg____getslice__(std::vector< CvPoint > *self,std::vector< CvPoint >::difference_type i,std::vector< CvPoint >::difference_type j){
|
|
return swig::getslice(self, i, j);
|
|
}
|
|
SWIGINTERN void std_vector_Sl_CvPoint_Sg____setslice__(std::vector< CvPoint > *self,std::vector< CvPoint >::difference_type i,std::vector< CvPoint >::difference_type j,std::vector< CvPoint,std::allocator< CvPoint > > const &v){
|
|
swig::setslice(self, i, j, v);
|
|
}
|
|
SWIGINTERN void std_vector_Sl_CvPoint_Sg____delslice__(std::vector< CvPoint > *self,std::vector< CvPoint >::difference_type i,std::vector< CvPoint >::difference_type j){
|
|
swig::delslice(self, i, j);
|
|
}
|
|
SWIGINTERN void std_vector_Sl_CvPoint_Sg____delitem____SWIG_0(std::vector< CvPoint > *self,std::vector< CvPoint >::difference_type i){
|
|
self->erase(swig::getpos(self,i));
|
|
}
|
|
SWIGINTERN std::vector< CvPoint,std::allocator< CvPoint > > *std_vector_Sl_CvPoint_Sg____getitem____SWIG_0(std::vector< CvPoint > *self,PySliceObject *slice){
|
|
Py_ssize_t i, j, step;
|
|
if( !PySlice_Check(slice) ) {
|
|
SWIG_Error(SWIG_TypeError, "Slice object expected.");
|
|
return NULL;
|
|
}
|
|
PySlice_GetIndices(slice, self->size(), &i, &j, &step);
|
|
return swig::getslice(self, i, j);
|
|
}
|
|
SWIGINTERN void std_vector_Sl_CvPoint_Sg____setitem____SWIG_0(std::vector< CvPoint > *self,PySliceObject *slice,std::vector< CvPoint,std::allocator< CvPoint > > const &v){
|
|
Py_ssize_t i, j, step;
|
|
if( !PySlice_Check(slice) ) {
|
|
SWIG_Error(SWIG_TypeError, "Slice object expected.");
|
|
return;
|
|
}
|
|
PySlice_GetIndices(slice, self->size(), &i, &j, &step);
|
|
swig::setslice(self, i, j, v);
|
|
}
|
|
SWIGINTERN void std_vector_Sl_CvPoint_Sg____delitem____SWIG_1(std::vector< CvPoint > *self,PySliceObject *slice){
|
|
Py_ssize_t i, j, step;
|
|
if( !PySlice_Check(slice) ) {
|
|
SWIG_Error(SWIG_TypeError, "Slice object expected.");
|
|
return;
|
|
}
|
|
PySlice_GetIndices(slice, self->size(), &i, &j, &step);
|
|
swig::delslice(self, i,j);
|
|
}
|
|
SWIGINTERN std::vector< CvPoint >::value_type const &std_vector_Sl_CvPoint_Sg____getitem____SWIG_1(std::vector< CvPoint > const *self,std::vector< CvPoint >::difference_type i){
|
|
return *(swig::cgetpos(self, i));
|
|
}
|
|
SWIGINTERN void std_vector_Sl_CvPoint_Sg____setitem____SWIG_1(std::vector< CvPoint > *self,std::vector< CvPoint >::difference_type i,std::vector< CvPoint >::value_type const &x){
|
|
*(swig::getpos(self,i)) = x;
|
|
}
|
|
SWIGINTERN void std_vector_Sl_CvPoint_Sg__append(std::vector< CvPoint > *self,std::vector< CvPoint >::value_type const &x){
|
|
self->push_back(x);
|
|
}
|
|
|
|
#include <limits.h>
|
|
#if !defined(SWIG_NO_LLONG_MAX)
|
|
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
|
|
# define LLONG_MAX __LONG_LONG_MAX__
|
|
# define LLONG_MIN (-LLONG_MAX - 1LL)
|
|
# define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
|
|
# endif
|
|
#endif
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_int (PyObject * obj, int *val)
|
|
{
|
|
long v;
|
|
int res = SWIG_AsVal_long (obj, &v);
|
|
if (SWIG_IsOK(res)) {
|
|
if ((v < INT_MIN || v > INT_MAX)) {
|
|
return SWIG_OverflowError;
|
|
} else {
|
|
if (val) *val = static_cast< int >(v);
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
|
|
|
|
#include "cxtypes.h"
|
|
#include "cxcore.h"
|
|
#include "cvtypes.h"
|
|
#include "cv.h"
|
|
|
|
|
|
SWIGINTERNINLINE PyObject *
|
|
SWIG_From_int (int value)
|
|
{
|
|
return SWIG_From_long (value);
|
|
}
|
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
CvMat * cvCreateImageMat( CvSize size, int depth, int channels ){
|
|
static const signed char icvDepthToType[]=
|
|
{
|
|
-1, -1, CV_8U, CV_8S, CV_16U, CV_16S, -1, -1,
|
|
CV_32F, CV_32S, -1, -1, -1, -1, -1, -1, CV_64F, -1
|
|
};
|
|
|
|
depth = icvDepthToType[((depth & 255) >> 2) + (depth < 0)];
|
|
return cvCreateMat( size.height, size.width, CV_MAKE_TYPE(depth, channels));
|
|
}
|
|
#define cvCloneImageMat( mat ) cvCloneMat( mat )
|
|
|
|
#ifdef WIN32
|
|
|
|
CvModuleInfo *CvModule::first=0;
|
|
CvModuleInfo *CvModule::last=0;
|
|
CvTypeInfo *CvType::first=0;
|
|
CvTypeInfo *CvType::last=0;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
SWIGINTERN swig_type_info*
|
|
SWIG_pchar_descriptor(void)
|
|
{
|
|
static int init = 0;
|
|
static swig_type_info* info = 0;
|
|
if (!init) {
|
|
info = SWIG_TypeQuery("_p_char");
|
|
init = 1;
|
|
}
|
|
return info;
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE PyObject *
|
|
SWIG_FromCharPtrAndSize(const char* carray, size_t size)
|
|
{
|
|
if (carray) {
|
|
if (size > INT_MAX) {
|
|
swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
|
|
return pchar_descriptor ?
|
|
SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void();
|
|
} else {
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
return PyUnicode_FromStringAndSize(carray, static_cast< int >(size));
|
|
#else
|
|
return PyString_FromStringAndSize(carray, static_cast< int >(size));
|
|
#endif
|
|
}
|
|
} else {
|
|
return SWIG_Py_Void();
|
|
}
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE PyObject *
|
|
SWIG_FromCharPtr(const char *cptr)
|
|
{
|
|
return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
|
|
}
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
|
|
{
|
|
unsigned long v;
|
|
int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
|
|
if (SWIG_IsOK(res)) {
|
|
if ((v > UINT_MAX)) {
|
|
return SWIG_OverflowError;
|
|
} else {
|
|
if (val) *val = static_cast< unsigned int >(v);
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE PyObject *
|
|
SWIG_From_unsigned_SS_int (unsigned int value)
|
|
{
|
|
return SWIG_From_unsigned_SS_long (value);
|
|
}
|
|
|
|
SWIGINTERN void delete_IplImage(IplImage *self){ IplImage * dummy = self; cvReleaseImage (& dummy); }
|
|
SWIGINTERN IplImage *IplImage_operator_SA___SWIG_0(IplImage *self,CvArr *src){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvAnd(self, src, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_SA__Se___SWIG_0(IplImage *self,CvArr *src){
|
|
cvAnd(self, src, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sa___SWIG_0(IplImage *self,CvArr *src){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvAdd(self, src, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sa__Se___SWIG_0(IplImage *self,CvArr *src){
|
|
cvAdd(self, src, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sm___SWIG_0(IplImage *self,CvArr *src){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvMul(self, src, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sm__Se___SWIG_0(IplImage *self,CvArr *src){
|
|
cvMul(self, src, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Ss___SWIG_0(IplImage *self,CvArr *src){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvSub(self, src, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Ss__Se___SWIG_0(IplImage *self,CvArr *src){
|
|
cvSub(self, src, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sd___SWIG_0(IplImage *self,CvArr *src){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvDiv(self, src, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sd__Se___SWIG_0(IplImage *self,CvArr *src){
|
|
cvDiv(self, src, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_So___SWIG_0(IplImage *self,CvArr *src){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvOr(self, src, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_So__Se___SWIG_0(IplImage *self,CvArr *src){
|
|
cvOr(self, src, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sx___SWIG_0(IplImage *self,CvArr *src){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvXor(self, src, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sx__Se___SWIG_0(IplImage *self,CvArr *src){
|
|
cvXor(self, src, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sa___SWIG_1(IplImage *self,CvScalar val){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvAddS(self, val, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sa__Se___SWIG_1(IplImage *self,CvScalar val){
|
|
cvAddS(self, val, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sx___SWIG_1(IplImage *self,CvScalar val){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvXorS(self, val, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sx__Se___SWIG_1(IplImage *self,CvScalar val){
|
|
cvXorS(self, val, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Ss___SWIG_1(IplImage *self,CvScalar val){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvSubS(self, val, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Ss__Se___SWIG_1(IplImage *self,CvScalar val){
|
|
cvSubS(self, val, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_So___SWIG_1(IplImage *self,CvScalar val){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvOrS(self, val, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_So__Se___SWIG_1(IplImage *self,CvScalar val){
|
|
cvOrS(self, val, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_SA___SWIG_1(IplImage *self,CvScalar val){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvAndS(self, val, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_SA__Se___SWIG_1(IplImage *self,CvScalar val){
|
|
cvAndS(self, val, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sg__Se___SWIG_0(IplImage *self,CvArr *src){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), 8, 1);
|
|
cvCmp(self, src, res, 2);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sg__Se___SWIG_1(IplImage *self,double val){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), 8, 1);
|
|
cvCmpS(self, val, res, 2);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Se__Se___SWIG_0(IplImage *self,CvArr *src){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), 8, 1);
|
|
cvCmp(self, src, res, 0);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Se__Se___SWIG_1(IplImage *self,double val){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), 8, 1);
|
|
cvCmpS(self, val, res, 0);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sl__Se___SWIG_0(IplImage *self,CvArr *src){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), 8, 1);
|
|
cvCmp(self, src, res, 4);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sl__Se___SWIG_1(IplImage *self,double val){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), 8, 1);
|
|
cvCmpS(self, val, res, 4);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_SN__Se___SWIG_0(IplImage *self,CvArr *src){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), 8, 1);
|
|
cvCmp(self, src, res, 5);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_SN__Se___SWIG_1(IplImage *self,double val){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), 8, 1);
|
|
cvCmpS(self, val, res, 5);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sl___SWIG_0(IplImage *self,CvArr *src){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), 8, 1);
|
|
cvCmp(self, src, res, 3);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sl___SWIG_1(IplImage *self,double val){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), 8, 1);
|
|
cvCmpS(self, val, res, 3);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sg___SWIG_0(IplImage *self,CvArr *src){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), 8, 1);
|
|
cvCmp(self, src, res, 1);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sg___SWIG_1(IplImage *self,double val){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), 8, 1);
|
|
cvCmpS(self, val, res, 1);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sm___SWIG_1(IplImage *self,double val){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvConvertScale(self, res, val);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sm__Se___SWIG_1(IplImage *self,double val){
|
|
cvConvertScale(self, self, val);
|
|
return self;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sd___SWIG_1(IplImage *self,double val){
|
|
IplImage * res = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvConvertScale(self, res, 1.0/val);
|
|
return res;
|
|
}
|
|
SWIGINTERN IplImage *IplImage_operator_Sd__Se___SWIG_1(IplImage *self,double val){
|
|
cvConvertScale(self, self, 1.0/val);
|
|
return self;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___radd____SWIG_0(IplImage *self,CvArr *arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvAdd(self, arg, retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___rsub____SWIG_0(IplImage *self,CvArr *arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvSub(arg, self, retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___rdiv__(IplImage *self,CvArr *arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvDiv(arg, self, retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___rmul____SWIG_0(IplImage *self,CvArr *arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvMul(arg, self, retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___radd____SWIG_1(IplImage *self,CvScalar arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvAddS(self, arg, retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___radd____SWIG_2(IplImage *self,double arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvAddS(self, cvScalar(arg), retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___rsub____SWIG_1(IplImage *self,CvScalar arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvSubRS(self, arg, retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___rsub____SWIG_2(IplImage *self,double arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvSubRS(self, cvScalar(arg), retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___rmul____SWIG_1(IplImage *self,double arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvConvertScale(self, retarg, arg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___ror____SWIG_0(IplImage *self,CvScalar arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvOrS(self, arg, retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___ror____SWIG_1(IplImage *self,double arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvOrS(self, cvScalar(arg), retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___rand____SWIG_0(IplImage *self,CvScalar arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvAndS(self, arg, retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___rand____SWIG_1(IplImage *self,double arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvAndS(self, cvScalar(arg), retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___rxor____SWIG_0(IplImage *self,CvScalar arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvXorS(self, arg, retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___rxor____SWIG_1(IplImage *self,double arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvXorS(self, cvScalar(arg), retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___req__(IplImage *self,double arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), 8, 1);
|
|
cvCmpS(self, arg, retarg, 0);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___rgt__(IplImage *self,double arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), 8, 1);
|
|
cvCmpS(self, arg, retarg, 1);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___rge__(IplImage *self,double arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), 8, 1);
|
|
cvCmpS(self, arg, retarg, 2);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___rlt__(IplImage *self,double arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), 8, 1);
|
|
cvCmpS(self, arg, retarg, 3);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___rle__(IplImage *self,double arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), 8, 1);
|
|
cvCmpS(self, arg, retarg, 4);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___rne__(IplImage *self,double arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), 8, 1);
|
|
cvCmpS(self, arg, retarg, 5);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN IplImage *IplImage___pow__(IplImage *self,double arg){
|
|
IplImage * retarg = cvCreateImage(cvGetSize(self), self->depth, self->nChannels);
|
|
cvPow(self, retarg, arg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN char *IplImage___str__(IplImage *self){
|
|
static char str[8];
|
|
cvArrPrint( self );
|
|
str[0]=0;
|
|
return str;
|
|
}
|
|
SWIGINTERN void IplImage___setitem____SWIG_0(IplImage *self,PyObject *object,double val){
|
|
CvMat tmp;
|
|
CvRect subrect = PySlice_to_CvRect( self, object );
|
|
cvGetSubRect(self, &tmp, subrect);
|
|
cvSet(&tmp, cvScalarAll(val));
|
|
}
|
|
SWIGINTERN void IplImage___setitem____SWIG_1(IplImage *self,PyObject *object,CvPoint val){
|
|
CvMat tmp;
|
|
CvRect subrect = PySlice_to_CvRect( self, object );
|
|
cvGetSubRect(self, &tmp, subrect);
|
|
cvSet(&tmp, cvScalar(val.x, val.y));
|
|
}
|
|
SWIGINTERN void IplImage___setitem____SWIG_2(IplImage *self,PyObject *object,CvPoint2D32f val){
|
|
CvMat tmp;
|
|
CvRect subrect = PySlice_to_CvRect( self, object );
|
|
cvGetSubRect(self, &tmp, subrect);
|
|
cvSet(&tmp, cvScalar(val.x, val.y));
|
|
}
|
|
SWIGINTERN void IplImage___setitem____SWIG_3(IplImage *self,PyObject *object,CvScalar val){
|
|
CvMat tmp;
|
|
CvRect subrect = PySlice_to_CvRect( self, object );
|
|
cvGetSubRect(self, &tmp, subrect);
|
|
cvSet(&tmp, val);
|
|
}
|
|
SWIGINTERN void IplImage___setitem____SWIG_4(IplImage *self,PyObject *object,CvArr *arr){
|
|
CvMat tmp;
|
|
CvRect subrect = PySlice_to_CvRect( self, object );
|
|
cvGetSubRect(self, &tmp, subrect);
|
|
cvConvert(arr, &tmp);
|
|
}
|
|
SWIGINTERN PyObject *IplImage___getitem__(IplImage *self,PyObject *object){
|
|
CvMat mat;
|
|
IplImage * im;
|
|
CvRect subrect = PySlice_to_CvRect( self, object );
|
|
|
|
// return scalar if single element
|
|
if(subrect.width==1 && subrect.height==1){
|
|
CvScalar * s;
|
|
int type = cvGetElemType( self );
|
|
if(CV_MAT_CN(type) > 1){
|
|
s = new CvScalar;
|
|
*s = cvGet2D( self, subrect.y, subrect.x );
|
|
return SWIG_NewPointerObj( s, SWIGTYPE_p_CvScalar, 1 );
|
|
}
|
|
switch(((type) & ((1 << 3) - 1))){
|
|
case 0:
|
|
return PyLong_FromUnsignedLong( CV_IMAGE_ELEM(self, uchar, subrect.y, subrect.x ) );
|
|
case 1:
|
|
return PyLong_FromLong( CV_IMAGE_ELEM(self, char, subrect.y, subrect.x ) );
|
|
case 2:
|
|
return PyLong_FromUnsignedLong( CV_IMAGE_ELEM(self, ushort, subrect.y, subrect.x ) );
|
|
case 3:
|
|
return PyLong_FromLong( CV_IMAGE_ELEM(self, short, subrect.y, subrect.x ) );
|
|
case 4:
|
|
return PyLong_FromLong( CV_IMAGE_ELEM(self, int, subrect.y, subrect.x ) );
|
|
case 5:
|
|
return PyFloat_FromDouble( CV_IMAGE_ELEM(self, float, subrect.y, subrect.x) );
|
|
case 6:
|
|
return PyFloat_FromDouble( CV_IMAGE_ELEM(self, double, subrect.y, subrect.x) );
|
|
}
|
|
}
|
|
|
|
// otherwise return array
|
|
im = (IplImage *) cvAlloc(sizeof(IplImage));
|
|
cvGetSubRect(self, &mat, subrect);
|
|
im = cvGetImage(&mat, im);
|
|
return SWIG_NewPointerObj( im, SWIGTYPE_p__IplImage, 1 );
|
|
}
|
|
SWIGINTERN void delete_IplConvKernel(IplConvKernel *self){ IplConvKernel * dummy = self; cvReleaseStructuringElement (& dummy); }
|
|
|
|
typedef union {
|
|
uchar* ptr;
|
|
short* s;
|
|
int* i;
|
|
float* fl;
|
|
double* db;
|
|
} CvMat_data;
|
|
|
|
|
|
SWIGINTERN void delete_CvMat(CvMat *self){ CvMat * dummy = self; cvReleaseMat (& dummy); }
|
|
SWIGINTERN CvMat *CvMat_operator_SA___SWIG_0(CvMat *self,CvArr *src){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvAnd(self, src, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_SA__Se___SWIG_0(CvMat *self,CvArr *src){
|
|
cvAnd(self, src, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sa___SWIG_0(CvMat *self,CvArr *src){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvAdd(self, src, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sa__Se___SWIG_0(CvMat *self,CvArr *src){
|
|
cvAdd(self, src, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sm___SWIG_0(CvMat *self,CvArr *src){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvMul(self, src, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sm__Se___SWIG_0(CvMat *self,CvArr *src){
|
|
cvMul(self, src, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Ss___SWIG_0(CvMat *self,CvArr *src){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvSub(self, src, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Ss__Se___SWIG_0(CvMat *self,CvArr *src){
|
|
cvSub(self, src, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sd___SWIG_0(CvMat *self,CvArr *src){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvDiv(self, src, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sd__Se___SWIG_0(CvMat *self,CvArr *src){
|
|
cvDiv(self, src, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_So___SWIG_0(CvMat *self,CvArr *src){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvOr(self, src, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_So__Se___SWIG_0(CvMat *self,CvArr *src){
|
|
cvOr(self, src, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sx___SWIG_0(CvMat *self,CvArr *src){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvXor(self, src, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sx__Se___SWIG_0(CvMat *self,CvArr *src){
|
|
cvXor(self, src, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sa___SWIG_1(CvMat *self,CvScalar val){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvAddS(self, val, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sa__Se___SWIG_1(CvMat *self,CvScalar val){
|
|
cvAddS(self, val, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sx___SWIG_1(CvMat *self,CvScalar val){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvXorS(self, val, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sx__Se___SWIG_1(CvMat *self,CvScalar val){
|
|
cvXorS(self, val, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Ss___SWIG_1(CvMat *self,CvScalar val){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvSubS(self, val, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Ss__Se___SWIG_1(CvMat *self,CvScalar val){
|
|
cvSubS(self, val, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_So___SWIG_1(CvMat *self,CvScalar val){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvOrS(self, val, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_So__Se___SWIG_1(CvMat *self,CvScalar val){
|
|
cvOrS(self, val, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_SA___SWIG_1(CvMat *self,CvScalar val){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvAndS(self, val, res);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_SA__Se___SWIG_1(CvMat *self,CvScalar val){
|
|
cvAndS(self, val, self);
|
|
return self;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sg__Se___SWIG_0(CvMat *self,CvArr *src){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, 0);
|
|
cvCmp(self, src, res, 2);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sg__Se___SWIG_1(CvMat *self,double val){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, 0);
|
|
cvCmpS(self, val, res, 2);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Se__Se___SWIG_0(CvMat *self,CvArr *src){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, 0);
|
|
cvCmp(self, src, res, 0);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Se__Se___SWIG_1(CvMat *self,double val){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, 0);
|
|
cvCmpS(self, val, res, 0);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sl__Se___SWIG_0(CvMat *self,CvArr *src){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, 0);
|
|
cvCmp(self, src, res, 4);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sl__Se___SWIG_1(CvMat *self,double val){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, 0);
|
|
cvCmpS(self, val, res, 4);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_SN__Se___SWIG_0(CvMat *self,CvArr *src){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, 0);
|
|
cvCmp(self, src, res, 5);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_SN__Se___SWIG_1(CvMat *self,double val){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, 0);
|
|
cvCmpS(self, val, res, 5);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sl___SWIG_0(CvMat *self,CvArr *src){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, 0);
|
|
cvCmp(self, src, res, 3);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sl___SWIG_1(CvMat *self,double val){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, 0);
|
|
cvCmpS(self, val, res, 3);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sg___SWIG_0(CvMat *self,CvArr *src){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, 0);
|
|
cvCmp(self, src, res, 1);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sg___SWIG_1(CvMat *self,double val){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, 0);
|
|
cvCmpS(self, val, res, 1);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sm___SWIG_1(CvMat *self,double val){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvConvertScale(self, res, val);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sm__Se___SWIG_1(CvMat *self,double val){
|
|
cvConvertScale(self, self, val);
|
|
return self;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sd___SWIG_1(CvMat *self,double val){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvConvertScale(self, res, 1.0/val);
|
|
return res;
|
|
}
|
|
SWIGINTERN CvMat *CvMat_operator_Sd__Se___SWIG_1(CvMat *self,double val){
|
|
cvConvertScale(self, self, 1.0/val);
|
|
return self;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___radd____SWIG_0(CvMat *self,CvArr *arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvAdd(self, arg, retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___rsub____SWIG_0(CvMat *self,CvArr *arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvSub(arg, self, retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___rdiv____SWIG_0(CvMat *self,CvArr *arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvDiv(arg, self, retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___rmul____SWIG_0(CvMat *self,CvArr *arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvMul(arg, self, retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___radd____SWIG_1(CvMat *self,CvScalar arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvAddS(self, arg, retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___radd____SWIG_2(CvMat *self,double arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvAddS(self, cvScalar(arg), retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___rsub____SWIG_1(CvMat *self,CvScalar arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvSubRS(self, arg, retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___rsub____SWIG_2(CvMat *self,double arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvSubRS(self, cvScalar(arg), retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___rmul____SWIG_1(CvMat *self,double arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvConvertScale(self, retarg, arg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___ror____SWIG_0(CvMat *self,CvScalar arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvOrS(self, arg, retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___ror____SWIG_1(CvMat *self,double arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvOrS(self, cvScalar(arg), retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___rand____SWIG_0(CvMat *self,CvScalar arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvAndS(self, arg, retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___rand____SWIG_1(CvMat *self,double arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvAndS(self, cvScalar(arg), retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___rxor____SWIG_0(CvMat *self,CvScalar arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvXorS(self, arg, retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___rxor____SWIG_1(CvMat *self,double arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvXorS(self, cvScalar(arg), retarg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___req__(CvMat *self,double arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, 0);
|
|
cvCmpS(self, arg, retarg, 0);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___rgt__(CvMat *self,double arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, 0);
|
|
cvCmpS(self, arg, retarg, 1);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___rge__(CvMat *self,double arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, 0);
|
|
cvCmpS(self, arg, retarg, 2);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___rlt__(CvMat *self,double arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, 0);
|
|
cvCmpS(self, arg, retarg, 3);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___rle__(CvMat *self,double arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, 0);
|
|
cvCmpS(self, arg, retarg, 4);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___rne__(CvMat *self,double arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, 0);
|
|
cvCmpS(self, arg, retarg, 5);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___rdiv____SWIG_1(CvMat *self,double arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvDiv(NULL, self, retarg, arg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN CvMat *CvMat___pow__(CvMat *self,double arg){
|
|
CvMat * retarg = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvPow(self, retarg, arg);
|
|
return retarg;
|
|
}
|
|
SWIGINTERN char *CvMat___str__(CvMat *self){
|
|
static char str[8];
|
|
cvArrPrint( self );
|
|
str[0]=0;
|
|
return str;
|
|
}
|
|
SWIGINTERN void CvMat___setitem____SWIG_0(CvMat *self,PyObject *object,double val){
|
|
CvMat tmp;
|
|
CvRect subrect = PySlice_to_CvRect( self, object );
|
|
/*@SWIG:./cvarr.i,231,CHECK_SLICE_BOUNDS@*/
|
|
if(CheckSliceBounds(&subrect,self->cols,self->rows)==-1){ return ; } else{}
|
|
/*@SWIG@*/;
|
|
cvGetSubRect(self, &tmp, subrect);
|
|
cvSet(&tmp, cvScalarAll(val));
|
|
}
|
|
SWIGINTERN void CvMat___setitem____SWIG_1(CvMat *self,PyObject *object,CvPoint val){
|
|
CvMat tmp;
|
|
CvRect subrect = PySlice_to_CvRect( self, object );
|
|
/*@SWIG:./cvarr.i,231,CHECK_SLICE_BOUNDS@*/
|
|
if(CheckSliceBounds(&subrect,self->cols,self->rows)==-1){ return ; } else{}
|
|
/*@SWIG@*/;
|
|
cvGetSubRect(self, &tmp, subrect);
|
|
cvSet(&tmp, cvScalar(val.x, val.y));
|
|
}
|
|
SWIGINTERN void CvMat___setitem____SWIG_2(CvMat *self,PyObject *object,CvPoint2D32f val){
|
|
CvMat tmp;
|
|
CvRect subrect = PySlice_to_CvRect( self, object );
|
|
cvGetSubRect(self, &tmp, subrect);
|
|
/*@SWIG:./cvarr.i,231,CHECK_SLICE_BOUNDS@*/
|
|
if(CheckSliceBounds(&subrect,self->cols,self->rows)==-1){ return ; } else{}
|
|
/*@SWIG@*/;
|
|
cvSet(&tmp, cvScalar(val.x, val.y));
|
|
}
|
|
SWIGINTERN void CvMat___setitem____SWIG_3(CvMat *self,PyObject *object,CvScalar val){
|
|
CvMat tmp;
|
|
CvRect subrect = PySlice_to_CvRect( self, object );
|
|
cvGetSubRect(self, &tmp, subrect);
|
|
/*@SWIG:./cvarr.i,231,CHECK_SLICE_BOUNDS@*/
|
|
if(CheckSliceBounds(&subrect,self->cols,self->rows)==-1){ return ; } else{}
|
|
/*@SWIG@*/;
|
|
cvSet(&tmp, val);
|
|
}
|
|
SWIGINTERN void CvMat___setitem____SWIG_4(CvMat *self,PyObject *object,CvArr *arr){
|
|
CvMat tmp, src_stub, *src;
|
|
CvRect subrect = PySlice_to_CvRect( self, object );
|
|
/*@SWIG:./cvarr.i,231,CHECK_SLICE_BOUNDS@*/
|
|
if(CheckSliceBounds(&subrect,self->cols,self->rows)==-1){ return ; } else{}
|
|
/*@SWIG@*/;
|
|
cvGetSubRect(self, &tmp, subrect);
|
|
|
|
// Reshape source array to fit destination
|
|
// This will be used a lot for small arrays b/c
|
|
// PyObject_to_CvArr tries to compress a 2-D python
|
|
// array with 1-4 columns into a multichannel vector
|
|
src=cvReshape(arr, &src_stub, CV_MAT_CN(tmp.type), tmp.rows);
|
|
|
|
cvConvert(src, &tmp);
|
|
}
|
|
SWIGINTERN PyObject *CvMat___getitem__(CvMat *self,PyObject *object){
|
|
CvMat * mat;
|
|
CvRect subrect = PySlice_to_CvRect( self, object );
|
|
/*@SWIG:./cvarr.i,231,CHECK_SLICE_BOUNDS@*/
|
|
if(CheckSliceBounds(&subrect,self->cols,self->rows)==-1){ return NULL; } else{}
|
|
/*@SWIG@*/;
|
|
if(subrect.width==1 && subrect.height==1){
|
|
CvScalar * s;
|
|
int type = cvGetElemType( self );
|
|
if(CV_MAT_CN(type) > 1){
|
|
s = new CvScalar;
|
|
*s = cvGet2D( self, subrect.y, subrect.x );
|
|
return SWIG_NewPointerObj( s, SWIGTYPE_p_CvScalar, 1 );
|
|
}
|
|
switch(((type) & ((1 << 3) - 1))){
|
|
case 0:
|
|
return PyLong_FromUnsignedLong( CV_MAT_ELEM(*self, uchar, subrect.y, subrect.x ) );
|
|
case 1:
|
|
return PyLong_FromLong( CV_MAT_ELEM(*self, char, subrect.y, subrect.x ) );
|
|
case 2:
|
|
return PyLong_FromUnsignedLong( CV_MAT_ELEM(*self, ushort, subrect.y, subrect.x ) );
|
|
case 3:
|
|
return PyLong_FromLong( CV_MAT_ELEM(*self, short, subrect.y, subrect.x ) );
|
|
case 4:
|
|
return PyLong_FromLong( CV_MAT_ELEM(*self, int, subrect.y, subrect.x ) );
|
|
case 5:
|
|
return PyFloat_FromDouble( CV_MAT_ELEM(*self, float, subrect.y, subrect.x) );
|
|
case 6:
|
|
return PyFloat_FromDouble( CV_MAT_ELEM(*self, double, subrect.y, subrect.x) );
|
|
}
|
|
}
|
|
mat = (CvMat *) cvAlloc(sizeof(CvMat));
|
|
cvGetSubRect(self, mat, subrect);
|
|
|
|
// cvGetSubRect doesn't do this since it assumes mat lives on the stack
|
|
mat->hdr_refcount = self->hdr_refcount;
|
|
mat->refcount = self->refcount;
|
|
cvIncRefData(mat);
|
|
|
|
return SWIG_NewPointerObj( mat, SWIGTYPE_p_CvMat, 1 );
|
|
}
|
|
SWIGINTERN CvMat *CvMat___invert__(CvMat *self){
|
|
CvMat * res = cvCreateMat(self->rows, self->cols, self->type);
|
|
cvNot( self, res );
|
|
return res;
|
|
}
|
|
|
|
typedef struct {
|
|
int size;
|
|
int step;
|
|
} CvMatND_dim;
|
|
|
|
|
|
|
|
typedef union {
|
|
uchar* ptr;
|
|
float* fl;
|
|
double* db;
|
|
int* i;
|
|
short* s;
|
|
} CvMatND_data;
|
|
|
|
|
|
SWIGINTERN void delete_CvMatND(CvMatND *self){ CvMatND * dummy = self; cvReleaseMatND (& dummy); }
|
|
SWIGINTERN void delete_CvSparseMat(CvSparseMat *self){ CvSparseMat * dummy = self; cvReleaseSparseMat (& dummy); }
|
|
SWIGINTERN void delete_CvHistogram(CvHistogram *self){ CvHistogram * dummy = self; cvReleaseHist (& dummy); }
|
|
SWIGINTERN char const *CvPoint___str__(CvPoint *self){
|
|
static char str[64];
|
|
snprintf(str, 64, "[%d %d]", self->x, self->y);
|
|
return str;
|
|
}
|
|
SWIGINTERN char const *CvPoint___repr__(CvPoint *self){
|
|
static char str[64];
|
|
snprintf(str, 64, "cvPoint(%d,%d)", self->x, self->y);
|
|
return str;
|
|
}
|
|
SWIGINTERN char const *CvPoint2D32f___str__(CvPoint2D32f *self){
|
|
static char str[64];
|
|
snprintf(str, 64, "[%f %f]", self->x, self->y);
|
|
return str;
|
|
}
|
|
SWIGINTERN char const *CvPoint2D32f___repr__(CvPoint2D32f *self){
|
|
static char str[64];
|
|
snprintf(str, 64, "cvPoint2D32f(%f,%f)", self->x, self->y);
|
|
return str;
|
|
}
|
|
SWIGINTERN char const *CvScalar___str__(CvScalar *self){
|
|
static char str[256];
|
|
snprintf(str, 256, "[%f, %f, %f, %f]", self->val[0], self->val[1], self->val[2], self->val[3]);
|
|
return str;
|
|
}
|
|
SWIGINTERN char const *CvScalar___repr__(CvScalar *self){
|
|
static char str[256];
|
|
snprintf(str, 256, "cvScalar(%f, %f, %f, %f)", self->val[0], self->val[1], self->val[2], self->val[3]);
|
|
return str;
|
|
}
|
|
SWIGINTERN double const CvScalar___getitem__(CvScalar *self,int index){
|
|
if (index >= 4) {
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if (index < -4) {
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
}
|
|
if (index < 0) {
|
|
/* negative index means from the end in python */
|
|
index = 4 - index;
|
|
}
|
|
return self->val [index];
|
|
}
|
|
SWIGINTERN void CvScalar___setitem__(CvScalar *self,int index,double value){
|
|
if (index >= 4) {
|
|
|
|
|
|
|
|
|
|
|
|
return;
|
|
}
|
|
if (index < -4) {
|
|
|
|
|
|
|
|
|
|
|
|
return;
|
|
}
|
|
if (index < 0) {
|
|
/* negative index means from the end in python */
|
|
index = 4 - index;
|
|
}
|
|
self->val [index] = value;
|
|
}
|
|
SWIGINTERN void delete_CvMemStorage(CvMemStorage *self){ CvMemStorage * dummy = self; cvReleaseMemStorage (& dummy); }
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
|
|
{
|
|
#if PY_VERSION_HEX>=0x03000000
|
|
if (PyUnicode_Check(obj))
|
|
#else
|
|
if (PyString_Check(obj))
|
|
#endif
|
|
{
|
|
char *cstr; Py_ssize_t len;
|
|
#if PY_VERSION_HEX>=0x03000000
|
|
if (!alloc && cptr) {
|
|
/* We can't allow converting without allocation, since the internal
|
|
representation of string in Python 3 is UCS-2/UCS-4 but we require
|
|
a UTF-8 representation.
|
|
TODO(bhy) More detailed explanation */
|
|
return SWIG_RuntimeError;
|
|
}
|
|
obj = PyUnicode_AsUTF8String(obj);
|
|
PyBytes_AsStringAndSize(obj, &cstr, &len);
|
|
if(alloc) *alloc = SWIG_NEWOBJ;
|
|
#else
|
|
PyString_AsStringAndSize(obj, &cstr, &len);
|
|
#endif
|
|
if (cptr) {
|
|
if (alloc) {
|
|
/*
|
|
In python the user should not be able to modify the inner
|
|
string representation. To warranty that, if you define
|
|
SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
|
|
buffer is always returned.
|
|
|
|
The default behavior is just to return the pointer value,
|
|
so, be careful.
|
|
*/
|
|
#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
|
|
if (*alloc != SWIG_OLDOBJ)
|
|
#else
|
|
if (*alloc == SWIG_NEWOBJ)
|
|
#endif
|
|
{
|
|
*cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
|
|
*alloc = SWIG_NEWOBJ;
|
|
}
|
|
else {
|
|
*cptr = cstr;
|
|
*alloc = SWIG_OLDOBJ;
|
|
}
|
|
} else {
|
|
#if PY_VERSION_HEX>=0x03000000
|
|
assert(0); /* Should never reach here in Python 3 */
|
|
#endif
|
|
*cptr = SWIG_Python_str_AsChar(obj);
|
|
}
|
|
}
|
|
if (psize) *psize = len + 1;
|
|
#if PY_VERSION_HEX>=0x03000000
|
|
Py_XDECREF(obj);
|
|
#endif
|
|
return SWIG_OK;
|
|
} else {
|
|
swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
|
|
if (pchar_descriptor) {
|
|
void* vptr = 0;
|
|
if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
|
|
if (cptr) *cptr = (char *) vptr;
|
|
if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
|
|
if (alloc) *alloc = SWIG_OLDOBJ;
|
|
return SWIG_OK;
|
|
}
|
|
}
|
|
}
|
|
return SWIG_TypeError;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
typedef union {
|
|
double f;
|
|
int i;
|
|
CvString str;
|
|
CvSeq* seq;
|
|
CvFileNodeHash* map;
|
|
} CvFileNode_data;
|
|
|
|
|
|
SWIGINTERN void delete_CvGraphScanner(CvGraphScanner *self){ CvGraphScanner * dummy = self; cvReleaseGraphScanner (& dummy); }
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_bool (PyObject *obj, bool *val)
|
|
{
|
|
int r = PyObject_IsTrue(obj);
|
|
if (r == -1)
|
|
return SWIG_ERROR;
|
|
if (val) *val = r ? true : false;
|
|
return SWIG_OK;
|
|
}
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
|
|
{
|
|
char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
|
|
int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
|
|
if (SWIG_IsOK(res)) {
|
|
if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize;
|
|
if (csize <= size) {
|
|
if (val) {
|
|
if (csize) memcpy(val, cptr, csize*sizeof(char));
|
|
if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
|
|
}
|
|
if (alloc == SWIG_NEWOBJ) {
|
|
delete[] cptr;
|
|
res = SWIG_DelNewMask(res);
|
|
}
|
|
return res;
|
|
}
|
|
if (alloc == SWIG_NEWOBJ) delete[] cptr;
|
|
}
|
|
return SWIG_TypeError;
|
|
}
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_char (PyObject * obj, char *val)
|
|
{
|
|
int res = SWIG_AsCharArray(obj, val, 1);
|
|
if (!SWIG_IsOK(res)) {
|
|
long v;
|
|
res = SWIG_AddCast(SWIG_AsVal_long (obj, &v));
|
|
if (SWIG_IsOK(res)) {
|
|
if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
|
|
if (val) *val = static_cast< char >(v);
|
|
} else {
|
|
res = SWIG_OverflowError;
|
|
}
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE PyObject *
|
|
SWIG_From_char (char c)
|
|
{
|
|
return SWIG_FromCharPtrAndSize(&c,1);
|
|
}
|
|
|
|
SWIGINTERN CvTypedSeq< CvQuadEdge2D > *CvSubdiv2D_typed_edges_get(CvSubdiv2D *self){
|
|
return (CvTypedSeq<CvQuadEdge2D> *) self->edges;
|
|
}
|
|
SWIGINTERN void CvSubdiv2D_typed_edges_set(CvSubdiv2D *self,CvTypedSeq< CvQuadEdge2D > *){
|
|
}
|
|
SWIGINTERN void delete_CvConDensation(CvConDensation *self){ CvConDensation * dummy = self; cvReleaseConDensation (& dummy); }
|
|
SWIGINTERN void delete_CvKalman(CvKalman *self){ CvKalman * dummy = self; cvReleaseKalman (& dummy); }
|
|
|
|
typedef struct {
|
|
CvRect r;
|
|
float weight;
|
|
} CvHaarFeature_rect;
|
|
|
|
|
|
SWIGINTERN void delete_CvHaarClassifierCascade(CvHaarClassifierCascade *self){ CvHaarClassifierCascade * dummy = self; cvReleaseHaarClassifierCascade (& dummy); }
|
|
SWIGINTERN void delete_CvLSH(CvLSH *self){ CvLSH * dummy = self; cvReleaseLSH (& dummy); }
|
|
|
|
int CvMat_cols_get(CvMat * m){
|
|
return m->cols;
|
|
}
|
|
void CvMat_cols_set(CvMat * m, int cols){
|
|
m->cols = cols;
|
|
}
|
|
int CvMat_rows_get(CvMat *m){
|
|
return m->rows;
|
|
}
|
|
void CvMat_rows_set(CvMat *m, int rows){
|
|
m->rows = rows;
|
|
}
|
|
int CvMat_width_get(CvMat * m){
|
|
return m->cols;
|
|
}
|
|
void CvMat_width_set(CvMat * m, int width){
|
|
m->cols = width;
|
|
}
|
|
int CvMat_height_get(CvMat *m){
|
|
return m->rows;
|
|
}
|
|
void CvMat_height_set(CvMat * m, int height){
|
|
m->rows = height;
|
|
}
|
|
int CvMat_depth_get(CvMat * m){
|
|
return cvIplDepth(m->type);
|
|
}
|
|
void CvMat_depth_set(CvMat *m, int depth){
|
|
cvError(CV_StsNotImplemented, "CvMat_depth_set", "Not Implemented", __FILE__, __LINE__);
|
|
}
|
|
int CvMat_nChannels_get(CvMat * m){
|
|
return CV_MAT_CN(m->type);
|
|
}
|
|
void CvMat_nChannels_set(CvMat *m, int nChannels){
|
|
int depth = CV_MAT_DEPTH(m->type);
|
|
m->type = CV_MAKETYPE(depth, nChannels);
|
|
}
|
|
int CvMat_origin_get(CvMat * m){
|
|
/* Always 0 - top-left origin */
|
|
return 0;
|
|
}
|
|
void CvMat_origin_set(CvMat * m, int origin){
|
|
cvError(CV_StsNotImplemented, "CvMat_origin_get", "IplImage is replaced by CvMat in Python, so its fields are read-only", __FILE__, __LINE__);
|
|
}
|
|
int CvMat_dataOrder_get(CvMat * m){
|
|
cvError(CV_StsNotImplemented, "CvMat_dataOrder_get", "Not Implemented", __FILE__, __LINE__);
|
|
return 0;
|
|
}
|
|
void CvMat_dataOrder_set(CvMat * m, int dataOrder){
|
|
cvError(CV_StsNotImplemented, "CvMat_dataOrder_get", "IplImage is replaced by CvMat in Python, so its fields are read-only", __FILE__, __LINE__);
|
|
}
|
|
int CvMat_imageSize_get(CvMat * m){
|
|
int step = m->step ? m->step : CV_ELEM_SIZE(m->type) * m->cols;
|
|
return step*m->rows;
|
|
}
|
|
void CvMat_imageSize_set(CvMat * m, int imageSize){
|
|
cvError(CV_StsNotImplemented, "CvMat_imageSize_set", "IplImage is not implemented in Python, so origin is read-only", __FILE__, __LINE__);
|
|
}
|
|
int CvMat_widthStep_get(CvMat * m){
|
|
return m->step;
|
|
}
|
|
void CvMat_widthStep_set(CvMat *m, int widthStep){
|
|
m->step = widthStep;
|
|
}
|
|
|
|
|
|
int checkSliceBounds(const CvRect & rect, int w, int h){
|
|
//printf("__setitem__ slice(%d:%d, %d:%d) array(%d,%d)", rect.x, rect.y, rect.x+rect.width, rect.y+rect.height, w, h);
|
|
if(rect.width<=0 || rect.height<=0 ||
|
|
rect.width>w || rect.height>h ||
|
|
rect.x<0 || rect.y<0 ||
|
|
rect.x>= w || rect.y >=h){
|
|
char errstr[256];
|
|
|
|
// previous function already set error string
|
|
if(rect.width==0 && rect.height==0 && rect.x==0 && rect.y==0) return -1;
|
|
|
|
sprintf(errstr, "Requested slice [ %d:%d %d:%d ] oversteps array sized [ %d %d ]",
|
|
rect.x, rect.y, rect.x+rect.width, rect.y+rect.height, w, h);
|
|
PyErr_SetString(PyExc_IndexError, errstr);
|
|
//PyErr_SetString(PyExc_ValueError, errstr);
|
|
return -1;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
|
|
|
|
/// Accessor to convert a Python string into the imageData.
|
|
void CvMat_imageData_set(CvMat * self, PyObject* object)
|
|
{
|
|
char* py_string = PyString_AsString(object);
|
|
int depth = CV_MAT_DEPTH(self->type);
|
|
int cn = CV_MAT_CN(self->type);
|
|
|
|
int step = self->step ? self->step : CV_ELEM_SIZE(self->type) * self->cols;
|
|
|
|
if (depth == CV_8U && cn==3){
|
|
// RGB case
|
|
// The data is reordered beause OpenCV uses BGR instead of RGB
|
|
|
|
for (long line = 0; line < self->rows; ++line)
|
|
for (long pixel = 0; pixel < self->cols; ++pixel)
|
|
{
|
|
// In OpenCV the beginning of the lines are aligned
|
|
// to 4 Bytes. So use step instead of cols.
|
|
long position = line*step + pixel*3;
|
|
long sourcepos = line*self->cols*3 + pixel*3;
|
|
self->data.ptr[position ] = py_string[sourcepos+2];
|
|
self->data.ptr[position+1] = py_string[sourcepos+1];
|
|
self->data.ptr[position+2] = py_string[sourcepos ];
|
|
}
|
|
}
|
|
else if (depth == CV_8U && cn==1)
|
|
{
|
|
// Grayscale 8bit case
|
|
|
|
for (long line = 0; line < self->rows; ++line)
|
|
{
|
|
// In OpenCV the beginning of the lines are aligned
|
|
// to 4 Bytes. So use step instead of cols.
|
|
memcpy
|
|
(
|
|
self->data.ptr + line*step,
|
|
py_string + line*self->cols,
|
|
step
|
|
);
|
|
}
|
|
}
|
|
else if ( depth == CV_32F )
|
|
{
|
|
// float (32bit) case
|
|
for (long line = 0; line < self->rows; ++line)
|
|
{
|
|
// here we don not have to care about alignment as the Floats are
|
|
// as long as the alignment
|
|
memcpy
|
|
(
|
|
self->data.ptr + line*step,
|
|
py_string + line*self->cols*sizeof(float),
|
|
step
|
|
);
|
|
}
|
|
}
|
|
else if ( depth == CV_64F )
|
|
{
|
|
// double (64bit) case
|
|
for (long line = 0; line < self->rows; ++line)
|
|
{
|
|
// here we don not have to care about alignment as the Floats are
|
|
// as long as the alignment
|
|
memcpy
|
|
(
|
|
self->data.ptr + line*step,
|
|
py_string + line*self->cols*sizeof(double),
|
|
step
|
|
);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
// make some noise
|
|
SendErrorToPython (SWIG_TypeError,
|
|
"CvMat_imageData_set",
|
|
"cannot convert string data to this image format",
|
|
__FILE__, __LINE__, NULL);
|
|
}
|
|
}
|
|
|
|
/// Accessor to convert the imageData into a Python string.
|
|
PyObject* CvMat_imageData_get(CvMat * self)
|
|
{
|
|
if (!self->data.ptr)
|
|
{
|
|
PyErr_SetString(PyExc_TypeError, "Data pointer of CvMat is NULL");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
int step = self->step ? self->step : CV_ELEM_SIZE(self->type) * self->cols;
|
|
return PyString_FromStringAndSize((const char *)self->data.ptr, self->rows*step);
|
|
}
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
SWIGINTERN PyObject *_wrap_new_CvRNG_Wrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRNG *arg1 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvRNG_Wrapper *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:new_CvRNG_Wrapper",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_uint64_t, 0 | 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvRNG_Wrapper" "', argument " "1"" of type '" "CvRNG const &""'");
|
|
}
|
|
if (!argp1) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CvRNG_Wrapper" "', argument " "1"" of type '" "CvRNG const &""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvRNG * >(argp1);
|
|
result = (CvRNG_Wrapper *)new CvRNG_Wrapper((CvRNG const &)*arg1);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvRNG_Wrapper, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvRNG_Wrapper_ptr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRNG_Wrapper *arg1 = (CvRNG_Wrapper *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvRNG *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvRNG_Wrapper_ptr",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvRNG_Wrapper, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvRNG_Wrapper_ptr" "', argument " "1"" of type '" "CvRNG_Wrapper *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvRNG_Wrapper * >(argp1);
|
|
result = (CvRNG *)(arg1)->ptr();
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_uint64_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvRNG_Wrapper_ref(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRNG_Wrapper *arg1 = (CvRNG_Wrapper *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvRNG *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvRNG_Wrapper_ref",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvRNG_Wrapper, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvRNG_Wrapper_ref" "', argument " "1"" of type '" "CvRNG_Wrapper *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvRNG_Wrapper * >(argp1);
|
|
result = (CvRNG *) &(arg1)->ref();
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_uint64_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvRNG_Wrapper___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRNG_Wrapper *arg1 = (CvRNG_Wrapper *) 0 ;
|
|
CvRNG_Wrapper *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvRNG_Wrapper___eq__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvRNG_Wrapper, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvRNG_Wrapper___eq__" "', argument " "1"" of type '" "CvRNG_Wrapper *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvRNG_Wrapper * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CvRNG_Wrapper, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvRNG_Wrapper___eq__" "', argument " "2"" of type '" "CvRNG_Wrapper const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CvRNG_Wrapper___eq__" "', argument " "2"" of type '" "CvRNG_Wrapper const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvRNG_Wrapper * >(argp2);
|
|
result = (bool)(arg1)->operator ==((CvRNG_Wrapper const &)*arg2);
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvRNG_Wrapper___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRNG_Wrapper *arg1 = (CvRNG_Wrapper *) 0 ;
|
|
CvRNG_Wrapper *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvRNG_Wrapper___ne__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvRNG_Wrapper, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvRNG_Wrapper___ne__" "', argument " "1"" of type '" "CvRNG_Wrapper *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvRNG_Wrapper * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CvRNG_Wrapper, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvRNG_Wrapper___ne__" "', argument " "2"" of type '" "CvRNG_Wrapper const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CvRNG_Wrapper___ne__" "', argument " "2"" of type '" "CvRNG_Wrapper const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvRNG_Wrapper * >(argp2);
|
|
result = (bool)(arg1)->operator !=((CvRNG_Wrapper const &)*arg2);
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvRNG_Wrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRNG_Wrapper *arg1 = (CvRNG_Wrapper *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvRNG_Wrapper",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvRNG_Wrapper, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvRNG_Wrapper" "', argument " "1"" of type '" "CvRNG_Wrapper *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvRNG_Wrapper * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvRNG_Wrapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvRNG_Wrapper, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSubdiv2DEdge_Wrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DEdge *arg1 = 0 ;
|
|
CvSubdiv2DEdge temp1 ;
|
|
size_t val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSubdiv2DEdge_Wrapper *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:new_CvSubdiv2DEdge_Wrapper",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_size_t(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CvSubdiv2DEdge_Wrapper" "', argument " "1"" of type '" "CvSubdiv2DEdge""'");
|
|
}
|
|
temp1 = static_cast< CvSubdiv2DEdge >(val1);
|
|
arg1 = &temp1;
|
|
result = (CvSubdiv2DEdge_Wrapper *)new CvSubdiv2DEdge_Wrapper((CvSubdiv2DEdge const &)*arg1);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2DEdge_Wrapper_ptr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DEdge_Wrapper *arg1 = (CvSubdiv2DEdge_Wrapper *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSubdiv2DEdge *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2DEdge_Wrapper_ptr",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2DEdge_Wrapper_ptr" "', argument " "1"" of type '" "CvSubdiv2DEdge_Wrapper *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2DEdge_Wrapper * >(argp1);
|
|
result = (CvSubdiv2DEdge *)(arg1)->ptr();
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_size_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2DEdge_Wrapper_ref(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DEdge_Wrapper *arg1 = (CvSubdiv2DEdge_Wrapper *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSubdiv2DEdge *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2DEdge_Wrapper_ref",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2DEdge_Wrapper_ref" "', argument " "1"" of type '" "CvSubdiv2DEdge_Wrapper *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2DEdge_Wrapper * >(argp1);
|
|
result = (CvSubdiv2DEdge *) &(arg1)->ref();
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_size_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2DEdge_Wrapper___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DEdge_Wrapper *arg1 = (CvSubdiv2DEdge_Wrapper *) 0 ;
|
|
CvSubdiv2DEdge_Wrapper *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2DEdge_Wrapper___eq__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2DEdge_Wrapper___eq__" "', argument " "1"" of type '" "CvSubdiv2DEdge_Wrapper *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2DEdge_Wrapper * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSubdiv2DEdge_Wrapper___eq__" "', argument " "2"" of type '" "CvSubdiv2DEdge_Wrapper const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CvSubdiv2DEdge_Wrapper___eq__" "', argument " "2"" of type '" "CvSubdiv2DEdge_Wrapper const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSubdiv2DEdge_Wrapper * >(argp2);
|
|
result = (bool)(arg1)->operator ==((CvSubdiv2DEdge_Wrapper const &)*arg2);
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2DEdge_Wrapper___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DEdge_Wrapper *arg1 = (CvSubdiv2DEdge_Wrapper *) 0 ;
|
|
CvSubdiv2DEdge_Wrapper *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2DEdge_Wrapper___ne__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2DEdge_Wrapper___ne__" "', argument " "1"" of type '" "CvSubdiv2DEdge_Wrapper *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2DEdge_Wrapper * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSubdiv2DEdge_Wrapper___ne__" "', argument " "2"" of type '" "CvSubdiv2DEdge_Wrapper const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CvSubdiv2DEdge_Wrapper___ne__" "', argument " "2"" of type '" "CvSubdiv2DEdge_Wrapper const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSubdiv2DEdge_Wrapper * >(argp2);
|
|
result = (bool)(arg1)->operator !=((CvSubdiv2DEdge_Wrapper const &)*arg2);
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSubdiv2DEdge_Wrapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DEdge_Wrapper *arg1 = (CvSubdiv2DEdge_Wrapper *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSubdiv2DEdge_Wrapper",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSubdiv2DEdge_Wrapper" "', argument " "1"" of type '" "CvSubdiv2DEdge_Wrapper *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2DEdge_Wrapper * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSubdiv2DEdge_Wrapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_SwigPyIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_SwigPyIterator",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwigPyIterator" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
delete arg1;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator_value(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_value",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_value" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
try {
|
|
result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value();
|
|
}
|
|
catch(swig::stop_iteration &_e) {
|
|
{
|
|
(void)_e;
|
|
SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
size_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
swig::SwigPyIterator *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_incr",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_incr" "', argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
try {
|
|
result = (swig::SwigPyIterator *)(arg1)->incr(arg2);
|
|
}
|
|
catch(swig::stop_iteration &_e) {
|
|
{
|
|
(void)_e;
|
|
SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
swig::SwigPyIterator *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_incr",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
try {
|
|
result = (swig::SwigPyIterator *)(arg1)->incr();
|
|
}
|
|
catch(swig::stop_iteration &_e) {
|
|
{
|
|
(void)_e;
|
|
SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_SwigPyIterator_incr__SWIG_1(self, args);
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_size_t(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_SwigPyIterator_incr__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'SwigPyIterator_incr'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" incr(swig::SwigPyIterator *,size_t)\n"
|
|
" incr(swig::SwigPyIterator *)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
size_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
swig::SwigPyIterator *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_decr",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_decr" "', argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
try {
|
|
result = (swig::SwigPyIterator *)(arg1)->decr(arg2);
|
|
}
|
|
catch(swig::stop_iteration &_e) {
|
|
{
|
|
(void)_e;
|
|
SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
swig::SwigPyIterator *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_decr",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
try {
|
|
result = (swig::SwigPyIterator *)(arg1)->decr();
|
|
}
|
|
catch(swig::stop_iteration &_e) {
|
|
{
|
|
(void)_e;
|
|
SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_SwigPyIterator_decr__SWIG_1(self, args);
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_size_t(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_SwigPyIterator_decr__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'SwigPyIterator_decr'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" decr(swig::SwigPyIterator *,size_t)\n"
|
|
" decr(swig::SwigPyIterator *)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator_distance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
swig::SwigPyIterator *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
ptrdiff_t result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_distance",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_distance" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
|
|
try {
|
|
result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2);
|
|
}
|
|
catch(std::invalid_argument &_e) {
|
|
SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail;
|
|
}
|
|
|
|
resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator_equal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
swig::SwigPyIterator *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_equal",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_equal" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
|
|
try {
|
|
result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);
|
|
}
|
|
catch(std::invalid_argument &_e) {
|
|
SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail;
|
|
}
|
|
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator_copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
swig::SwigPyIterator *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_copy",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_copy" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy();
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator_next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_next",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_next" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
try {
|
|
result = (PyObject *)(arg1)->next();
|
|
}
|
|
catch(swig::stop_iteration &_e) {
|
|
{
|
|
(void)_e;
|
|
SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator___next__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator___next__",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___next__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
try {
|
|
result = (PyObject *)(arg1)->__next__();
|
|
}
|
|
catch(swig::stop_iteration &_e) {
|
|
{
|
|
(void)_e;
|
|
SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator_previous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:SwigPyIterator_previous",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_previous" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
try {
|
|
result = (PyObject *)(arg1)->previous();
|
|
}
|
|
catch(swig::stop_iteration &_e) {
|
|
{
|
|
(void)_e;
|
|
SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator_advance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
ptrdiff_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
ptrdiff_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
swig::SwigPyIterator *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator_advance",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_advance" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_advance" "', argument " "2"" of type '" "ptrdiff_t""'");
|
|
}
|
|
arg2 = static_cast< ptrdiff_t >(val2);
|
|
try {
|
|
result = (swig::SwigPyIterator *)(arg1)->advance(arg2);
|
|
}
|
|
catch(swig::stop_iteration &_e) {
|
|
{
|
|
(void)_e;
|
|
SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
swig::SwigPyIterator *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___eq__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___eq__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
|
|
result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2);
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
swig::SwigPyIterator *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___ne__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___ne__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
|
|
result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2);
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
ptrdiff_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
ptrdiff_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
swig::SwigPyIterator *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___iadd__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___iadd__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___iadd__" "', argument " "2"" of type '" "ptrdiff_t""'");
|
|
}
|
|
arg2 = static_cast< ptrdiff_t >(val2);
|
|
try {
|
|
result = (swig::SwigPyIterator *) &(arg1)->operator +=(arg2);
|
|
}
|
|
catch(swig::stop_iteration &_e) {
|
|
{
|
|
(void)_e;
|
|
SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
ptrdiff_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
ptrdiff_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
swig::SwigPyIterator *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___isub__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___isub__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___isub__" "', argument " "2"" of type '" "ptrdiff_t""'");
|
|
}
|
|
arg2 = static_cast< ptrdiff_t >(val2);
|
|
try {
|
|
result = (swig::SwigPyIterator *) &(arg1)->operator -=(arg2);
|
|
}
|
|
catch(swig::stop_iteration &_e) {
|
|
{
|
|
(void)_e;
|
|
SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
ptrdiff_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
ptrdiff_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
swig::SwigPyIterator *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___add__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___add__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___add__" "', argument " "2"" of type '" "ptrdiff_t""'");
|
|
}
|
|
arg2 = static_cast< ptrdiff_t >(val2);
|
|
try {
|
|
result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(arg2);
|
|
}
|
|
catch(swig::stop_iteration &_e) {
|
|
{
|
|
(void)_e;
|
|
SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
ptrdiff_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
ptrdiff_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
swig::SwigPyIterator *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "ptrdiff_t""'");
|
|
}
|
|
arg2 = static_cast< ptrdiff_t >(val2);
|
|
try {
|
|
result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(arg2);
|
|
}
|
|
catch(swig::stop_iteration &_e) {
|
|
{
|
|
(void)_e;
|
|
SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
swig::SwigPyIterator *arg1 = (swig::SwigPyIterator *) 0 ;
|
|
swig::SwigPyIterator *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
ptrdiff_t result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:SwigPyIterator___sub__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_swig__SwigPyIterator, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
|
|
result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2);
|
|
resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_SwigPyIterator___sub____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_SwigPyIterator___sub____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIterator, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
PyObject **arg2 = (PyObject **) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
swig::SwigPyIterator *result = 0 ;
|
|
|
|
arg2 = &obj0;
|
|
if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_iterator",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_iterator" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
result = (swig::SwigPyIterator *)std_vector_Sl_float_Sg__iterator(arg1,arg2);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:FloatVector___nonzero__",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___nonzero__" "', argument " "1"" of type '" "std::vector< float > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
result = (bool)std_vector_Sl_float_Sg____nonzero__((std::vector< float > const *)arg1);
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:FloatVector___bool__",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___bool__" "', argument " "1"" of type '" "std::vector< float > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
result = (bool)std_vector_Sl_float_Sg____bool__((std::vector< float > const *)arg1);
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< float >::size_type result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:FloatVector___len__",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___len__" "', argument " "1"" of type '" "std::vector< float > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
result = std_vector_Sl_float_Sg____len__((std::vector< float > const *)arg1);
|
|
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< float >::value_type result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_pop",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_pop" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
try {
|
|
result = (std::vector< float >::value_type)std_vector_Sl_float_Sg__pop(arg1);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
std::vector< float >::difference_type arg2 ;
|
|
std::vector< float >::difference_type arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
ptrdiff_t val2 ;
|
|
int ecode2 = 0 ;
|
|
ptrdiff_t val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
std::vector< float,std::allocator< float > > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector___getslice__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___getslice__" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector___getslice__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< float >::difference_type >(val2);
|
|
ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector___getslice__" "', argument " "3"" of type '" "std::vector< float >::difference_type""'");
|
|
}
|
|
arg3 = static_cast< std::vector< float >::difference_type >(val3);
|
|
try {
|
|
result = (std::vector< float,std::allocator< float > > *)std_vector_Sl_float_Sg____getslice__(arg1,arg2,arg3);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector___setslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
std::vector< float >::difference_type arg2 ;
|
|
std::vector< float >::difference_type arg3 ;
|
|
std::vector< float,std::allocator< float > > *arg4 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
ptrdiff_t val2 ;
|
|
int ecode2 = 0 ;
|
|
ptrdiff_t val3 ;
|
|
int ecode3 = 0 ;
|
|
int res4 = SWIG_OLDOBJ ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:FloatVector___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___setslice__" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector___setslice__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< float >::difference_type >(val2);
|
|
ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector___setslice__" "', argument " "3"" of type '" "std::vector< float >::difference_type""'");
|
|
}
|
|
arg3 = static_cast< std::vector< float >::difference_type >(val3);
|
|
{
|
|
std::vector<float,std::allocator< float > > *ptr = (std::vector<float,std::allocator< float > > *)0;
|
|
res4 = swig::asptr(obj3, &ptr);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "FloatVector___setslice__" "', argument " "4"" of type '" "std::vector< float,std::allocator< float > > const &""'");
|
|
}
|
|
if (!ptr) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FloatVector___setslice__" "', argument " "4"" of type '" "std::vector< float,std::allocator< float > > const &""'");
|
|
}
|
|
arg4 = ptr;
|
|
}
|
|
try {
|
|
std_vector_Sl_float_Sg____setslice__(arg1,arg2,arg3,(std::vector< float,std::allocator< float > > const &)*arg4);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
catch(std::invalid_argument &_e) {
|
|
SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsNewObj(res4)) delete arg4;
|
|
return resultobj;
|
|
fail:
|
|
if (SWIG_IsNewObj(res4)) delete arg4;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
std::vector< float >::difference_type arg2 ;
|
|
std::vector< float >::difference_type arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
ptrdiff_t val2 ;
|
|
int ecode2 = 0 ;
|
|
ptrdiff_t val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector___delslice__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___delslice__" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector___delslice__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< float >::difference_type >(val2);
|
|
ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector___delslice__" "', argument " "3"" of type '" "std::vector< float >::difference_type""'");
|
|
}
|
|
arg3 = static_cast< std::vector< float >::difference_type >(val3);
|
|
try {
|
|
std_vector_Sl_float_Sg____delslice__(arg1,arg2,arg3);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
std::vector< float >::difference_type arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
ptrdiff_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector___delitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___delitem__" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector___delitem__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< float >::difference_type >(val2);
|
|
try {
|
|
std_vector_Sl_float_Sg____delitem____SWIG_0(arg1,arg2);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
PySliceObject *arg2 = (PySliceObject *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
std::vector< float,std::allocator< float > > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___getitem__" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
{
|
|
arg2 = (PySliceObject *) obj1;
|
|
}
|
|
try {
|
|
result = (std::vector< float,std::allocator< float > > *)std_vector_Sl_float_Sg____getitem____SWIG_0(arg1,arg2);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
PySliceObject *arg2 = (PySliceObject *) 0 ;
|
|
std::vector< float,std::allocator< float > > *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res3 = SWIG_OLDOBJ ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___setitem__" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
{
|
|
arg2 = (PySliceObject *) obj1;
|
|
}
|
|
{
|
|
std::vector<float,std::allocator< float > > *ptr = (std::vector<float,std::allocator< float > > *)0;
|
|
res3 = swig::asptr(obj2, &ptr);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "FloatVector___setitem__" "', argument " "3"" of type '" "std::vector< float,std::allocator< float > > const &""'");
|
|
}
|
|
if (!ptr) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FloatVector___setitem__" "', argument " "3"" of type '" "std::vector< float,std::allocator< float > > const &""'");
|
|
}
|
|
arg3 = ptr;
|
|
}
|
|
try {
|
|
std_vector_Sl_float_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< float,std::allocator< float > > const &)*arg3);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
catch(std::invalid_argument &_e) {
|
|
SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsNewObj(res3)) delete arg3;
|
|
return resultobj;
|
|
fail:
|
|
if (SWIG_IsNewObj(res3)) delete arg3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
PySliceObject *arg2 = (PySliceObject *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector___delitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___delitem__" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
{
|
|
arg2 = (PySliceObject *) obj1;
|
|
}
|
|
try {
|
|
std_vector_Sl_float_Sg____delitem____SWIG_1(arg1,arg2);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector___delitem__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = PySlice_Check(argv[1]);
|
|
}
|
|
if (_v) {
|
|
return _wrap_FloatVector___delitem____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_FloatVector___delitem____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'FloatVector___delitem__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" __delitem__(std::vector< float > *,std::vector< float >::difference_type)\n"
|
|
" __delitem__(std::vector< float > *,PySliceObject *)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
std::vector< float >::difference_type arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
ptrdiff_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
std::vector< float >::value_type *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___getitem__" "', argument " "1"" of type '" "std::vector< float > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector___getitem__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< float >::difference_type >(val2);
|
|
try {
|
|
result = (std::vector< float >::value_type *) &std_vector_Sl_float_Sg____getitem____SWIG_1((std::vector< float > const *)arg1,arg2);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_From_float(static_cast< float >(*result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector___getitem__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = PySlice_Check(argv[1]);
|
|
}
|
|
if (_v) {
|
|
return _wrap_FloatVector___getitem____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_FloatVector___getitem____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'FloatVector___getitem__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" __getitem__(std::vector< float > *,PySliceObject *)\n"
|
|
" __getitem__(std::vector< float > const *,std::vector< float >::difference_type)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
std::vector< float >::difference_type arg2 ;
|
|
std::vector< float >::value_type *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
ptrdiff_t val2 ;
|
|
int ecode2 = 0 ;
|
|
std::vector< float >::value_type temp3 ;
|
|
float val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector___setitem__" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector___setitem__" "', argument " "2"" of type '" "std::vector< float >::difference_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< float >::difference_type >(val2);
|
|
ecode3 = SWIG_AsVal_float(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector___setitem__" "', argument " "3"" of type '" "std::vector< float >::value_type""'");
|
|
}
|
|
temp3 = static_cast< std::vector< float >::value_type >(val3);
|
|
arg3 = &temp3;
|
|
try {
|
|
std_vector_Sl_float_Sg____setitem____SWIG_1(arg1,arg2,(float const &)*arg3);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector___setitem__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[4];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = PySlice_Check(argv[1]);
|
|
}
|
|
if (_v) {
|
|
int res = swig::asptr(argv[2], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_FloatVector___setitem____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_float(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_FloatVector___setitem____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'FloatVector___setitem__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" __setitem__(std::vector< float > *,PySliceObject *,std::vector< float,std::allocator< float > > const &)\n"
|
|
" __setitem__(std::vector< float > *,std::vector< float >::difference_type,std::vector< float >::value_type const &)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
std::vector< float >::value_type *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
std::vector< float >::value_type temp2 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector_append",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_append" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector_append" "', argument " "2"" of type '" "std::vector< float >::value_type""'");
|
|
}
|
|
temp2 = static_cast< std::vector< float >::value_type >(val2);
|
|
arg2 = &temp2;
|
|
std_vector_Sl_float_Sg__append(arg1,(float const &)*arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_FloatVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_FloatVector")) SWIG_fail;
|
|
result = (std::vector< float > *)new std::vector< float >();
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_FloatVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = 0 ;
|
|
int res1 = SWIG_OLDOBJ ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< float > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:new_FloatVector",&obj0)) SWIG_fail;
|
|
{
|
|
std::vector<float,std::allocator< float > > *ptr = (std::vector<float,std::allocator< float > > *)0;
|
|
res1 = swig::asptr(obj0, &ptr);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FloatVector" "', argument " "1"" of type '" "std::vector< float > const &""'");
|
|
}
|
|
if (!ptr) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FloatVector" "', argument " "1"" of type '" "std::vector< float > const &""'");
|
|
}
|
|
arg1 = ptr;
|
|
}
|
|
result = (std::vector< float > *)new std::vector< float >((std::vector< float > const &)*arg1);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_NEW | 0 );
|
|
if (SWIG_IsNewObj(res1)) delete arg1;
|
|
return resultobj;
|
|
fail:
|
|
if (SWIG_IsNewObj(res1)) delete arg1;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_empty",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_empty" "', argument " "1"" of type '" "std::vector< float > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
result = (bool)((std::vector< float > const *)arg1)->empty();
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< float >::size_type result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_size",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_size" "', argument " "1"" of type '" "std::vector< float > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
result = ((std::vector< float > const *)arg1)->size();
|
|
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_clear",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_clear" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
(arg1)->clear();
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
std::vector< float > *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector_swap",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_swap" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FloatVector_swap" "', argument " "2"" of type '" "std::vector< float > &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FloatVector_swap" "', argument " "2"" of type '" "std::vector< float > &""'");
|
|
}
|
|
arg2 = reinterpret_cast< std::vector< float > * >(argp2);
|
|
(arg1)->swap(*arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
SwigValueWrapper< std::allocator< float > > result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_get_allocator",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_get_allocator" "', argument " "1"" of type '" "std::vector< float > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
result = ((std::vector< float > const *)arg1)->get_allocator();
|
|
resultobj = SWIG_NewPointerObj((new std::vector< float >::allocator_type(static_cast< const std::vector< float >::allocator_type& >(result))), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t__allocator_type, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< float >::const_iterator result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_begin",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_begin" "', argument " "1"" of type '" "std::vector< float > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
result = ((std::vector< float > const *)arg1)->begin();
|
|
resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::const_iterator & >(result)),
|
|
swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< float >::const_iterator result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_end",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_end" "', argument " "1"" of type '" "std::vector< float > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
result = ((std::vector< float > const *)arg1)->end();
|
|
resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::const_iterator & >(result)),
|
|
swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< float >::const_reverse_iterator result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_rbegin",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_rbegin" "', argument " "1"" of type '" "std::vector< float > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
result = ((std::vector< float > const *)arg1)->rbegin();
|
|
resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::const_reverse_iterator & >(result)),
|
|
swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< float >::const_reverse_iterator result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_rend",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_rend" "', argument " "1"" of type '" "std::vector< float > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
result = ((std::vector< float > const *)arg1)->rend();
|
|
resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::const_reverse_iterator & >(result)),
|
|
swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_FloatVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float >::size_type arg1 ;
|
|
size_t val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< float > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:new_FloatVector",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_size_t(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloatVector" "', argument " "1"" of type '" "std::vector< float >::size_type""'");
|
|
}
|
|
arg1 = static_cast< std::vector< float >::size_type >(val1);
|
|
result = (std::vector< float > *)new std::vector< float >(arg1);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_pop_back",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_pop_back" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
(arg1)->pop_back();
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
std::vector< float >::size_type arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector_resize",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_resize" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector_resize" "', argument " "2"" of type '" "std::vector< float >::size_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< float >::size_type >(val2);
|
|
(arg1)->resize(arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
std::vector< float >::iterator arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
swig::SwigPyIterator *iter2 = 0 ;
|
|
int res2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
std::vector< float >::iterator result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector_erase",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_erase" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
|
|
if (!SWIG_IsOK(res2) || !iter2) {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_erase" "', argument " "2"" of type '" "std::vector< float >::iterator""'");
|
|
} else {
|
|
swig::SwigPyIterator_T<std::vector< float >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< float >::iterator > *>(iter2);
|
|
if (iter_t) {
|
|
arg2 = iter_t->get_current();
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_erase" "', argument " "2"" of type '" "std::vector< float >::iterator""'");
|
|
}
|
|
}
|
|
result = (arg1)->erase(arg2);
|
|
resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::iterator & >(result)),
|
|
swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
std::vector< float >::iterator arg2 ;
|
|
std::vector< float >::iterator arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
swig::SwigPyIterator *iter2 = 0 ;
|
|
int res2 ;
|
|
swig::SwigPyIterator *iter3 = 0 ;
|
|
int res3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
std::vector< float >::iterator result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector_erase",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_erase" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
|
|
if (!SWIG_IsOK(res2) || !iter2) {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_erase" "', argument " "2"" of type '" "std::vector< float >::iterator""'");
|
|
} else {
|
|
swig::SwigPyIterator_T<std::vector< float >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< float >::iterator > *>(iter2);
|
|
if (iter_t) {
|
|
arg2 = iter_t->get_current();
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_erase" "', argument " "2"" of type '" "std::vector< float >::iterator""'");
|
|
}
|
|
}
|
|
res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
|
|
if (!SWIG_IsOK(res3) || !iter3) {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_erase" "', argument " "3"" of type '" "std::vector< float >::iterator""'");
|
|
} else {
|
|
swig::SwigPyIterator_T<std::vector< float >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< float >::iterator > *>(iter3);
|
|
if (iter_t) {
|
|
arg3 = iter_t->get_current();
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_erase" "', argument " "3"" of type '" "std::vector< float >::iterator""'");
|
|
}
|
|
}
|
|
result = (arg1)->erase(arg2,arg3);
|
|
resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::iterator & >(result)),
|
|
swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_erase(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[4];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
swig::SwigPyIterator *iter = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
|
|
_v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< float >::iterator > *>(iter) != 0));
|
|
if (_v) {
|
|
return _wrap_FloatVector_erase__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
swig::SwigPyIterator *iter = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
|
|
_v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< float >::iterator > *>(iter) != 0));
|
|
if (_v) {
|
|
swig::SwigPyIterator *iter = 0;
|
|
int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
|
|
_v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< float >::iterator > *>(iter) != 0));
|
|
if (_v) {
|
|
return _wrap_FloatVector_erase__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'FloatVector_erase'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" erase(std::vector< float > *,std::vector< float >::iterator)\n"
|
|
" erase(std::vector< float > *,std::vector< float >::iterator,std::vector< float >::iterator)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_FloatVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float >::size_type arg1 ;
|
|
std::vector< float >::value_type *arg2 = 0 ;
|
|
size_t val1 ;
|
|
int ecode1 = 0 ;
|
|
std::vector< float >::value_type temp2 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
std::vector< float > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:new_FloatVector",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_size_t(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FloatVector" "', argument " "1"" of type '" "std::vector< float >::size_type""'");
|
|
}
|
|
arg1 = static_cast< std::vector< float >::size_type >(val1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FloatVector" "', argument " "2"" of type '" "std::vector< float >::value_type""'");
|
|
}
|
|
temp2 = static_cast< std::vector< float >::value_type >(val2);
|
|
arg2 = &temp2;
|
|
result = (std::vector< float > *)new std::vector< float >(arg1,(std::vector< float >::value_type const &)*arg2);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_FloatVector(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 0) {
|
|
return _wrap_new_FloatVector__SWIG_0(self, args);
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
{
|
|
int res = SWIG_AsVal_size_t(argv[0], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_new_FloatVector__SWIG_2(self, args);
|
|
}
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_FloatVector__SWIG_1(self, args);
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
{
|
|
int res = SWIG_AsVal_size_t(argv[0], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_float(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_new_FloatVector__SWIG_3(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_FloatVector'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" std::vector< float >()\n"
|
|
" std::vector< float >(std::vector< float > const &)\n"
|
|
" std::vector< float >(std::vector< float >::size_type)\n"
|
|
" std::vector< float >(std::vector< float >::size_type,std::vector< float >::value_type const &)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
std::vector< float >::value_type *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
std::vector< float >::value_type temp2 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector_push_back",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_push_back" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector_push_back" "', argument " "2"" of type '" "std::vector< float >::value_type""'");
|
|
}
|
|
temp2 = static_cast< std::vector< float >::value_type >(val2);
|
|
arg2 = &temp2;
|
|
(arg1)->push_back((std::vector< float >::value_type const &)*arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< float >::value_type *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_front",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_front" "', argument " "1"" of type '" "std::vector< float > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
result = (std::vector< float >::value_type *) &((std::vector< float > const *)arg1)->front();
|
|
resultobj = SWIG_From_float(static_cast< float >(*result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< float >::value_type *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_back",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_back" "', argument " "1"" of type '" "std::vector< float > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
result = (std::vector< float >::value_type *) &((std::vector< float > const *)arg1)->back();
|
|
resultobj = SWIG_From_float(static_cast< float >(*result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
std::vector< float >::size_type arg2 ;
|
|
std::vector< float >::value_type *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
std::vector< float >::value_type temp3 ;
|
|
float val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector_assign",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_assign" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector_assign" "', argument " "2"" of type '" "std::vector< float >::size_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< float >::size_type >(val2);
|
|
ecode3 = SWIG_AsVal_float(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector_assign" "', argument " "3"" of type '" "std::vector< float >::value_type""'");
|
|
}
|
|
temp3 = static_cast< std::vector< float >::value_type >(val3);
|
|
arg3 = &temp3;
|
|
(arg1)->assign(arg2,(std::vector< float >::value_type const &)*arg3);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
std::vector< float >::size_type arg2 ;
|
|
std::vector< float >::value_type *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
std::vector< float >::value_type temp3 ;
|
|
float val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector_resize",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_resize" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector_resize" "', argument " "2"" of type '" "std::vector< float >::size_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< float >::size_type >(val2);
|
|
ecode3 = SWIG_AsVal_float(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector_resize" "', argument " "3"" of type '" "std::vector< float >::value_type""'");
|
|
}
|
|
temp3 = static_cast< std::vector< float >::value_type >(val3);
|
|
arg3 = &temp3;
|
|
(arg1)->resize(arg2,(std::vector< float >::value_type const &)*arg3);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_resize(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[4];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_size_t(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_FloatVector_resize__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_size_t(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_float(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_FloatVector_resize__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'FloatVector_resize'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" resize(std::vector< float > *,std::vector< float >::size_type)\n"
|
|
" resize(std::vector< float > *,std::vector< float >::size_type,std::vector< float >::value_type const &)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
std::vector< float >::iterator arg2 ;
|
|
std::vector< float >::value_type *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
swig::SwigPyIterator *iter2 = 0 ;
|
|
int res2 ;
|
|
std::vector< float >::value_type temp3 ;
|
|
float val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
std::vector< float >::iterator result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:FloatVector_insert",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_insert" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
|
|
if (!SWIG_IsOK(res2) || !iter2) {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_insert" "', argument " "2"" of type '" "std::vector< float >::iterator""'");
|
|
} else {
|
|
swig::SwigPyIterator_T<std::vector< float >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< float >::iterator > *>(iter2);
|
|
if (iter_t) {
|
|
arg2 = iter_t->get_current();
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_insert" "', argument " "2"" of type '" "std::vector< float >::iterator""'");
|
|
}
|
|
}
|
|
ecode3 = SWIG_AsVal_float(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector_insert" "', argument " "3"" of type '" "std::vector< float >::value_type""'");
|
|
}
|
|
temp3 = static_cast< std::vector< float >::value_type >(val3);
|
|
arg3 = &temp3;
|
|
result = (arg1)->insert(arg2,(std::vector< float >::value_type const &)*arg3);
|
|
resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< float >::iterator & >(result)),
|
|
swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
std::vector< float >::iterator arg2 ;
|
|
std::vector< float >::size_type arg3 ;
|
|
std::vector< float >::value_type *arg4 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
swig::SwigPyIterator *iter2 = 0 ;
|
|
int res2 ;
|
|
size_t val3 ;
|
|
int ecode3 = 0 ;
|
|
std::vector< float >::value_type temp4 ;
|
|
float val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:FloatVector_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_insert" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
|
|
if (!SWIG_IsOK(res2) || !iter2) {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_insert" "', argument " "2"" of type '" "std::vector< float >::iterator""'");
|
|
} else {
|
|
swig::SwigPyIterator_T<std::vector< float >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< float >::iterator > *>(iter2);
|
|
if (iter_t) {
|
|
arg2 = iter_t->get_current();
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "FloatVector_insert" "', argument " "2"" of type '" "std::vector< float >::iterator""'");
|
|
}
|
|
}
|
|
ecode3 = SWIG_AsVal_size_t(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FloatVector_insert" "', argument " "3"" of type '" "std::vector< float >::size_type""'");
|
|
}
|
|
arg3 = static_cast< std::vector< float >::size_type >(val3);
|
|
ecode4 = SWIG_AsVal_float(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FloatVector_insert" "', argument " "4"" of type '" "std::vector< float >::value_type""'");
|
|
}
|
|
temp4 = static_cast< std::vector< float >::value_type >(val4);
|
|
arg4 = &temp4;
|
|
(arg1)->insert(arg2,arg3,(std::vector< float >::value_type const &)*arg4);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_insert(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[5];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 4); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
swig::SwigPyIterator *iter = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
|
|
_v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< float >::iterator > *>(iter) != 0));
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_float(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_FloatVector_insert__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 4) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
swig::SwigPyIterator *iter = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
|
|
_v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< float >::iterator > *>(iter) != 0));
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_size_t(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_float(argv[3], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_FloatVector_insert__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'FloatVector_insert'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" insert(std::vector< float > *,std::vector< float >::iterator,std::vector< float >::value_type const &)\n"
|
|
" insert(std::vector< float > *,std::vector< float >::iterator,std::vector< float >::size_type,std::vector< float >::value_type const &)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
std::vector< float >::size_type arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:FloatVector_reserve",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_reserve" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FloatVector_reserve" "', argument " "2"" of type '" "std::vector< float >::size_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< float >::size_type >(val2);
|
|
(arg1)->reserve(arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FloatVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< float >::size_type result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:FloatVector_capacity",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FloatVector_capacity" "', argument " "1"" of type '" "std::vector< float > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
result = ((std::vector< float > const *)arg1)->capacity();
|
|
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_FloatVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< float > *arg1 = (std::vector< float > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_FloatVector",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FloatVector" "', argument " "1"" of type '" "std::vector< float > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< float > * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *FloatVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_float_std__allocatorT_float_t_t, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_iterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
PyObject **arg2 = (PyObject **) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
swig::SwigPyIterator *result = 0 ;
|
|
|
|
arg2 = &obj0;
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPointVector_iterator",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_iterator" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
result = (swig::SwigPyIterator *)std_vector_Sl_CvPoint_Sg__iterator(arg1,arg2);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPointVector___nonzero__",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector___nonzero__" "', argument " "1"" of type '" "std::vector< CvPoint > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
result = (bool)std_vector_Sl_CvPoint_Sg____nonzero__((std::vector< CvPoint > const *)arg1);
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector___bool__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPointVector___bool__",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector___bool__" "', argument " "1"" of type '" "std::vector< CvPoint > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
result = (bool)std_vector_Sl_CvPoint_Sg____bool__((std::vector< CvPoint > const *)arg1);
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector___len__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< CvPoint >::size_type result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPointVector___len__",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector___len__" "', argument " "1"" of type '" "std::vector< CvPoint > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
result = std_vector_Sl_CvPoint_Sg____len__((std::vector< CvPoint > const *)arg1);
|
|
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< CvPoint >::value_type result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPointVector_pop",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_pop" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
try {
|
|
result = std_vector_Sl_CvPoint_Sg__pop(arg1);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_NewPointerObj((new std::vector< CvPoint >::value_type(static_cast< const std::vector< CvPoint >::value_type& >(result))), SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector___getslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
std::vector< CvPoint >::difference_type arg2 ;
|
|
std::vector< CvPoint >::difference_type arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
ptrdiff_t val2 ;
|
|
int ecode2 = 0 ;
|
|
ptrdiff_t val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
std::vector< CvPoint,std::allocator< CvPoint > > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvPointVector___getslice__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector___getslice__" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPointVector___getslice__" "', argument " "2"" of type '" "std::vector< CvPoint >::difference_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< CvPoint >::difference_type >(val2);
|
|
ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CvPointVector___getslice__" "', argument " "3"" of type '" "std::vector< CvPoint >::difference_type""'");
|
|
}
|
|
arg3 = static_cast< std::vector< CvPoint >::difference_type >(val3);
|
|
try {
|
|
result = (std::vector< CvPoint,std::allocator< CvPoint > > *)std_vector_Sl_CvPoint_Sg____getslice__(arg1,arg2,arg3);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector___setslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
std::vector< CvPoint >::difference_type arg2 ;
|
|
std::vector< CvPoint >::difference_type arg3 ;
|
|
std::vector< CvPoint,std::allocator< CvPoint > > *arg4 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
ptrdiff_t val2 ;
|
|
int ecode2 = 0 ;
|
|
ptrdiff_t val3 ;
|
|
int ecode3 = 0 ;
|
|
int res4 = SWIG_OLDOBJ ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:CvPointVector___setslice__",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector___setslice__" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPointVector___setslice__" "', argument " "2"" of type '" "std::vector< CvPoint >::difference_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< CvPoint >::difference_type >(val2);
|
|
ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CvPointVector___setslice__" "', argument " "3"" of type '" "std::vector< CvPoint >::difference_type""'");
|
|
}
|
|
arg3 = static_cast< std::vector< CvPoint >::difference_type >(val3);
|
|
{
|
|
std::vector<CvPoint,std::allocator< CvPoint > > *ptr = (std::vector<CvPoint,std::allocator< CvPoint > > *)0;
|
|
res4 = swig::asptr(obj3, &ptr);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CvPointVector___setslice__" "', argument " "4"" of type '" "std::vector< CvPoint,std::allocator< CvPoint > > const &""'");
|
|
}
|
|
if (!ptr) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CvPointVector___setslice__" "', argument " "4"" of type '" "std::vector< CvPoint,std::allocator< CvPoint > > const &""'");
|
|
}
|
|
arg4 = ptr;
|
|
}
|
|
try {
|
|
std_vector_Sl_CvPoint_Sg____setslice__(arg1,arg2,arg3,(std::vector< CvPoint,std::allocator< CvPoint > > const &)*arg4);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
catch(std::invalid_argument &_e) {
|
|
SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsNewObj(res4)) delete arg4;
|
|
return resultobj;
|
|
fail:
|
|
if (SWIG_IsNewObj(res4)) delete arg4;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector___delslice__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
std::vector< CvPoint >::difference_type arg2 ;
|
|
std::vector< CvPoint >::difference_type arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
ptrdiff_t val2 ;
|
|
int ecode2 = 0 ;
|
|
ptrdiff_t val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvPointVector___delslice__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector___delslice__" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPointVector___delslice__" "', argument " "2"" of type '" "std::vector< CvPoint >::difference_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< CvPoint >::difference_type >(val2);
|
|
ecode3 = SWIG_AsVal_ptrdiff_t(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CvPointVector___delslice__" "', argument " "3"" of type '" "std::vector< CvPoint >::difference_type""'");
|
|
}
|
|
arg3 = static_cast< std::vector< CvPoint >::difference_type >(val3);
|
|
try {
|
|
std_vector_Sl_CvPoint_Sg____delslice__(arg1,arg2,arg3);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector___delitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
std::vector< CvPoint >::difference_type arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
ptrdiff_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPointVector___delitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector___delitem__" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPointVector___delitem__" "', argument " "2"" of type '" "std::vector< CvPoint >::difference_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< CvPoint >::difference_type >(val2);
|
|
try {
|
|
std_vector_Sl_CvPoint_Sg____delitem____SWIG_0(arg1,arg2);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector___getitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
PySliceObject *arg2 = (PySliceObject *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
std::vector< CvPoint,std::allocator< CvPoint > > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPointVector___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector___getitem__" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
{
|
|
arg2 = (PySliceObject *) obj1;
|
|
}
|
|
try {
|
|
result = (std::vector< CvPoint,std::allocator< CvPoint > > *)std_vector_Sl_CvPoint_Sg____getitem____SWIG_0(arg1,arg2);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
PySliceObject *arg2 = (PySliceObject *) 0 ;
|
|
std::vector< CvPoint,std::allocator< CvPoint > > *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res3 = SWIG_OLDOBJ ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvPointVector___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector___setitem__" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
{
|
|
arg2 = (PySliceObject *) obj1;
|
|
}
|
|
{
|
|
std::vector<CvPoint,std::allocator< CvPoint > > *ptr = (std::vector<CvPoint,std::allocator< CvPoint > > *)0;
|
|
res3 = swig::asptr(obj2, &ptr);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvPointVector___setitem__" "', argument " "3"" of type '" "std::vector< CvPoint,std::allocator< CvPoint > > const &""'");
|
|
}
|
|
if (!ptr) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CvPointVector___setitem__" "', argument " "3"" of type '" "std::vector< CvPoint,std::allocator< CvPoint > > const &""'");
|
|
}
|
|
arg3 = ptr;
|
|
}
|
|
try {
|
|
std_vector_Sl_CvPoint_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< CvPoint,std::allocator< CvPoint > > const &)*arg3);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
catch(std::invalid_argument &_e) {
|
|
SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsNewObj(res3)) delete arg3;
|
|
return resultobj;
|
|
fail:
|
|
if (SWIG_IsNewObj(res3)) delete arg3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector___delitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
PySliceObject *arg2 = (PySliceObject *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPointVector___delitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector___delitem__" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
{
|
|
arg2 = (PySliceObject *) obj1;
|
|
}
|
|
try {
|
|
std_vector_Sl_CvPoint_Sg____delitem____SWIG_1(arg1,arg2);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector___delitem__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<CvPoint,std::allocator< CvPoint > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = PySlice_Check(argv[1]);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvPointVector___delitem____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<CvPoint,std::allocator< CvPoint > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvPointVector___delitem____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvPointVector___delitem__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" __delitem__(std::vector< CvPoint > *,std::vector< CvPoint >::difference_type)\n"
|
|
" __delitem__(std::vector< CvPoint > *,PySliceObject *)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector___getitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
std::vector< CvPoint >::difference_type arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
ptrdiff_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
std::vector< CvPoint >::value_type *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPointVector___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector___getitem__" "', argument " "1"" of type '" "std::vector< CvPoint > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPointVector___getitem__" "', argument " "2"" of type '" "std::vector< CvPoint >::difference_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< CvPoint >::difference_type >(val2);
|
|
try {
|
|
result = (std::vector< CvPoint >::value_type *) &std_vector_Sl_CvPoint_Sg____getitem____SWIG_1((std::vector< CvPoint > const *)arg1,arg2);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector___getitem__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<CvPoint,std::allocator< CvPoint > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = PySlice_Check(argv[1]);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvPointVector___getitem____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<CvPoint,std::allocator< CvPoint > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvPointVector___getitem____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvPointVector___getitem__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" __getitem__(std::vector< CvPoint > *,PySliceObject *)\n"
|
|
" __getitem__(std::vector< CvPoint > const *,std::vector< CvPoint >::difference_type)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
std::vector< CvPoint >::difference_type arg2 ;
|
|
std::vector< CvPoint >::value_type *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
ptrdiff_t val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvPointVector___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector___setitem__" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
ecode2 = SWIG_AsVal_ptrdiff_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPointVector___setitem__" "', argument " "2"" of type '" "std::vector< CvPoint >::difference_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< CvPoint >::difference_type >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, 0 | 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvPointVector___setitem__" "', argument " "3"" of type '" "std::vector< CvPoint >::value_type const &""'");
|
|
}
|
|
if (!argp3) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CvPointVector___setitem__" "', argument " "3"" of type '" "std::vector< CvPoint >::value_type const &""'");
|
|
}
|
|
arg3 = reinterpret_cast< std::vector< CvPoint >::value_type * >(argp3);
|
|
try {
|
|
std_vector_Sl_CvPoint_Sg____setitem____SWIG_1(arg1,arg2,(CvPoint const &)*arg3);
|
|
}
|
|
catch(std::out_of_range &_e) {
|
|
SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
|
|
}
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector___setitem__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[4];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<CvPoint,std::allocator< CvPoint > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = PySlice_Check(argv[1]);
|
|
}
|
|
if (_v) {
|
|
int res = swig::asptr(argv[2], (std::vector<CvPoint,std::allocator< CvPoint > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvPointVector___setitem____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<CvPoint,std::allocator< CvPoint > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvPointVector___setitem____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvPointVector___setitem__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" __setitem__(std::vector< CvPoint > *,PySliceObject *,std::vector< CvPoint,std::allocator< CvPoint > > const &)\n"
|
|
" __setitem__(std::vector< CvPoint > *,std::vector< CvPoint >::difference_type,std::vector< CvPoint >::value_type const &)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
std::vector< CvPoint >::value_type *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPointVector_append",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_append" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvPointVector_append" "', argument " "2"" of type '" "std::vector< CvPoint >::value_type const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CvPointVector_append" "', argument " "2"" of type '" "std::vector< CvPoint >::value_type const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< std::vector< CvPoint >::value_type * >(argp2);
|
|
std_vector_Sl_CvPoint_Sg__append(arg1,(CvPoint const &)*arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvPointVector__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvPointVector")) SWIG_fail;
|
|
result = (std::vector< CvPoint > *)new std::vector< CvPoint >();
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvPointVector__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = 0 ;
|
|
int res1 = SWIG_OLDOBJ ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< CvPoint > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:new_CvPointVector",&obj0)) SWIG_fail;
|
|
{
|
|
std::vector<CvPoint,std::allocator< CvPoint > > *ptr = (std::vector<CvPoint,std::allocator< CvPoint > > *)0;
|
|
res1 = swig::asptr(obj0, &ptr);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvPointVector" "', argument " "1"" of type '" "std::vector< CvPoint > const &""'");
|
|
}
|
|
if (!ptr) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CvPointVector" "', argument " "1"" of type '" "std::vector< CvPoint > const &""'");
|
|
}
|
|
arg1 = ptr;
|
|
}
|
|
result = (std::vector< CvPoint > *)new std::vector< CvPoint >((std::vector< CvPoint > const &)*arg1);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, SWIG_POINTER_NEW | 0 );
|
|
if (SWIG_IsNewObj(res1)) delete arg1;
|
|
return resultobj;
|
|
fail:
|
|
if (SWIG_IsNewObj(res1)) delete arg1;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_empty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPointVector_empty",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_empty" "', argument " "1"" of type '" "std::vector< CvPoint > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
result = (bool)((std::vector< CvPoint > const *)arg1)->empty();
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< CvPoint >::size_type result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPointVector_size",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_size" "', argument " "1"" of type '" "std::vector< CvPoint > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
result = ((std::vector< CvPoint > const *)arg1)->size();
|
|
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPointVector_clear",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_clear" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
(arg1)->clear();
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_swap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
std::vector< CvPoint > *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPointVector_swap",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_swap" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvPointVector_swap" "', argument " "2"" of type '" "std::vector< CvPoint > &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CvPointVector_swap" "', argument " "2"" of type '" "std::vector< CvPoint > &""'");
|
|
}
|
|
arg2 = reinterpret_cast< std::vector< CvPoint > * >(argp2);
|
|
(arg1)->swap(*arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_get_allocator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
SwigValueWrapper< std::allocator< CvPoint > > result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPointVector_get_allocator",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_get_allocator" "', argument " "1"" of type '" "std::vector< CvPoint > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
result = ((std::vector< CvPoint > const *)arg1)->get_allocator();
|
|
resultobj = SWIG_NewPointerObj((new std::vector< CvPoint >::allocator_type(static_cast< const std::vector< CvPoint >::allocator_type& >(result))), SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__allocator_type, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_begin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< CvPoint >::const_iterator result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPointVector_begin",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_begin" "', argument " "1"" of type '" "std::vector< CvPoint > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
result = ((std::vector< CvPoint > const *)arg1)->begin();
|
|
resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CvPoint >::const_iterator & >(result)),
|
|
swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_end(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< CvPoint >::const_iterator result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPointVector_end",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_end" "', argument " "1"" of type '" "std::vector< CvPoint > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
result = ((std::vector< CvPoint > const *)arg1)->end();
|
|
resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CvPoint >::const_iterator & >(result)),
|
|
swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_rbegin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< CvPoint >::const_reverse_iterator result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPointVector_rbegin",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_rbegin" "', argument " "1"" of type '" "std::vector< CvPoint > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
result = ((std::vector< CvPoint > const *)arg1)->rbegin();
|
|
resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CvPoint >::const_reverse_iterator & >(result)),
|
|
swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_rend(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< CvPoint >::const_reverse_iterator result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPointVector_rend",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_rend" "', argument " "1"" of type '" "std::vector< CvPoint > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
result = ((std::vector< CvPoint > const *)arg1)->rend();
|
|
resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CvPoint >::const_reverse_iterator & >(result)),
|
|
swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvPointVector__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint >::size_type arg1 ;
|
|
size_t val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< CvPoint > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:new_CvPointVector",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_size_t(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CvPointVector" "', argument " "1"" of type '" "std::vector< CvPoint >::size_type""'");
|
|
}
|
|
arg1 = static_cast< std::vector< CvPoint >::size_type >(val1);
|
|
result = (std::vector< CvPoint > *)new std::vector< CvPoint >(arg1);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_pop_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPointVector_pop_back",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_pop_back" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
(arg1)->pop_back();
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_resize__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
std::vector< CvPoint >::size_type arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPointVector_resize",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_resize" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPointVector_resize" "', argument " "2"" of type '" "std::vector< CvPoint >::size_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< CvPoint >::size_type >(val2);
|
|
(arg1)->resize(arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_erase__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
std::vector< CvPoint >::iterator arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
swig::SwigPyIterator *iter2 = 0 ;
|
|
int res2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
std::vector< CvPoint >::iterator result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPointVector_erase",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_erase" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
|
|
if (!SWIG_IsOK(res2) || !iter2) {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CvPointVector_erase" "', argument " "2"" of type '" "std::vector< CvPoint >::iterator""'");
|
|
} else {
|
|
swig::SwigPyIterator_T<std::vector< CvPoint >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< CvPoint >::iterator > *>(iter2);
|
|
if (iter_t) {
|
|
arg2 = iter_t->get_current();
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CvPointVector_erase" "', argument " "2"" of type '" "std::vector< CvPoint >::iterator""'");
|
|
}
|
|
}
|
|
result = (arg1)->erase(arg2);
|
|
resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CvPoint >::iterator & >(result)),
|
|
swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_erase__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
std::vector< CvPoint >::iterator arg2 ;
|
|
std::vector< CvPoint >::iterator arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
swig::SwigPyIterator *iter2 = 0 ;
|
|
int res2 ;
|
|
swig::SwigPyIterator *iter3 = 0 ;
|
|
int res3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
std::vector< CvPoint >::iterator result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvPointVector_erase",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_erase" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
|
|
if (!SWIG_IsOK(res2) || !iter2) {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CvPointVector_erase" "', argument " "2"" of type '" "std::vector< CvPoint >::iterator""'");
|
|
} else {
|
|
swig::SwigPyIterator_T<std::vector< CvPoint >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< CvPoint >::iterator > *>(iter2);
|
|
if (iter_t) {
|
|
arg2 = iter_t->get_current();
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CvPointVector_erase" "', argument " "2"" of type '" "std::vector< CvPoint >::iterator""'");
|
|
}
|
|
}
|
|
res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
|
|
if (!SWIG_IsOK(res3) || !iter3) {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CvPointVector_erase" "', argument " "3"" of type '" "std::vector< CvPoint >::iterator""'");
|
|
} else {
|
|
swig::SwigPyIterator_T<std::vector< CvPoint >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< CvPoint >::iterator > *>(iter3);
|
|
if (iter_t) {
|
|
arg3 = iter_t->get_current();
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CvPointVector_erase" "', argument " "3"" of type '" "std::vector< CvPoint >::iterator""'");
|
|
}
|
|
}
|
|
result = (arg1)->erase(arg2,arg3);
|
|
resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CvPoint >::iterator & >(result)),
|
|
swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_erase(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[4];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<CvPoint,std::allocator< CvPoint > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
swig::SwigPyIterator *iter = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
|
|
_v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< CvPoint >::iterator > *>(iter) != 0));
|
|
if (_v) {
|
|
return _wrap_CvPointVector_erase__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<CvPoint,std::allocator< CvPoint > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
swig::SwigPyIterator *iter = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
|
|
_v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< CvPoint >::iterator > *>(iter) != 0));
|
|
if (_v) {
|
|
swig::SwigPyIterator *iter = 0;
|
|
int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
|
|
_v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< CvPoint >::iterator > *>(iter) != 0));
|
|
if (_v) {
|
|
return _wrap_CvPointVector_erase__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvPointVector_erase'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" erase(std::vector< CvPoint > *,std::vector< CvPoint >::iterator)\n"
|
|
" erase(std::vector< CvPoint > *,std::vector< CvPoint >::iterator,std::vector< CvPoint >::iterator)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvPointVector__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint >::size_type arg1 ;
|
|
std::vector< CvPoint >::value_type *arg2 = 0 ;
|
|
size_t val1 ;
|
|
int ecode1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
std::vector< CvPoint > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:new_CvPointVector",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_size_t(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CvPointVector" "', argument " "1"" of type '" "std::vector< CvPoint >::size_type""'");
|
|
}
|
|
arg1 = static_cast< std::vector< CvPoint >::size_type >(val1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CvPointVector" "', argument " "2"" of type '" "std::vector< CvPoint >::value_type const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CvPointVector" "', argument " "2"" of type '" "std::vector< CvPoint >::value_type const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< std::vector< CvPoint >::value_type * >(argp2);
|
|
result = (std::vector< CvPoint > *)new std::vector< CvPoint >(arg1,(std::vector< CvPoint >::value_type const &)*arg2);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvPointVector(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 0) {
|
|
return _wrap_new_CvPointVector__SWIG_0(self, args);
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
{
|
|
int res = SWIG_AsVal_size_t(argv[0], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_new_CvPointVector__SWIG_2(self, args);
|
|
}
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<CvPoint,std::allocator< CvPoint > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvPointVector__SWIG_1(self, args);
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
{
|
|
int res = SWIG_AsVal_size_t(argv[0], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvPointVector__SWIG_3(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_CvPointVector'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" std::vector< CvPoint >()\n"
|
|
" std::vector< CvPoint >(std::vector< CvPoint > const &)\n"
|
|
" std::vector< CvPoint >(std::vector< CvPoint >::size_type)\n"
|
|
" std::vector< CvPoint >(std::vector< CvPoint >::size_type,std::vector< CvPoint >::value_type const &)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_push_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
std::vector< CvPoint >::value_type *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPointVector_push_back",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_push_back" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvPointVector_push_back" "', argument " "2"" of type '" "std::vector< CvPoint >::value_type const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CvPointVector_push_back" "', argument " "2"" of type '" "std::vector< CvPoint >::value_type const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< std::vector< CvPoint >::value_type * >(argp2);
|
|
(arg1)->push_back((std::vector< CvPoint >::value_type const &)*arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_front(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< CvPoint >::value_type *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPointVector_front",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_front" "', argument " "1"" of type '" "std::vector< CvPoint > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
result = (std::vector< CvPoint >::value_type *) &((std::vector< CvPoint > const *)arg1)->front();
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_back(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< CvPoint >::value_type *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPointVector_back",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_back" "', argument " "1"" of type '" "std::vector< CvPoint > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
result = (std::vector< CvPoint >::value_type *) &((std::vector< CvPoint > const *)arg1)->back();
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_assign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
std::vector< CvPoint >::size_type arg2 ;
|
|
std::vector< CvPoint >::value_type *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvPointVector_assign",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_assign" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPointVector_assign" "', argument " "2"" of type '" "std::vector< CvPoint >::size_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< CvPoint >::size_type >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, 0 | 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvPointVector_assign" "', argument " "3"" of type '" "std::vector< CvPoint >::value_type const &""'");
|
|
}
|
|
if (!argp3) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CvPointVector_assign" "', argument " "3"" of type '" "std::vector< CvPoint >::value_type const &""'");
|
|
}
|
|
arg3 = reinterpret_cast< std::vector< CvPoint >::value_type * >(argp3);
|
|
(arg1)->assign(arg2,(std::vector< CvPoint >::value_type const &)*arg3);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_resize__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
std::vector< CvPoint >::size_type arg2 ;
|
|
std::vector< CvPoint >::value_type *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvPointVector_resize",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_resize" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPointVector_resize" "', argument " "2"" of type '" "std::vector< CvPoint >::size_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< CvPoint >::size_type >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, 0 | 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvPointVector_resize" "', argument " "3"" of type '" "std::vector< CvPoint >::value_type const &""'");
|
|
}
|
|
if (!argp3) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CvPointVector_resize" "', argument " "3"" of type '" "std::vector< CvPoint >::value_type const &""'");
|
|
}
|
|
arg3 = reinterpret_cast< std::vector< CvPoint >::value_type * >(argp3);
|
|
(arg1)->resize(arg2,(std::vector< CvPoint >::value_type const &)*arg3);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_resize(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[4];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<CvPoint,std::allocator< CvPoint > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_size_t(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvPointVector_resize__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<CvPoint,std::allocator< CvPoint > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_size_t(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvPointVector_resize__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvPointVector_resize'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" resize(std::vector< CvPoint > *,std::vector< CvPoint >::size_type)\n"
|
|
" resize(std::vector< CvPoint > *,std::vector< CvPoint >::size_type,std::vector< CvPoint >::value_type const &)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_insert__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
std::vector< CvPoint >::iterator arg2 ;
|
|
std::vector< CvPoint >::value_type *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
swig::SwigPyIterator *iter2 = 0 ;
|
|
int res2 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
std::vector< CvPoint >::iterator result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvPointVector_insert",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_insert" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
|
|
if (!SWIG_IsOK(res2) || !iter2) {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CvPointVector_insert" "', argument " "2"" of type '" "std::vector< CvPoint >::iterator""'");
|
|
} else {
|
|
swig::SwigPyIterator_T<std::vector< CvPoint >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< CvPoint >::iterator > *>(iter2);
|
|
if (iter_t) {
|
|
arg2 = iter_t->get_current();
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CvPointVector_insert" "', argument " "2"" of type '" "std::vector< CvPoint >::iterator""'");
|
|
}
|
|
}
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, 0 | 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvPointVector_insert" "', argument " "3"" of type '" "std::vector< CvPoint >::value_type const &""'");
|
|
}
|
|
if (!argp3) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CvPointVector_insert" "', argument " "3"" of type '" "std::vector< CvPoint >::value_type const &""'");
|
|
}
|
|
arg3 = reinterpret_cast< std::vector< CvPoint >::value_type * >(argp3);
|
|
result = (arg1)->insert(arg2,(std::vector< CvPoint >::value_type const &)*arg3);
|
|
resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< CvPoint >::iterator & >(result)),
|
|
swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_insert__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
std::vector< CvPoint >::iterator arg2 ;
|
|
std::vector< CvPoint >::size_type arg3 ;
|
|
std::vector< CvPoint >::value_type *arg4 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
swig::SwigPyIterator *iter2 = 0 ;
|
|
int res2 ;
|
|
size_t val3 ;
|
|
int ecode3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:CvPointVector_insert",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_insert" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
|
|
if (!SWIG_IsOK(res2) || !iter2) {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CvPointVector_insert" "', argument " "2"" of type '" "std::vector< CvPoint >::iterator""'");
|
|
} else {
|
|
swig::SwigPyIterator_T<std::vector< CvPoint >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< CvPoint >::iterator > *>(iter2);
|
|
if (iter_t) {
|
|
arg2 = iter_t->get_current();
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CvPointVector_insert" "', argument " "2"" of type '" "std::vector< CvPoint >::iterator""'");
|
|
}
|
|
}
|
|
ecode3 = SWIG_AsVal_size_t(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CvPointVector_insert" "', argument " "3"" of type '" "std::vector< CvPoint >::size_type""'");
|
|
}
|
|
arg3 = static_cast< std::vector< CvPoint >::size_type >(val3);
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, 0 | 0);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CvPointVector_insert" "', argument " "4"" of type '" "std::vector< CvPoint >::value_type const &""'");
|
|
}
|
|
if (!argp4) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CvPointVector_insert" "', argument " "4"" of type '" "std::vector< CvPoint >::value_type const &""'");
|
|
}
|
|
arg4 = reinterpret_cast< std::vector< CvPoint >::value_type * >(argp4);
|
|
(arg1)->insert(arg2,arg3,(std::vector< CvPoint >::value_type const &)*arg4);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_insert(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[5];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 4); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<CvPoint,std::allocator< CvPoint > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
swig::SwigPyIterator *iter = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
|
|
_v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< CvPoint >::iterator > *>(iter) != 0));
|
|
if (_v) {
|
|
int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvPointVector_insert__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 4) {
|
|
int _v;
|
|
int res = swig::asptr(argv[0], (std::vector<CvPoint,std::allocator< CvPoint > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
swig::SwigPyIterator *iter = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
|
|
_v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< CvPoint >::iterator > *>(iter) != 0));
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_size_t(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvPointVector_insert__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvPointVector_insert'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" insert(std::vector< CvPoint > *,std::vector< CvPoint >::iterator,std::vector< CvPoint >::value_type const &)\n"
|
|
" insert(std::vector< CvPoint > *,std::vector< CvPoint >::iterator,std::vector< CvPoint >::size_type,std::vector< CvPoint >::value_type const &)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_reserve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
std::vector< CvPoint >::size_type arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPointVector_reserve",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_reserve" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPointVector_reserve" "', argument " "2"" of type '" "std::vector< CvPoint >::size_type""'");
|
|
}
|
|
arg2 = static_cast< std::vector< CvPoint >::size_type >(val2);
|
|
(arg1)->reserve(arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPointVector_capacity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
std::vector< CvPoint >::size_type result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPointVector_capacity",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPointVector_capacity" "', argument " "1"" of type '" "std::vector< CvPoint > const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
result = ((std::vector< CvPoint > const *)arg1)->capacity();
|
|
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvPointVector(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
std::vector< CvPoint > *arg1 = (std::vector< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvPointVector",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvPointVector" "', argument " "1"" of type '" "std::vector< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< std::vector< CvPoint > * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvPointVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCvtSeqToArray__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvSlice arg3 ;
|
|
void *ptr1 ;
|
|
bool freearg2 = false ;
|
|
CvSlice temp3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvArr *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvCvtSeqToArray",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ii", & temp3.start_index, & temp3.end_index))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (start_index, end_index)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvSlice * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvSlice, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSlice");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
result = (CvArr *)cvCvtSeqToArray_Shadow((CvSeq const *)arg1,arg2,arg3);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCvtSeqToArray__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
void *ptr1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvArr *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvCvtSeqToArray",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
result = (CvArr *)cvCvtSeqToArray_Shadow((CvSeq const *)arg1,arg2);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCvtSeqToArray(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[4];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvSeq, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_cvCvtSeqToArray__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvSeq, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_CvSlice, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_cvCvtSeqToArray__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'cvCvtSeqToArray'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" cvCvtSeqToArray_Shadow(CvSeq const *,CvArr *,CvSlice)\n"
|
|
" cvCvtSeqToArray_Shadow(CvSeq const *,CvArr *)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvHaarDetectObjects__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvHaarClassifierCascade *arg2 = (CvHaarClassifierCascade *) 0 ;
|
|
CvMemStorage *arg3 = (CvMemStorage *) 0 ;
|
|
double arg4 ;
|
|
int arg5 ;
|
|
int arg6 ;
|
|
CvSize arg7 ;
|
|
bool freearg1 = false ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
CvSize temp7 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
CvTypedSeq< CvRect > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:cvHaarDetectObjects",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvHaarDetectObjects" "', argument " "2"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvHaarClassifierCascade * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvHaarDetectObjects" "', argument " "3"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvMemStorage * >(argp3);
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvHaarDetectObjects" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvHaarDetectObjects" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvHaarDetectObjects" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
{
|
|
if (PyTuple_Check(obj6))
|
|
{
|
|
if (!PyArg_ParseTuple(obj6,"ii", & temp7.width, & temp7.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg7 = temp7;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj6, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg7 = *ptr;
|
|
}
|
|
}
|
|
result = (CvTypedSeq< CvRect > *)cvHaarDetectObjects_Shadow((void const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvRect_t, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvHaarDetectObjects__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvHaarClassifierCascade *arg2 = (CvHaarClassifierCascade *) 0 ;
|
|
CvMemStorage *arg3 = (CvMemStorage *) 0 ;
|
|
double arg4 ;
|
|
int arg5 ;
|
|
int arg6 ;
|
|
bool freearg1 = false ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
CvTypedSeq< CvRect > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO:cvHaarDetectObjects",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvHaarDetectObjects" "', argument " "2"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvHaarClassifierCascade * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvHaarDetectObjects" "', argument " "3"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvMemStorage * >(argp3);
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvHaarDetectObjects" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvHaarDetectObjects" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvHaarDetectObjects" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
result = (CvTypedSeq< CvRect > *)cvHaarDetectObjects_Shadow((void const *)arg1,arg2,arg3,arg4,arg5,arg6);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvRect_t, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvHaarDetectObjects__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvHaarClassifierCascade *arg2 = (CvHaarClassifierCascade *) 0 ;
|
|
CvMemStorage *arg3 = (CvMemStorage *) 0 ;
|
|
double arg4 ;
|
|
int arg5 ;
|
|
bool freearg1 = false ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
CvTypedSeq< CvRect > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvHaarDetectObjects",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvHaarDetectObjects" "', argument " "2"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvHaarClassifierCascade * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvHaarDetectObjects" "', argument " "3"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvMemStorage * >(argp3);
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvHaarDetectObjects" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvHaarDetectObjects" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
result = (CvTypedSeq< CvRect > *)cvHaarDetectObjects_Shadow((void const *)arg1,arg2,arg3,arg4,arg5);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvRect_t, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvHaarDetectObjects__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvHaarClassifierCascade *arg2 = (CvHaarClassifierCascade *) 0 ;
|
|
CvMemStorage *arg3 = (CvMemStorage *) 0 ;
|
|
double arg4 ;
|
|
bool freearg1 = false ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvTypedSeq< CvRect > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvHaarDetectObjects",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvHaarDetectObjects" "', argument " "2"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvHaarClassifierCascade * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvHaarDetectObjects" "', argument " "3"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvMemStorage * >(argp3);
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvHaarDetectObjects" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
result = (CvTypedSeq< CvRect > *)cvHaarDetectObjects_Shadow((void const *)arg1,arg2,arg3,arg4);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvRect_t, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvHaarDetectObjects__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvHaarClassifierCascade *arg2 = (CvHaarClassifierCascade *) 0 ;
|
|
CvMemStorage *arg3 = (CvMemStorage *) 0 ;
|
|
bool freearg1 = false ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvTypedSeq< CvRect > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvHaarDetectObjects",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvHaarDetectObjects" "', argument " "2"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvHaarClassifierCascade * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvHaarDetectObjects" "', argument " "3"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvMemStorage * >(argp3);
|
|
result = (CvTypedSeq< CvRect > *)cvHaarDetectObjects_Shadow((void const *)arg1,arg2,arg3);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvRect_t, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvHaarDetectObjects(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[8];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 7); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
{
|
|
_v = CvArr_Check( argv[0] );
|
|
}
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CvHaarClassifierCascade, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CvMemStorage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_cvHaarDetectObjects__SWIG_4(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 4) {
|
|
int _v;
|
|
{
|
|
_v = CvArr_Check( argv[0] );
|
|
}
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CvHaarClassifierCascade, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CvMemStorage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[3], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_cvHaarDetectObjects__SWIG_3(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 5) {
|
|
int _v;
|
|
{
|
|
_v = CvArr_Check( argv[0] );
|
|
}
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CvHaarClassifierCascade, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CvMemStorage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[3], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[4], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_cvHaarDetectObjects__SWIG_2(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 6) {
|
|
int _v;
|
|
{
|
|
_v = CvArr_Check( argv[0] );
|
|
}
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CvHaarClassifierCascade, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CvMemStorage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[3], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[4], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[5], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_cvHaarDetectObjects__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 7) {
|
|
int _v;
|
|
{
|
|
_v = CvArr_Check( argv[0] );
|
|
}
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CvHaarClassifierCascade, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CvMemStorage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[3], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[4], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[5], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_CvSize, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_cvHaarDetectObjects__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'cvHaarDetectObjects'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" cvHaarDetectObjects_Shadow(CvArr const *,CvHaarClassifierCascade *,CvMemStorage *,double,int,int,CvSize)\n"
|
|
" cvHaarDetectObjects_Shadow(CvArr const *,CvHaarClassifierCascade *,CvMemStorage *,double,int,int)\n"
|
|
" cvHaarDetectObjects_Shadow(CvArr const *,CvHaarClassifierCascade *,CvMemStorage *,double,int)\n"
|
|
" cvHaarDetectObjects_Shadow(CvArr const *,CvHaarClassifierCascade *,CvMemStorage *,double)\n"
|
|
" cvHaarDetectObjects_Shadow(CvArr const *,CvHaarClassifierCascade *,CvMemStorage *)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSegmentMotion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvMemStorage *arg3 = (CvMemStorage *) 0 ;
|
|
double arg4 ;
|
|
double arg5 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
CvTypedSeq< CvConnectedComp > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvSegmentMotion",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvSegmentMotion" "', argument " "3"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvMemStorage * >(argp3);
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvSegmentMotion" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
ecode5 = SWIG_AsVal_double(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvSegmentMotion" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
result = (CvTypedSeq< CvConnectedComp > *)cvSegmentMotion_Shadow((void const *)arg1,arg2,arg3,arg4,arg5);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvConnectedComp_t, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvApproxPoly__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void *arg1 = (void *) 0 ;
|
|
int arg2 ;
|
|
CvMemStorage *arg3 = (CvMemStorage *) 0 ;
|
|
int arg4 ;
|
|
double arg5 ;
|
|
int arg6 ;
|
|
int res1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
CvTypedSeq< CvPoint > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO:cvApproxPoly",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvApproxPoly" "', argument " "1"" of type '" "void const *""'");
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvApproxPoly" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvApproxPoly" "', argument " "3"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvMemStorage * >(argp3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvApproxPoly" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
ecode5 = SWIG_AsVal_double(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvApproxPoly" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvApproxPoly" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
result = (CvTypedSeq< CvPoint > *)cvApproxPoly_Shadow((void const *)arg1,arg2,arg3,arg4,arg5,arg6);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvPoint_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvApproxPoly__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void *arg1 = (void *) 0 ;
|
|
int arg2 ;
|
|
CvMemStorage *arg3 = (CvMemStorage *) 0 ;
|
|
int arg4 ;
|
|
double arg5 ;
|
|
int res1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
CvTypedSeq< CvPoint > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvApproxPoly",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvApproxPoly" "', argument " "1"" of type '" "void const *""'");
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvApproxPoly" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvApproxPoly" "', argument " "3"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvMemStorage * >(argp3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvApproxPoly" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
ecode5 = SWIG_AsVal_double(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvApproxPoly" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
result = (CvTypedSeq< CvPoint > *)cvApproxPoly_Shadow((void const *)arg1,arg2,arg3,arg4,arg5);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvPoint_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvApproxPoly(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[7];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 6); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 5) {
|
|
int _v;
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &ptr, 0, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CvMemStorage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[3], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[4], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_cvApproxPoly__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 6) {
|
|
int _v;
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &ptr, 0, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_CvMemStorage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[3], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[4], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[5], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_cvApproxPoly__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'cvApproxPoly'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" cvApproxPoly_Shadow(void const *,int,CvMemStorage *,int,double,int)\n"
|
|
" cvApproxPoly_Shadow(void const *,int,CvMemStorage *,int,double)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvConvexHull2__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvConvexHull2",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvConvexHull2" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvConvexHull2" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
result = (CvMat *)cvConvexHull2_Shadow((void const *)arg1,arg2,arg3);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvConvexHull2__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvConvexHull2",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvConvexHull2" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
result = (CvMat *)cvConvexHull2_Shadow((void const *)arg1,arg2);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvConvexHull2__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvConvexHull2",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
result = (CvMat *)cvConvexHull2_Shadow((void const *)arg1);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvConvexHull2(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[4];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
{
|
|
_v = CvArr_Check( argv[0] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_cvConvexHull2__SWIG_2(self, args);
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
{
|
|
_v = CvArr_Check( argv[0] );
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_cvConvexHull2__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
{
|
|
_v = CvArr_Check( argv[0] );
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_cvConvexHull2__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'cvConvexHull2'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" cvConvexHull2_Shadow(CvArr const *,int,int)\n"
|
|
" cvConvexHull2_Shadow(CvArr const *,int)\n"
|
|
" cvConvexHull2_Shadow(CvArr const *)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSnakeImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
std::vector< CvPoint,std::allocator< CvPoint > > arg2 ;
|
|
std::vector< float,std::allocator< float > > arg3 ;
|
|
std::vector< float,std::allocator< float > > arg4 ;
|
|
std::vector< float,std::allocator< float > > arg5 ;
|
|
CvSize arg6 ;
|
|
CvTermCriteria arg7 ;
|
|
int arg8 ;
|
|
bool freearg1 = false ;
|
|
CvSize temp6 ;
|
|
CvTermCriteria temp7 ;
|
|
int val8 ;
|
|
int ecode8 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
std::vector< CvPoint,std::allocator< CvPoint > > result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:cvSnakeImage",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
std::vector<CvPoint,std::allocator< CvPoint > > *ptr = (std::vector<CvPoint,std::allocator< CvPoint > > *)0;
|
|
int res = swig::asptr(obj1, &ptr);
|
|
if (!SWIG_IsOK(res) || !ptr) {
|
|
SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "cvSnakeImage" "', argument " "2"" of type '" "std::vector< CvPoint,std::allocator< CvPoint > >""'");
|
|
}
|
|
arg2 = *ptr;
|
|
if (SWIG_IsNewObj(res)) delete ptr;
|
|
}
|
|
{
|
|
std::vector<float,std::allocator< float > > *ptr = (std::vector<float,std::allocator< float > > *)0;
|
|
int res = swig::asptr(obj2, &ptr);
|
|
if (!SWIG_IsOK(res) || !ptr) {
|
|
SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "cvSnakeImage" "', argument " "3"" of type '" "std::vector< float,std::allocator< float > >""'");
|
|
}
|
|
arg3 = *ptr;
|
|
if (SWIG_IsNewObj(res)) delete ptr;
|
|
}
|
|
{
|
|
std::vector<float,std::allocator< float > > *ptr = (std::vector<float,std::allocator< float > > *)0;
|
|
int res = swig::asptr(obj3, &ptr);
|
|
if (!SWIG_IsOK(res) || !ptr) {
|
|
SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "cvSnakeImage" "', argument " "4"" of type '" "std::vector< float,std::allocator< float > >""'");
|
|
}
|
|
arg4 = *ptr;
|
|
if (SWIG_IsNewObj(res)) delete ptr;
|
|
}
|
|
{
|
|
std::vector<float,std::allocator< float > > *ptr = (std::vector<float,std::allocator< float > > *)0;
|
|
int res = swig::asptr(obj4, &ptr);
|
|
if (!SWIG_IsOK(res) || !ptr) {
|
|
SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "cvSnakeImage" "', argument " "5"" of type '" "std::vector< float,std::allocator< float > >""'");
|
|
}
|
|
arg5 = *ptr;
|
|
if (SWIG_IsNewObj(res)) delete ptr;
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj5))
|
|
{
|
|
if (!PyArg_ParseTuple(obj5,"ii", & temp6.width, & temp6.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg6 = temp6;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj5, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg6 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj6))
|
|
{
|
|
if (!PyArg_ParseTuple(obj6,"iid", & temp7.type, & temp7.max_iter, & temp7.epsilon))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers and a float (type, max_iter, epsilon)");
|
|
return NULL;
|
|
}
|
|
arg7 = temp7;
|
|
}
|
|
else
|
|
{
|
|
CvTermCriteria * ptr;
|
|
if (SWIG_ConvertPtr (obj6, (void **) & ptr, SWIGTYPE_p_CvTermCriteria, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvTermCriteria");
|
|
return NULL;
|
|
}
|
|
arg7 = *ptr;
|
|
}
|
|
}
|
|
ecode8 = SWIG_AsVal_int(obj7, &val8);
|
|
if (!SWIG_IsOK(ecode8)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "cvSnakeImage" "', argument " "8"" of type '" "int""'");
|
|
}
|
|
arg8 = static_cast< int >(val8);
|
|
result = cvSnakeImage_Shadow((CvMat const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
|
|
resultobj = swig::from(static_cast< std::vector<CvPoint,std::allocator< CvPoint > > >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSnakeImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
std::vector< CvPoint,std::allocator< CvPoint > > arg2 ;
|
|
std::vector< float,std::allocator< float > > arg3 ;
|
|
std::vector< float,std::allocator< float > > arg4 ;
|
|
std::vector< float,std::allocator< float > > arg5 ;
|
|
CvSize arg6 ;
|
|
CvTermCriteria arg7 ;
|
|
bool freearg1 = false ;
|
|
CvSize temp6 ;
|
|
CvTermCriteria temp7 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
std::vector< CvPoint,std::allocator< CvPoint > > result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:cvSnakeImage",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
std::vector<CvPoint,std::allocator< CvPoint > > *ptr = (std::vector<CvPoint,std::allocator< CvPoint > > *)0;
|
|
int res = swig::asptr(obj1, &ptr);
|
|
if (!SWIG_IsOK(res) || !ptr) {
|
|
SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "cvSnakeImage" "', argument " "2"" of type '" "std::vector< CvPoint,std::allocator< CvPoint > >""'");
|
|
}
|
|
arg2 = *ptr;
|
|
if (SWIG_IsNewObj(res)) delete ptr;
|
|
}
|
|
{
|
|
std::vector<float,std::allocator< float > > *ptr = (std::vector<float,std::allocator< float > > *)0;
|
|
int res = swig::asptr(obj2, &ptr);
|
|
if (!SWIG_IsOK(res) || !ptr) {
|
|
SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "cvSnakeImage" "', argument " "3"" of type '" "std::vector< float,std::allocator< float > >""'");
|
|
}
|
|
arg3 = *ptr;
|
|
if (SWIG_IsNewObj(res)) delete ptr;
|
|
}
|
|
{
|
|
std::vector<float,std::allocator< float > > *ptr = (std::vector<float,std::allocator< float > > *)0;
|
|
int res = swig::asptr(obj3, &ptr);
|
|
if (!SWIG_IsOK(res) || !ptr) {
|
|
SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "cvSnakeImage" "', argument " "4"" of type '" "std::vector< float,std::allocator< float > >""'");
|
|
}
|
|
arg4 = *ptr;
|
|
if (SWIG_IsNewObj(res)) delete ptr;
|
|
}
|
|
{
|
|
std::vector<float,std::allocator< float > > *ptr = (std::vector<float,std::allocator< float > > *)0;
|
|
int res = swig::asptr(obj4, &ptr);
|
|
if (!SWIG_IsOK(res) || !ptr) {
|
|
SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "cvSnakeImage" "', argument " "5"" of type '" "std::vector< float,std::allocator< float > >""'");
|
|
}
|
|
arg5 = *ptr;
|
|
if (SWIG_IsNewObj(res)) delete ptr;
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj5))
|
|
{
|
|
if (!PyArg_ParseTuple(obj5,"ii", & temp6.width, & temp6.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg6 = temp6;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj5, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg6 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj6))
|
|
{
|
|
if (!PyArg_ParseTuple(obj6,"iid", & temp7.type, & temp7.max_iter, & temp7.epsilon))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers and a float (type, max_iter, epsilon)");
|
|
return NULL;
|
|
}
|
|
arg7 = temp7;
|
|
}
|
|
else
|
|
{
|
|
CvTermCriteria * ptr;
|
|
if (SWIG_ConvertPtr (obj6, (void **) & ptr, SWIGTYPE_p_CvTermCriteria, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvTermCriteria");
|
|
return NULL;
|
|
}
|
|
arg7 = *ptr;
|
|
}
|
|
}
|
|
result = cvSnakeImage_Shadow((CvMat const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
|
resultobj = swig::from(static_cast< std::vector<CvPoint,std::allocator< CvPoint > > >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSnakeImage(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[9];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 8); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 7) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = swig::asptr(argv[1], (std::vector<CvPoint,std::allocator< CvPoint > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = swig::asptr(argv[2], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = swig::asptr(argv[3], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = swig::asptr(argv[4], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_CvSize, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_CvTermCriteria, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_cvSnakeImage__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 8) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = swig::asptr(argv[1], (std::vector<CvPoint,std::allocator< CvPoint > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = swig::asptr(argv[2], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = swig::asptr(argv[3], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = swig::asptr(argv[4], (std::vector<float,std::allocator< float > >**)(0));
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_ConvertPtr(argv[5], 0, SWIGTYPE_p_CvSize, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_ConvertPtr(argv[6], 0, SWIGTYPE_p_CvTermCriteria, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[7], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_cvSnakeImage__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'cvSnakeImage'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" cvSnakeImage_Shadow(CvMat const *,std::vector< CvPoint,std::allocator< CvPoint > >,std::vector< float,std::allocator< float > >,std::vector< float,std::allocator< float > >,std::vector< float,std::allocator< float > >,CvSize,CvTermCriteria,int)\n"
|
|
" cvSnakeImage_Shadow(CvMat const *,std::vector< CvPoint,std::allocator< CvPoint > >,std::vector< float,std::allocator< float > >,std::vector< float,std::allocator< float > >,std::vector< float,std::allocator< float > >,CvSize,CvTermCriteria)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void **arg1 = (void **) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvFree",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_p_void, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvFree" "', argument " "1"" of type '" "void **""'");
|
|
}
|
|
arg1 = reinterpret_cast< void ** >(argp1);
|
|
cvFree(arg1);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_READ_CHAIN_POINT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint arg1 ;
|
|
CvChainPtReader arg2 ;
|
|
CvPoint temp1 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CV_READ_CHAIN_POINT",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"ii", & temp1.x, & temp1.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CvChainPtReader, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CV_READ_CHAIN_POINT" "', argument " "2"" of type '" "CvChainPtReader""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CV_READ_CHAIN_POINT" "', argument " "2"" of type '" "CvChainPtReader""'");
|
|
} else {
|
|
CvChainPtReader * temp = reinterpret_cast< CvChainPtReader * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
CV_READ_CHAIN_POINT(arg1,arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_MAT_ELEM_PTR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *argp1 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
void *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CV_MAT_ELEM_PTR",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CvMat, 0 | 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_MAT_ELEM_PTR" "', argument " "1"" of type '" "CvMat""'");
|
|
}
|
|
if (!argp1) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CV_MAT_ELEM_PTR" "', argument " "1"" of type '" "CvMat""'");
|
|
} else {
|
|
CvMat * temp = reinterpret_cast< CvMat * >(argp1);
|
|
arg1 = *temp;
|
|
if (SWIG_IsNewObj(res1)) delete temp;
|
|
}
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CV_MAT_ELEM_PTR" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CV_MAT_ELEM_PTR" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
result = (void *)CV_MAT_ELEM_PTR(arg1,arg2,arg3);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_MAT_ELEM_PTR_FAST(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
void *argp1 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
void *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:CV_MAT_ELEM_PTR_FAST",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CvMat, 0 | 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_MAT_ELEM_PTR_FAST" "', argument " "1"" of type '" "CvMat""'");
|
|
}
|
|
if (!argp1) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CV_MAT_ELEM_PTR_FAST" "', argument " "1"" of type '" "CvMat""'");
|
|
} else {
|
|
CvMat * temp = reinterpret_cast< CvMat * >(argp1);
|
|
arg1 = *temp;
|
|
if (SWIG_IsNewObj(res1)) delete temp;
|
|
}
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CV_MAT_ELEM_PTR_FAST" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CV_MAT_ELEM_PTR_FAST" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CV_MAT_ELEM_PTR_FAST" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
result = (void *)CV_MAT_ELEM_PTR_FAST(arg1,arg2,arg3,arg4);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_NODE_VAL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
CvSparseNode *arg2 = (CvSparseNode *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
void *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CV_NODE_VAL",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_NODE_VAL" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSparseNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CV_NODE_VAL" "', argument " "2"" of type '" "CvSparseNode *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSparseNode * >(argp2);
|
|
result = (void *)CV_NODE_VAL(arg1,arg2);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_NODE_IDX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
CvSparseNode *arg2 = (CvSparseNode *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
int *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CV_NODE_IDX",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_NODE_IDX" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSparseNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CV_NODE_IDX" "', argument " "2"" of type '" "CvSparseNode *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSparseNode * >(argp2);
|
|
result = (int *)CV_NODE_IDX(arg1,arg2);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_SUBDIV2D_NEXT_EDGE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DEdge arg1 ;
|
|
CvSubdiv2DEdge_Wrapper *wrapper1 ;
|
|
CvQuadEdge2D *qedge1 ;
|
|
void *vptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvQuadEdge2D *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_SUBDIV2D_NEXT_EDGE",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 0) != -1 ){
|
|
wrapper1 = (CvSubdiv2DEdge_Wrapper *) vptr1;
|
|
arg1 = wrapper1->ref();
|
|
}
|
|
else if( SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_CvQuadEdge2D, 0) != -1 ){
|
|
qedge1 = (CvQuadEdge2D *) vptr1;
|
|
arg1 = (CvSubdiv2DEdge)qedge1;
|
|
}
|
|
else{
|
|
SWIG_exception( SWIG_TypeError, "could not convert to CvSubdiv2DEdge");
|
|
return NULL;
|
|
}
|
|
}
|
|
result = (CvQuadEdge2D *)CV_SUBDIV2D_NEXT_EDGE(arg1);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvQuadEdge2D, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_SWAP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CV_SWAP",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_SWAP" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CV_SWAP" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CV_SWAP" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
CV_SWAP(arg1,arg2,arg3);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IMIN(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CV_IMIN",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_IMIN" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CV_IMIN" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
result = (int)CV_IMIN(arg1,arg2);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IMAX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CV_IMAX",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_IMAX" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CV_IMAX" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
result = (int)CV_IMAX(arg1,arg2);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IABS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IABS",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_IABS" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_IABS(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_CMP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CV_CMP",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_CMP" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CV_CMP" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
CV_CMP(arg1,arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_SIGN(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_SIGN",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_SIGN" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
CV_SIGN(arg1);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvInvSqrt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvInvSqrt",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvInvSqrt" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
cvInvSqrt(arg1);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSqrt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvSqrt",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvSqrt" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
cvSqrt(arg1);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_IMAGE_HDR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_IMAGE_HDR",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
result = (int)CV_IS_IMAGE_HDR(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_IMAGE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_IMAGE",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
result = (int)CV_IS_IMAGE(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_MAT_DEPTH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_MAT_DEPTH",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_MAT_DEPTH" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_MAT_DEPTH(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_MAKETYPE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CV_MAKETYPE",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_MAKETYPE" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CV_MAKETYPE" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
result = (int)CV_MAKETYPE(arg1,arg2);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_8UC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_8UC",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_8UC" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_8UC(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_8SC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_8SC",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_8SC" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_8SC(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_16UC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_16UC",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_16UC" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_16UC(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_16SC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_16SC",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_16SC" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_16SC(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_32SC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_32SC",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_32SC" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_32SC(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_32FC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_32FC",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_32FC" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_32FC(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_64FC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_64FC",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_64FC" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_64FC(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_MAT_CN(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_MAT_CN",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_MAT_CN" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_MAT_CN(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_MAT_TYPE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_MAT_TYPE",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_MAT_TYPE" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_MAT_TYPE(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_MAT_CONT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_MAT_CONT",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_IS_MAT_CONT" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_IS_MAT_CONT(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_TEMP_MAT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_TEMP_MAT",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_IS_TEMP_MAT" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_IS_TEMP_MAT(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_MAT_HDR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_MAT_HDR",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
result = (int)CV_IS_MAT_HDR(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_MAT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_MAT",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
result = (int)CV_IS_MAT(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_MASK_ARR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_MASK_ARR",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
result = (int)CV_IS_MASK_ARR(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_ARE_TYPES_EQ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CV_ARE_TYPES_EQ",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
result = (int)CV_ARE_TYPES_EQ(arg1,arg2);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_ARE_CNS_EQ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CV_ARE_CNS_EQ",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
result = (int)CV_ARE_CNS_EQ(arg1,arg2);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_ARE_DEPTHS_EQ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CV_ARE_DEPTHS_EQ",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
result = (int)CV_ARE_DEPTHS_EQ(arg1,arg2);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_ARE_SIZES_EQ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CV_ARE_SIZES_EQ",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
result = (int)CV_ARE_SIZES_EQ(arg1,arg2);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_MAT_CONST(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_MAT_CONST",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
result = (int)CV_IS_MAT_CONST(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_ELEM_SIZE1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_ELEM_SIZE1",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_ELEM_SIZE1" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_ELEM_SIZE1(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_ELEM_SIZE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_ELEM_SIZE",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_ELEM_SIZE" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_ELEM_SIZE(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_MATND_HDR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_MATND_HDR",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
result = (int)CV_IS_MATND_HDR(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_MATND(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_MATND",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
result = (int)CV_IS_MATND(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SPARSE_MAT_HDR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SPARSE_MAT_HDR",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
result = (int)CV_IS_SPARSE_MAT_HDR(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SPARSE_MAT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SPARSE_MAT",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
result = (int)CV_IS_SPARSE_MAT(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_HIST(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_HIST",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_IS_HIST" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
result = (int)CV_IS_HIST(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_UNIFORM_HIST(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_UNIFORM_HIST",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_IS_UNIFORM_HIST" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
result = (int)CV_IS_UNIFORM_HIST(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SPARSE_HIST(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SPARSE_HIST",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_IS_SPARSE_HIST" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
result = (int)CV_IS_SPARSE_HIST(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_HIST_HAS_RANGES(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_HIST_HAS_RANGES",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_HIST_HAS_RANGES" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
result = (int)CV_HIST_HAS_RANGES(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_STORAGE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_STORAGE",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_IS_STORAGE" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
result = (int)CV_IS_STORAGE(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SET_ELEM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void *arg1 = (void *) 0 ;
|
|
int res1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SET_ELEM",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_IS_SET_ELEM" "', argument " "1"" of type '" "void *""'");
|
|
}
|
|
result = (int)CV_IS_SET_ELEM(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SEQ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SEQ",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_IS_SEQ(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SET(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SET",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
result = (int)CV_IS_SET(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_SEQ_ELTYPE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_SEQ_ELTYPE",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_SEQ_ELTYPE(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_SEQ_KIND(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_SEQ_KIND",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_SEQ_KIND(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SEQ_INDEX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SEQ_INDEX",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_IS_SEQ_INDEX(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SEQ_CURVE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SEQ_CURVE",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_IS_SEQ_CURVE(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SEQ_CLOSED(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SEQ_CLOSED",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_IS_SEQ_CLOSED(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SEQ_CONVEX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SEQ_CONVEX",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_IS_SEQ_CONVEX(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SEQ_HOLE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SEQ_HOLE",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_IS_SEQ_HOLE(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SEQ_SIMPLE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SEQ_SIMPLE",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_IS_SEQ_SIMPLE(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SEQ_POINT_SET(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SEQ_POINT_SET",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_IS_SEQ_POINT_SET(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SEQ_POINT_SUBSET(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SEQ_POINT_SUBSET",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_IS_SEQ_POINT_SUBSET(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SEQ_POLYLINE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SEQ_POLYLINE",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_IS_SEQ_POLYLINE(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SEQ_POLYGON(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SEQ_POLYGON",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_IS_SEQ_POLYGON(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SEQ_CHAIN(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SEQ_CHAIN",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_IS_SEQ_CHAIN(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SEQ_CONTOUR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SEQ_CONTOUR",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_IS_SEQ_CONTOUR(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SEQ_CHAIN_CONTOUR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SEQ_CHAIN_CONTOUR",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_IS_SEQ_CHAIN_CONTOUR(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SEQ_POLYGON_TREE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SEQ_POLYGON_TREE",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_IS_SEQ_POLYGON_TREE(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_GRAPH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_GRAPH",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_IS_GRAPH(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_GRAPH_ORIENTED(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_GRAPH_ORIENTED",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_IS_GRAPH_ORIENTED(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_SUBDIV2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_SUBDIV2D",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_IS_SUBDIV2D(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_WRITE_SEQ_ELEM_VAR(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void *arg1 = (void *) 0 ;
|
|
CvSeqWriter arg2 ;
|
|
int res1 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CV_WRITE_SEQ_ELEM_VAR",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_WRITE_SEQ_ELEM_VAR" "', argument " "1"" of type '" "void *""'");
|
|
}
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CvSeqWriter, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CV_WRITE_SEQ_ELEM_VAR" "', argument " "2"" of type '" "CvSeqWriter""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CV_WRITE_SEQ_ELEM_VAR" "', argument " "2"" of type '" "CvSeqWriter""'");
|
|
} else {
|
|
CvSeqWriter * temp = reinterpret_cast< CvSeqWriter * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
CV_WRITE_SEQ_ELEM_VAR(arg1,arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_WRITE_SEQ_ELEM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint arg1 ;
|
|
CvSeqWriter arg2 ;
|
|
CvPoint temp1 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CV_WRITE_SEQ_ELEM",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"ii", & temp1.x, & temp1.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CvSeqWriter, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CV_WRITE_SEQ_ELEM" "', argument " "2"" of type '" "CvSeqWriter""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CV_WRITE_SEQ_ELEM" "', argument " "2"" of type '" "CvSeqWriter""'");
|
|
} else {
|
|
CvSeqWriter * temp = reinterpret_cast< CvSeqWriter * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
CV_WRITE_SEQ_ELEM(arg1,arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_NEXT_SEQ_ELEM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
CvSeqReader arg2 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CV_NEXT_SEQ_ELEM",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_NEXT_SEQ_ELEM" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CvSeqReader, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CV_NEXT_SEQ_ELEM" "', argument " "2"" of type '" "CvSeqReader""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CV_NEXT_SEQ_ELEM" "', argument " "2"" of type '" "CvSeqReader""'");
|
|
} else {
|
|
CvSeqReader * temp = reinterpret_cast< CvSeqReader * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
CV_NEXT_SEQ_ELEM(arg1,arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_PREV_SEQ_ELEM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
CvSeqReader arg2 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CV_PREV_SEQ_ELEM",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_PREV_SEQ_ELEM" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CvSeqReader, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CV_PREV_SEQ_ELEM" "', argument " "2"" of type '" "CvSeqReader""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CV_PREV_SEQ_ELEM" "', argument " "2"" of type '" "CvSeqReader""'");
|
|
} else {
|
|
CvSeqReader * temp = reinterpret_cast< CvSeqReader * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
CV_PREV_SEQ_ELEM(arg1,arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_READ_SEQ_ELEM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint arg1 ;
|
|
CvSeqReader arg2 ;
|
|
CvPoint temp1 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CV_READ_SEQ_ELEM",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"ii", & temp1.x, & temp1.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CvSeqReader, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CV_READ_SEQ_ELEM" "', argument " "2"" of type '" "CvSeqReader""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CV_READ_SEQ_ELEM" "', argument " "2"" of type '" "CvSeqReader""'");
|
|
} else {
|
|
CvSeqReader * temp = reinterpret_cast< CvSeqReader * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
CV_READ_SEQ_ELEM(arg1,arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_REV_READ_SEQ_ELEM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint arg1 ;
|
|
CvSeqReader arg2 ;
|
|
CvPoint temp1 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CV_REV_READ_SEQ_ELEM",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"ii", & temp1.x, & temp1.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_CvSeqReader, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CV_REV_READ_SEQ_ELEM" "', argument " "2"" of type '" "CvSeqReader""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CV_REV_READ_SEQ_ELEM" "', argument " "2"" of type '" "CvSeqReader""'");
|
|
} else {
|
|
CvSeqReader * temp = reinterpret_cast< CvSeqReader * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
CV_REV_READ_SEQ_ELEM(arg1,arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_CURRENT_POINT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader arg1 ;
|
|
void *argp1 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_CURRENT_POINT",&obj0)) SWIG_fail;
|
|
{
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CvSeqReader, 0 | 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_CURRENT_POINT" "', argument " "1"" of type '" "CvSeqReader""'");
|
|
}
|
|
if (!argp1) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CV_CURRENT_POINT" "', argument " "1"" of type '" "CvSeqReader""'");
|
|
} else {
|
|
CvSeqReader * temp = reinterpret_cast< CvSeqReader * >(argp1);
|
|
arg1 = *temp;
|
|
if (SWIG_IsNewObj(res1)) delete temp;
|
|
}
|
|
}
|
|
result = CV_CURRENT_POINT(arg1);
|
|
resultobj = SWIG_NewPointerObj((new CvPoint(static_cast< const CvPoint& >(result))), SWIGTYPE_p_CvPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_PREV_POINT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader arg1 ;
|
|
void *argp1 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_PREV_POINT",&obj0)) SWIG_fail;
|
|
{
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CvSeqReader, 0 | 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_PREV_POINT" "', argument " "1"" of type '" "CvSeqReader""'");
|
|
}
|
|
if (!argp1) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CV_PREV_POINT" "', argument " "1"" of type '" "CvSeqReader""'");
|
|
} else {
|
|
CvSeqReader * temp = reinterpret_cast< CvSeqReader * >(argp1);
|
|
arg1 = *temp;
|
|
if (SWIG_IsNewObj(res1)) delete temp;
|
|
}
|
|
}
|
|
result = CV_PREV_POINT(arg1);
|
|
resultobj = SWIG_NewPointerObj((new CvPoint(static_cast< const CvPoint& >(result))), SWIGTYPE_p_CvPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_READ_EDGE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint arg1 ;
|
|
CvPoint arg2 ;
|
|
CvSeqReader arg3 ;
|
|
CvPoint temp1 ;
|
|
CvPoint temp2 ;
|
|
void *argp3 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CV_READ_EDGE",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"ii", & temp1.x, & temp1.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ii", & temp2.x, & temp2.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CvSeqReader, 0 | 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CV_READ_EDGE" "', argument " "3"" of type '" "CvSeqReader""'");
|
|
}
|
|
if (!argp3) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CV_READ_EDGE" "', argument " "3"" of type '" "CvSeqReader""'");
|
|
} else {
|
|
CvSeqReader * temp = reinterpret_cast< CvSeqReader * >(argp3);
|
|
arg3 = *temp;
|
|
if (SWIG_IsNewObj(res3)) delete temp;
|
|
}
|
|
}
|
|
CV_READ_EDGE(arg1,arg2,arg3);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_NEXT_GRAPH_EDGE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphEdge *arg1 = (CvGraphEdge *) 0 ;
|
|
CvGraphVtx *arg2 = (CvGraphVtx *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvGraphEdge *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CV_NEXT_GRAPH_EDGE",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_NEXT_GRAPH_EDGE" "', argument " "1"" of type '" "CvGraphEdge *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphEdge * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CV_NEXT_GRAPH_EDGE" "', argument " "2"" of type '" "CvGraphVtx *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvGraphVtx * >(argp2);
|
|
result = (CvGraphEdge *)CV_NEXT_GRAPH_EDGE(arg1,arg2);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_NODE_TYPE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_NODE_TYPE",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_NODE_TYPE" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_NODE_TYPE(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_NODE_IS_INT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_NODE_IS_INT",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_NODE_IS_INT" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_NODE_IS_INT(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_NODE_IS_REAL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_NODE_IS_REAL",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_NODE_IS_REAL" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_NODE_IS_REAL(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_NODE_IS_STRING(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_NODE_IS_STRING",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_NODE_IS_STRING" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_NODE_IS_STRING(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_NODE_IS_SEQ(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_NODE_IS_SEQ",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_NODE_IS_SEQ" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_NODE_IS_SEQ(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_NODE_IS_MAP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_NODE_IS_MAP",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_NODE_IS_MAP" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_NODE_IS_MAP(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_NODE_IS_COLLECTION(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_NODE_IS_COLLECTION",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_NODE_IS_COLLECTION" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_NODE_IS_COLLECTION(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_NODE_IS_FLOW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_NODE_IS_FLOW",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_NODE_IS_FLOW" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_NODE_IS_FLOW(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_NODE_IS_EMPTY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_NODE_IS_EMPTY",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_NODE_IS_EMPTY" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_NODE_IS_EMPTY(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_NODE_IS_USER(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_NODE_IS_USER",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_NODE_IS_USER" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_NODE_IS_USER(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_NODE_HAS_NAME(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_NODE_HAS_NAME",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_NODE_HAS_NAME" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
result = (int)CV_NODE_HAS_NAME(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_NODE_SEQ_IS_SIMPLE(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_NODE_SEQ_IS_SIMPLE",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int)CV_NODE_SEQ_IS_SIMPLE(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReshapeND(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
int *arg5 = (int *) 0 ;
|
|
bool freearg1 = false ;
|
|
CvMat *header2 ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
{
|
|
header2 = (CvMat *)cvAlloc(sizeof(CvMat));
|
|
arg2 = header2;
|
|
}
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvReshapeND",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj1, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvReshapeND" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj2, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvReshapeND" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
res5 = SWIG_ConvertPtr(obj3, &argp5,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvReshapeND" "', argument " "5"" of type '" "int *""'");
|
|
}
|
|
arg5 = reinterpret_cast< int * >(argp5);
|
|
cvReshapeND(arg1,arg2,arg3,arg4,arg5);
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvConvert",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
cvConvert(arg1,arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAXPY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
double arg2 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvAXPY",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvAXPY" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
cvAXPY(arg1,arg2,arg3,arg4);
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAbs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvAbs",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
cvAbs(arg1,arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMatMulAdd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvMatMulAdd",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
cvMatMulAdd(arg1,arg2,arg3,arg4);
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMatMul(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvMatMul",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
cvMatMul(arg1,arg2,arg3);
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetGraphVtx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGetGraphVtx",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvGetGraphVtx" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
cvGetGraphVtx(arg1,arg2);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGraphVtxIdx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvGraphVtx *arg2 = (CvGraphVtx *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGraphVtxIdx",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvGraphVtxIdx" "', argument " "2"" of type '" "CvGraphVtx *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvGraphVtx * >(argp2);
|
|
result = (int)cvGraphVtxIdx(arg1,arg2);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGraphEdgeIdx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvGraphEdge *arg2 = (CvGraphEdge *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGraphEdgeIdx",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvGraphEdgeIdx" "', argument " "2"" of type '" "CvGraphEdge *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvGraphEdge * >(argp2);
|
|
result = (int)cvGraphEdgeIdx(arg1,arg2);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGraphGetVtxCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvGraphGetVtxCount",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (int)cvGraphGetVtxCount(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGraphGetEdgeCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvGraphGetEdgeCount",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (int)cvGraphGetEdgeCount(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_GRAPH_VERTEX_VISITED(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphVtx *arg1 = (CvGraphVtx *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_GRAPH_VERTEX_VISITED",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_IS_GRAPH_VERTEX_VISITED" "', argument " "1"" of type '" "CvGraphVtx *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphVtx * >(argp1);
|
|
result = (int)CV_IS_GRAPH_VERTEX_VISITED(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_GRAPH_EDGE_VISITED(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphEdge *arg1 = (CvGraphEdge *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_GRAPH_EDGE_VISITED",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_IS_GRAPH_EDGE_VISITED" "', argument " "1"" of type '" "CvGraphEdge *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphEdge * >(argp1);
|
|
result = (int)CV_IS_GRAPH_EDGE_VISITED(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_RGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double arg2 ;
|
|
int arg3 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvScalar result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CV_RGB",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "CV_RGB" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CV_RGB" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CV_RGB" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
result = CV_RGB(arg1,arg2,arg3);
|
|
resultobj = SWIG_NewPointerObj((new CvScalar(static_cast< const CvScalar& >(result))), SWIGTYPE_p_CvScalar, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_NEXT_LINE_POINT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLineIterator arg1 ;
|
|
void *argp1 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_NEXT_LINE_POINT",&obj0)) SWIG_fail;
|
|
{
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CvLineIterator, 0 | 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_NEXT_LINE_POINT" "', argument " "1"" of type '" "CvLineIterator""'");
|
|
}
|
|
if (!argp1) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CV_NEXT_LINE_POINT" "', argument " "1"" of type '" "CvLineIterator""'");
|
|
} else {
|
|
CvLineIterator * temp = reinterpret_cast< CvLineIterator * >(argp1);
|
|
arg1 = *temp;
|
|
if (SWIG_IsNewObj(res1)) delete temp;
|
|
}
|
|
}
|
|
CV_NEXT_LINE_POINT(arg1);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_INIT_3X3_DELTAS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double *arg1 = (double *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CV_INIT_3X3_DELTAS",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_double, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_INIT_3X3_DELTAS" "', argument " "1"" of type '" "double *""'");
|
|
}
|
|
arg1 = reinterpret_cast< double * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CV_INIT_3X3_DELTAS" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CV_INIT_3X3_DELTAS" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
CV_INIT_3X3_DELTAS(arg1,arg2,arg3);
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CV_IS_HAAR_CLASSIFIER(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void *arg1 = (void *) 0 ;
|
|
int res1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CV_IS_HAAR_CLASSIFIER",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CV_IS_HAAR_CLASSIFIER" "', argument " "1"" of type '" "void *""'");
|
|
}
|
|
result = (int)CV_IS_HAAR_CLASSIFIER(arg1);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvContourPerimeter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvContourPerimeter",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (double)cvContourPerimeter(arg1);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcBackProject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvHistogram *arg3 = (CvHistogram *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvCalcBackProject",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvCalcBackProject" "', argument " "1"" of type '" "IplImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplImage * >(argp1);
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvCalcBackProject" "', argument " "3"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvHistogram * >(argp3);
|
|
cvCalcBackProject(arg1,arg2,arg3);
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcBackProjectPatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvSize arg3 ;
|
|
CvHistogram *arg4 = (CvHistogram *) 0 ;
|
|
int arg5 ;
|
|
double arg6 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
CvSize temp3 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
double val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO:cvCalcBackProjectPatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvCalcBackProjectPatch" "', argument " "1"" of type '" "IplImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplImage * >(argp1);
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ii", & temp3.width, & temp3.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvCalcBackProjectPatch" "', argument " "4"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvHistogram * >(argp4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvCalcBackProjectPatch" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
ecode6 = SWIG_AsVal_double(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvCalcBackProjectPatch" "', argument " "6"" of type '" "double""'");
|
|
}
|
|
arg6 = static_cast< double >(val6);
|
|
cvCalcBackProjectPatch(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSize arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
CvSize temp1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvCreateImage",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"ii", & temp1.width, & temp1.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCreateImage" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateImage" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (CvMat *)cvCreateImageMat(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCloneImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvCloneImage",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)cvCloneImageMat(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Cv32suf_i_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
Cv32suf *arg1 = (Cv32suf *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:Cv32suf_i_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Cv32suf, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cv32suf_i_set" "', argument " "1"" of type '" "Cv32suf *""'");
|
|
}
|
|
arg1 = reinterpret_cast< Cv32suf * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cv32suf_i_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->i = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Cv32suf_i_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
Cv32suf *arg1 = (Cv32suf *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:Cv32suf_i_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Cv32suf, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cv32suf_i_get" "', argument " "1"" of type '" "Cv32suf *""'");
|
|
}
|
|
arg1 = reinterpret_cast< Cv32suf * >(argp1);
|
|
result = (int) ((arg1)->i);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Cv32suf_u_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
Cv32suf *arg1 = (Cv32suf *) 0 ;
|
|
unsigned int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:Cv32suf_u_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Cv32suf, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cv32suf_u_set" "', argument " "1"" of type '" "Cv32suf *""'");
|
|
}
|
|
arg1 = reinterpret_cast< Cv32suf * >(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cv32suf_u_set" "', argument " "2"" of type '" "unsigned int""'");
|
|
}
|
|
arg2 = static_cast< unsigned int >(val2);
|
|
if (arg1) (arg1)->u = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Cv32suf_u_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
Cv32suf *arg1 = (Cv32suf *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
unsigned int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:Cv32suf_u_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Cv32suf, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cv32suf_u_get" "', argument " "1"" of type '" "Cv32suf *""'");
|
|
}
|
|
arg1 = reinterpret_cast< Cv32suf * >(argp1);
|
|
result = (unsigned int) ((arg1)->u);
|
|
resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Cv32suf_f_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
Cv32suf *arg1 = (Cv32suf *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:Cv32suf_f_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Cv32suf, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cv32suf_f_set" "', argument " "1"" of type '" "Cv32suf *""'");
|
|
}
|
|
arg1 = reinterpret_cast< Cv32suf * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cv32suf_f_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->f = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Cv32suf_f_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
Cv32suf *arg1 = (Cv32suf *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:Cv32suf_f_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Cv32suf, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cv32suf_f_get" "', argument " "1"" of type '" "Cv32suf *""'");
|
|
}
|
|
arg1 = reinterpret_cast< Cv32suf * >(argp1);
|
|
result = (float) ((arg1)->f);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_Cv32suf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
Cv32suf *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_Cv32suf")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (Cv32suf *)new Cv32suf();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Cv32suf, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_Cv32suf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
Cv32suf *arg1 = (Cv32suf *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_Cv32suf",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Cv32suf, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cv32suf" "', argument " "1"" of type '" "Cv32suf *""'");
|
|
}
|
|
arg1 = reinterpret_cast< Cv32suf * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Cv32suf_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_Cv32suf, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_Cv64suf_i_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
Cv64suf *arg1 = (Cv64suf *) 0 ;
|
|
int64 arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:Cv64suf_i_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Cv64suf, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cv64suf_i_set" "', argument " "1"" of type '" "Cv64suf *""'");
|
|
}
|
|
arg1 = reinterpret_cast< Cv64suf * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_int64_t, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Cv64suf_i_set" "', argument " "2"" of type '" "int64""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Cv64suf_i_set" "', argument " "2"" of type '" "int64""'");
|
|
} else {
|
|
int64 * temp = reinterpret_cast< int64 * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
if (arg1) (arg1)->i = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Cv64suf_i_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
Cv64suf *arg1 = (Cv64suf *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int64 result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:Cv64suf_i_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Cv64suf, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cv64suf_i_get" "', argument " "1"" of type '" "Cv64suf *""'");
|
|
}
|
|
arg1 = reinterpret_cast< Cv64suf * >(argp1);
|
|
result = ((arg1)->i);
|
|
resultobj = SWIG_NewPointerObj((new int64(static_cast< const int64& >(result))), SWIGTYPE_p_int64_t, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Cv64suf_u_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
Cv64suf *arg1 = (Cv64suf *) 0 ;
|
|
uint64 arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:Cv64suf_u_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Cv64suf, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cv64suf_u_set" "', argument " "1"" of type '" "Cv64suf *""'");
|
|
}
|
|
arg1 = reinterpret_cast< Cv64suf * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_uint64_t, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Cv64suf_u_set" "', argument " "2"" of type '" "uint64""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Cv64suf_u_set" "', argument " "2"" of type '" "uint64""'");
|
|
} else {
|
|
uint64 * temp = reinterpret_cast< uint64 * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
if (arg1) (arg1)->u = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Cv64suf_u_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
Cv64suf *arg1 = (Cv64suf *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
uint64 result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:Cv64suf_u_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Cv64suf, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cv64suf_u_get" "', argument " "1"" of type '" "Cv64suf *""'");
|
|
}
|
|
arg1 = reinterpret_cast< Cv64suf * >(argp1);
|
|
result = ((arg1)->u);
|
|
resultobj = SWIG_NewPointerObj((new uint64(static_cast< const uint64& >(result))), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Cv64suf_f_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
Cv64suf *arg1 = (Cv64suf *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:Cv64suf_f_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Cv64suf, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cv64suf_f_set" "', argument " "1"" of type '" "Cv64suf *""'");
|
|
}
|
|
arg1 = reinterpret_cast< Cv64suf * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cv64suf_f_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->f = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Cv64suf_f_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
Cv64suf *arg1 = (Cv64suf *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:Cv64suf_f_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Cv64suf, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cv64suf_f_get" "', argument " "1"" of type '" "Cv64suf *""'");
|
|
}
|
|
arg1 = reinterpret_cast< Cv64suf * >(argp1);
|
|
result = (double) ((arg1)->f);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_Cv64suf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
Cv64suf *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_Cv64suf")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (Cv64suf *)new Cv64suf();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Cv64suf, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_Cv64suf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
Cv64suf *arg1 = (Cv64suf *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_Cv64suf",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_Cv64suf, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cv64suf" "', argument " "1"" of type '" "Cv64suf *""'");
|
|
}
|
|
arg1 = reinterpret_cast< Cv64suf * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Cv64suf_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_Cv64suf, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRound(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvRound",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvRound" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
{
|
|
try {
|
|
result = (int)cvRound(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFloor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvFloor",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvFloor" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
{
|
|
try {
|
|
result = (int)cvFloor(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCeil(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvCeil",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvCeil" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
{
|
|
try {
|
|
result = (int)cvCeil(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvIsNaN(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvIsNaN",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvIsNaN" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
{
|
|
try {
|
|
result = (int)cvIsNaN(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvIsInf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvIsInf",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvIsInf" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
{
|
|
try {
|
|
result = (int)cvIsInf(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRNG__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int64 arg1 ;
|
|
void *argp1 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvRNG result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvRNG",&obj0)) SWIG_fail;
|
|
{
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_int64_t, 0 | 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvRNG" "', argument " "1"" of type '" "int64""'");
|
|
}
|
|
if (!argp1) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cvRNG" "', argument " "1"" of type '" "int64""'");
|
|
} else {
|
|
int64 * temp = reinterpret_cast< int64 * >(argp1);
|
|
arg1 = *temp;
|
|
if (SWIG_IsNewObj(res1)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = cvRNG(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
CvRNG_Wrapper * wrapper = new CvRNG_Wrapper( result );
|
|
resultobj = SWIG_NewPointerObj( wrapper, SWIGTYPE_p_CvRNG_Wrapper, 1 );
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRNG__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRNG result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":cvRNG")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = cvRNG();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
CvRNG_Wrapper * wrapper = new CvRNG_Wrapper( result );
|
|
resultobj = SWIG_NewPointerObj( wrapper, SWIGTYPE_p_CvRNG_Wrapper, 1 );
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRNG(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[2];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 1); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 0) {
|
|
return _wrap_cvRNG__SWIG_1(self, args);
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_int64_t, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_cvRNG__SWIG_0(self, args);
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'cvRNG'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" cvRNG(int64)\n"
|
|
" cvRNG()\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRandInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRNG *arg1 = (CvRNG *) 0 ;
|
|
void *vptr1 ;
|
|
CvRNG_Wrapper *wrapper1 ;
|
|
PyObject * obj0 = 0 ;
|
|
unsigned int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvRandInt",&obj0)) SWIG_fail;
|
|
{
|
|
if(SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_CvRNG_Wrapper, 0)==-1){
|
|
SWIG_exception( SWIG_TypeError, "could not convert Python object to C value");
|
|
return NULL;
|
|
}
|
|
wrapper1 = (CvRNG_Wrapper *) vptr1;
|
|
arg1 = wrapper1->ptr();
|
|
}
|
|
{
|
|
try {
|
|
result = (unsigned int)cvRandInt(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRandReal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRNG *arg1 = (CvRNG *) 0 ;
|
|
void *vptr1 ;
|
|
CvRNG_Wrapper *wrapper1 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvRandReal",&obj0)) SWIG_fail;
|
|
{
|
|
if(SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_CvRNG_Wrapper, 0)==-1){
|
|
SWIG_exception( SWIG_TypeError, "could not convert Python object to C value");
|
|
return NULL;
|
|
}
|
|
wrapper1 = (CvRNG_Wrapper *) vptr1;
|
|
arg1 = wrapper1->ptr();
|
|
}
|
|
{
|
|
try {
|
|
result = (double)cvRandReal(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_ID_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
int arg2 ;
|
|
IplImage header1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage_ID_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage_ID_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->ID = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_ID_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplImage_ID_get",&obj0)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
result = (int) ((arg1)->ID);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_nChannels_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
int arg2 ;
|
|
IplImage header1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage_nChannels_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage_nChannels_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->nChannels = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_nChannels_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplImage_nChannels_get",&obj0)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
result = (int) ((arg1)->nChannels);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_depth_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
int arg2 ;
|
|
IplImage header1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage_depth_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage_depth_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->depth = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_depth_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplImage_depth_get",&obj0)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
result = (int) ((arg1)->depth);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_dataOrder_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
int arg2 ;
|
|
IplImage header1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage_dataOrder_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage_dataOrder_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->dataOrder = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_dataOrder_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplImage_dataOrder_get",&obj0)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
result = (int) ((arg1)->dataOrder);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_origin_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
int arg2 ;
|
|
IplImage header1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage_origin_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage_origin_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->origin = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_origin_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplImage_origin_get",&obj0)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
result = (int) ((arg1)->origin);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_align_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
int arg2 ;
|
|
IplImage header1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage_align_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage_align_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->align = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_align_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplImage_align_get",&obj0)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
result = (int) ((arg1)->align);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
int arg2 ;
|
|
IplImage header1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage_width_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage_width_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->width = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplImage_width_get",&obj0)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
result = (int) ((arg1)->width);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
int arg2 ;
|
|
IplImage header1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage_height_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage_height_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->height = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplImage_height_get",&obj0)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
result = (int) ((arg1)->height);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_roi_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
_IplROI *arg2 = (_IplROI *) 0 ;
|
|
IplImage header1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage_roi_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p__IplROI, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IplImage_roi_set" "', argument " "2"" of type '" "_IplROI *""'");
|
|
}
|
|
arg2 = reinterpret_cast< _IplROI * >(argp2);
|
|
if (arg1) (arg1)->roi = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_roi_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
_IplROI *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplImage_roi_get",&obj0)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
result = (_IplROI *) ((arg1)->roi);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__IplROI, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_imageSize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
int arg2 ;
|
|
IplImage header1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage_imageSize_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage_imageSize_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->imageSize = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_imageSize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplImage_imageSize_get",&obj0)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
result = (int) ((arg1)->imageSize);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_widthStep_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
int arg2 ;
|
|
IplImage header1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage_widthStep_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage_widthStep_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->widthStep = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage_widthStep_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplImage_widthStep_get",&obj0)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
result = (int) ((arg1)->widthStep);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_IplImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_IplImage",&obj0)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
try {
|
|
delete_IplImage(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___and____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___and__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_SA___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___iand____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___iand__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_SA__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___add__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sa___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___iadd__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sa__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___mul__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sm___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___imul__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sm__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___sub__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Ss___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___isub__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Ss__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___div__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sd___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___idiv__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sd__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___or____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___or__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_So___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___ior____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___ior__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_So__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___xor____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___xor__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sx___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___ixor____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___ixor__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sx__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvScalar arg2 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___add__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sa___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___add__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___add____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___add____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvScalar arg2 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___iadd__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sa__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___iadd__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___iadd____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___iadd____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IplImage___iadd__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" operator +=(IplImage *,CvArr *)\n"
|
|
" operator +=(IplImage *,CvScalar)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___xor____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvScalar arg2 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___xor__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sx___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___xor__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___xor____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___xor____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___ixor____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvScalar arg2 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___ixor__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sx__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___ixor__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___ixor____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___ixor____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IplImage___ixor__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" operator ^=(IplImage *,CvArr *)\n"
|
|
" operator ^=(IplImage *,CvScalar)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvScalar arg2 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___sub__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Ss___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___sub__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___sub____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___sub____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvScalar arg2 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___isub__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Ss__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___isub__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___isub____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___isub____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IplImage___isub__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" operator -=(IplImage *,CvArr *)\n"
|
|
" operator -=(IplImage *,CvScalar)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___or____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvScalar arg2 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___or__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_So___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___or__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___or____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___or____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___ior____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvScalar arg2 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___ior__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_So__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___ior__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___ior____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___ior____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IplImage___ior__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" operator |=(IplImage *,CvArr *)\n"
|
|
" operator |=(IplImage *,CvScalar)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___and____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvScalar arg2 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___and__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_SA___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___and__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___and____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___and____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___iand____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvScalar arg2 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___iand__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_SA__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___iand__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___iand____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___iand____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IplImage___iand__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" operator &=(IplImage *,CvArr *)\n"
|
|
" operator &=(IplImage *,CvScalar)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___ge____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___ge__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sg__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___ge____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___ge__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___ge__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sg__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___ge__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___ge____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___ge____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___eq____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___eq__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Se__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___eq____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___eq__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___eq__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Se__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___eq__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___eq____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___eq____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___le____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___le__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sl__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___le____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___le__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___le__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sl__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___le__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___le____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___le____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___ne____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___ne__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_SN__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___ne____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___ne__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___ne__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_SN__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___ne__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___ne____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___ne____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___lt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___lt__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sl___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___lt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___lt__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___lt__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sl___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___lt__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___lt____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___lt____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___gt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___gt__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sg___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___gt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___gt__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___gt__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sg___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___gt__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___gt____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___gt____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___mul__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___mul__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sm___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___mul__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___mul____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___mul____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___imul__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___imul__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sm__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___imul__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___imul____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___imul____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IplImage___imul__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" operator *=(IplImage *,CvArr *)\n"
|
|
" operator *=(IplImage *,double)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___div__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___div__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sd___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___div__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___div____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___div____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___idiv__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___idiv__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage_operator_Sd__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___idiv__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___idiv____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___idiv____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IplImage___idiv__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" operator /=(IplImage *,CvArr *)\n"
|
|
" operator /=(IplImage *,double)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___radd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___radd__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___radd____SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rsub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___rsub__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___rsub____SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rdiv__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___rdiv__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___rdiv__(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rmul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___rmul__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___rmul____SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___radd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvScalar arg2 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___radd__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___radd____SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___radd____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___radd__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___radd__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___radd____SWIG_2(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___radd__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___radd____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___radd____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___radd____SWIG_2(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rsub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvScalar arg2 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___rsub__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___rsub____SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rsub____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___rsub__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___rsub__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___rsub____SWIG_2(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rsub__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___rsub____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___rsub____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___rsub____SWIG_2(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rmul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___rmul__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___rmul__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___rmul____SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rmul__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___rmul____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___rmul____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___ror____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvScalar arg2 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___ror__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___ror____SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___ror____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___ror__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___ror__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___ror____SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___ror__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___ror____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___ror____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rand____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvScalar arg2 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___rand__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___rand____SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rand____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___rand__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___rand__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___rand____SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rand__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___rand____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___rand____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rxor____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
CvScalar arg2 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___rxor__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___rxor____SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rxor____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___rxor__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___rxor__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___rxor____SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rxor__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___rxor____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___rxor____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___req__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___req__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___req__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___req__(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rgt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___rgt__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___rgt__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___rgt__(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rge__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___rge__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___rge__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___rge__(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rlt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___rlt__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___rlt__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___rlt__(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rle__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___rle__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___rle__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___rle__(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___rne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___rne__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___rne__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___rne__(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___pow__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
double arg2 ;
|
|
IplImage header1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___pow__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplImage___pow__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (IplImage *)IplImage___pow__(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
char *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplImage___str__",&obj0)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
try {
|
|
result = (char *)IplImage___str__(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_FromCharPtr((const char *)result);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
double arg3 ;
|
|
IplImage header1 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:IplImage___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
arg2 = obj1;
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IplImage___setitem__" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
{
|
|
try {
|
|
IplImage___setitem____SWIG_0(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
CvPoint arg3 ;
|
|
IplImage header1 ;
|
|
CvPoint temp3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:IplImage___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
arg2 = obj1;
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ii", & temp3.x, & temp3.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
IplImage___setitem____SWIG_1(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
CvPoint2D32f arg3 ;
|
|
IplImage header1 ;
|
|
CvPoint2D32f temp3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:IplImage___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
arg2 = obj1;
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ff", & temp3.x, & temp3.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 floats (x, y)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvPoint2D32f * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint2D32f");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
IplImage___setitem____SWIG_2(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___setitem____SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
CvScalar arg3 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:IplImage___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
arg2 = obj1;
|
|
{
|
|
arg3 = PyObject_to_CvScalar( obj2 );
|
|
}
|
|
{
|
|
try {
|
|
IplImage___setitem____SWIG_3(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___setitem____SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
IplImage header1 ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:IplImage___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
arg2 = obj1;
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
try {
|
|
IplImage___setitem____SWIG_4(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___setitem__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[4];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
_v = (argv[1] != 0);
|
|
if (_v) {
|
|
int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_CvPoint, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_IplImage___setitem____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
_v = (argv[1] != 0);
|
|
if (_v) {
|
|
int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_CvPoint2D32f, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_IplImage___setitem____SWIG_2(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
_v = (argv[1] != 0);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[2] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___setitem____SWIG_3(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
_v = (argv[1] != 0);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[2] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___setitem____SWIG_4(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
_v = (argv[1] != 0);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_IplImage___setitem____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'IplImage___setitem__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" __setitem__(IplImage *,PyObject *,double)\n"
|
|
" __setitem__(IplImage *,PyObject *,CvPoint)\n"
|
|
" __setitem__(IplImage *,PyObject *,CvPoint2D32f)\n"
|
|
" __setitem__(IplImage *,PyObject *,CvScalar)\n"
|
|
" __setitem__(IplImage *,PyObject *,CvArr *)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplImage___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplImage___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
arg2 = obj1;
|
|
{
|
|
try {
|
|
result = (PyObject *)IplImage___getitem__(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IplImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p__IplImage, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_IplROI_coi_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplROI *arg1 = (IplROI *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplROI_coi_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplROI, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplROI_coi_set" "', argument " "1"" of type '" "IplROI *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplROI * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplROI_coi_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->coi = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplROI_coi_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplROI *arg1 = (IplROI *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplROI_coi_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplROI, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplROI_coi_get" "', argument " "1"" of type '" "IplROI *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplROI * >(argp1);
|
|
result = (int) ((arg1)->coi);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplROI_xOffset_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplROI *arg1 = (IplROI *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplROI_xOffset_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplROI, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplROI_xOffset_set" "', argument " "1"" of type '" "IplROI *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplROI * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplROI_xOffset_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->xOffset = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplROI_xOffset_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplROI *arg1 = (IplROI *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplROI_xOffset_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplROI, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplROI_xOffset_get" "', argument " "1"" of type '" "IplROI *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplROI * >(argp1);
|
|
result = (int) ((arg1)->xOffset);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplROI_yOffset_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplROI *arg1 = (IplROI *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplROI_yOffset_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplROI, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplROI_yOffset_set" "', argument " "1"" of type '" "IplROI *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplROI * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplROI_yOffset_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->yOffset = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplROI_yOffset_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplROI *arg1 = (IplROI *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplROI_yOffset_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplROI, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplROI_yOffset_get" "', argument " "1"" of type '" "IplROI *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplROI * >(argp1);
|
|
result = (int) ((arg1)->yOffset);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplROI_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplROI *arg1 = (IplROI *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplROI_width_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplROI, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplROI_width_set" "', argument " "1"" of type '" "IplROI *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplROI * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplROI_width_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->width = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplROI_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplROI *arg1 = (IplROI *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplROI_width_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplROI, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplROI_width_get" "', argument " "1"" of type '" "IplROI *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplROI * >(argp1);
|
|
result = (int) ((arg1)->width);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplROI_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplROI *arg1 = (IplROI *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplROI_height_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplROI, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplROI_height_set" "', argument " "1"" of type '" "IplROI *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplROI * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplROI_height_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->height = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplROI_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplROI *arg1 = (IplROI *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplROI_height_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplROI, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplROI_height_get" "', argument " "1"" of type '" "IplROI *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplROI * >(argp1);
|
|
result = (int) ((arg1)->height);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_IplROI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplROI *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_IplROI")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (IplROI *)new IplROI();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__IplROI, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_IplROI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplROI *arg1 = (IplROI *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_IplROI",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplROI, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IplROI" "', argument " "1"" of type '" "IplROI *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplROI * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IplROI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p__IplROI, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernel_nCols_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernel *arg1 = (IplConvKernel *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplConvKernel_nCols_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernel, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernel_nCols_set" "', argument " "1"" of type '" "IplConvKernel *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernel * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplConvKernel_nCols_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->nCols = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernel_nCols_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernel *arg1 = (IplConvKernel *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplConvKernel_nCols_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernel, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernel_nCols_get" "', argument " "1"" of type '" "IplConvKernel *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernel * >(argp1);
|
|
result = (int) ((arg1)->nCols);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernel_nRows_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernel *arg1 = (IplConvKernel *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplConvKernel_nRows_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernel, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernel_nRows_set" "', argument " "1"" of type '" "IplConvKernel *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernel * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplConvKernel_nRows_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->nRows = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernel_nRows_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernel *arg1 = (IplConvKernel *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplConvKernel_nRows_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernel, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernel_nRows_get" "', argument " "1"" of type '" "IplConvKernel *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernel * >(argp1);
|
|
result = (int) ((arg1)->nRows);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernel_anchorX_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernel *arg1 = (IplConvKernel *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplConvKernel_anchorX_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernel, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernel_anchorX_set" "', argument " "1"" of type '" "IplConvKernel *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernel * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplConvKernel_anchorX_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->anchorX = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernel_anchorX_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernel *arg1 = (IplConvKernel *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplConvKernel_anchorX_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernel, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernel_anchorX_get" "', argument " "1"" of type '" "IplConvKernel *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernel * >(argp1);
|
|
result = (int) ((arg1)->anchorX);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernel_anchorY_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernel *arg1 = (IplConvKernel *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplConvKernel_anchorY_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernel, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernel_anchorY_set" "', argument " "1"" of type '" "IplConvKernel *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernel * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplConvKernel_anchorY_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->anchorY = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernel_anchorY_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernel *arg1 = (IplConvKernel *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplConvKernel_anchorY_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernel, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernel_anchorY_get" "', argument " "1"" of type '" "IplConvKernel *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernel * >(argp1);
|
|
result = (int) ((arg1)->anchorY);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernel_values_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernel *arg1 = (IplConvKernel *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplConvKernel_values_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernel, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernel_values_set" "', argument " "1"" of type '" "IplConvKernel *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernel * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IplConvKernel_values_set" "', argument " "2"" of type '" "int *""'");
|
|
}
|
|
arg2 = reinterpret_cast< int * >(argp2);
|
|
if (arg1) (arg1)->values = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernel_values_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernel *arg1 = (IplConvKernel *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplConvKernel_values_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernel, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernel_values_get" "', argument " "1"" of type '" "IplConvKernel *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernel * >(argp1);
|
|
result = (int *) ((arg1)->values);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernel_nShiftR_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernel *arg1 = (IplConvKernel *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplConvKernel_nShiftR_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernel, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernel_nShiftR_set" "', argument " "1"" of type '" "IplConvKernel *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernel * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplConvKernel_nShiftR_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->nShiftR = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernel_nShiftR_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernel *arg1 = (IplConvKernel *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplConvKernel_nShiftR_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernel, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernel_nShiftR_get" "', argument " "1"" of type '" "IplConvKernel *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernel * >(argp1);
|
|
result = (int) ((arg1)->nShiftR);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_IplConvKernel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernel *arg1 = (IplConvKernel *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_IplConvKernel",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernel, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IplConvKernel" "', argument " "1"" of type '" "IplConvKernel *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernel * >(argp1);
|
|
{
|
|
try {
|
|
delete_IplConvKernel(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IplConvKernel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p__IplConvKernel, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernelFP_nCols_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernelFP *arg1 = (IplConvKernelFP *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplConvKernelFP_nCols_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernelFP, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernelFP_nCols_set" "', argument " "1"" of type '" "IplConvKernelFP *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernelFP * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplConvKernelFP_nCols_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->nCols = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernelFP_nCols_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernelFP *arg1 = (IplConvKernelFP *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplConvKernelFP_nCols_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernelFP, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernelFP_nCols_get" "', argument " "1"" of type '" "IplConvKernelFP *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernelFP * >(argp1);
|
|
result = (int) ((arg1)->nCols);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernelFP_nRows_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernelFP *arg1 = (IplConvKernelFP *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplConvKernelFP_nRows_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernelFP, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernelFP_nRows_set" "', argument " "1"" of type '" "IplConvKernelFP *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernelFP * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplConvKernelFP_nRows_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->nRows = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernelFP_nRows_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernelFP *arg1 = (IplConvKernelFP *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplConvKernelFP_nRows_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernelFP, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernelFP_nRows_get" "', argument " "1"" of type '" "IplConvKernelFP *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernelFP * >(argp1);
|
|
result = (int) ((arg1)->nRows);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernelFP_anchorX_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernelFP *arg1 = (IplConvKernelFP *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplConvKernelFP_anchorX_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernelFP, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernelFP_anchorX_set" "', argument " "1"" of type '" "IplConvKernelFP *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernelFP * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplConvKernelFP_anchorX_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->anchorX = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernelFP_anchorX_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernelFP *arg1 = (IplConvKernelFP *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplConvKernelFP_anchorX_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernelFP, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernelFP_anchorX_get" "', argument " "1"" of type '" "IplConvKernelFP *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernelFP * >(argp1);
|
|
result = (int) ((arg1)->anchorX);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernelFP_anchorY_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernelFP *arg1 = (IplConvKernelFP *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplConvKernelFP_anchorY_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernelFP, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernelFP_anchorY_set" "', argument " "1"" of type '" "IplConvKernelFP *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernelFP * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IplConvKernelFP_anchorY_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->anchorY = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernelFP_anchorY_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernelFP *arg1 = (IplConvKernelFP *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplConvKernelFP_anchorY_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernelFP, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernelFP_anchorY_get" "', argument " "1"" of type '" "IplConvKernelFP *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernelFP * >(argp1);
|
|
result = (int) ((arg1)->anchorY);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernelFP_values_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernelFP *arg1 = (IplConvKernelFP *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:IplConvKernelFP_values_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernelFP, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernelFP_values_set" "', argument " "1"" of type '" "IplConvKernelFP *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernelFP * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IplConvKernelFP_values_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->values = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IplConvKernelFP_values_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernelFP *arg1 = (IplConvKernelFP *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:IplConvKernelFP_values_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernelFP, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IplConvKernelFP_values_get" "', argument " "1"" of type '" "IplConvKernelFP *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernelFP * >(argp1);
|
|
result = (float *) ((arg1)->values);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_IplConvKernelFP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernelFP *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_IplConvKernelFP")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (IplConvKernelFP *)new IplConvKernelFP();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__IplConvKernelFP, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_IplConvKernelFP(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplConvKernelFP *arg1 = (IplConvKernelFP *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_IplConvKernelFP",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__IplConvKernelFP, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IplConvKernelFP" "', argument " "1"" of type '" "IplConvKernelFP *""'");
|
|
}
|
|
arg1 = reinterpret_cast< IplConvKernelFP * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IplConvKernelFP_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p__IplConvKernelFP, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_type_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat_type_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->type = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_type_get",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
result = (int) ((arg1)->type);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_step_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_step_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat_step_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->step = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_step_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_step_get",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
result = (int) ((arg1)->step);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_refcount_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
bool freearg1 = false ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_refcount_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMat_refcount_set" "', argument " "2"" of type '" "int *""'");
|
|
}
|
|
arg2 = reinterpret_cast< int * >(argp2);
|
|
if (arg1) (arg1)->refcount = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_refcount_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_refcount_get",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
result = (int *) ((arg1)->refcount);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_hdr_refcount_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_hdr_refcount_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat_hdr_refcount_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->hdr_refcount = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_hdr_refcount_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_hdr_refcount_get",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
result = (int) ((arg1)->hdr_refcount);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat_data *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_data_get",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
result = (CvMat_data *)& ((arg1)->data);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat_data, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvMat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvMat",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
delete_CvMat(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_depth_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_depth_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat_depth_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
CvMat_depth_set(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_depth_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_depth_get",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)CvMat_depth_get(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_nChannels_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_nChannels_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat_nChannels_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
CvMat_nChannels_set(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_nChannels_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_nChannels_get",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)CvMat_nChannels_get(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_dataOrder_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_dataOrder_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat_dataOrder_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
CvMat_dataOrder_set(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_dataOrder_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_dataOrder_get",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)CvMat_dataOrder_get(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_origin_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_origin_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat_origin_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
CvMat_origin_set(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_origin_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_origin_get",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)CvMat_origin_get(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_width_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat_width_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
CvMat_width_set(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_width_get",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)CvMat_width_get(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_height_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat_height_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
CvMat_height_set(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_height_get",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)CvMat_height_get(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_imageSize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_imageSize_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat_imageSize_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
CvMat_imageSize_set(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_imageSize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_imageSize_get",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)CvMat_imageSize_get(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_widthStep_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_widthStep_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat_widthStep_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
CvMat_widthStep_set(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_widthStep_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_widthStep_get",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)CvMat_widthStep_get(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_rows_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_rows_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat_rows_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
CvMat_rows_set(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_rows_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_rows_get",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)CvMat_rows_get(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_cols_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_cols_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat_cols_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
CvMat_cols_set(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_cols_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_cols_get",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)CvMat_cols_get(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___and____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___and__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_SA___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___iand____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___iand__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_SA__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___add____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___add__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sa___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___iadd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___iadd__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sa__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___mul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___mul__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sm___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___imul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___imul__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sm__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___sub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___sub__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Ss___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___isub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___isub__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Ss__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___div____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___div__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sd___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___idiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___idiv__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sd__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___or____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___or__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_So___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___ior____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___ior__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_So__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___xor____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___xor__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sx___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___ixor____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___ixor__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sx__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___add____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvScalar arg2 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___add__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sa___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___add__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___add____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___add____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___iadd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvScalar arg2 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___iadd__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sa__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___iadd__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___iadd____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___iadd____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvMat___iadd__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" operator +=(CvMat *,CvArr *)\n"
|
|
" operator +=(CvMat *,CvScalar)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___xor____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvScalar arg2 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___xor__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sx___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___xor__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___xor____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___xor____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___ixor____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvScalar arg2 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___ixor__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sx__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___ixor__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___ixor____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___ixor____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvMat___ixor__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" operator ^=(CvMat *,CvArr *)\n"
|
|
" operator ^=(CvMat *,CvScalar)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___sub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvScalar arg2 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___sub__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Ss___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___sub__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___sub____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___sub____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___isub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvScalar arg2 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___isub__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Ss__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___isub__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___isub____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___isub____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvMat___isub__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" operator -=(CvMat *,CvArr *)\n"
|
|
" operator -=(CvMat *,CvScalar)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___or____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvScalar arg2 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___or__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_So___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___or__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___or____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___or____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___ior____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvScalar arg2 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___ior__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_So__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___ior__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___ior____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___ior____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvMat___ior__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" operator |=(CvMat *,CvArr *)\n"
|
|
" operator |=(CvMat *,CvScalar)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___and____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvScalar arg2 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___and__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_SA___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___and__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___and____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___and____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___iand____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvScalar arg2 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___iand__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_SA__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___iand__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___iand____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___iand____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvMat___iand__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" operator &=(CvMat *,CvArr *)\n"
|
|
" operator &=(CvMat *,CvScalar)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___ge____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___ge__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sg__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___ge____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___ge__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___ge__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sg__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___ge__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___ge____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___ge____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___eq____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___eq__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Se__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___eq____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___eq__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___eq__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Se__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___eq__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___eq____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___eq____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___le____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___le__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sl__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___le____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___le__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___le__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sl__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___le__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___le____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___le____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___ne____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___ne__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_SN__Se___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___ne____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___ne__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___ne__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_SN__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___ne__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___ne____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___ne____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___lt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___lt__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sl___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___lt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___lt__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___lt__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sl___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___lt__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___lt____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___lt____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___gt____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___gt__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sg___SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___gt____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___gt__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___gt__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sg___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___gt__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___gt____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___gt____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___mul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___mul__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___mul__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sm___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___mul__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___mul____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___mul____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___imul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___imul__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___imul__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sm__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___imul__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___imul____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___imul____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvMat___imul__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" operator *=(CvMat *,CvArr *)\n"
|
|
" operator *=(CvMat *,double)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___div____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___div__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___div__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sd___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___div__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___div____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___div____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___idiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___idiv__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___idiv__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat_operator_Sd__Se___SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___idiv__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___idiv____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___idiv____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvMat___idiv__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" operator /=(CvMat *,CvArr *)\n"
|
|
" operator /=(CvMat *,double)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___radd____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___radd__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___radd____SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rsub____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___rsub__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___rsub____SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rdiv____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___rdiv__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___rdiv____SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rmul____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___rmul__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___rmul____SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___radd____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvScalar arg2 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___radd__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___radd____SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___radd____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___radd__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___radd__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___radd____SWIG_2(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___radd__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___radd____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___radd____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___radd____SWIG_2(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rsub____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvScalar arg2 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___rsub__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___rsub____SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rsub____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___rsub__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___rsub__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___rsub____SWIG_2(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rsub__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___rsub____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___rsub____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___rsub____SWIG_2(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rmul____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___rmul__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___rmul__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___rmul____SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rmul__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___rmul____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___rmul____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___ror____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvScalar arg2 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___ror__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___ror____SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___ror____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___ror__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___ror__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___ror____SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___ror__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___ror____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___ror____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rand____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvScalar arg2 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___rand__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___rand____SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rand____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___rand__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___rand__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___rand____SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rand__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___rand____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___rand____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rxor____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvScalar arg2 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___rxor__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___rxor____SWIG_0(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rxor____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___rxor__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___rxor__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___rxor____SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rxor__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___rxor____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___rxor____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___req__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___req__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___req__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___req__(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rgt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___rgt__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___rgt__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___rgt__(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rge__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___rge__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___rge__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___rge__(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rlt__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___rlt__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___rlt__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___rlt__(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rle__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___rle__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___rle__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___rle__(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___rne__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___rne__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___rne__(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rdiv____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___rdiv__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___rdiv__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___rdiv____SWIG_1(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___rdiv__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[1] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___rdiv____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___rdiv____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
Py_INCREF(Py_NotImplemented);
|
|
return Py_NotImplemented;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___pow__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
double arg2 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___pow__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMat___pow__" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___pow__(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
char *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat___str__",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (char *)CvMat___str__(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_FromCharPtr((const char *)result);
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___setitem____SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
double arg3 ;
|
|
bool freearg1 = false ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvMat___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
arg2 = obj1;
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CvMat___setitem__" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
{
|
|
try {
|
|
CvMat___setitem____SWIG_0(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___setitem____SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
CvPoint arg3 ;
|
|
bool freearg1 = false ;
|
|
CvPoint temp3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvMat___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
arg2 = obj1;
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ii", & temp3.x, & temp3.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
CvMat___setitem____SWIG_1(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___setitem____SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
CvPoint2D32f arg3 ;
|
|
bool freearg1 = false ;
|
|
CvPoint2D32f temp3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvMat___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
arg2 = obj1;
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ff", & temp3.x, & temp3.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 floats (x, y)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvPoint2D32f * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint2D32f");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
CvMat___setitem____SWIG_2(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___setitem____SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
CvScalar arg3 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvMat___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
arg2 = obj1;
|
|
{
|
|
arg3 = PyObject_to_CvScalar( obj2 );
|
|
}
|
|
{
|
|
try {
|
|
CvMat___setitem____SWIG_3(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___setitem____SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvMat___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
arg2 = obj1;
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
try {
|
|
CvMat___setitem____SWIG_4(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___setitem__(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[4];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
_v = (argv[1] != 0);
|
|
if (_v) {
|
|
int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_CvPoint, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvMat___setitem____SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
_v = (argv[1] != 0);
|
|
if (_v) {
|
|
int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_CvPoint2D32f, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvMat___setitem____SWIG_2(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
_v = (argv[1] != 0);
|
|
if (_v) {
|
|
{
|
|
_v = CvScalar_Check( argv[2] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___setitem____SWIG_3(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
_v = (argv[1] != 0);
|
|
if (_v) {
|
|
{
|
|
_v = CvArr_Check( argv[2] );
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___setitem____SWIG_4(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
_v = (argv[1] != 0);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMat___setitem____SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvMat___setitem__'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" __setitem__(CvMat *,PyObject *,double)\n"
|
|
" __setitem__(CvMat *,PyObject *,CvPoint)\n"
|
|
" __setitem__(CvMat *,PyObject *,CvPoint2D32f)\n"
|
|
" __setitem__(CvMat *,PyObject *,CvScalar)\n"
|
|
" __setitem__(CvMat *,PyObject *,CvArr *)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
arg2 = obj1;
|
|
{
|
|
try {
|
|
result = (PyObject *)CvMat___getitem__(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = result;
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat___invert__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat___invert__",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)CvMat___invert__(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_imageData_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_imageData_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
arg2 = obj1;
|
|
{
|
|
try {
|
|
CvMat_imageData_set(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_imageData_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_imageData_get",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (PyObject *)CvMat_imageData_get(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = result;
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvMat_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvMat, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_data_ptr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat_data *arg1 = (CvMat_data *) 0 ;
|
|
uchar *arg2 = (uchar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_data_ptr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMat_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMat_data_ptr_set" "', argument " "1"" of type '" "CvMat_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMat_data * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMat_data_ptr_set" "', argument " "2"" of type '" "uchar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< uchar * >(argp2);
|
|
if (arg1) (arg1)->ptr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_data_ptr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat_data *arg1 = (CvMat_data *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
uchar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_data_ptr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMat_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMat_data_ptr_get" "', argument " "1"" of type '" "CvMat_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMat_data * >(argp1);
|
|
result = (uchar *) ((arg1)->ptr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_data_s_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat_data *arg1 = (CvMat_data *) 0 ;
|
|
short *arg2 = (short *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_data_s_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMat_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMat_data_s_set" "', argument " "1"" of type '" "CvMat_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMat_data * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_short, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMat_data_s_set" "', argument " "2"" of type '" "short *""'");
|
|
}
|
|
arg2 = reinterpret_cast< short * >(argp2);
|
|
if (arg1) (arg1)->s = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_data_s_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat_data *arg1 = (CvMat_data *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
short *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_data_s_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMat_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMat_data_s_get" "', argument " "1"" of type '" "CvMat_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMat_data * >(argp1);
|
|
result = (short *) ((arg1)->s);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_short, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_data_i_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat_data *arg1 = (CvMat_data *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_data_i_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMat_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMat_data_i_set" "', argument " "1"" of type '" "CvMat_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMat_data * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMat_data_i_set" "', argument " "2"" of type '" "int *""'");
|
|
}
|
|
arg2 = reinterpret_cast< int * >(argp2);
|
|
if (arg1) (arg1)->i = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_data_i_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat_data *arg1 = (CvMat_data *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_data_i_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMat_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMat_data_i_get" "', argument " "1"" of type '" "CvMat_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMat_data * >(argp1);
|
|
result = (int *) ((arg1)->i);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_data_fl_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat_data *arg1 = (CvMat_data *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_data_fl_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMat_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMat_data_fl_set" "', argument " "1"" of type '" "CvMat_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMat_data * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMat_data_fl_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->fl = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_data_fl_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat_data *arg1 = (CvMat_data *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_data_fl_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMat_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMat_data_fl_get" "', argument " "1"" of type '" "CvMat_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMat_data * >(argp1);
|
|
result = (float *) ((arg1)->fl);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_data_db_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat_data *arg1 = (CvMat_data *) 0 ;
|
|
double *arg2 = (double *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMat_data_db_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMat_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMat_data_db_set" "', argument " "1"" of type '" "CvMat_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMat_data * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMat_data_db_set" "', argument " "2"" of type '" "double *""'");
|
|
}
|
|
arg2 = reinterpret_cast< double * >(argp2);
|
|
if (arg1) (arg1)->db = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMat_data_db_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat_data *arg1 = (CvMat_data *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMat_data_db_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMat_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMat_data_db_get" "', argument " "1"" of type '" "CvMat_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMat_data * >(argp1);
|
|
result = (double *) ((arg1)->db);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMat_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat_data *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvMat_data")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvMat_data *)new CvMat_data();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat_data, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvMat_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat_data *arg1 = (CvMat_data *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvMat_data",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMat_data, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvMat_data" "', argument " "1"" of type '" "CvMat_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMat_data * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvMat_data_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvMat_data, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMat__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *arg4 = (void *) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int res4 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvMat result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvMat",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvMat" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvMat" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvMat" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
res4 = SWIG_ConvertPtr(obj3,SWIG_as_voidptrptr(&arg4), 0, 0);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvMat" "', argument " "4"" of type '" "void *""'");
|
|
}
|
|
{
|
|
try {
|
|
result = cvMat(arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvMat(static_cast< const CvMat& >(result))), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMat__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvMat result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvMat",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvMat" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvMat" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvMat" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = cvMat(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvMat(static_cast< const CvMat& >(result))), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMat(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[5];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 4); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
{
|
|
int res = SWIG_AsVal_int(argv[0], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_cvMat__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 4) {
|
|
int _v;
|
|
{
|
|
int res = SWIG_AsVal_int(argv[0], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[3], &ptr, 0, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_cvMat__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'cvMat'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" cvMat(int,int,int,void *)\n"
|
|
" cvMat(int,int,int)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvmGet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvmGet",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvmGet" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvmGet" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (double)cvmGet((CvMat const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvmSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
double arg4 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvmSet",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvmSet" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvmSet" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvmSet" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
{
|
|
try {
|
|
cvmSet(arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvIplDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvIplDepth",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvIplDepth" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
{
|
|
try {
|
|
result = (int)cvIplDepth(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND *arg1 = (CvMatND *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMatND_type_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_type_set" "', argument " "1"" of type '" "CvMatND *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMatND_type_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->type = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND *arg1 = (CvMatND *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatND_type_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_type_get" "', argument " "1"" of type '" "CvMatND *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND * >(argp1);
|
|
result = (int) ((arg1)->type);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_dims_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND *arg1 = (CvMatND *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMatND_dims_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_dims_set" "', argument " "1"" of type '" "CvMatND *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMatND_dims_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->dims = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_dims_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND *arg1 = (CvMatND *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatND_dims_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_dims_get" "', argument " "1"" of type '" "CvMatND *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND * >(argp1);
|
|
result = (int) ((arg1)->dims);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_refcount_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND *arg1 = (CvMatND *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMatND_refcount_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_refcount_set" "', argument " "1"" of type '" "CvMatND *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMatND_refcount_set" "', argument " "2"" of type '" "int *""'");
|
|
}
|
|
arg2 = reinterpret_cast< int * >(argp2);
|
|
if (arg1) (arg1)->refcount = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_refcount_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND *arg1 = (CvMatND *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatND_refcount_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_refcount_get" "', argument " "1"" of type '" "CvMatND *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND * >(argp1);
|
|
result = (int *) ((arg1)->refcount);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_hdr_refcount_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND *arg1 = (CvMatND *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMatND_hdr_refcount_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_hdr_refcount_set" "', argument " "1"" of type '" "CvMatND *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMatND_hdr_refcount_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->hdr_refcount = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_hdr_refcount_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND *arg1 = (CvMatND *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatND_hdr_refcount_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_hdr_refcount_get" "', argument " "1"" of type '" "CvMatND *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND * >(argp1);
|
|
result = (int) ((arg1)->hdr_refcount);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_dim_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND *arg1 = (CvMatND *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMatND_dim *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatND_dim_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_dim_get" "', argument " "1"" of type '" "CvMatND *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND * >(argp1);
|
|
result = (CvMatND_dim *)(CvMatND_dim *) ((arg1)->dim);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatND_dim, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND *arg1 = (CvMatND *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMatND_data *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatND_data_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_data_get" "', argument " "1"" of type '" "CvMatND *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND * >(argp1);
|
|
result = (CvMatND_data *)& ((arg1)->data);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatND_data, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvMatND(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND *arg1 = (CvMatND *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvMatND",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvMatND" "', argument " "1"" of type '" "CvMatND *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND * >(argp1);
|
|
{
|
|
try {
|
|
delete_CvMatND(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvMatND_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvMatND, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_dim_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND_dim *arg1 = (CvMatND_dim *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMatND_dim_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND_dim, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_dim_size_set" "', argument " "1"" of type '" "CvMatND_dim *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND_dim * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMatND_dim_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_dim_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND_dim *arg1 = (CvMatND_dim *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatND_dim_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND_dim, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_dim_size_get" "', argument " "1"" of type '" "CvMatND_dim *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND_dim * >(argp1);
|
|
result = (int) ((arg1)->size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_dim_step_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND_dim *arg1 = (CvMatND_dim *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMatND_dim_step_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND_dim, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_dim_step_set" "', argument " "1"" of type '" "CvMatND_dim *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND_dim * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMatND_dim_step_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->step = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_dim_step_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND_dim *arg1 = (CvMatND_dim *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatND_dim_step_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND_dim, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_dim_step_get" "', argument " "1"" of type '" "CvMatND_dim *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND_dim * >(argp1);
|
|
result = (int) ((arg1)->step);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatND_dim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND_dim *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvMatND_dim")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvMatND_dim *)new CvMatND_dim();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatND_dim, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvMatND_dim(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND_dim *arg1 = (CvMatND_dim *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvMatND_dim",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND_dim, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvMatND_dim" "', argument " "1"" of type '" "CvMatND_dim *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND_dim * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvMatND_dim_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvMatND_dim, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_data_ptr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND_data *arg1 = (CvMatND_data *) 0 ;
|
|
uchar *arg2 = (uchar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMatND_data_ptr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_data_ptr_set" "', argument " "1"" of type '" "CvMatND_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND_data * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMatND_data_ptr_set" "', argument " "2"" of type '" "uchar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< uchar * >(argp2);
|
|
if (arg1) (arg1)->ptr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_data_ptr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND_data *arg1 = (CvMatND_data *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
uchar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatND_data_ptr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_data_ptr_get" "', argument " "1"" of type '" "CvMatND_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND_data * >(argp1);
|
|
result = (uchar *) ((arg1)->ptr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_data_fl_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND_data *arg1 = (CvMatND_data *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMatND_data_fl_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_data_fl_set" "', argument " "1"" of type '" "CvMatND_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND_data * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMatND_data_fl_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->fl = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_data_fl_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND_data *arg1 = (CvMatND_data *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatND_data_fl_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_data_fl_get" "', argument " "1"" of type '" "CvMatND_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND_data * >(argp1);
|
|
result = (float *) ((arg1)->fl);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_data_db_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND_data *arg1 = (CvMatND_data *) 0 ;
|
|
double *arg2 = (double *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMatND_data_db_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_data_db_set" "', argument " "1"" of type '" "CvMatND_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND_data * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMatND_data_db_set" "', argument " "2"" of type '" "double *""'");
|
|
}
|
|
arg2 = reinterpret_cast< double * >(argp2);
|
|
if (arg1) (arg1)->db = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_data_db_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND_data *arg1 = (CvMatND_data *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatND_data_db_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_data_db_get" "', argument " "1"" of type '" "CvMatND_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND_data * >(argp1);
|
|
result = (double *) ((arg1)->db);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_data_i_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND_data *arg1 = (CvMatND_data *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMatND_data_i_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_data_i_set" "', argument " "1"" of type '" "CvMatND_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND_data * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMatND_data_i_set" "', argument " "2"" of type '" "int *""'");
|
|
}
|
|
arg2 = reinterpret_cast< int * >(argp2);
|
|
if (arg1) (arg1)->i = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_data_i_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND_data *arg1 = (CvMatND_data *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatND_data_i_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_data_i_get" "', argument " "1"" of type '" "CvMatND_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND_data * >(argp1);
|
|
result = (int *) ((arg1)->i);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_data_s_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND_data *arg1 = (CvMatND_data *) 0 ;
|
|
short *arg2 = (short *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMatND_data_s_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_data_s_set" "', argument " "1"" of type '" "CvMatND_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND_data * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_short, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMatND_data_s_set" "', argument " "2"" of type '" "short *""'");
|
|
}
|
|
arg2 = reinterpret_cast< short * >(argp2);
|
|
if (arg1) (arg1)->s = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatND_data_s_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND_data *arg1 = (CvMatND_data *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
short *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatND_data_s_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatND_data_s_get" "', argument " "1"" of type '" "CvMatND_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND_data * >(argp1);
|
|
result = (short *) ((arg1)->s);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_short, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatND_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND_data *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvMatND_data")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvMatND_data *)new CvMatND_data();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatND_data, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvMatND_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND_data *arg1 = (CvMatND_data *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvMatND_data",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND_data, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvMatND_data" "', argument " "1"" of type '" "CvMatND_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND_data * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvMatND_data_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvMatND_data, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSparseMat_type_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_type_set" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSparseMat_type_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->type = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSparseMat_type_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_type_get" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
result = (int) ((arg1)->type);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_dims_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSparseMat_dims_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_dims_set" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSparseMat_dims_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->dims = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_dims_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSparseMat_dims_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_dims_get" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
result = (int) ((arg1)->dims);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_refcount_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSparseMat_refcount_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_refcount_set" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSparseMat_refcount_set" "', argument " "2"" of type '" "int *""'");
|
|
}
|
|
arg2 = reinterpret_cast< int * >(argp2);
|
|
if (arg1) (arg1)->refcount = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_refcount_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSparseMat_refcount_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_refcount_get" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
result = (int *) ((arg1)->refcount);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_hdr_refcount_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSparseMat_hdr_refcount_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_hdr_refcount_set" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSparseMat_hdr_refcount_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->hdr_refcount = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_hdr_refcount_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSparseMat_hdr_refcount_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_hdr_refcount_get" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
result = (int) ((arg1)->hdr_refcount);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_heap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
CvSet *arg2 = (CvSet *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSparseMat_heap_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_heap_set" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSet *)ptr2;
|
|
}
|
|
if (arg1) (arg1)->heap = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_heap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSet *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSparseMat_heap_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_heap_get" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
result = (CvSet *) ((arg1)->heap);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSet, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_hashtable_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
void **arg2 = (void **) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *vptr2 ;
|
|
void *buffer2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSparseMat_hashtable_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_hashtable_set" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
{
|
|
if ((SWIG_ConvertPtr(obj1, &vptr2, SWIGTYPE_p_void, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer2 = (void *) vptr2;
|
|
arg2=&buffer2;
|
|
}
|
|
if (arg1) (arg1)->hashtable = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_hashtable_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
void **result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSparseMat_hashtable_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_hashtable_get" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
result = (void **) ((arg1)->hashtable);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_void, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_hashsize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSparseMat_hashsize_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_hashsize_set" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSparseMat_hashsize_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->hashsize = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_hashsize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSparseMat_hashsize_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_hashsize_get" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
result = (int) ((arg1)->hashsize);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_valoffset_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSparseMat_valoffset_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_valoffset_set" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSparseMat_valoffset_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->valoffset = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_valoffset_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSparseMat_valoffset_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_valoffset_get" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
result = (int) ((arg1)->valoffset);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_idxoffset_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSparseMat_idxoffset_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_idxoffset_set" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSparseMat_idxoffset_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->idxoffset = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_idxoffset_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSparseMat_idxoffset_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_idxoffset_get" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
result = (int) ((arg1)->idxoffset);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
int *arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSparseMat_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_size_set" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSparseMat_size_set" "', argument " "2"" of type '" "int [32]""'");
|
|
}
|
|
arg2 = reinterpret_cast< int * >(argp2);
|
|
{
|
|
if (arg2) {
|
|
size_t ii = 0;
|
|
for (; ii < (size_t)32; ++ii) arg1->size[ii] = arg2[ii];
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""size""' of type '""int [32]""'");
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMat_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSparseMat_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMat_size_get" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
result = (int *)(int *) ((arg1)->size);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSparseMat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSparseMat",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSparseMat" "', argument " "1"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
{
|
|
try {
|
|
delete_CvSparseMat(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSparseMat_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvSparseMat, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseNode_hashval_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseNode *arg1 = (CvSparseNode *) 0 ;
|
|
unsigned int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSparseNode_hashval_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseNode_hashval_set" "', argument " "1"" of type '" "CvSparseNode *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseNode * >(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSparseNode_hashval_set" "', argument " "2"" of type '" "unsigned int""'");
|
|
}
|
|
arg2 = static_cast< unsigned int >(val2);
|
|
if (arg1) (arg1)->hashval = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseNode_hashval_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseNode *arg1 = (CvSparseNode *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
unsigned int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSparseNode_hashval_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseNode_hashval_get" "', argument " "1"" of type '" "CvSparseNode *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseNode * >(argp1);
|
|
result = (unsigned int) ((arg1)->hashval);
|
|
resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseNode_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseNode *arg1 = (CvSparseNode *) 0 ;
|
|
CvSparseNode *arg2 = (CvSparseNode *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSparseNode_next_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseNode_next_set" "', argument " "1"" of type '" "CvSparseNode *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseNode * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSparseNode, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSparseNode_next_set" "', argument " "2"" of type '" "CvSparseNode *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSparseNode * >(argp2);
|
|
if (arg1) (arg1)->next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseNode_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseNode *arg1 = (CvSparseNode *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSparseNode *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSparseNode_next_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseNode_next_get" "', argument " "1"" of type '" "CvSparseNode *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseNode * >(argp1);
|
|
result = (CvSparseNode *) ((arg1)->next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSparseNode, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSparseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseNode *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSparseNode")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvSparseNode *)new CvSparseNode();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSparseNode, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSparseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseNode *arg1 = (CvSparseNode *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSparseNode",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseNode, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSparseNode" "', argument " "1"" of type '" "CvSparseNode *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseNode * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSparseNode_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvSparseNode, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMatIterator_mat_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMatIterator *arg1 = (CvSparseMatIterator *) 0 ;
|
|
CvSparseMat *arg2 = (CvSparseMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSparseMatIterator_mat_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMatIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMatIterator_mat_set" "', argument " "1"" of type '" "CvSparseMatIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMatIterator * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSparseMat, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSparseMatIterator_mat_set" "', argument " "2"" of type '" "CvSparseMat *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSparseMat * >(argp2);
|
|
if (arg1) (arg1)->mat = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMatIterator_mat_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMatIterator *arg1 = (CvSparseMatIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSparseMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSparseMatIterator_mat_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMatIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMatIterator_mat_get" "', argument " "1"" of type '" "CvSparseMatIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMatIterator * >(argp1);
|
|
result = (CvSparseMat *) ((arg1)->mat);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMatIterator_node_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMatIterator *arg1 = (CvSparseMatIterator *) 0 ;
|
|
CvSparseNode *arg2 = (CvSparseNode *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSparseMatIterator_node_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMatIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMatIterator_node_set" "', argument " "1"" of type '" "CvSparseMatIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMatIterator * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSparseNode, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSparseMatIterator_node_set" "', argument " "2"" of type '" "CvSparseNode *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSparseNode * >(argp2);
|
|
if (arg1) (arg1)->node = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMatIterator_node_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMatIterator *arg1 = (CvSparseMatIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSparseNode *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSparseMatIterator_node_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMatIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMatIterator_node_get" "', argument " "1"" of type '" "CvSparseMatIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMatIterator * >(argp1);
|
|
result = (CvSparseNode *) ((arg1)->node);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSparseNode, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMatIterator_curidx_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMatIterator *arg1 = (CvSparseMatIterator *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSparseMatIterator_curidx_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMatIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMatIterator_curidx_set" "', argument " "1"" of type '" "CvSparseMatIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMatIterator * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSparseMatIterator_curidx_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->curidx = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSparseMatIterator_curidx_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMatIterator *arg1 = (CvSparseMatIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSparseMatIterator_curidx_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMatIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSparseMatIterator_curidx_get" "', argument " "1"" of type '" "CvSparseMatIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMatIterator * >(argp1);
|
|
result = (int) ((arg1)->curidx);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSparseMatIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMatIterator *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSparseMatIterator")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvSparseMatIterator *)new CvSparseMatIterator();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSparseMatIterator, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSparseMatIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMatIterator *arg1 = (CvSparseMatIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSparseMatIterator",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMatIterator, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSparseMatIterator" "', argument " "1"" of type '" "CvSparseMatIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMatIterator * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSparseMatIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvSparseMatIterator, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHistogram_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHistogram_type_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHistogram_type_set" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHistogram_type_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->type = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHistogram_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHistogram_type_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHistogram_type_get" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
result = (int) ((arg1)->type);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHistogram_bins_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHistogram_bins_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHistogram_bins_set" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->bins = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHistogram_bins_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvArr *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHistogram_bins_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHistogram_bins_get" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
result = (CvArr *) ((arg1)->bins);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHistogram_thresh_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
float (*arg2)[2] ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHistogram_thresh_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHistogram_thresh_set" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_a_2__float, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvHistogram_thresh_set" "', argument " "2"" of type '" "float [32][2]""'");
|
|
}
|
|
arg2 = reinterpret_cast< float (*)[2] >(argp2);
|
|
{
|
|
if (arg2) {
|
|
size_t ii = 0;
|
|
for (; ii < (size_t)32; ++ii) {
|
|
if (arg2[ii]) {
|
|
size_t jj = 0;
|
|
for (; jj < (size_t)2; ++jj) arg1->thresh[ii][jj] = arg2[ii][jj];
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""thresh""' of type '""float [32][2]""'");
|
|
}
|
|
}
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""thresh""' of type '""float [32][2]""'");
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHistogram_thresh_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float (*result)[2] = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHistogram_thresh_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHistogram_thresh_get" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
result = (float (*)[2])(float (*)[2]) ((arg1)->thresh);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_2__float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHistogram_thresh2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
float **arg2 = (float **) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *vptr2 ;
|
|
float *buffer2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHistogram_thresh2_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHistogram_thresh2_set" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
{
|
|
if ((SWIG_ConvertPtr(obj1, &vptr2, SWIGTYPE_p_float, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer2 = (float *) vptr2;
|
|
arg2=&buffer2;
|
|
}
|
|
if (arg1) (arg1)->thresh2 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHistogram_thresh2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float **result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHistogram_thresh2_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHistogram_thresh2_get" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
result = (float **) ((arg1)->thresh2);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHistogram_mat_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
CvMatND *arg2 = (CvMatND *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHistogram_mat_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHistogram_mat_set" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMatND, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvHistogram_mat_set" "', argument " "2"" of type '" "CvMatND *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMatND * >(argp2);
|
|
if (arg1) (arg1)->mat = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHistogram_mat_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMatND *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHistogram_mat_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHistogram_mat_get" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
result = (CvMatND *)& ((arg1)->mat);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatND, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvHistogram(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvHistogram",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvHistogram" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
{
|
|
try {
|
|
delete_CvHistogram(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvHistogram_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvHistogram, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvRect_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRect *arg1 = (CvRect *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvRect_x_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvRect_x_set" "', argument " "1"" of type '" "CvRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvRect_x_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->x = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvRect_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRect *arg1 = (CvRect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvRect_x_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvRect_x_get" "', argument " "1"" of type '" "CvRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvRect * >(argp1);
|
|
result = (int) ((arg1)->x);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvRect_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRect *arg1 = (CvRect *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvRect_y_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvRect_y_set" "', argument " "1"" of type '" "CvRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvRect_y_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->y = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvRect_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRect *arg1 = (CvRect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvRect_y_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvRect_y_get" "', argument " "1"" of type '" "CvRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvRect * >(argp1);
|
|
result = (int) ((arg1)->y);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvRect_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRect *arg1 = (CvRect *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvRect_width_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvRect_width_set" "', argument " "1"" of type '" "CvRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvRect_width_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->width = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvRect_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRect *arg1 = (CvRect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvRect_width_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvRect_width_get" "', argument " "1"" of type '" "CvRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvRect * >(argp1);
|
|
result = (int) ((arg1)->width);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvRect_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRect *arg1 = (CvRect *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvRect_height_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvRect_height_set" "', argument " "1"" of type '" "CvRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvRect_height_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->height = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvRect_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRect *arg1 = (CvRect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvRect_height_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvRect_height_get" "', argument " "1"" of type '" "CvRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvRect * >(argp1);
|
|
result = (int) ((arg1)->height);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRect *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvRect")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvRect *)new CvRect();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvRect, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRect *arg1 = (CvRect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvRect",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvRect, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvRect" "', argument " "1"" of type '" "CvRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvRect * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvRect_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvRect, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvRect result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvRect",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvRect" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvRect" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvRect" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvRect" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
try {
|
|
result = cvRect(arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvRect(static_cast< const CvRect& >(result))), SWIGTYPE_p_CvRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRectToROI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRect arg1 ;
|
|
int arg2 ;
|
|
CvRect temp1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
IplROI result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvRectToROI",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"iiii", & temp1.x, & temp1.y, & temp1.width, & temp1.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 4 integers (x, y, width, height)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvRect * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvRect, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvRect");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvRectToROI" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = cvRectToROI(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new IplROI(static_cast< const IplROI& >(result))), SWIGTYPE_p__IplROI, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvROIToRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplROI arg1 ;
|
|
void *argp1 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvRect result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvROIToRect",&obj0)) SWIG_fail;
|
|
{
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p__IplROI, 0 | 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvROIToRect" "', argument " "1"" of type '" "IplROI""'");
|
|
}
|
|
if (!argp1) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cvROIToRect" "', argument " "1"" of type '" "IplROI""'");
|
|
} else {
|
|
IplROI * temp = reinterpret_cast< IplROI * >(argp1);
|
|
arg1 = *temp;
|
|
if (SWIG_IsNewObj(res1)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = cvROIToRect(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvRect(static_cast< const CvRect& >(result))), SWIGTYPE_p_CvRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTermCriteria_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTermCriteria *arg1 = (CvTermCriteria *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTermCriteria_type_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTermCriteria, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTermCriteria_type_set" "', argument " "1"" of type '" "CvTermCriteria *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTermCriteria * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvTermCriteria_type_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->type = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTermCriteria_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTermCriteria *arg1 = (CvTermCriteria *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTermCriteria_type_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTermCriteria, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTermCriteria_type_get" "', argument " "1"" of type '" "CvTermCriteria *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTermCriteria * >(argp1);
|
|
result = (int) ((arg1)->type);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTermCriteria_max_iter_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTermCriteria *arg1 = (CvTermCriteria *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTermCriteria_max_iter_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTermCriteria, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTermCriteria_max_iter_set" "', argument " "1"" of type '" "CvTermCriteria *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTermCriteria * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvTermCriteria_max_iter_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->max_iter = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTermCriteria_max_iter_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTermCriteria *arg1 = (CvTermCriteria *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTermCriteria_max_iter_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTermCriteria, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTermCriteria_max_iter_get" "', argument " "1"" of type '" "CvTermCriteria *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTermCriteria * >(argp1);
|
|
result = (int) ((arg1)->max_iter);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTermCriteria_epsilon_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTermCriteria *arg1 = (CvTermCriteria *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTermCriteria_epsilon_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTermCriteria, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTermCriteria_epsilon_set" "', argument " "1"" of type '" "CvTermCriteria *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTermCriteria * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvTermCriteria_epsilon_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->epsilon = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTermCriteria_epsilon_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTermCriteria *arg1 = (CvTermCriteria *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTermCriteria_epsilon_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTermCriteria, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTermCriteria_epsilon_get" "', argument " "1"" of type '" "CvTermCriteria *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTermCriteria * >(argp1);
|
|
result = (double) ((arg1)->epsilon);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvTermCriteria(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTermCriteria *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvTermCriteria")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvTermCriteria *)new CvTermCriteria();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTermCriteria, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvTermCriteria(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTermCriteria *arg1 = (CvTermCriteria *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvTermCriteria",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTermCriteria, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvTermCriteria" "', argument " "1"" of type '" "CvTermCriteria *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTermCriteria * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvTermCriteria_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvTermCriteria, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvTermCriteria(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
double arg3 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvTermCriteria result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvTermCriteria",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvTermCriteria" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvTermCriteria" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvTermCriteria" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
{
|
|
try {
|
|
result = cvTermCriteria(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvTermCriteria(static_cast< const CvTermCriteria& >(result))), SWIGTYPE_p_CvTermCriteria, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint *arg1 = (CvPoint *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPoint_x_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint_x_set" "', argument " "1"" of type '" "CvPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPoint_x_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->x = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint *arg1 = (CvPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPoint_x_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint_x_get" "', argument " "1"" of type '" "CvPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint * >(argp1);
|
|
result = (int) ((arg1)->x);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint *arg1 = (CvPoint *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPoint_y_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint_y_set" "', argument " "1"" of type '" "CvPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPoint_y_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->y = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint *arg1 = (CvPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPoint_y_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint_y_get" "', argument " "1"" of type '" "CvPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint * >(argp1);
|
|
result = (int) ((arg1)->y);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint *arg1 = (CvPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPoint___str__",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint___str__" "', argument " "1"" of type '" "CvPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint * >(argp1);
|
|
{
|
|
try {
|
|
result = (char *)CvPoint___str__(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_FromCharPtr((const char *)result);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint *arg1 = (CvPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPoint___repr__",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint___repr__" "', argument " "1"" of type '" "CvPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint * >(argp1);
|
|
{
|
|
try {
|
|
result = (char *)CvPoint___repr__(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_FromCharPtr((const char *)result);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvPoint")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvPoint *)new CvPoint();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint *arg1 = (CvPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvPoint",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvPoint" "', argument " "1"" of type '" "CvPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvPoint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvPoint, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvPoint result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvPoint",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvPoint" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvPoint" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = cvPoint(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvPoint(static_cast< const CvPoint& >(result))), SWIGTYPE_p_CvPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint2D32f_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D32f *arg1 = (CvPoint2D32f *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPoint2D32f_x_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint2D32f_x_set" "', argument " "1"" of type '" "CvPoint2D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint2D32f * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPoint2D32f_x_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->x = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint2D32f_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D32f *arg1 = (CvPoint2D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPoint2D32f_x_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint2D32f_x_get" "', argument " "1"" of type '" "CvPoint2D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint2D32f * >(argp1);
|
|
result = (float) ((arg1)->x);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint2D32f_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D32f *arg1 = (CvPoint2D32f *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPoint2D32f_y_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint2D32f_y_set" "', argument " "1"" of type '" "CvPoint2D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint2D32f * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPoint2D32f_y_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->y = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint2D32f_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D32f *arg1 = (CvPoint2D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPoint2D32f_y_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint2D32f_y_get" "', argument " "1"" of type '" "CvPoint2D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint2D32f * >(argp1);
|
|
result = (float) ((arg1)->y);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint2D32f___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D32f *arg1 = (CvPoint2D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPoint2D32f___str__",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint2D32f___str__" "', argument " "1"" of type '" "CvPoint2D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint2D32f * >(argp1);
|
|
{
|
|
try {
|
|
result = (char *)CvPoint2D32f___str__(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_FromCharPtr((const char *)result);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint2D32f___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D32f *arg1 = (CvPoint2D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPoint2D32f___repr__",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint2D32f___repr__" "', argument " "1"" of type '" "CvPoint2D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint2D32f * >(argp1);
|
|
{
|
|
try {
|
|
result = (char *)CvPoint2D32f___repr__(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_FromCharPtr((const char *)result);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvPoint2D32f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D32f *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvPoint2D32f")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvPoint2D32f *)new CvPoint2D32f();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvPoint2D32f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D32f *arg1 = (CvPoint2D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvPoint2D32f",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvPoint2D32f" "', argument " "1"" of type '" "CvPoint2D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint2D32f * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvPoint2D32f_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvPoint2D32f, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPoint2D32f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double arg2 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvPoint2D32f result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvPoint2D32f",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvPoint2D32f" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvPoint2D32f" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = cvPoint2D32f(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvPoint2D32f(static_cast< const CvPoint2D32f& >(result))), SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPointTo32f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint arg1 ;
|
|
CvPoint temp1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint2D32f result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvPointTo32f",&obj0)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"ii", & temp1.x, & temp1.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = cvPointTo32f(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvPoint2D32f(static_cast< const CvPoint2D32f& >(result))), SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPointFrom32f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D32f arg1 ;
|
|
CvPoint2D32f temp1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvPointFrom32f",&obj0)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"ff", & temp1.x, & temp1.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 floats (x, y)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvPoint2D32f * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint2D32f");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = cvPointFrom32f(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvPoint(static_cast< const CvPoint& >(result))), SWIGTYPE_p_CvPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint3D32f_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint3D32f *arg1 = (CvPoint3D32f *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPoint3D32f_x_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint3D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint3D32f_x_set" "', argument " "1"" of type '" "CvPoint3D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint3D32f * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPoint3D32f_x_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->x = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint3D32f_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint3D32f *arg1 = (CvPoint3D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPoint3D32f_x_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint3D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint3D32f_x_get" "', argument " "1"" of type '" "CvPoint3D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint3D32f * >(argp1);
|
|
result = (float) ((arg1)->x);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint3D32f_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint3D32f *arg1 = (CvPoint3D32f *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPoint3D32f_y_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint3D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint3D32f_y_set" "', argument " "1"" of type '" "CvPoint3D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint3D32f * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPoint3D32f_y_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->y = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint3D32f_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint3D32f *arg1 = (CvPoint3D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPoint3D32f_y_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint3D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint3D32f_y_get" "', argument " "1"" of type '" "CvPoint3D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint3D32f * >(argp1);
|
|
result = (float) ((arg1)->y);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint3D32f_z_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint3D32f *arg1 = (CvPoint3D32f *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPoint3D32f_z_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint3D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint3D32f_z_set" "', argument " "1"" of type '" "CvPoint3D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint3D32f * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPoint3D32f_z_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->z = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint3D32f_z_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint3D32f *arg1 = (CvPoint3D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPoint3D32f_z_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint3D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint3D32f_z_get" "', argument " "1"" of type '" "CvPoint3D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint3D32f * >(argp1);
|
|
result = (float) ((arg1)->z);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvPoint3D32f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint3D32f *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvPoint3D32f")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvPoint3D32f *)new CvPoint3D32f();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint3D32f, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvPoint3D32f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint3D32f *arg1 = (CvPoint3D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvPoint3D32f",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint3D32f, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvPoint3D32f" "', argument " "1"" of type '" "CvPoint3D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint3D32f * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvPoint3D32f_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvPoint3D32f, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPoint3D32f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double arg2 ;
|
|
double arg3 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvPoint3D32f result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvPoint3D32f",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvPoint3D32f" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvPoint3D32f" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvPoint3D32f" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
{
|
|
try {
|
|
result = cvPoint3D32f(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvPoint3D32f(static_cast< const CvPoint3D32f& >(result))), SWIGTYPE_p_CvPoint3D32f, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint2D64f_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D64f *arg1 = (CvPoint2D64f *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPoint2D64f_x_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint2D64f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint2D64f_x_set" "', argument " "1"" of type '" "CvPoint2D64f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint2D64f * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPoint2D64f_x_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->x = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint2D64f_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D64f *arg1 = (CvPoint2D64f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPoint2D64f_x_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint2D64f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint2D64f_x_get" "', argument " "1"" of type '" "CvPoint2D64f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint2D64f * >(argp1);
|
|
result = (double) ((arg1)->x);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint2D64f_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D64f *arg1 = (CvPoint2D64f *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPoint2D64f_y_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint2D64f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint2D64f_y_set" "', argument " "1"" of type '" "CvPoint2D64f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint2D64f * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPoint2D64f_y_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->y = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint2D64f_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D64f *arg1 = (CvPoint2D64f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPoint2D64f_y_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint2D64f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint2D64f_y_get" "', argument " "1"" of type '" "CvPoint2D64f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint2D64f * >(argp1);
|
|
result = (double) ((arg1)->y);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvPoint2D64f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D64f *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvPoint2D64f")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvPoint2D64f *)new CvPoint2D64f();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint2D64f, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvPoint2D64f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D64f *arg1 = (CvPoint2D64f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvPoint2D64f",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint2D64f, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvPoint2D64f" "', argument " "1"" of type '" "CvPoint2D64f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint2D64f * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvPoint2D64f_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvPoint2D64f, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPoint2D64f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double arg2 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvPoint2D64f result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvPoint2D64f",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvPoint2D64f" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvPoint2D64f" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = cvPoint2D64f(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvPoint2D64f(static_cast< const CvPoint2D64f& >(result))), SWIGTYPE_p_CvPoint2D64f, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint3D64f_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint3D64f *arg1 = (CvPoint3D64f *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPoint3D64f_x_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint3D64f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint3D64f_x_set" "', argument " "1"" of type '" "CvPoint3D64f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint3D64f * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPoint3D64f_x_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->x = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint3D64f_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint3D64f *arg1 = (CvPoint3D64f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPoint3D64f_x_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint3D64f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint3D64f_x_get" "', argument " "1"" of type '" "CvPoint3D64f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint3D64f * >(argp1);
|
|
result = (double) ((arg1)->x);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint3D64f_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint3D64f *arg1 = (CvPoint3D64f *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPoint3D64f_y_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint3D64f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint3D64f_y_set" "', argument " "1"" of type '" "CvPoint3D64f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint3D64f * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPoint3D64f_y_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->y = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint3D64f_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint3D64f *arg1 = (CvPoint3D64f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPoint3D64f_y_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint3D64f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint3D64f_y_get" "', argument " "1"" of type '" "CvPoint3D64f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint3D64f * >(argp1);
|
|
result = (double) ((arg1)->y);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint3D64f_z_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint3D64f *arg1 = (CvPoint3D64f *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPoint3D64f_z_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint3D64f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint3D64f_z_set" "', argument " "1"" of type '" "CvPoint3D64f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint3D64f * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPoint3D64f_z_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->z = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPoint3D64f_z_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint3D64f *arg1 = (CvPoint3D64f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPoint3D64f_z_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint3D64f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPoint3D64f_z_get" "', argument " "1"" of type '" "CvPoint3D64f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint3D64f * >(argp1);
|
|
result = (double) ((arg1)->z);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvPoint3D64f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint3D64f *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvPoint3D64f")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvPoint3D64f *)new CvPoint3D64f();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint3D64f, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvPoint3D64f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint3D64f *arg1 = (CvPoint3D64f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvPoint3D64f",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint3D64f, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvPoint3D64f" "', argument " "1"" of type '" "CvPoint3D64f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint3D64f * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvPoint3D64f_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvPoint3D64f, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPoint3D64f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double arg2 ;
|
|
double arg3 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvPoint3D64f result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvPoint3D64f",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvPoint3D64f" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvPoint3D64f" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvPoint3D64f" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
{
|
|
try {
|
|
result = cvPoint3D64f(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvPoint3D64f(static_cast< const CvPoint3D64f& >(result))), SWIGTYPE_p_CvPoint3D64f, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSize_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSize *arg1 = (CvSize *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSize_width_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSize_width_set" "', argument " "1"" of type '" "CvSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSize * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSize_width_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->width = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSize_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSize *arg1 = (CvSize *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSize_width_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSize_width_get" "', argument " "1"" of type '" "CvSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSize * >(argp1);
|
|
result = (int) ((arg1)->width);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSize_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSize *arg1 = (CvSize *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSize_height_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSize_height_set" "', argument " "1"" of type '" "CvSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSize * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSize_height_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->height = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSize_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSize *arg1 = (CvSize *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSize_height_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSize_height_get" "', argument " "1"" of type '" "CvSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSize * >(argp1);
|
|
result = (int) ((arg1)->height);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSize *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSize")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvSize *)new CvSize();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSize, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSize *arg1 = (CvSize *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSize",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSize, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSize" "', argument " "1"" of type '" "CvSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSize * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSize_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvSize, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvSize result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvSize",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvSize" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSize" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = cvSize(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvSize(static_cast< const CvSize& >(result))), SWIGTYPE_p_CvSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSize2D32f_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSize2D32f *arg1 = (CvSize2D32f *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSize2D32f_width_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSize2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSize2D32f_width_set" "', argument " "1"" of type '" "CvSize2D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSize2D32f * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSize2D32f_width_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->width = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSize2D32f_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSize2D32f *arg1 = (CvSize2D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSize2D32f_width_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSize2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSize2D32f_width_get" "', argument " "1"" of type '" "CvSize2D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSize2D32f * >(argp1);
|
|
result = (float) ((arg1)->width);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSize2D32f_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSize2D32f *arg1 = (CvSize2D32f *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSize2D32f_height_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSize2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSize2D32f_height_set" "', argument " "1"" of type '" "CvSize2D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSize2D32f * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSize2D32f_height_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->height = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSize2D32f_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSize2D32f *arg1 = (CvSize2D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSize2D32f_height_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSize2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSize2D32f_height_get" "', argument " "1"" of type '" "CvSize2D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSize2D32f * >(argp1);
|
|
result = (float) ((arg1)->height);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSize2D32f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSize2D32f *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSize2D32f")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvSize2D32f *)new CvSize2D32f();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSize2D32f, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSize2D32f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSize2D32f *arg1 = (CvSize2D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSize2D32f",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSize2D32f, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSize2D32f" "', argument " "1"" of type '" "CvSize2D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSize2D32f * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSize2D32f_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvSize2D32f, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSize2D32f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double arg2 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvSize2D32f result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvSize2D32f",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvSize2D32f" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSize2D32f" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = cvSize2D32f(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvSize2D32f(static_cast< const CvSize2D32f& >(result))), SWIGTYPE_p_CvSize2D32f, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvBox2D_center_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvBox2D *arg1 = (CvBox2D *) 0 ;
|
|
CvPoint2D32f *arg2 = (CvPoint2D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvBox2D_center_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvBox2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvBox2D_center_set" "', argument " "1"" of type '" "CvBox2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvBox2D * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvBox2D_center_set" "', argument " "2"" of type '" "CvPoint2D32f *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint2D32f * >(argp2);
|
|
if (arg1) (arg1)->center = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvBox2D_center_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvBox2D *arg1 = (CvBox2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint2D32f *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvBox2D_center_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvBox2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvBox2D_center_get" "', argument " "1"" of type '" "CvBox2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvBox2D * >(argp1);
|
|
result = (CvPoint2D32f *)& ((arg1)->center);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvBox2D_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvBox2D *arg1 = (CvBox2D *) 0 ;
|
|
CvSize2D32f *arg2 = (CvSize2D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvBox2D_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvBox2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvBox2D_size_set" "', argument " "1"" of type '" "CvBox2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvBox2D * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSize2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvBox2D_size_set" "', argument " "2"" of type '" "CvSize2D32f *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSize2D32f * >(argp2);
|
|
if (arg1) (arg1)->size = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvBox2D_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvBox2D *arg1 = (CvBox2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSize2D32f *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvBox2D_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvBox2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvBox2D_size_get" "', argument " "1"" of type '" "CvBox2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvBox2D * >(argp1);
|
|
result = (CvSize2D32f *)& ((arg1)->size);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSize2D32f, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvBox2D_angle_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvBox2D *arg1 = (CvBox2D *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvBox2D_angle_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvBox2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvBox2D_angle_set" "', argument " "1"" of type '" "CvBox2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvBox2D * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvBox2D_angle_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->angle = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvBox2D_angle_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvBox2D *arg1 = (CvBox2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvBox2D_angle_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvBox2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvBox2D_angle_get" "', argument " "1"" of type '" "CvBox2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvBox2D * >(argp1);
|
|
result = (float) ((arg1)->angle);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvBox2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvBox2D *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvBox2D")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvBox2D *)new CvBox2D();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvBox2D, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvBox2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvBox2D *arg1 = (CvBox2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvBox2D",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvBox2D, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvBox2D" "', argument " "1"" of type '" "CvBox2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvBox2D * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvBox2D_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvBox2D, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvLineIterator_ptr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLineIterator *arg1 = (CvLineIterator *) 0 ;
|
|
uchar *arg2 = (uchar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvLineIterator_ptr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLineIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvLineIterator_ptr_set" "', argument " "1"" of type '" "CvLineIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLineIterator * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvLineIterator_ptr_set" "', argument " "2"" of type '" "uchar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< uchar * >(argp2);
|
|
if (arg1) (arg1)->ptr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvLineIterator_ptr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLineIterator *arg1 = (CvLineIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
uchar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvLineIterator_ptr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLineIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvLineIterator_ptr_get" "', argument " "1"" of type '" "CvLineIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLineIterator * >(argp1);
|
|
result = (uchar *) ((arg1)->ptr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvLineIterator_err_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLineIterator *arg1 = (CvLineIterator *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvLineIterator_err_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLineIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvLineIterator_err_set" "', argument " "1"" of type '" "CvLineIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLineIterator * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvLineIterator_err_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->err = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvLineIterator_err_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLineIterator *arg1 = (CvLineIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvLineIterator_err_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLineIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvLineIterator_err_get" "', argument " "1"" of type '" "CvLineIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLineIterator * >(argp1);
|
|
result = (int) ((arg1)->err);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvLineIterator_plus_delta_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLineIterator *arg1 = (CvLineIterator *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvLineIterator_plus_delta_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLineIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvLineIterator_plus_delta_set" "', argument " "1"" of type '" "CvLineIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLineIterator * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvLineIterator_plus_delta_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->plus_delta = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvLineIterator_plus_delta_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLineIterator *arg1 = (CvLineIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvLineIterator_plus_delta_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLineIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvLineIterator_plus_delta_get" "', argument " "1"" of type '" "CvLineIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLineIterator * >(argp1);
|
|
result = (int) ((arg1)->plus_delta);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvLineIterator_minus_delta_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLineIterator *arg1 = (CvLineIterator *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvLineIterator_minus_delta_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLineIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvLineIterator_minus_delta_set" "', argument " "1"" of type '" "CvLineIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLineIterator * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvLineIterator_minus_delta_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->minus_delta = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvLineIterator_minus_delta_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLineIterator *arg1 = (CvLineIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvLineIterator_minus_delta_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLineIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvLineIterator_minus_delta_get" "', argument " "1"" of type '" "CvLineIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLineIterator * >(argp1);
|
|
result = (int) ((arg1)->minus_delta);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvLineIterator_plus_step_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLineIterator *arg1 = (CvLineIterator *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvLineIterator_plus_step_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLineIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvLineIterator_plus_step_set" "', argument " "1"" of type '" "CvLineIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLineIterator * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvLineIterator_plus_step_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->plus_step = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvLineIterator_plus_step_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLineIterator *arg1 = (CvLineIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvLineIterator_plus_step_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLineIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvLineIterator_plus_step_get" "', argument " "1"" of type '" "CvLineIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLineIterator * >(argp1);
|
|
result = (int) ((arg1)->plus_step);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvLineIterator_minus_step_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLineIterator *arg1 = (CvLineIterator *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvLineIterator_minus_step_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLineIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvLineIterator_minus_step_set" "', argument " "1"" of type '" "CvLineIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLineIterator * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvLineIterator_minus_step_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->minus_step = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvLineIterator_minus_step_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLineIterator *arg1 = (CvLineIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvLineIterator_minus_step_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLineIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvLineIterator_minus_step_get" "', argument " "1"" of type '" "CvLineIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLineIterator * >(argp1);
|
|
result = (int) ((arg1)->minus_step);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvLineIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLineIterator *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvLineIterator")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvLineIterator *)new CvLineIterator();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvLineIterator, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvLineIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLineIterator *arg1 = (CvLineIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvLineIterator",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLineIterator, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvLineIterator" "', argument " "1"" of type '" "CvLineIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLineIterator * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvLineIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvLineIterator, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSlice_start_index_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSlice *arg1 = (CvSlice *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSlice_start_index_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSlice, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSlice_start_index_set" "', argument " "1"" of type '" "CvSlice *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSlice * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSlice_start_index_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->start_index = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSlice_start_index_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSlice *arg1 = (CvSlice *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSlice_start_index_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSlice, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSlice_start_index_get" "', argument " "1"" of type '" "CvSlice *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSlice * >(argp1);
|
|
result = (int) ((arg1)->start_index);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSlice_end_index_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSlice *arg1 = (CvSlice *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSlice_end_index_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSlice, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSlice_end_index_set" "', argument " "1"" of type '" "CvSlice *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSlice * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSlice_end_index_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->end_index = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSlice_end_index_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSlice *arg1 = (CvSlice *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSlice_end_index_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSlice, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSlice_end_index_get" "', argument " "1"" of type '" "CvSlice *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSlice * >(argp1);
|
|
result = (int) ((arg1)->end_index);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSlice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSlice *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSlice")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvSlice *)new CvSlice();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSlice, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSlice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSlice *arg1 = (CvSlice *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSlice",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSlice, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSlice" "', argument " "1"" of type '" "CvSlice *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSlice * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSlice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvSlice, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSlice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvSlice result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvSlice",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvSlice" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSlice" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = cvSlice(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvSlice(static_cast< const CvSlice& >(result))), SWIGTYPE_p_CvSlice, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvScalar_val_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvScalar *arg1 = (CvScalar *) 0 ;
|
|
double *arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvScalar_val_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvScalar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvScalar_val_set" "', argument " "1"" of type '" "CvScalar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvScalar * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_double, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvScalar_val_set" "', argument " "2"" of type '" "double [4]""'");
|
|
}
|
|
arg2 = reinterpret_cast< double * >(argp2);
|
|
{
|
|
if (arg2) {
|
|
size_t ii = 0;
|
|
for (; ii < (size_t)4; ++ii) arg1->val[ii] = arg2[ii];
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""val""' of type '""double [4]""'");
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvScalar_val_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvScalar *arg1 = (CvScalar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvScalar_val_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvScalar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvScalar_val_get" "', argument " "1"" of type '" "CvScalar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvScalar * >(argp1);
|
|
result = (double *)(double *) ((arg1)->val);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_double, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvScalar___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvScalar *arg1 = (CvScalar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvScalar___str__",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvScalar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvScalar___str__" "', argument " "1"" of type '" "CvScalar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvScalar * >(argp1);
|
|
{
|
|
try {
|
|
result = (char *)CvScalar___str__(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_FromCharPtr((const char *)result);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvScalar___repr__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvScalar *arg1 = (CvScalar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvScalar___repr__",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvScalar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvScalar___repr__" "', argument " "1"" of type '" "CvScalar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvScalar * >(argp1);
|
|
{
|
|
try {
|
|
result = (char *)CvScalar___repr__(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_FromCharPtr((const char *)result);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvScalar___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvScalar *arg1 = (CvScalar *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvScalar___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvScalar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvScalar___getitem__" "', argument " "1"" of type '" "CvScalar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvScalar * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvScalar___getitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (double)CvScalar___getitem__(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvScalar___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvScalar *arg1 = (CvScalar *) 0 ;
|
|
int arg2 ;
|
|
double arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvScalar___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvScalar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvScalar___setitem__" "', argument " "1"" of type '" "CvScalar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvScalar * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvScalar___setitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CvScalar___setitem__" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
{
|
|
try {
|
|
CvScalar___setitem__(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvScalar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvScalar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvScalar")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvScalar *)new CvScalar();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvScalar, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvScalar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvScalar *arg1 = (CvScalar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvScalar",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvScalar, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvScalar" "', argument " "1"" of type '" "CvScalar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvScalar * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvScalar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvScalar, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvScalar__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double arg2 ;
|
|
double arg3 ;
|
|
double arg4 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvScalar result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvScalar",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvScalar" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvScalar" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvScalar" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvScalar" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
{
|
|
try {
|
|
result = cvScalar(arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvScalar(static_cast< const CvScalar& >(result))), SWIGTYPE_p_CvScalar, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvScalar__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double arg2 ;
|
|
double arg3 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvScalar result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvScalar",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvScalar" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvScalar" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvScalar" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
{
|
|
try {
|
|
result = cvScalar(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvScalar(static_cast< const CvScalar& >(result))), SWIGTYPE_p_CvScalar, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvScalar__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double arg2 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvScalar result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvScalar",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvScalar" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvScalar" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
result = cvScalar(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvScalar(static_cast< const CvScalar& >(result))), SWIGTYPE_p_CvScalar, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvScalar__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvScalar result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvScalar",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvScalar" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
{
|
|
try {
|
|
result = cvScalar(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvScalar(static_cast< const CvScalar& >(result))), SWIGTYPE_p_CvScalar, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvScalar(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[5];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 4); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
{
|
|
int res = SWIG_AsVal_double(argv[0], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_cvScalar__SWIG_3(self, args);
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
{
|
|
int res = SWIG_AsVal_double(argv[0], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_cvScalar__SWIG_2(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
{
|
|
int res = SWIG_AsVal_double(argv[0], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_cvScalar__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 4) {
|
|
int _v;
|
|
{
|
|
int res = SWIG_AsVal_double(argv[0], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_double(argv[3], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_cvScalar__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'cvScalar'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" cvScalar(double,double,double,double)\n"
|
|
" cvScalar(double,double,double)\n"
|
|
" cvScalar(double,double)\n"
|
|
" cvScalar(double)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRealScalar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvScalar result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvRealScalar",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvRealScalar" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
{
|
|
try {
|
|
result = cvRealScalar(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvScalar(static_cast< const CvScalar& >(result))), SWIGTYPE_p_CvScalar, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvScalarAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvScalar result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvScalarAll",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvScalarAll" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
{
|
|
try {
|
|
result = cvScalarAll(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvScalar(static_cast< const CvScalar& >(result))), SWIGTYPE_p_CvScalar, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemBlock_prev_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemBlock *arg1 = (CvMemBlock *) 0 ;
|
|
CvMemBlock *arg2 = (CvMemBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMemBlock_prev_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemBlock, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemBlock_prev_set" "', argument " "1"" of type '" "CvMemBlock *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemBlock * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMemBlock_prev_set" "', argument " "2"" of type '" "CvMemBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemBlock * >(argp2);
|
|
if (arg1) (arg1)->prev = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemBlock_prev_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemBlock *arg1 = (CvMemBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMemBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMemBlock_prev_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemBlock, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemBlock_prev_get" "', argument " "1"" of type '" "CvMemBlock *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemBlock * >(argp1);
|
|
result = (CvMemBlock *) ((arg1)->prev);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMemBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemBlock_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemBlock *arg1 = (CvMemBlock *) 0 ;
|
|
CvMemBlock *arg2 = (CvMemBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMemBlock_next_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemBlock, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemBlock_next_set" "', argument " "1"" of type '" "CvMemBlock *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemBlock * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMemBlock_next_set" "', argument " "2"" of type '" "CvMemBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemBlock * >(argp2);
|
|
if (arg1) (arg1)->next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemBlock_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemBlock *arg1 = (CvMemBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMemBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMemBlock_next_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemBlock, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemBlock_next_get" "', argument " "1"" of type '" "CvMemBlock *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemBlock * >(argp1);
|
|
result = (CvMemBlock *) ((arg1)->next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMemBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMemBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvMemBlock")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvMemBlock *)new CvMemBlock();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMemBlock, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvMemBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemBlock *arg1 = (CvMemBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvMemBlock",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvMemBlock" "', argument " "1"" of type '" "CvMemBlock *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemBlock * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvMemBlock_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvMemBlock, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemStorage_signature_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMemStorage_signature_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemStorage_signature_set" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMemStorage_signature_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->signature = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemStorage_signature_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMemStorage_signature_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemStorage_signature_get" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
result = (int) ((arg1)->signature);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemStorage_bottom_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
CvMemBlock *arg2 = (CvMemBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMemStorage_bottom_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemStorage_bottom_set" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMemStorage_bottom_set" "', argument " "2"" of type '" "CvMemBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemBlock * >(argp2);
|
|
if (arg1) (arg1)->bottom = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemStorage_bottom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMemBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMemStorage_bottom_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemStorage_bottom_get" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
result = (CvMemBlock *) ((arg1)->bottom);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMemBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemStorage_top_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
CvMemBlock *arg2 = (CvMemBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMemStorage_top_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemStorage_top_set" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMemStorage_top_set" "', argument " "2"" of type '" "CvMemBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemBlock * >(argp2);
|
|
if (arg1) (arg1)->top = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemStorage_top_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMemBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMemStorage_top_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemStorage_top_get" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
result = (CvMemBlock *) ((arg1)->top);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMemBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemStorage_parent_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMemStorage_parent_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemStorage_parent_set" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMemStorage_parent_set" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
if (arg1) (arg1)->parent = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemStorage_parent_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMemStorage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMemStorage_parent_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemStorage_parent_get" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
result = (CvMemStorage *) ((arg1)->parent);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemStorage_block_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMemStorage_block_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemStorage_block_size_set" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMemStorage_block_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->block_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemStorage_block_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMemStorage_block_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemStorage_block_size_get" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
result = (int) ((arg1)->block_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemStorage_free_space_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMemStorage_free_space_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemStorage_free_space_set" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMemStorage_free_space_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->free_space = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemStorage_free_space_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMemStorage_free_space_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemStorage_free_space_get" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
result = (int) ((arg1)->free_space);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvMemStorage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvMemStorage",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvMemStorage" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
{
|
|
try {
|
|
delete_CvMemStorage(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvMemStorage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvMemStorage, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemStoragePos_top_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStoragePos *arg1 = (CvMemStoragePos *) 0 ;
|
|
CvMemBlock *arg2 = (CvMemBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMemStoragePos_top_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStoragePos, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemStoragePos_top_set" "', argument " "1"" of type '" "CvMemStoragePos *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStoragePos * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMemStoragePos_top_set" "', argument " "2"" of type '" "CvMemBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemBlock * >(argp2);
|
|
if (arg1) (arg1)->top = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemStoragePos_top_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStoragePos *arg1 = (CvMemStoragePos *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMemBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMemStoragePos_top_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStoragePos, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemStoragePos_top_get" "', argument " "1"" of type '" "CvMemStoragePos *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStoragePos * >(argp1);
|
|
result = (CvMemBlock *) ((arg1)->top);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMemBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemStoragePos_free_space_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStoragePos *arg1 = (CvMemStoragePos *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMemStoragePos_free_space_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStoragePos, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemStoragePos_free_space_set" "', argument " "1"" of type '" "CvMemStoragePos *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStoragePos * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMemStoragePos_free_space_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->free_space = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMemStoragePos_free_space_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStoragePos *arg1 = (CvMemStoragePos *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMemStoragePos_free_space_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStoragePos, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMemStoragePos_free_space_get" "', argument " "1"" of type '" "CvMemStoragePos *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStoragePos * >(argp1);
|
|
result = (int) ((arg1)->free_space);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMemStoragePos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStoragePos *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvMemStoragePos")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvMemStoragePos *)new CvMemStoragePos();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMemStoragePos, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvMemStoragePos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStoragePos *arg1 = (CvMemStoragePos *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvMemStoragePos",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStoragePos, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvMemStoragePos" "', argument " "1"" of type '" "CvMemStoragePos *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStoragePos * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvMemStoragePos_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvMemStoragePos, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqBlock_prev_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqBlock *arg1 = (CvSeqBlock *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqBlock_prev_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqBlock_prev_set" "', argument " "1"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqBlock * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeqBlock_prev_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->prev = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqBlock_prev_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqBlock *arg1 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqBlock_prev_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqBlock_prev_get" "', argument " "1"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqBlock * >(argp1);
|
|
result = (CvSeqBlock *) ((arg1)->prev);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqBlock_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqBlock *arg1 = (CvSeqBlock *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqBlock_next_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqBlock_next_set" "', argument " "1"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqBlock * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeqBlock_next_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqBlock_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqBlock *arg1 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqBlock_next_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqBlock_next_get" "', argument " "1"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqBlock * >(argp1);
|
|
result = (CvSeqBlock *) ((arg1)->next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqBlock_start_index_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqBlock *arg1 = (CvSeqBlock *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqBlock_start_index_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqBlock_start_index_set" "', argument " "1"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqBlock * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeqBlock_start_index_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->start_index = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqBlock_start_index_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqBlock *arg1 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqBlock_start_index_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqBlock_start_index_get" "', argument " "1"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqBlock * >(argp1);
|
|
result = (int) ((arg1)->start_index);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqBlock_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqBlock *arg1 = (CvSeqBlock *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqBlock_count_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqBlock_count_set" "', argument " "1"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqBlock * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeqBlock_count_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->count = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqBlock_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqBlock *arg1 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqBlock_count_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqBlock_count_get" "', argument " "1"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqBlock * >(argp1);
|
|
result = (int) ((arg1)->count);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqBlock_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqBlock *arg1 = (CvSeqBlock *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqBlock_data_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqBlock_data_set" "', argument " "1"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqBlock * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeqBlock_data_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->data = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqBlock_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqBlock *arg1 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqBlock_data_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqBlock_data_get" "', argument " "1"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqBlock * >(argp1);
|
|
result = (schar *) ((arg1)->data);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSeqBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSeqBlock")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvSeqBlock *)new CvSeqBlock();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSeqBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqBlock *arg1 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSeqBlock",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSeqBlock" "', argument " "1"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqBlock * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSeqBlock_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvSeqBlock, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_flags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_flags_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_flags_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->flags = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_flags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_flags_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int) ((arg1)->flags);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_header_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_header_size_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_header_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->header_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_header_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_header_size_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int) ((arg1)->header_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_h_prev_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_h_prev_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->h_prev = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_h_prev_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_h_prev_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (CvSeq *) ((arg1)->h_prev);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_h_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_h_next_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->h_next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_h_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_h_next_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (CvSeq *) ((arg1)->h_next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_v_prev_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_v_prev_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->v_prev = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_v_prev_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_v_prev_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (CvSeq *) ((arg1)->v_prev);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_v_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_v_next_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->v_next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_v_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_v_next_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (CvSeq *) ((arg1)->v_next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_total_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_total_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_total_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->total = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_total_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_total_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int) ((arg1)->total);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_elem_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_elem_size_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_elem_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->elem_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_elem_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_elem_size_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int) ((arg1)->elem_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_block_max_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_block_max_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeq_block_max_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->block_max = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_block_max_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_block_max_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (schar *) ((arg1)->block_max);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_ptr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_ptr_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeq_ptr_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->ptr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_ptr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_ptr_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (schar *) ((arg1)->ptr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_delta_elems_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_delta_elems_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_delta_elems_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->delta_elems = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_delta_elems_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_delta_elems_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (int) ((arg1)->delta_elems);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_storage_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_storage_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeq_storage_set" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
if (arg1) (arg1)->storage = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_storage_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMemStorage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_storage_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (CvMemStorage *) ((arg1)->storage);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_free_blocks_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_free_blocks_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeq_free_blocks_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->free_blocks = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_free_blocks_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_free_blocks_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (CvSeqBlock *) ((arg1)->free_blocks);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_first_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_first_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeq_first_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->first = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_first_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_first_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
result = (CvSeqBlock *) ((arg1)->first);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSeq")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvSeq *)new CvSeq();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSeq",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSeq_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvSeq, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSetElem_flags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSetElem *arg1 = (CvSetElem *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSetElem_flags_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSetElem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSetElem_flags_set" "', argument " "1"" of type '" "CvSetElem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSetElem * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSetElem_flags_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->flags = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSetElem_flags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSetElem *arg1 = (CvSetElem *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSetElem_flags_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSetElem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSetElem_flags_get" "', argument " "1"" of type '" "CvSetElem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSetElem * >(argp1);
|
|
result = (int) ((arg1)->flags);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSetElem_next_free_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSetElem *arg1 = (CvSetElem *) 0 ;
|
|
CvSetElem *arg2 = (CvSetElem *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSetElem_next_free_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSetElem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSetElem_next_free_set" "', argument " "1"" of type '" "CvSetElem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSetElem * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSetElem, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSetElem_next_free_set" "', argument " "2"" of type '" "CvSetElem *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSetElem * >(argp2);
|
|
if (arg1) (arg1)->next_free = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSetElem_next_free_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSetElem *arg1 = (CvSetElem *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSetElem *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSetElem_next_free_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSetElem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSetElem_next_free_get" "', argument " "1"" of type '" "CvSetElem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSetElem * >(argp1);
|
|
result = (CvSetElem *) ((arg1)->next_free);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSetElem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSetElem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSetElem *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSetElem")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvSetElem *)new CvSetElem();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSetElem, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSetElem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSetElem *arg1 = (CvSetElem *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSetElem",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSetElem, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSetElem" "', argument " "1"" of type '" "CvSetElem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSetElem * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSetElem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvSetElem, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_flags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSet_flags_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSet_flags_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->flags = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_flags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSet_flags_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
result = (int) ((arg1)->flags);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_header_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSet_header_size_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSet_header_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->header_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_header_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSet_header_size_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
result = (int) ((arg1)->header_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_h_prev_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSet_h_prev_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->h_prev = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_h_prev_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSet_h_prev_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
result = (CvSeq *) ((arg1)->h_prev);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_h_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSet_h_next_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->h_next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_h_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSet_h_next_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
result = (CvSeq *) ((arg1)->h_next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_v_prev_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSet_v_prev_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->v_prev = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_v_prev_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSet_v_prev_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
result = (CvSeq *) ((arg1)->v_prev);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_v_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSet_v_next_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->v_next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_v_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSet_v_next_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
result = (CvSeq *) ((arg1)->v_next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_total_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSet_total_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSet_total_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->total = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_total_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSet_total_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
result = (int) ((arg1)->total);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_elem_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSet_elem_size_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSet_elem_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->elem_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_elem_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSet_elem_size_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
result = (int) ((arg1)->elem_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_block_max_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSet_block_max_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSet_block_max_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->block_max = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_block_max_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSet_block_max_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
result = (schar *) ((arg1)->block_max);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_ptr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSet_ptr_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSet_ptr_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->ptr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_ptr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSet_ptr_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
result = (schar *) ((arg1)->ptr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_delta_elems_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSet_delta_elems_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSet_delta_elems_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->delta_elems = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_delta_elems_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSet_delta_elems_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
result = (int) ((arg1)->delta_elems);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_storage_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSet_storage_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSet_storage_set" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
if (arg1) (arg1)->storage = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_storage_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMemStorage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSet_storage_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
result = (CvMemStorage *) ((arg1)->storage);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_free_blocks_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSet_free_blocks_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSet_free_blocks_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->free_blocks = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_free_blocks_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSet_free_blocks_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
result = (CvSeqBlock *) ((arg1)->free_blocks);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_first_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSet_first_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSet_first_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->first = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_first_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSet_first_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
result = (CvSeqBlock *) ((arg1)->first);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_free_elems_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
CvSetElem *arg2 = (CvSetElem *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSet_free_elems_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSetElem, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSet_free_elems_set" "', argument " "2"" of type '" "CvSetElem *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSetElem * >(argp2);
|
|
if (arg1) (arg1)->free_elems = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_free_elems_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSetElem *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSet_free_elems_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
result = (CvSetElem *) ((arg1)->free_elems);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSetElem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_active_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSet_active_count_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSet_active_count_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->active_count = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSet_active_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSet_active_count_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
result = (int) ((arg1)->active_count);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSet")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvSet *)new CvSet();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSet, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSet",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSet_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvSet, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphEdge_flags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphEdge *arg1 = (CvGraphEdge *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraphEdge_flags_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphEdge_flags_set" "', argument " "1"" of type '" "CvGraphEdge *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphEdge * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvGraphEdge_flags_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->flags = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphEdge_flags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphEdge *arg1 = (CvGraphEdge *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraphEdge_flags_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphEdge_flags_get" "', argument " "1"" of type '" "CvGraphEdge *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphEdge * >(argp1);
|
|
result = (int) ((arg1)->flags);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphEdge_weight_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphEdge *arg1 = (CvGraphEdge *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraphEdge_weight_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphEdge_weight_set" "', argument " "1"" of type '" "CvGraphEdge *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphEdge * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvGraphEdge_weight_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->weight = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphEdge_weight_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphEdge *arg1 = (CvGraphEdge *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraphEdge_weight_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphEdge_weight_get" "', argument " "1"" of type '" "CvGraphEdge *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphEdge * >(argp1);
|
|
result = (float) ((arg1)->weight);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphEdge_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphEdge *arg1 = (CvGraphEdge *) 0 ;
|
|
CvGraphEdge **arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraphEdge_next_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphEdge_next_set" "', argument " "1"" of type '" "CvGraphEdge *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphEdge * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_CvGraphEdge, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvGraphEdge_next_set" "', argument " "2"" of type '" "CvGraphEdge *[2]""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvGraphEdge ** >(argp2);
|
|
{
|
|
if (arg2) {
|
|
size_t ii = 0;
|
|
for (; ii < (size_t)2; ++ii) arg1->next[ii] = arg2[ii];
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""next""' of type '""CvGraphEdge *[2]""'");
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphEdge_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphEdge *arg1 = (CvGraphEdge *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvGraphEdge **result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraphEdge_next_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphEdge_next_get" "', argument " "1"" of type '" "CvGraphEdge *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphEdge * >(argp1);
|
|
result = (CvGraphEdge **)(CvGraphEdge **) ((arg1)->next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_CvGraphEdge, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphEdge_vtx_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphEdge *arg1 = (CvGraphEdge *) 0 ;
|
|
CvGraphVtx **arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraphEdge_vtx_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphEdge_vtx_set" "', argument " "1"" of type '" "CvGraphEdge *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphEdge * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_CvGraphVtx, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvGraphEdge_vtx_set" "', argument " "2"" of type '" "CvGraphVtx *[2]""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvGraphVtx ** >(argp2);
|
|
{
|
|
if (arg2) {
|
|
size_t ii = 0;
|
|
for (; ii < (size_t)2; ++ii) arg1->vtx[ii] = arg2[ii];
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""vtx""' of type '""CvGraphVtx *[2]""'");
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphEdge_vtx_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphEdge *arg1 = (CvGraphEdge *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvGraphVtx **result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraphEdge_vtx_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphEdge_vtx_get" "', argument " "1"" of type '" "CvGraphEdge *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphEdge * >(argp1);
|
|
result = (CvGraphVtx **)(CvGraphVtx **) ((arg1)->vtx);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_CvGraphVtx, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvGraphEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphEdge *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvGraphEdge")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvGraphEdge *)new CvGraphEdge();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvGraphEdge, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvGraphEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphEdge *arg1 = (CvGraphEdge *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvGraphEdge",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphEdge, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvGraphEdge" "', argument " "1"" of type '" "CvGraphEdge *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphEdge * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvGraphEdge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvGraphEdge, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphVtx_flags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphVtx *arg1 = (CvGraphVtx *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraphVtx_flags_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphVtx_flags_set" "', argument " "1"" of type '" "CvGraphVtx *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphVtx * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvGraphVtx_flags_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->flags = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphVtx_flags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphVtx *arg1 = (CvGraphVtx *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraphVtx_flags_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphVtx_flags_get" "', argument " "1"" of type '" "CvGraphVtx *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphVtx * >(argp1);
|
|
result = (int) ((arg1)->flags);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphVtx_first_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphVtx *arg1 = (CvGraphVtx *) 0 ;
|
|
CvGraphEdge *arg2 = (CvGraphEdge *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraphVtx_first_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphVtx_first_set" "', argument " "1"" of type '" "CvGraphVtx *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphVtx * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvGraphEdge, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvGraphVtx_first_set" "', argument " "2"" of type '" "CvGraphEdge *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvGraphEdge * >(argp2);
|
|
if (arg1) (arg1)->first = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphVtx_first_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphVtx *arg1 = (CvGraphVtx *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvGraphEdge *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraphVtx_first_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphVtx_first_get" "', argument " "1"" of type '" "CvGraphVtx *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphVtx * >(argp1);
|
|
result = (CvGraphEdge *) ((arg1)->first);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvGraphVtx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphVtx *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvGraphVtx")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvGraphVtx *)new CvGraphVtx();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvGraphVtx, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvGraphVtx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphVtx *arg1 = (CvGraphVtx *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvGraphVtx",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphVtx, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvGraphVtx" "', argument " "1"" of type '" "CvGraphVtx *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphVtx * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvGraphVtx_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvGraphVtx, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphVtx2D_flags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphVtx2D *arg1 = (CvGraphVtx2D *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraphVtx2D_flags_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphVtx2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphVtx2D_flags_set" "', argument " "1"" of type '" "CvGraphVtx2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphVtx2D * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvGraphVtx2D_flags_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->flags = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphVtx2D_flags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphVtx2D *arg1 = (CvGraphVtx2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraphVtx2D_flags_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphVtx2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphVtx2D_flags_get" "', argument " "1"" of type '" "CvGraphVtx2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphVtx2D * >(argp1);
|
|
result = (int) ((arg1)->flags);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphVtx2D_first_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphVtx2D *arg1 = (CvGraphVtx2D *) 0 ;
|
|
CvGraphEdge *arg2 = (CvGraphEdge *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraphVtx2D_first_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphVtx2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphVtx2D_first_set" "', argument " "1"" of type '" "CvGraphVtx2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphVtx2D * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvGraphEdge, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvGraphVtx2D_first_set" "', argument " "2"" of type '" "CvGraphEdge *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvGraphEdge * >(argp2);
|
|
if (arg1) (arg1)->first = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphVtx2D_first_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphVtx2D *arg1 = (CvGraphVtx2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvGraphEdge *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraphVtx2D_first_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphVtx2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphVtx2D_first_get" "', argument " "1"" of type '" "CvGraphVtx2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphVtx2D * >(argp1);
|
|
result = (CvGraphEdge *) ((arg1)->first);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphVtx2D_ptr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphVtx2D *arg1 = (CvGraphVtx2D *) 0 ;
|
|
CvPoint2D32f *arg2 = (CvPoint2D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraphVtx2D_ptr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphVtx2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphVtx2D_ptr_set" "', argument " "1"" of type '" "CvGraphVtx2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphVtx2D * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvGraphVtx2D_ptr_set" "', argument " "2"" of type '" "CvPoint2D32f *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint2D32f * >(argp2);
|
|
if (arg1) (arg1)->ptr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphVtx2D_ptr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphVtx2D *arg1 = (CvGraphVtx2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint2D32f *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraphVtx2D_ptr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphVtx2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphVtx2D_ptr_get" "', argument " "1"" of type '" "CvGraphVtx2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphVtx2D * >(argp1);
|
|
result = (CvPoint2D32f *) ((arg1)->ptr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvGraphVtx2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphVtx2D *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvGraphVtx2D")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvGraphVtx2D *)new CvGraphVtx2D();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvGraphVtx2D, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvGraphVtx2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphVtx2D *arg1 = (CvGraphVtx2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvGraphVtx2D",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphVtx2D, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvGraphVtx2D" "', argument " "1"" of type '" "CvGraphVtx2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphVtx2D * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvGraphVtx2D_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvGraphVtx2D, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_flags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraph_flags_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvGraph_flags_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->flags = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_flags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraph_flags_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (int) ((arg1)->flags);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_header_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraph_header_size_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvGraph_header_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->header_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_header_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraph_header_size_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (int) ((arg1)->header_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_h_prev_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraph_h_prev_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->h_prev = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_h_prev_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraph_h_prev_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (CvSeq *) ((arg1)->h_prev);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_h_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraph_h_next_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->h_next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_h_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraph_h_next_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (CvSeq *) ((arg1)->h_next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_v_prev_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraph_v_prev_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->v_prev = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_v_prev_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraph_v_prev_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (CvSeq *) ((arg1)->v_prev);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_v_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraph_v_next_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->v_next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_v_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraph_v_next_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (CvSeq *) ((arg1)->v_next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_total_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraph_total_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvGraph_total_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->total = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_total_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraph_total_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (int) ((arg1)->total);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_elem_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraph_elem_size_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvGraph_elem_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->elem_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_elem_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraph_elem_size_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (int) ((arg1)->elem_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_block_max_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraph_block_max_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvGraph_block_max_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->block_max = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_block_max_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraph_block_max_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (schar *) ((arg1)->block_max);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_ptr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraph_ptr_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvGraph_ptr_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->ptr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_ptr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraph_ptr_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (schar *) ((arg1)->ptr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_delta_elems_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraph_delta_elems_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvGraph_delta_elems_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->delta_elems = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_delta_elems_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraph_delta_elems_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (int) ((arg1)->delta_elems);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_storage_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraph_storage_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvGraph_storage_set" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
if (arg1) (arg1)->storage = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_storage_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMemStorage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraph_storage_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (CvMemStorage *) ((arg1)->storage);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_free_blocks_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraph_free_blocks_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvGraph_free_blocks_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->free_blocks = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_free_blocks_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraph_free_blocks_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (CvSeqBlock *) ((arg1)->free_blocks);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_first_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraph_first_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvGraph_first_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->first = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_first_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraph_first_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (CvSeqBlock *) ((arg1)->first);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_free_elems_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvSetElem *arg2 = (CvSetElem *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraph_free_elems_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSetElem, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvGraph_free_elems_set" "', argument " "2"" of type '" "CvSetElem *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSetElem * >(argp2);
|
|
if (arg1) (arg1)->free_elems = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_free_elems_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSetElem *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraph_free_elems_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (CvSetElem *) ((arg1)->free_elems);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSetElem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_active_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraph_active_count_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvGraph_active_count_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->active_count = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_active_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraph_active_count_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (int) ((arg1)->active_count);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_edges_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvSet *arg2 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraph_edges_set",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSet *)ptr2;
|
|
}
|
|
if (arg1) (arg1)->edges = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraph_edges_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSet *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraph_edges_get",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
result = (CvSet *) ((arg1)->edges);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSet, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvGraph(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvGraph")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvGraph *)new CvGraph();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvGraph, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvGraph(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvGraph",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvGraph_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvGraph, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_flags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChain_flags_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_flags_set" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvChain_flags_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->flags = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_flags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChain_flags_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_flags_get" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
result = (int) ((arg1)->flags);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_header_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChain_header_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_header_size_set" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvChain_header_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->header_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_header_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChain_header_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_header_size_get" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
result = (int) ((arg1)->header_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_h_prev_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChain_h_prev_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_h_prev_set" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->h_prev = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_h_prev_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChain_h_prev_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_h_prev_get" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
result = (CvSeq *) ((arg1)->h_prev);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_h_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChain_h_next_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_h_next_set" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->h_next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_h_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChain_h_next_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_h_next_get" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
result = (CvSeq *) ((arg1)->h_next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_v_prev_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChain_v_prev_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_v_prev_set" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->v_prev = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_v_prev_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChain_v_prev_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_v_prev_get" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
result = (CvSeq *) ((arg1)->v_prev);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_v_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChain_v_next_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_v_next_set" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->v_next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_v_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChain_v_next_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_v_next_get" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
result = (CvSeq *) ((arg1)->v_next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_total_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChain_total_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_total_set" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvChain_total_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->total = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_total_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChain_total_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_total_get" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
result = (int) ((arg1)->total);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_elem_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChain_elem_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_elem_size_set" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvChain_elem_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->elem_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_elem_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChain_elem_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_elem_size_get" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
result = (int) ((arg1)->elem_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_block_max_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChain_block_max_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_block_max_set" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvChain_block_max_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->block_max = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_block_max_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChain_block_max_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_block_max_get" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
result = (schar *) ((arg1)->block_max);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_ptr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChain_ptr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_ptr_set" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvChain_ptr_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->ptr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_ptr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChain_ptr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_ptr_get" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
result = (schar *) ((arg1)->ptr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_delta_elems_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChain_delta_elems_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_delta_elems_set" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvChain_delta_elems_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->delta_elems = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_delta_elems_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChain_delta_elems_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_delta_elems_get" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
result = (int) ((arg1)->delta_elems);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_storage_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChain_storage_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_storage_set" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvChain_storage_set" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
if (arg1) (arg1)->storage = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_storage_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMemStorage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChain_storage_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_storage_get" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
result = (CvMemStorage *) ((arg1)->storage);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_free_blocks_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChain_free_blocks_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_free_blocks_set" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvChain_free_blocks_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->free_blocks = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_free_blocks_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChain_free_blocks_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_free_blocks_get" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
result = (CvSeqBlock *) ((arg1)->free_blocks);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_first_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChain_first_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_first_set" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvChain_first_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->first = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_first_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChain_first_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_first_get" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
result = (CvSeqBlock *) ((arg1)->first);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_origin_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
CvPoint *arg2 = (CvPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChain_origin_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_origin_set" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvChain_origin_set" "', argument " "2"" of type '" "CvPoint *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint * >(argp2);
|
|
if (arg1) (arg1)->origin = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChain_origin_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChain_origin_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChain_origin_get" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
result = (CvPoint *)& ((arg1)->origin);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvChain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvChain")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvChain *)new CvChain();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvChain, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvChain(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvChain",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvChain" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvChain_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvChain, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_flags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContour_flags_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_flags_set" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvContour_flags_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->flags = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_flags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContour_flags_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_flags_get" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
result = (int) ((arg1)->flags);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_header_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContour_header_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_header_size_set" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvContour_header_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->header_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_header_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContour_header_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_header_size_get" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
result = (int) ((arg1)->header_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_h_prev_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContour_h_prev_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_h_prev_set" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->h_prev = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_h_prev_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContour_h_prev_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_h_prev_get" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
result = (CvSeq *) ((arg1)->h_prev);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_h_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContour_h_next_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_h_next_set" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->h_next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_h_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContour_h_next_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_h_next_get" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
result = (CvSeq *) ((arg1)->h_next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_v_prev_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContour_v_prev_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_v_prev_set" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->v_prev = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_v_prev_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContour_v_prev_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_v_prev_get" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
result = (CvSeq *) ((arg1)->v_prev);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_v_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContour_v_next_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_v_next_set" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->v_next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_v_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContour_v_next_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_v_next_get" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
result = (CvSeq *) ((arg1)->v_next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_total_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContour_total_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_total_set" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvContour_total_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->total = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_total_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContour_total_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_total_get" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
result = (int) ((arg1)->total);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_elem_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContour_elem_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_elem_size_set" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvContour_elem_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->elem_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_elem_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContour_elem_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_elem_size_get" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
result = (int) ((arg1)->elem_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_block_max_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContour_block_max_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_block_max_set" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvContour_block_max_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->block_max = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_block_max_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContour_block_max_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_block_max_get" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
result = (schar *) ((arg1)->block_max);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_ptr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContour_ptr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_ptr_set" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvContour_ptr_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->ptr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_ptr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContour_ptr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_ptr_get" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
result = (schar *) ((arg1)->ptr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_delta_elems_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContour_delta_elems_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_delta_elems_set" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvContour_delta_elems_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->delta_elems = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_delta_elems_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContour_delta_elems_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_delta_elems_get" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
result = (int) ((arg1)->delta_elems);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_storage_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContour_storage_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_storage_set" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvContour_storage_set" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
if (arg1) (arg1)->storage = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_storage_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMemStorage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContour_storage_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_storage_get" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
result = (CvMemStorage *) ((arg1)->storage);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_free_blocks_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContour_free_blocks_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_free_blocks_set" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvContour_free_blocks_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->free_blocks = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_free_blocks_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContour_free_blocks_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_free_blocks_get" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
result = (CvSeqBlock *) ((arg1)->free_blocks);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_first_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContour_first_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_first_set" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvContour_first_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->first = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_first_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContour_first_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_first_get" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
result = (CvSeqBlock *) ((arg1)->first);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_rect_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
CvRect *arg2 = (CvRect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContour_rect_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_rect_set" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvContour_rect_set" "', argument " "2"" of type '" "CvRect *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvRect * >(argp2);
|
|
if (arg1) (arg1)->rect = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_rect_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvRect *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContour_rect_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_rect_get" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
result = (CvRect *)& ((arg1)->rect);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvRect, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_color_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContour_color_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_color_set" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvContour_color_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->color = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_color_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContour_color_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_color_get" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
result = (int) ((arg1)->color);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_reserved_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
int *arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContour_reserved_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_reserved_set" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvContour_reserved_set" "', argument " "2"" of type '" "int [3]""'");
|
|
}
|
|
arg2 = reinterpret_cast< int * >(argp2);
|
|
{
|
|
if (arg2) {
|
|
size_t ii = 0;
|
|
for (; ii < (size_t)3; ++ii) arg1->reserved[ii] = arg2[ii];
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""reserved""' of type '""int [3]""'");
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContour_reserved_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContour_reserved_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContour_reserved_get" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
result = (int *)(int *) ((arg1)->reserved);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvContour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvContour")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvContour *)new CvContour();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvContour, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvContour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContour *arg1 = (CvContour *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvContour",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContour, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvContour" "', argument " "1"" of type '" "CvContour *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContour * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvContour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvContour, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqWriter_header_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqWriter *arg1 = (CvSeqWriter *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqWriter_header_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqWriter, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqWriter_header_size_set" "', argument " "1"" of type '" "CvSeqWriter *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqWriter * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeqWriter_header_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->header_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqWriter_header_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqWriter *arg1 = (CvSeqWriter *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqWriter_header_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqWriter, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqWriter_header_size_get" "', argument " "1"" of type '" "CvSeqWriter *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqWriter * >(argp1);
|
|
result = (int) ((arg1)->header_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqWriter_seq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqWriter *arg1 = (CvSeqWriter *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqWriter_seq_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqWriter, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqWriter_seq_set" "', argument " "1"" of type '" "CvSeqWriter *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqWriter * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->seq = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqWriter_seq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqWriter *arg1 = (CvSeqWriter *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqWriter_seq_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqWriter, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqWriter_seq_get" "', argument " "1"" of type '" "CvSeqWriter *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqWriter * >(argp1);
|
|
result = (CvSeq *) ((arg1)->seq);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqWriter_block_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqWriter *arg1 = (CvSeqWriter *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqWriter_block_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqWriter, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqWriter_block_set" "', argument " "1"" of type '" "CvSeqWriter *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqWriter * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeqWriter_block_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->block = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqWriter_block_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqWriter *arg1 = (CvSeqWriter *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqWriter_block_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqWriter, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqWriter_block_get" "', argument " "1"" of type '" "CvSeqWriter *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqWriter * >(argp1);
|
|
result = (CvSeqBlock *) ((arg1)->block);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqWriter_ptr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqWriter *arg1 = (CvSeqWriter *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqWriter_ptr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqWriter, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqWriter_ptr_set" "', argument " "1"" of type '" "CvSeqWriter *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqWriter * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeqWriter_ptr_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->ptr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqWriter_ptr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqWriter *arg1 = (CvSeqWriter *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqWriter_ptr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqWriter, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqWriter_ptr_get" "', argument " "1"" of type '" "CvSeqWriter *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqWriter * >(argp1);
|
|
result = (schar *) ((arg1)->ptr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqWriter_block_min_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqWriter *arg1 = (CvSeqWriter *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqWriter_block_min_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqWriter, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqWriter_block_min_set" "', argument " "1"" of type '" "CvSeqWriter *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqWriter * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeqWriter_block_min_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->block_min = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqWriter_block_min_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqWriter *arg1 = (CvSeqWriter *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqWriter_block_min_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqWriter, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqWriter_block_min_get" "', argument " "1"" of type '" "CvSeqWriter *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqWriter * >(argp1);
|
|
result = (schar *) ((arg1)->block_min);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqWriter_block_max_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqWriter *arg1 = (CvSeqWriter *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqWriter_block_max_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqWriter, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqWriter_block_max_set" "', argument " "1"" of type '" "CvSeqWriter *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqWriter * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeqWriter_block_max_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->block_max = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqWriter_block_max_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqWriter *arg1 = (CvSeqWriter *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqWriter_block_max_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqWriter, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqWriter_block_max_get" "', argument " "1"" of type '" "CvSeqWriter *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqWriter * >(argp1);
|
|
result = (schar *) ((arg1)->block_max);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSeqWriter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqWriter *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSeqWriter")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvSeqWriter *)new CvSeqWriter();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqWriter, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSeqWriter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqWriter *arg1 = (CvSeqWriter *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSeqWriter",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqWriter, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSeqWriter" "', argument " "1"" of type '" "CvSeqWriter *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqWriter * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSeqWriter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvSeqWriter, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqReader_header_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqReader_header_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqReader_header_size_set" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeqReader_header_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->header_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqReader_header_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqReader_header_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqReader_header_size_get" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
result = (int) ((arg1)->header_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqReader_seq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqReader_seq_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqReader_seq_set" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->seq = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqReader_seq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqReader_seq_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqReader_seq_get" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
result = (CvSeq *) ((arg1)->seq);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqReader_block_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqReader_block_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqReader_block_set" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeqReader_block_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->block = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqReader_block_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqReader_block_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqReader_block_get" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
result = (CvSeqBlock *) ((arg1)->block);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqReader_ptr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqReader_ptr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqReader_ptr_set" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeqReader_ptr_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->ptr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqReader_ptr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqReader_ptr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqReader_ptr_get" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
result = (schar *) ((arg1)->ptr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqReader_block_min_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqReader_block_min_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqReader_block_min_set" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeqReader_block_min_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->block_min = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqReader_block_min_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqReader_block_min_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqReader_block_min_get" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
result = (schar *) ((arg1)->block_min);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqReader_block_max_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqReader_block_max_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqReader_block_max_set" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeqReader_block_max_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->block_max = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqReader_block_max_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqReader_block_max_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqReader_block_max_get" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
result = (schar *) ((arg1)->block_max);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqReader_delta_index_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqReader_delta_index_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqReader_delta_index_set" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeqReader_delta_index_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->delta_index = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqReader_delta_index_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqReader_delta_index_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqReader_delta_index_get" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
result = (int) ((arg1)->delta_index);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqReader_prev_elem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeqReader_prev_elem_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqReader_prev_elem_set" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeqReader_prev_elem_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->prev_elem = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeqReader_prev_elem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeqReader_prev_elem_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeqReader_prev_elem_get" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
result = (schar *) ((arg1)->prev_elem);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSeqReader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSeqReader")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvSeqReader *)new CvSeqReader();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqReader, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSeqReader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSeqReader",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSeqReader" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSeqReader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvSeqReader, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvAttrList_attr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvAttrList *arg1 = (CvAttrList *) 0 ;
|
|
char **arg2 = (char **) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *vptr2 ;
|
|
char *buffer2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvAttrList_attr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvAttrList, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvAttrList_attr_set" "', argument " "1"" of type '" "CvAttrList *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvAttrList * >(argp1);
|
|
{
|
|
if ((SWIG_ConvertPtr(obj1, &vptr2, SWIGTYPE_p_char, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer2 = (char *) vptr2;
|
|
arg2=&buffer2;
|
|
}
|
|
if (arg1) (arg1)->attr = (char const **)arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvAttrList_attr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvAttrList *arg1 = (CvAttrList *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char **result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvAttrList_attr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvAttrList, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvAttrList_attr_get" "', argument " "1"" of type '" "CvAttrList *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvAttrList * >(argp1);
|
|
result = (char **) ((arg1)->attr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvAttrList_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvAttrList *arg1 = (CvAttrList *) 0 ;
|
|
CvAttrList *arg2 = (CvAttrList *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvAttrList_next_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvAttrList, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvAttrList_next_set" "', argument " "1"" of type '" "CvAttrList *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvAttrList * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvAttrList, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvAttrList_next_set" "', argument " "2"" of type '" "CvAttrList *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvAttrList * >(argp2);
|
|
if (arg1) (arg1)->next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvAttrList_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvAttrList *arg1 = (CvAttrList *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvAttrList *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvAttrList_next_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvAttrList, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvAttrList_next_get" "', argument " "1"" of type '" "CvAttrList *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvAttrList * >(argp1);
|
|
result = (CvAttrList *) ((arg1)->next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvAttrList, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvAttrList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvAttrList *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvAttrList")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvAttrList *)new CvAttrList();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvAttrList, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvAttrList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvAttrList *arg1 = (CvAttrList *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvAttrList",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvAttrList, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvAttrList" "', argument " "1"" of type '" "CvAttrList *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvAttrList * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvAttrList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvAttrList, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAttrList__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char **arg1 = (char **) 0 ;
|
|
CvAttrList *arg2 = (CvAttrList *) 0 ;
|
|
void *vptr1 ;
|
|
char *buffer1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvAttrList result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvAttrList",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if ((SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_char, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer1 = (char *) vptr1;
|
|
arg1=&buffer1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvAttrList, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvAttrList" "', argument " "2"" of type '" "CvAttrList *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvAttrList * >(argp2);
|
|
{
|
|
try {
|
|
result = cvAttrList((char const **)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvAttrList(static_cast< const CvAttrList& >(result))), SWIGTYPE_p_CvAttrList, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAttrList__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char **arg1 = (char **) 0 ;
|
|
void *vptr1 ;
|
|
char *buffer1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvAttrList result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvAttrList",&obj0)) SWIG_fail;
|
|
{
|
|
if ((SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_char, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer1 = (char *) vptr1;
|
|
arg1=&buffer1;
|
|
}
|
|
{
|
|
try {
|
|
result = cvAttrList((char const **)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvAttrList(static_cast< const CvAttrList& >(result))), SWIGTYPE_p_CvAttrList, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAttrList__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvAttrList result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":cvAttrList")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = cvAttrList();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvAttrList(static_cast< const CvAttrList& >(result))), SWIGTYPE_p_CvAttrList, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAttrList(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 0) {
|
|
return _wrap_cvAttrList__SWIG_2(self, args);
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_p_char, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_cvAttrList__SWIG_1(self, args);
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_p_char, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CvAttrList, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_cvAttrList__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'cvAttrList'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" cvAttrList(char const **,CvAttrList *)\n"
|
|
" cvAttrList(char const **)\n"
|
|
" cvAttrList()\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvString_len_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvString *arg1 = (CvString *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvString_len_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvString, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvString_len_set" "', argument " "1"" of type '" "CvString *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvString * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvString_len_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->len = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvString_len_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvString *arg1 = (CvString *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvString_len_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvString, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvString_len_get" "', argument " "1"" of type '" "CvString *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvString * >(argp1);
|
|
result = (int) ((arg1)->len);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvString_ptr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvString *arg1 = (CvString *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvString_ptr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvString, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvString_ptr_set" "', argument " "1"" of type '" "CvString *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvString * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvString_ptr_set" "', argument " "2"" of type '" "char *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
if (arg1->ptr) delete[] arg1->ptr;
|
|
if (arg2) {
|
|
size_t size = strlen(reinterpret_cast< const char * >(arg2)) + 1;
|
|
arg1->ptr = (char *)reinterpret_cast< char* >(memcpy((new char[size]), reinterpret_cast< const char * >(arg2), sizeof(char)*(size)));
|
|
} else {
|
|
arg1->ptr = 0;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvString_ptr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvString *arg1 = (CvString *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvString_ptr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvString, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvString_ptr_get" "', argument " "1"" of type '" "CvString *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvString * >(argp1);
|
|
result = (char *) ((arg1)->ptr);
|
|
resultobj = SWIG_FromCharPtr((const char *)result);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvString *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvString")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvString *)new CvString();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvString, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvString *arg1 = (CvString *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvString",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvString, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvString" "', argument " "1"" of type '" "CvString *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvString * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvString_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvString, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStringHashNode_hashval_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStringHashNode *arg1 = (CvStringHashNode *) 0 ;
|
|
unsigned int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStringHashNode_hashval_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStringHashNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStringHashNode_hashval_set" "', argument " "1"" of type '" "CvStringHashNode *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStringHashNode * >(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStringHashNode_hashval_set" "', argument " "2"" of type '" "unsigned int""'");
|
|
}
|
|
arg2 = static_cast< unsigned int >(val2);
|
|
if (arg1) (arg1)->hashval = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStringHashNode_hashval_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStringHashNode *arg1 = (CvStringHashNode *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
unsigned int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStringHashNode_hashval_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStringHashNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStringHashNode_hashval_get" "', argument " "1"" of type '" "CvStringHashNode *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStringHashNode * >(argp1);
|
|
result = (unsigned int) ((arg1)->hashval);
|
|
resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStringHashNode_str_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStringHashNode *arg1 = (CvStringHashNode *) 0 ;
|
|
CvString *arg2 = (CvString *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStringHashNode_str_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStringHashNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStringHashNode_str_set" "', argument " "1"" of type '" "CvStringHashNode *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStringHashNode * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvString, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvStringHashNode_str_set" "', argument " "2"" of type '" "CvString *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvString * >(argp2);
|
|
if (arg1) (arg1)->str = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStringHashNode_str_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStringHashNode *arg1 = (CvStringHashNode *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvString *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStringHashNode_str_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStringHashNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStringHashNode_str_get" "', argument " "1"" of type '" "CvStringHashNode *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStringHashNode * >(argp1);
|
|
result = (CvString *)& ((arg1)->str);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvString, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStringHashNode_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStringHashNode *arg1 = (CvStringHashNode *) 0 ;
|
|
CvStringHashNode *arg2 = (CvStringHashNode *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStringHashNode_next_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStringHashNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStringHashNode_next_set" "', argument " "1"" of type '" "CvStringHashNode *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStringHashNode * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvStringHashNode, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvStringHashNode_next_set" "', argument " "2"" of type '" "CvStringHashNode *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvStringHashNode * >(argp2);
|
|
if (arg1) (arg1)->next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStringHashNode_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStringHashNode *arg1 = (CvStringHashNode *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvStringHashNode *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStringHashNode_next_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStringHashNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStringHashNode_next_get" "', argument " "1"" of type '" "CvStringHashNode *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStringHashNode * >(argp1);
|
|
result = (CvStringHashNode *) ((arg1)->next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvStringHashNode, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvStringHashNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStringHashNode *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvStringHashNode")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvStringHashNode *)new CvStringHashNode();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvStringHashNode, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvStringHashNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStringHashNode *arg1 = (CvStringHashNode *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvStringHashNode",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStringHashNode, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvStringHashNode" "', argument " "1"" of type '" "CvStringHashNode *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStringHashNode * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvStringHashNode_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvStringHashNode, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFileNode_tag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode *arg1 = (CvFileNode *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvFileNode_tag_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFileNode_tag_set" "', argument " "1"" of type '" "CvFileNode *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvFileNode_tag_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->tag = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFileNode_tag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode *arg1 = (CvFileNode *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvFileNode_tag_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFileNode_tag_get" "', argument " "1"" of type '" "CvFileNode *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode * >(argp1);
|
|
result = (int) ((arg1)->tag);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFileNode_info_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode *arg1 = (CvFileNode *) 0 ;
|
|
CvTypeInfo *arg2 = (CvTypeInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvFileNode_info_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFileNode_info_set" "', argument " "1"" of type '" "CvFileNode *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvTypeInfo, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvFileNode_info_set" "', argument " "2"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvTypeInfo * >(argp2);
|
|
if (arg1) (arg1)->info = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFileNode_info_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode *arg1 = (CvFileNode *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTypeInfo *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvFileNode_info_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFileNode_info_get" "', argument " "1"" of type '" "CvFileNode *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode * >(argp1);
|
|
result = (CvTypeInfo *) ((arg1)->info);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFileNode_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode *arg1 = (CvFileNode *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvFileNode_data *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvFileNode_data_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFileNode_data_get" "', argument " "1"" of type '" "CvFileNode *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode * >(argp1);
|
|
result = (CvFileNode_data *)& ((arg1)->data);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvFileNode_data, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvFileNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvFileNode")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvFileNode *)new CvFileNode();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvFileNode, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvFileNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode *arg1 = (CvFileNode *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvFileNode",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvFileNode" "', argument " "1"" of type '" "CvFileNode *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvFileNode_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvFileNode, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFileNode_data_f_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode_data *arg1 = (CvFileNode_data *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvFileNode_data_f_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFileNode_data_f_set" "', argument " "1"" of type '" "CvFileNode_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode_data * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvFileNode_data_f_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->f = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFileNode_data_f_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode_data *arg1 = (CvFileNode_data *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvFileNode_data_f_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFileNode_data_f_get" "', argument " "1"" of type '" "CvFileNode_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode_data * >(argp1);
|
|
result = (double) ((arg1)->f);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFileNode_data_i_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode_data *arg1 = (CvFileNode_data *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvFileNode_data_i_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFileNode_data_i_set" "', argument " "1"" of type '" "CvFileNode_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode_data * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvFileNode_data_i_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->i = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFileNode_data_i_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode_data *arg1 = (CvFileNode_data *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvFileNode_data_i_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFileNode_data_i_get" "', argument " "1"" of type '" "CvFileNode_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode_data * >(argp1);
|
|
result = (int) ((arg1)->i);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFileNode_data_str_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode_data *arg1 = (CvFileNode_data *) 0 ;
|
|
CvString *arg2 = (CvString *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvFileNode_data_str_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFileNode_data_str_set" "', argument " "1"" of type '" "CvFileNode_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode_data * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvString, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvFileNode_data_str_set" "', argument " "2"" of type '" "CvString *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvString * >(argp2);
|
|
if (arg1) (arg1)->str = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFileNode_data_str_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode_data *arg1 = (CvFileNode_data *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvString *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvFileNode_data_str_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFileNode_data_str_get" "', argument " "1"" of type '" "CvFileNode_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode_data * >(argp1);
|
|
result = (CvString *)& ((arg1)->str);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvString, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFileNode_data_seq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode_data *arg1 = (CvFileNode_data *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvFileNode_data_seq_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFileNode_data_seq_set" "', argument " "1"" of type '" "CvFileNode_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode_data * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->seq = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFileNode_data_seq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode_data *arg1 = (CvFileNode_data *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvFileNode_data_seq_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFileNode_data_seq_get" "', argument " "1"" of type '" "CvFileNode_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode_data * >(argp1);
|
|
result = (CvSeq *) ((arg1)->seq);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFileNode_data_map_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode_data *arg1 = (CvFileNode_data *) 0 ;
|
|
CvFileNodeHash *arg2 = (CvFileNodeHash *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvFileNode_data_map_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFileNode_data_map_set" "', argument " "1"" of type '" "CvFileNode_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode_data * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvGenericHash, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvFileNode_data_map_set" "', argument " "2"" of type '" "CvFileNodeHash *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvFileNodeHash * >(argp2);
|
|
if (arg1) (arg1)->map = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFileNode_data_map_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode_data *arg1 = (CvFileNode_data *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvFileNodeHash *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvFileNode_data_map_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode_data, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFileNode_data_map_get" "', argument " "1"" of type '" "CvFileNode_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode_data * >(argp1);
|
|
result = (CvFileNodeHash *) ((arg1)->map);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvGenericHash, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvFileNode_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode_data *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvFileNode_data")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvFileNode_data *)new CvFileNode_data();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvFileNode_data, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvFileNode_data(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode_data *arg1 = (CvFileNode_data *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvFileNode_data",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode_data, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvFileNode_data" "', argument " "1"" of type '" "CvFileNode_data *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode_data * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvFileNode_data_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvFileNode_data, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_flags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTypeInfo_flags_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_flags_set" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvTypeInfo_flags_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->flags = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_flags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTypeInfo_flags_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_flags_get" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
result = (int) ((arg1)->flags);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_header_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTypeInfo_header_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_header_size_set" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvTypeInfo_header_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->header_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_header_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTypeInfo_header_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_header_size_get" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
result = (int) ((arg1)->header_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_prev_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
CvTypeInfo *arg2 = (CvTypeInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTypeInfo_prev_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_prev_set" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvTypeInfo, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvTypeInfo_prev_set" "', argument " "2"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvTypeInfo * >(argp2);
|
|
if (arg1) (arg1)->prev = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_prev_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTypeInfo *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTypeInfo_prev_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_prev_get" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
result = (CvTypeInfo *) ((arg1)->prev);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
CvTypeInfo *arg2 = (CvTypeInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTypeInfo_next_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_next_set" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvTypeInfo, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvTypeInfo_next_set" "', argument " "2"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvTypeInfo * >(argp2);
|
|
if (arg1) (arg1)->next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTypeInfo *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTypeInfo_next_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_next_get" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
result = (CvTypeInfo *) ((arg1)->next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_type_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTypeInfo_type_name_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_type_name_set" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvTypeInfo_type_name_set" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
if (arg2) {
|
|
size_t size = strlen(reinterpret_cast< const char * >(reinterpret_cast< const char * >(arg2))) + 1;
|
|
arg1->type_name = (char const *)reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size)));
|
|
} else {
|
|
arg1->type_name = 0;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_type_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTypeInfo_type_name_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_type_name_get" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
result = (char *) ((arg1)->type_name);
|
|
resultobj = SWIG_FromCharPtr((const char *)result);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_is_instance_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
CvIsInstanceFunc arg2 = (CvIsInstanceFunc) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTypeInfo_is_instance_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_is_instance_set" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__void__int);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CvTypeInfo_is_instance_set" "', argument " "2"" of type '" "CvIsInstanceFunc""'");
|
|
}
|
|
}
|
|
if (arg1) (arg1)->is_instance = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_is_instance_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvIsInstanceFunc result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTypeInfo_is_instance_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_is_instance_get" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
result = (CvIsInstanceFunc) ((arg1)->is_instance);
|
|
resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__void__int);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_release_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
CvReleaseFunc arg2 = (CvReleaseFunc) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTypeInfo_release_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_release_set" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_p_void__void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CvTypeInfo_release_set" "', argument " "2"" of type '" "CvReleaseFunc""'");
|
|
}
|
|
}
|
|
if (arg1) (arg1)->release = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_release_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvReleaseFunc result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTypeInfo_release_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_release_get" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
result = (CvReleaseFunc) ((arg1)->release);
|
|
resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_p_void__void);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_read_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
CvReadFunc arg2 = (CvReadFunc) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTypeInfo_read_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_read_set" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_CvFileStorage_p_CvFileNode__p_void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CvTypeInfo_read_set" "', argument " "2"" of type '" "CvReadFunc""'");
|
|
}
|
|
}
|
|
if (arg1) (arg1)->read = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_read_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvReadFunc result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTypeInfo_read_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_read_get" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
result = (CvReadFunc) ((arg1)->read);
|
|
resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_CvFileStorage_p_CvFileNode__p_void);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_write_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
CvWriteFunc arg2 = (CvWriteFunc) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTypeInfo_write_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_write_set" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_CvFileStorage_p_q_const__char_p_q_const__void_CvAttrList__void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CvTypeInfo_write_set" "', argument " "2"" of type '" "CvWriteFunc""'");
|
|
}
|
|
}
|
|
if (arg1) (arg1)->write = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_write_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvWriteFunc result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTypeInfo_write_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_write_get" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
result = (CvWriteFunc) ((arg1)->write);
|
|
resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_CvFileStorage_p_q_const__char_p_q_const__void_CvAttrList__void);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_clone_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
CvCloneFunc arg2 = (CvCloneFunc) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTypeInfo_clone_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_clone_set" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__void__p_void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "CvTypeInfo_clone_set" "', argument " "2"" of type '" "CvCloneFunc""'");
|
|
}
|
|
}
|
|
if (arg1) (arg1)->clone = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTypeInfo_clone_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvCloneFunc result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTypeInfo_clone_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTypeInfo_clone_get" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
result = (CvCloneFunc) ((arg1)->clone);
|
|
resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_p_q_const__void__p_void);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvTypeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvTypeInfo")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvTypeInfo *)new CvTypeInfo();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypeInfo, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvTypeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvTypeInfo",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvTypeInfo" "', argument " "1"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvTypeInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvTypeInfo, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPluginFuncInfo_func_addr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPluginFuncInfo *arg1 = (CvPluginFuncInfo *) 0 ;
|
|
void **arg2 = (void **) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *vptr2 ;
|
|
void *buffer2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPluginFuncInfo_func_addr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPluginFuncInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPluginFuncInfo_func_addr_set" "', argument " "1"" of type '" "CvPluginFuncInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPluginFuncInfo * >(argp1);
|
|
{
|
|
if ((SWIG_ConvertPtr(obj1, &vptr2, SWIGTYPE_p_void, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer2 = (void *) vptr2;
|
|
arg2=&buffer2;
|
|
}
|
|
if (arg1) (arg1)->func_addr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPluginFuncInfo_func_addr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPluginFuncInfo *arg1 = (CvPluginFuncInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
void **result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPluginFuncInfo_func_addr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPluginFuncInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPluginFuncInfo_func_addr_get" "', argument " "1"" of type '" "CvPluginFuncInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPluginFuncInfo * >(argp1);
|
|
result = (void **) ((arg1)->func_addr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_void, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPluginFuncInfo_default_func_addr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPluginFuncInfo *arg1 = (CvPluginFuncInfo *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPluginFuncInfo_default_func_addr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPluginFuncInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPluginFuncInfo_default_func_addr_set" "', argument " "1"" of type '" "CvPluginFuncInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPluginFuncInfo * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvPluginFuncInfo_default_func_addr_set" "', argument " "2"" of type '" "void *""'");
|
|
}
|
|
if (arg1) (arg1)->default_func_addr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPluginFuncInfo_default_func_addr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPluginFuncInfo *arg1 = (CvPluginFuncInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
void *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPluginFuncInfo_default_func_addr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPluginFuncInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPluginFuncInfo_default_func_addr_get" "', argument " "1"" of type '" "CvPluginFuncInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPluginFuncInfo * >(argp1);
|
|
result = (void *) ((arg1)->default_func_addr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPluginFuncInfo_func_names_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPluginFuncInfo *arg1 = (CvPluginFuncInfo *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPluginFuncInfo_func_names_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPluginFuncInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPluginFuncInfo_func_names_set" "', argument " "1"" of type '" "CvPluginFuncInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPluginFuncInfo * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvPluginFuncInfo_func_names_set" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
if (arg2) {
|
|
size_t size = strlen(reinterpret_cast< const char * >(reinterpret_cast< const char * >(arg2))) + 1;
|
|
arg1->func_names = (char const *)reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size)));
|
|
} else {
|
|
arg1->func_names = 0;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPluginFuncInfo_func_names_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPluginFuncInfo *arg1 = (CvPluginFuncInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPluginFuncInfo_func_names_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPluginFuncInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPluginFuncInfo_func_names_get" "', argument " "1"" of type '" "CvPluginFuncInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPluginFuncInfo * >(argp1);
|
|
result = (char *) ((arg1)->func_names);
|
|
resultobj = SWIG_FromCharPtr((const char *)result);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPluginFuncInfo_search_modules_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPluginFuncInfo *arg1 = (CvPluginFuncInfo *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPluginFuncInfo_search_modules_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPluginFuncInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPluginFuncInfo_search_modules_set" "', argument " "1"" of type '" "CvPluginFuncInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPluginFuncInfo * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPluginFuncInfo_search_modules_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->search_modules = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPluginFuncInfo_search_modules_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPluginFuncInfo *arg1 = (CvPluginFuncInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPluginFuncInfo_search_modules_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPluginFuncInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPluginFuncInfo_search_modules_get" "', argument " "1"" of type '" "CvPluginFuncInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPluginFuncInfo * >(argp1);
|
|
result = (int) ((arg1)->search_modules);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPluginFuncInfo_loaded_from_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPluginFuncInfo *arg1 = (CvPluginFuncInfo *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvPluginFuncInfo_loaded_from_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPluginFuncInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPluginFuncInfo_loaded_from_set" "', argument " "1"" of type '" "CvPluginFuncInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPluginFuncInfo * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvPluginFuncInfo_loaded_from_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->loaded_from = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvPluginFuncInfo_loaded_from_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPluginFuncInfo *arg1 = (CvPluginFuncInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvPluginFuncInfo_loaded_from_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPluginFuncInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvPluginFuncInfo_loaded_from_get" "', argument " "1"" of type '" "CvPluginFuncInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPluginFuncInfo * >(argp1);
|
|
result = (int) ((arg1)->loaded_from);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvPluginFuncInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPluginFuncInfo *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvPluginFuncInfo")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvPluginFuncInfo *)new CvPluginFuncInfo();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPluginFuncInfo, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvPluginFuncInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPluginFuncInfo *arg1 = (CvPluginFuncInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvPluginFuncInfo",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPluginFuncInfo, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvPluginFuncInfo" "', argument " "1"" of type '" "CvPluginFuncInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPluginFuncInfo * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvPluginFuncInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvPluginFuncInfo, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvModuleInfo_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvModuleInfo *arg1 = (CvModuleInfo *) 0 ;
|
|
CvModuleInfo *arg2 = (CvModuleInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvModuleInfo_next_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvModuleInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvModuleInfo_next_set" "', argument " "1"" of type '" "CvModuleInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvModuleInfo * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvModuleInfo, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvModuleInfo_next_set" "', argument " "2"" of type '" "CvModuleInfo *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvModuleInfo * >(argp2);
|
|
if (arg1) (arg1)->next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvModuleInfo_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvModuleInfo *arg1 = (CvModuleInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvModuleInfo *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvModuleInfo_next_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvModuleInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvModuleInfo_next_get" "', argument " "1"" of type '" "CvModuleInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvModuleInfo * >(argp1);
|
|
result = (CvModuleInfo *) ((arg1)->next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvModuleInfo, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvModuleInfo_name_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvModuleInfo *arg1 = (CvModuleInfo *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvModuleInfo_name_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvModuleInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvModuleInfo_name_set" "', argument " "1"" of type '" "CvModuleInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvModuleInfo * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvModuleInfo_name_set" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
if (arg2) {
|
|
size_t size = strlen(reinterpret_cast< const char * >(reinterpret_cast< const char * >(arg2))) + 1;
|
|
arg1->name = (char const *)reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size)));
|
|
} else {
|
|
arg1->name = 0;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvModuleInfo_name_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvModuleInfo *arg1 = (CvModuleInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvModuleInfo_name_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvModuleInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvModuleInfo_name_get" "', argument " "1"" of type '" "CvModuleInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvModuleInfo * >(argp1);
|
|
result = (char *) ((arg1)->name);
|
|
resultobj = SWIG_FromCharPtr((const char *)result);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvModuleInfo_version_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvModuleInfo *arg1 = (CvModuleInfo *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvModuleInfo_version_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvModuleInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvModuleInfo_version_set" "', argument " "1"" of type '" "CvModuleInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvModuleInfo * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvModuleInfo_version_set" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
if (arg2) {
|
|
size_t size = strlen(reinterpret_cast< const char * >(reinterpret_cast< const char * >(arg2))) + 1;
|
|
arg1->version = (char const *)reinterpret_cast< char* >(memcpy((new char[size]), arg2, sizeof(char)*(size)));
|
|
} else {
|
|
arg1->version = 0;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvModuleInfo_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvModuleInfo *arg1 = (CvModuleInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvModuleInfo_version_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvModuleInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvModuleInfo_version_get" "', argument " "1"" of type '" "CvModuleInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvModuleInfo * >(argp1);
|
|
result = (char *) ((arg1)->version);
|
|
resultobj = SWIG_FromCharPtr((const char *)result);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvModuleInfo_func_tab_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvModuleInfo *arg1 = (CvModuleInfo *) 0 ;
|
|
CvPluginFuncInfo *arg2 = (CvPluginFuncInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvModuleInfo_func_tab_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvModuleInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvModuleInfo_func_tab_set" "', argument " "1"" of type '" "CvModuleInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvModuleInfo * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPluginFuncInfo, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvModuleInfo_func_tab_set" "', argument " "2"" of type '" "CvPluginFuncInfo *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPluginFuncInfo * >(argp2);
|
|
if (arg1) (arg1)->func_tab = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvModuleInfo_func_tab_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvModuleInfo *arg1 = (CvModuleInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPluginFuncInfo *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvModuleInfo_func_tab_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvModuleInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvModuleInfo_func_tab_get" "', argument " "1"" of type '" "CvModuleInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvModuleInfo * >(argp1);
|
|
result = (CvPluginFuncInfo *) ((arg1)->func_tab);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPluginFuncInfo, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvModuleInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvModuleInfo *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvModuleInfo")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvModuleInfo *)new CvModuleInfo();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvModuleInfo, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvModuleInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvModuleInfo *arg1 = (CvModuleInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvModuleInfo",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvModuleInfo, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvModuleInfo" "', argument " "1"" of type '" "CvModuleInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvModuleInfo * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvModuleInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvModuleInfo, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAlloc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
size_t arg1 ;
|
|
size_t val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
void *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvAlloc",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_size_t(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvAlloc" "', argument " "1"" of type '" "size_t""'");
|
|
}
|
|
arg1 = static_cast< size_t >(val1);
|
|
{
|
|
try {
|
|
result = (void *)cvAlloc(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFree_(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void *arg1 = (void *) 0 ;
|
|
int res1 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvFree_",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvFree_" "', argument " "1"" of type '" "void *""'");
|
|
}
|
|
{
|
|
try {
|
|
cvFree_(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvResetImageROI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvResetImageROI",&obj0)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
try {
|
|
cvResetImageROI(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateMatHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvCreateMatHeader",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvCreateMatHeader" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCreateMatHeader" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateMatHeader" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (CvMat *)cvCreateMatHeader(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvInitMatHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
void *arg5 = (void *) NULL ;
|
|
int arg6 = (int) 0x7fffffff ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int res5 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|OO:cvInitMatHeader",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvInitMatHeader" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvInitMatHeader" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvInitMatHeader" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
if (obj4) {
|
|
res5 = SWIG_ConvertPtr(obj4,SWIG_as_voidptrptr(&arg5), 0, 0);
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvInitMatHeader" "', argument " "5"" of type '" "void *""'");
|
|
}
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvInitMatHeader" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)cvInitMatHeader(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateMat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvCreateMat",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvCreateMat" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCreateMat" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateMat" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (CvMat *)cvCreateMat(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvDecRefData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvDecRefData",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
cvDecRefData(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvIncRefData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvIncRefData",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvIncRefData(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCloneMat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvCloneMat",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)cvCloneMat((CvMat const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetSubRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvRect arg3 ;
|
|
bool freearg1 = false ;
|
|
CvMat *header2 ;
|
|
bool freearg2 = false ;
|
|
CvRect temp3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
{
|
|
header2 = (CvMat *)cvAlloc(sizeof(CvMat));
|
|
arg2 = header2;
|
|
}
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGetSubRect",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"iiii", & temp3.x, & temp3.y, & temp3.width, & temp3.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 4 integers (x, y, width, height)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvRect * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvRect, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvRect");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)cvGetSubRect((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
arg2->hdr_refcount = ((CvMat *)arg1)->hdr_refcount;
|
|
arg2->refcount = ((CvMat *)arg1)->refcount;
|
|
cvIncRefData(arg2);
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
int arg5 = (int) 1 ;
|
|
bool freearg1 = false ;
|
|
CvMat *header2 ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
{
|
|
header2 = (CvMat *)cvAlloc(sizeof(CvMat));
|
|
arg2 = header2;
|
|
}
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvGetRows",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj1, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvGetRows" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj2, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvGetRows" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
if (obj3) {
|
|
ecode5 = SWIG_AsVal_int(obj3, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvGetRows" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)cvGetRows((void const *)arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
arg2->hdr_refcount = ((CvMat *)arg1)->hdr_refcount;
|
|
arg2->refcount = ((CvMat *)arg1)->refcount;
|
|
cvIncRefData(arg2);
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
int arg3 ;
|
|
bool freearg1 = false ;
|
|
CvMat *header2 ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
{
|
|
header2 = (CvMat *)cvAlloc(sizeof(CvMat));
|
|
arg2 = header2;
|
|
}
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGetRow",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj1, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvGetRow" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (CvMat *)cvGetRow((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
arg2->hdr_refcount = ((CvMat *)arg1)->hdr_refcount;
|
|
arg2->refcount = ((CvMat *)arg1)->refcount;
|
|
cvIncRefData(arg2);
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
bool freearg1 = false ;
|
|
CvMat *header2 ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
{
|
|
header2 = (CvMat *)cvAlloc(sizeof(CvMat));
|
|
arg2 = header2;
|
|
}
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvGetCols",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj1, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvGetCols" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj2, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvGetCols" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
try {
|
|
result = (CvMat *)cvGetCols((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
arg2->hdr_refcount = ((CvMat *)arg1)->hdr_refcount;
|
|
arg2->refcount = ((CvMat *)arg1)->refcount;
|
|
cvIncRefData(arg2);
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
int arg3 ;
|
|
bool freearg1 = false ;
|
|
CvMat *header2 ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
{
|
|
header2 = (CvMat *)cvAlloc(sizeof(CvMat));
|
|
arg2 = header2;
|
|
}
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGetCol",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj1, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvGetCol" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (CvMat *)cvGetCol((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
arg2->hdr_refcount = ((CvMat *)arg1)->hdr_refcount;
|
|
arg2->refcount = ((CvMat *)arg1)->refcount;
|
|
cvIncRefData(arg2);
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetDiag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
CvMat *header2 ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
{
|
|
header2 = (CvMat *)cvAlloc(sizeof(CvMat));
|
|
arg2 = header2;
|
|
}
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvGetDiag",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
if (obj1) {
|
|
ecode3 = SWIG_AsVal_int(obj1, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvGetDiag" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)cvGetDiag((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
arg2->hdr_refcount = ((CvMat *)arg1)->hdr_refcount;
|
|
arg2->refcount = ((CvMat *)arg1)->refcount;
|
|
cvIncRefData(arg2);
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvScalarToRawData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvScalar *arg1 = (CvScalar *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
int arg3 ;
|
|
int arg4 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvScalarToRawData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvScalar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvScalarToRawData" "', argument " "1"" of type '" "CvScalar const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvScalar * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvScalarToRawData" "', argument " "2"" of type '" "void *""'");
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvScalarToRawData" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvScalarToRawData" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
cvScalarToRawData((CvScalar const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRawDataToScalar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void *arg1 = (void *) 0 ;
|
|
int arg2 ;
|
|
CvScalar *arg3 = (CvScalar *) 0 ;
|
|
int res1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvRawDataToScalar",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvRawDataToScalar" "', argument " "1"" of type '" "void const *""'");
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvRawDataToScalar" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvScalar, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvRawDataToScalar" "', argument " "3"" of type '" "CvScalar *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvScalar * >(argp3);
|
|
{
|
|
try {
|
|
cvRawDataToScalar((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateMatNDHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int *arg2 = (int *) 0 ;
|
|
int arg3 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMatND *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvCreateMatNDHeader",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
int i;
|
|
|
|
/* get the size of the dimention array */
|
|
arg1 = PyList_Size (obj0);
|
|
|
|
/* allocate the needed memory */
|
|
arg2 = (int *)malloc (arg1 * sizeof (int));
|
|
|
|
/* extract all the integer values from the list */
|
|
for (i = 0; i < arg1; i++) {
|
|
PyObject *item = PyList_GetItem (obj0, i);
|
|
arg2 [i] = (int)PyInt_AsLong (item);
|
|
}
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj1, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateMatNDHeader" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (CvMatND *)cvCreateMatNDHeader(arg1,(int const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatND, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateMatND(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int *arg2 = (int *) 0 ;
|
|
int arg3 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMatND *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvCreateMatND",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
int i;
|
|
|
|
/* get the size of the dimention array */
|
|
arg1 = PyList_Size (obj0);
|
|
|
|
/* allocate the needed memory */
|
|
arg2 = (int *)malloc (arg1 * sizeof (int));
|
|
|
|
/* extract all the integer values from the list */
|
|
for (i = 0; i < arg1; i++) {
|
|
PyObject *item = PyList_GetItem (obj0, i);
|
|
arg2 [i] = (int)PyInt_AsLong (item);
|
|
}
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj1, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateMatND" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (CvMatND *)cvCreateMatND(arg1,(int const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatND, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvInitMatNDHeader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND *arg1 = (CvMatND *) 0 ;
|
|
int arg2 ;
|
|
int *arg3 = (int *) 0 ;
|
|
int arg4 ;
|
|
void *arg5 = (void *) NULL ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int res5 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvMatND *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvInitMatNDHeader",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvInitMatNDHeader" "', argument " "1"" of type '" "CvMatND *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND * >(argp1);
|
|
{
|
|
int i;
|
|
|
|
/* get the size of the dimention array */
|
|
arg2 = PyList_Size (obj1);
|
|
|
|
/* allocate the needed memory */
|
|
arg3 = (int *)malloc (arg2 * sizeof (int));
|
|
|
|
/* extract all the integer values from the list */
|
|
for (i = 0; i < arg2; i++) {
|
|
PyObject *item = PyList_GetItem (obj1, i);
|
|
arg3 [i] = (int)PyInt_AsLong (item);
|
|
}
|
|
}
|
|
ecode4 = SWIG_AsVal_int(obj2, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvInitMatNDHeader" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
if (obj3) {
|
|
res5 = SWIG_ConvertPtr(obj3,SWIG_as_voidptrptr(&arg5), 0, 0);
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvInitMatNDHeader" "', argument " "5"" of type '" "void *""'");
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMatND *)cvInitMatNDHeader(arg1,arg2,(int const *)arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatND, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCloneMatND(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatND *arg1 = (CvMatND *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMatND *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvCloneMatND",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatND, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvCloneMatND" "', argument " "1"" of type '" "CvMatND const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatND * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvMatND *)cvCloneMatND((CvMatND const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatND, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateSparseMat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int *arg2 = (int *) 0 ;
|
|
int arg3 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvSparseMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvCreateSparseMat",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
int i;
|
|
|
|
/* get the size of the dimention array */
|
|
arg1 = PyList_Size (obj0);
|
|
|
|
/* allocate the needed memory */
|
|
arg2 = (int *)malloc (arg1 * sizeof (int));
|
|
|
|
/* extract all the integer values from the list */
|
|
for (i = 0; i < arg1; i++) {
|
|
PyObject *item = PyList_GetItem (obj0, i);
|
|
arg2 [i] = (int)PyInt_AsLong (item);
|
|
}
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj1, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateSparseMat" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (CvSparseMat *)cvCreateSparseMat(arg1,(int const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSparseMat, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCloneSparseMat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSparseMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvCloneSparseMat",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvCloneSparseMat" "', argument " "1"" of type '" "CvSparseMat const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvSparseMat *)cvCloneSparseMat((CvSparseMat const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSparseMat, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvInitSparseMatIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMat *arg1 = (CvSparseMat *) 0 ;
|
|
CvSparseMatIterator *arg2 = (CvSparseMatIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvSparseNode *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvInitSparseMatIterator",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvInitSparseMatIterator" "', argument " "1"" of type '" "CvSparseMat const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMat * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSparseMatIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvInitSparseMatIterator" "', argument " "2"" of type '" "CvSparseMatIterator *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSparseMatIterator * >(argp2);
|
|
{
|
|
try {
|
|
result = (CvSparseNode *)cvInitSparseMatIterator((CvSparseMat const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSparseNode, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetNextSparseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSparseMatIterator *arg1 = (CvSparseMatIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSparseNode *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvGetNextSparseNode",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSparseMatIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvGetNextSparseNode" "', argument " "1"" of type '" "CvSparseMatIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSparseMatIterator * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvSparseNode *)cvGetNextSparseNode(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSparseNode, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvNArrayIterator_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvNArrayIterator *arg1 = (CvNArrayIterator *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvNArrayIterator_count_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvNArrayIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvNArrayIterator_count_set" "', argument " "1"" of type '" "CvNArrayIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvNArrayIterator * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvNArrayIterator_count_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->count = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvNArrayIterator_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvNArrayIterator *arg1 = (CvNArrayIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvNArrayIterator_count_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvNArrayIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvNArrayIterator_count_get" "', argument " "1"" of type '" "CvNArrayIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvNArrayIterator * >(argp1);
|
|
result = (int) ((arg1)->count);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvNArrayIterator_dims_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvNArrayIterator *arg1 = (CvNArrayIterator *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvNArrayIterator_dims_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvNArrayIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvNArrayIterator_dims_set" "', argument " "1"" of type '" "CvNArrayIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvNArrayIterator * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvNArrayIterator_dims_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->dims = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvNArrayIterator_dims_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvNArrayIterator *arg1 = (CvNArrayIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvNArrayIterator_dims_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvNArrayIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvNArrayIterator_dims_get" "', argument " "1"" of type '" "CvNArrayIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvNArrayIterator * >(argp1);
|
|
result = (int) ((arg1)->dims);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvNArrayIterator_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvNArrayIterator *arg1 = (CvNArrayIterator *) 0 ;
|
|
CvSize *arg2 = (CvSize *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvNArrayIterator_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvNArrayIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvNArrayIterator_size_set" "', argument " "1"" of type '" "CvNArrayIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvNArrayIterator * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvNArrayIterator_size_set" "', argument " "2"" of type '" "CvSize *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSize * >(argp2);
|
|
if (arg1) (arg1)->size = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvNArrayIterator_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvNArrayIterator *arg1 = (CvNArrayIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSize *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvNArrayIterator_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvNArrayIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvNArrayIterator_size_get" "', argument " "1"" of type '" "CvNArrayIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvNArrayIterator * >(argp1);
|
|
result = (CvSize *)& ((arg1)->size);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSize, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvNArrayIterator_ptr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvNArrayIterator *arg1 = (CvNArrayIterator *) 0 ;
|
|
uchar **arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvNArrayIterator_ptr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvNArrayIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvNArrayIterator_ptr_set" "', argument " "1"" of type '" "CvNArrayIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvNArrayIterator * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvNArrayIterator_ptr_set" "', argument " "2"" of type '" "uchar *[10]""'");
|
|
}
|
|
arg2 = reinterpret_cast< uchar ** >(argp2);
|
|
{
|
|
if (arg2) {
|
|
size_t ii = 0;
|
|
for (; ii < (size_t)10; ++ii) arg1->ptr[ii] = arg2[ii];
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""ptr""' of type '""uchar *[10]""'");
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvNArrayIterator_ptr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvNArrayIterator *arg1 = (CvNArrayIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
uchar **result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvNArrayIterator_ptr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvNArrayIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvNArrayIterator_ptr_get" "', argument " "1"" of type '" "CvNArrayIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvNArrayIterator * >(argp1);
|
|
result = (uchar **)(uchar **) ((arg1)->ptr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_unsigned_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvNArrayIterator_stack_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvNArrayIterator *arg1 = (CvNArrayIterator *) 0 ;
|
|
int *arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvNArrayIterator_stack_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvNArrayIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvNArrayIterator_stack_set" "', argument " "1"" of type '" "CvNArrayIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvNArrayIterator * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvNArrayIterator_stack_set" "', argument " "2"" of type '" "int [32]""'");
|
|
}
|
|
arg2 = reinterpret_cast< int * >(argp2);
|
|
{
|
|
if (arg2) {
|
|
size_t ii = 0;
|
|
for (; ii < (size_t)32; ++ii) arg1->stack[ii] = arg2[ii];
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""stack""' of type '""int [32]""'");
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvNArrayIterator_stack_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvNArrayIterator *arg1 = (CvNArrayIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvNArrayIterator_stack_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvNArrayIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvNArrayIterator_stack_get" "', argument " "1"" of type '" "CvNArrayIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvNArrayIterator * >(argp1);
|
|
result = (int *)(int *) ((arg1)->stack);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvNArrayIterator_hdr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvNArrayIterator *arg1 = (CvNArrayIterator *) 0 ;
|
|
CvMatND **arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvNArrayIterator_hdr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvNArrayIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvNArrayIterator_hdr_set" "', argument " "1"" of type '" "CvNArrayIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvNArrayIterator * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_CvMatND, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvNArrayIterator_hdr_set" "', argument " "2"" of type '" "CvMatND *[10]""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMatND ** >(argp2);
|
|
{
|
|
if (arg2) {
|
|
size_t ii = 0;
|
|
for (; ii < (size_t)10; ++ii) arg1->hdr[ii] = arg2[ii];
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""hdr""' of type '""CvMatND *[10]""'");
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvNArrayIterator_hdr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvNArrayIterator *arg1 = (CvNArrayIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMatND **result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvNArrayIterator_hdr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvNArrayIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvNArrayIterator_hdr_get" "', argument " "1"" of type '" "CvNArrayIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvNArrayIterator * >(argp1);
|
|
result = (CvMatND **)(CvMatND **) ((arg1)->hdr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_CvMatND, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvNArrayIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvNArrayIterator *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvNArrayIterator")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvNArrayIterator *)new CvNArrayIterator();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvNArrayIterator, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvNArrayIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvNArrayIterator *arg1 = (CvNArrayIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvNArrayIterator",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvNArrayIterator, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvNArrayIterator" "', argument " "1"" of type '" "CvNArrayIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvNArrayIterator * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvNArrayIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvNArrayIterator, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvInitNArrayIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
CvArr **arg2 = (CvArr **) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvMatND *arg4 = (CvMatND *) 0 ;
|
|
CvNArrayIterator *arg5 = (CvNArrayIterator *) 0 ;
|
|
int arg6 = (int) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
void *vptr2 ;
|
|
CvArr *buffer2 ;
|
|
bool freearg3 = false ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO|O:cvInitNArrayIterator",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvInitNArrayIterator" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
{
|
|
if ((SWIG_ConvertPtr(obj1, &vptr2, SWIGTYPE_p_void, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer2 = (CvArr *) vptr2;
|
|
arg2=&buffer2;
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvMatND, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvInitNArrayIterator" "', argument " "4"" of type '" "CvMatND *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvMatND * >(argp4);
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_CvNArrayIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvInitNArrayIterator" "', argument " "5"" of type '" "CvNArrayIterator *""'");
|
|
}
|
|
arg5 = reinterpret_cast< CvNArrayIterator * >(argp5);
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvInitNArrayIterator" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvInitNArrayIterator(arg1,arg2,(void const *)arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvNextNArraySlice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvNArrayIterator *arg1 = (CvNArrayIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvNextNArraySlice",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvNArrayIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvNextNArraySlice" "', argument " "1"" of type '" "CvNArrayIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvNArrayIterator * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)cvNextNArraySlice(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetElemType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvGetElemType",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvGetElemType((void const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetDims(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int *arg2 = (int *) NULL ;
|
|
void *myarr1 ;
|
|
int mysizes1[CV_MAX_DIM] ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvGetDims",&obj0)) SWIG_fail;
|
|
{
|
|
SWIG_Python_ConvertPtr(obj0, &myarr1, 0, SWIG_POINTER_EXCEPTION);
|
|
arg1=(CvArr *)myarr1;
|
|
arg2=mysizes1;
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvGetDims((void const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
int len = PyInt_AsLong( resultobj );
|
|
PyObject * obj = PyTuple_FromIntArray( arg2, len );
|
|
Py_DECREF( resultobj );
|
|
resultobj = obj;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetDimSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGetDimSize",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvGetDimSize" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (int)cvGetDimSize((void const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPtr1D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
int *arg3 = (int *) NULL ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
uchar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvPtr1D",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvPtr1D" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (obj2) {
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvPtr1D" "', argument " "3"" of type '" "int *""'");
|
|
}
|
|
arg3 = reinterpret_cast< int * >(argp3);
|
|
}
|
|
{
|
|
try {
|
|
result = (uchar *)cvPtr1D((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPtr2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int *arg4 = (int *) NULL ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
uchar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvPtr2D",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvPtr2D" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvPtr2D" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvPtr2D" "', argument " "4"" of type '" "int *""'");
|
|
}
|
|
arg4 = reinterpret_cast< int * >(argp4);
|
|
}
|
|
{
|
|
try {
|
|
result = (uchar *)cvPtr2D((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPtr3D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
int *arg5 = (int *) NULL ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
uchar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|O:cvPtr3D",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvPtr3D" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvPtr3D" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvPtr3D" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
if (obj4) {
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvPtr3D" "', argument " "5"" of type '" "int *""'");
|
|
}
|
|
arg5 = reinterpret_cast< int * >(argp5);
|
|
}
|
|
{
|
|
try {
|
|
result = (uchar *)cvPtr3D((void const *)arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPtrND(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
int *arg3 = (int *) NULL ;
|
|
int arg4 = (int) 1 ;
|
|
unsigned int *arg5 = (unsigned int *) NULL ;
|
|
bool freearg1 = false ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
uchar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OOO:cvPtrND",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
int i;
|
|
int size;
|
|
|
|
/* get the size of the dimention array */
|
|
size = PyList_Size (obj1);
|
|
|
|
/* allocate the needed memory */
|
|
arg2 = (int *)malloc (size * sizeof (int));
|
|
|
|
/* extract all the integer values from the list */
|
|
for (i = 0; i < size; i++) {
|
|
PyObject *item = PyList_GetItem (obj1, i);
|
|
arg2 [i] = (int)PyInt_AsLong (item);
|
|
}
|
|
}
|
|
if (obj2) {
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvPtrND" "', argument " "3"" of type '" "int *""'");
|
|
}
|
|
arg3 = reinterpret_cast< int * >(argp3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvPtrND" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_unsigned_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvPtrND" "', argument " "5"" of type '" "unsigned int *""'");
|
|
}
|
|
arg5 = reinterpret_cast< unsigned int * >(argp5);
|
|
}
|
|
{
|
|
try {
|
|
result = (uchar *)cvPtrND((void const *)arg1,(int const *)arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGet1D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvScalar result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGet1D",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvGet1D" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = cvGet1D((void const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvScalar(static_cast< const CvScalar& >(result))), SWIGTYPE_p_CvScalar, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGet2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvScalar result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvGet2D",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvGet2D" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvGet2D" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = cvGet2D((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvScalar(static_cast< const CvScalar& >(result))), SWIGTYPE_p_CvScalar, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGet3D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvScalar result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvGet3D",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvGet3D" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvGet3D" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvGet3D" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
try {
|
|
result = cvGet3D((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvScalar(static_cast< const CvScalar& >(result))), SWIGTYPE_p_CvScalar, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetND(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvScalar result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGetND",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
int i;
|
|
int size;
|
|
|
|
/* get the size of the dimention array */
|
|
size = PyList_Size (obj1);
|
|
|
|
/* allocate the needed memory */
|
|
arg2 = (int *)malloc (size * sizeof (int));
|
|
|
|
/* extract all the integer values from the list */
|
|
for (i = 0; i < size; i++) {
|
|
PyObject *item = PyList_GetItem (obj1, i);
|
|
arg2 [i] = (int)PyInt_AsLong (item);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = cvGetND((void const *)arg1,(int const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvScalar(static_cast< const CvScalar& >(result))), SWIGTYPE_p_CvScalar, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetReal1D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGetReal1D",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvGetReal1D" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (double)cvGetReal1D((void const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetReal2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvGetReal2D",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvGetReal2D" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvGetReal2D" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (double)cvGetReal2D((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetReal3D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvGetReal3D",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvGetReal3D" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvGetReal3D" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvGetReal3D" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
try {
|
|
result = (double)cvGetReal3D((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetRealND(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGetRealND",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
int i;
|
|
int size;
|
|
|
|
/* get the size of the dimention array */
|
|
size = PyList_Size (obj1);
|
|
|
|
/* allocate the needed memory */
|
|
arg2 = (int *)malloc (size * sizeof (int));
|
|
|
|
/* extract all the integer values from the list */
|
|
for (i = 0; i < size; i++) {
|
|
PyObject *item = PyList_GetItem (obj1, i);
|
|
arg2 [i] = (int)PyInt_AsLong (item);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (double)cvGetRealND((void const *)arg1,(int const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSet1D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
CvScalar arg3 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvSet1D",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSet1D" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
arg3 = PyObject_to_CvScalar( obj2 );
|
|
}
|
|
{
|
|
try {
|
|
cvSet1D(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSet2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
CvScalar arg4 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvSet2D",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSet2D" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvSet2D" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
arg4 = PyObject_to_CvScalar( obj3 );
|
|
}
|
|
{
|
|
try {
|
|
cvSet2D(arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSet3D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
CvScalar arg5 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvSet3D",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSet3D" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvSet3D" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvSet3D" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
arg5 = PyObject_to_CvScalar( obj4 );
|
|
}
|
|
{
|
|
try {
|
|
cvSet3D(arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetND(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
CvScalar arg3 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvSetND",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
int i;
|
|
int size;
|
|
|
|
/* get the size of the dimention array */
|
|
size = PyList_Size (obj1);
|
|
|
|
/* allocate the needed memory */
|
|
arg2 = (int *)malloc (size * sizeof (int));
|
|
|
|
/* extract all the integer values from the list */
|
|
for (i = 0; i < size; i++) {
|
|
PyObject *item = PyList_GetItem (obj1, i);
|
|
arg2 [i] = (int)PyInt_AsLong (item);
|
|
}
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvScalar( obj2 );
|
|
}
|
|
{
|
|
try {
|
|
cvSetND(arg1,(int const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetReal1D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
double arg3 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvSetReal1D",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSetReal1D" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvSetReal1D" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
{
|
|
try {
|
|
cvSetReal1D(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetReal2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
double arg4 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvSetReal2D",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSetReal2D" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvSetReal2D" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvSetReal2D" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
{
|
|
try {
|
|
cvSetReal2D(arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetReal3D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
double arg5 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvSetReal3D",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSetReal3D" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvSetReal3D" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvSetReal3D" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
ecode5 = SWIG_AsVal_double(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvSetReal3D" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
{
|
|
try {
|
|
cvSetReal3D(arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetRealND(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
double arg3 ;
|
|
bool freearg1 = false ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvSetRealND",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
int i;
|
|
int size;
|
|
|
|
/* get the size of the dimention array */
|
|
size = PyList_Size (obj1);
|
|
|
|
/* allocate the needed memory */
|
|
arg2 = (int *)malloc (size * sizeof (int));
|
|
|
|
/* extract all the integer values from the list */
|
|
for (i = 0; i < size; i++) {
|
|
PyObject *item = PyList_GetItem (obj1, i);
|
|
arg2 [i] = (int)PyInt_AsLong (item);
|
|
}
|
|
}
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvSetRealND" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
{
|
|
try {
|
|
cvSetRealND(arg1,(int const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvClearND(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvClearND",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
int i;
|
|
int size;
|
|
|
|
/* get the size of the dimention array */
|
|
size = PyList_Size (obj1);
|
|
|
|
/* allocate the needed memory */
|
|
arg2 = (int *)malloc (size * sizeof (int));
|
|
|
|
/* extract all the integer values from the list */
|
|
for (i = 0; i < size; i++) {
|
|
PyObject *item = PyList_GetItem (obj1, i);
|
|
arg2 [i] = (int)PyInt_AsLong (item);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvClearND(arg1,(int const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetMat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
int *arg3 = (int *) NULL ;
|
|
int arg4 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
CvMat *header2 ;
|
|
bool freearg2 = false ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
{
|
|
header2 = (CvMat *)cvAlloc(sizeof(CvMat));
|
|
arg2 = header2;
|
|
}
|
|
if (!PyArg_ParseTuple(args,(char *)"O|OO:cvGetMat",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
if (obj1) {
|
|
res3 = SWIG_ConvertPtr(obj1, &argp3,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvGetMat" "', argument " "3"" of type '" "int *""'");
|
|
}
|
|
arg3 = reinterpret_cast< int * >(argp3);
|
|
}
|
|
if (obj2) {
|
|
ecode4 = SWIG_AsVal_int(obj2, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvGetMat" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)cvGetMat((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
{
|
|
arg2->hdr_refcount = ((CvMat *)arg1)->hdr_refcount;
|
|
arg2->refcount = ((CvMat *)arg1)->refcount;
|
|
cvIncRefData(arg2);
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReshapeMatND(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
int arg4 ;
|
|
int arg5 ;
|
|
int *arg6 = (int *) 0 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool freearg3 = false ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
void *argp6 = 0 ;
|
|
int res6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
CvArr *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO:cvReshapeMatND",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvReshapeMatND" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvReshapeMatND" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvReshapeMatND" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "cvReshapeMatND" "', argument " "6"" of type '" "int *""'");
|
|
}
|
|
arg6 = reinterpret_cast< int * >(argp6);
|
|
{
|
|
try {
|
|
result = (CvArr *)cvReshapeMatND((void const *)arg1,arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReshape(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
int arg3 ;
|
|
int arg4 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
CvMat *header2 ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
{
|
|
header2 = (CvMat *)cvAlloc(sizeof(CvMat));
|
|
arg2 = header2;
|
|
}
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvReshape",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj1, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvReshape" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj2) {
|
|
ecode4 = SWIG_AsVal_int(obj2, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvReshape" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)cvReshape((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
arg2->hdr_refcount = ((CvMat *)arg1)->hdr_refcount;
|
|
arg2->refcount = ((CvMat *)arg1)->refcount;
|
|
cvIncRefData(arg2);
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRepeat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvRepeat",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
cvRepeat((void const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvCreateData",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
cvCreateData(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReleaseData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvReleaseData",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
cvReleaseData(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
int arg3 ;
|
|
bool freearg1 = false ;
|
|
int res2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvSetData",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvSetData" "', argument " "2"" of type '" "void *""'");
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvSetData" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
cvSetData(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetRawData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
uchar **arg2 = (uchar **) 0 ;
|
|
int *arg3 = (int *) NULL ;
|
|
CvSize *arg4 = (CvSize *) NULL ;
|
|
bool freearg1 = false ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OO:cvGetRawData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_unsigned_char, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvGetRawData" "', argument " "2"" of type '" "uchar **""'");
|
|
}
|
|
arg2 = reinterpret_cast< uchar ** >(argp2);
|
|
if (obj2) {
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvGetRawData" "', argument " "3"" of type '" "int *""'");
|
|
}
|
|
arg3 = reinterpret_cast< int * >(argp3);
|
|
}
|
|
if (obj3) {
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvGetRawData" "', argument " "4"" of type '" "CvSize *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvSize * >(argp4);
|
|
}
|
|
{
|
|
try {
|
|
cvGetRawData((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSize result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvGetSize",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = cvGetSize((void const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvSize(static_cast< const CvSize& >(result))), SWIGTYPE_p_CvSize, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvCopy",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvCopy((void const *)arg1,arg2,(void const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvScalar arg2 ;
|
|
CvArr *arg3 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvSet",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
if (obj2) {
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvSet(arg1,arg2,(void const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetZero(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvSetZero",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
cvSetZero(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSplit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
CvArr *arg5 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
bool freearg5 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvSplit",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
arg5 = PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
{
|
|
try {
|
|
cvSplit((void const *)arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5)
|
|
{
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5)
|
|
{
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMerge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
CvArr *arg5 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
bool freearg5 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvMerge",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
arg5 = PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
{
|
|
try {
|
|
cvMerge((void const *)arg1,(void const *)arg2,(void const *)arg3,(void const *)arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5)
|
|
{
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5)
|
|
{
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMixChannels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr **arg1 = (CvArr **) 0 ;
|
|
int arg2 ;
|
|
CvArr **arg3 = (CvArr **) 0 ;
|
|
int arg4 ;
|
|
int *arg5 = (int *) 0 ;
|
|
int arg6 ;
|
|
void *vptr1 ;
|
|
CvArr *buffer1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *vptr3 ;
|
|
CvArr *buffer3 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO:cvMixChannels",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
if ((SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_void, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer1 = (CvArr *) vptr1;
|
|
arg1=&buffer1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvMixChannels" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
if ((SWIG_ConvertPtr(obj2, &vptr3, SWIGTYPE_p_void, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer3 = (CvArr *) vptr3;
|
|
arg3=&buffer3;
|
|
}
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvMixChannels" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvMixChannels" "', argument " "5"" of type '" "int const *""'");
|
|
}
|
|
arg5 = reinterpret_cast< int * >(argp5);
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvMixChannels" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
{
|
|
try {
|
|
cvMixChannels((void const **)arg1,arg2,arg3,arg4,(int const *)arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvConvertScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
double arg3 = (double) 1 ;
|
|
double arg4 = (double) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OO:cvConvertScale",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvConvertScale" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvConvertScale" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
}
|
|
{
|
|
try {
|
|
cvConvertScale((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvConvertScaleAbs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
double arg3 = (double) 1 ;
|
|
double arg4 = (double) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OO:cvConvertScaleAbs",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvConvertScaleAbs" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvConvertScaleAbs" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
}
|
|
{
|
|
try {
|
|
cvConvertScaleAbs((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCheckTermCriteria(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTermCriteria arg1 ;
|
|
double arg2 ;
|
|
int arg3 ;
|
|
CvTermCriteria temp1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvTermCriteria result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvCheckTermCriteria",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"iid", & temp1.type, & temp1.max_iter, & temp1.epsilon))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers and a float (type, max_iter, epsilon)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvTermCriteria * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvTermCriteria, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvTermCriteria");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCheckTermCriteria" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCheckTermCriteria" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = cvCheckTermCriteria(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvTermCriteria(static_cast< const CvTermCriteria& >(result))), SWIGTYPE_p_CvTermCriteria, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAdd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvAdd",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvAdd((void const *)arg1,(void const *)arg2,arg3,(void const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAddS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvScalar arg2 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvAddS",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvAddS((void const *)arg1,arg2,arg3,(void const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSub(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvSub",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvSub((void const *)arg1,(void const *)arg2,arg3,(void const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSubS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvScalar arg2 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvSubS",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvSubS((void const *)arg1,arg2,arg3,(void const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSubRS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvScalar arg2 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvSubRS",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvSubRS((void const *)arg1,arg2,arg3,(void const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMul(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
double arg4 = (double) 1 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvMul",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvMul" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
}
|
|
{
|
|
try {
|
|
cvMul((void const *)arg1,(void const *)arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvDiv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
double arg4 = (double) 1 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvDiv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvDiv" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
}
|
|
{
|
|
try {
|
|
cvDiv((void const *)arg1,(void const *)arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvScaleAdd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvScalar arg2 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvScaleAdd",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
try {
|
|
cvScaleAdd((void const *)arg1,arg2,(void const *)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAddWeighted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
double arg2 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
double arg4 ;
|
|
double arg5 ;
|
|
CvArr *arg6 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
bool freearg3 = false ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
bool freearg6 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO:cvAddWeighted",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvAddWeighted" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvAddWeighted" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
ecode5 = SWIG_AsVal_double(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvAddWeighted" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
{
|
|
arg6 = PyObject_to_CvArr(obj5, &freearg6);
|
|
}
|
|
{
|
|
try {
|
|
cvAddWeighted((void const *)arg1,arg2,(void const *)arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6)
|
|
{
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6)
|
|
{
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvDotProduct(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvDotProduct",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (double)cvDotProduct((void const *)arg1,(void const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvAnd",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvAnd((void const *)arg1,(void const *)arg2,arg3,(void const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAndS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvScalar arg2 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvAndS",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvAndS((void const *)arg1,arg2,arg3,(void const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvOr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvOr",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvOr((void const *)arg1,(void const *)arg2,arg3,(void const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvOrS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvScalar arg2 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvOrS",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvOrS((void const *)arg1,arg2,arg3,(void const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvXor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvXor",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvXor((void const *)arg1,(void const *)arg2,arg3,(void const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvXorS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvScalar arg2 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvXorS",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvXorS((void const *)arg1,arg2,arg3,(void const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvNot(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvNot",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
cvNot((void const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvInRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvInRange",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
try {
|
|
cvInRange((void const *)arg1,(void const *)arg2,(void const *)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvInRangeS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvScalar arg2 ;
|
|
CvScalar arg3 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvInRangeS",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvScalar( obj2 );
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
try {
|
|
cvInRangeS((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCmp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
int arg4 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvCmp",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvCmp" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
try {
|
|
cvCmp((void const *)arg1,(void const *)arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCmpS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
double arg2 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
int arg4 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
bool freearg3 = false ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvCmpS",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCmpS" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvCmpS" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
try {
|
|
cvCmpS((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvMin",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
try {
|
|
cvMin((void const *)arg1,(void const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvMax",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
try {
|
|
cvMax((void const *)arg1,(void const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMinS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
double arg2 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvMinS",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvMinS" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
try {
|
|
cvMinS((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMaxS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
double arg2 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvMaxS",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvMaxS" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
try {
|
|
cvMaxS((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAbsDiff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvAbsDiff",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
try {
|
|
cvAbsDiff((void const *)arg1,(void const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAbsDiffS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvScalar arg3 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvAbsDiffS",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvScalar( obj2 );
|
|
}
|
|
{
|
|
try {
|
|
cvAbsDiffS((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCartToPolar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
int arg5 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OO:cvCartToPolar",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvCartToPolar" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
{
|
|
try {
|
|
cvCartToPolar((void const *)arg1,(void const *)arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPolarToCart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
int arg5 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|O:cvPolarToCart",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvPolarToCart" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
{
|
|
try {
|
|
cvPolarToCart((void const *)arg1,(void const *)arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
double arg3 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvPow",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvPow" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
{
|
|
try {
|
|
cvPow((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvExp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvExp",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
cvExp((void const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvLog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvLog",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
cvLog((void const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFastArctan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
float arg1 ;
|
|
float arg2 ;
|
|
float val1 ;
|
|
int ecode1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvFastArctan",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_float(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvFastArctan" "', argument " "1"" of type '" "float""'");
|
|
}
|
|
arg1 = static_cast< float >(val1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvFastArctan" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
{
|
|
try {
|
|
result = (float)cvFastArctan(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCbrt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
float arg1 ;
|
|
float val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvCbrt",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_float(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvCbrt" "', argument " "1"" of type '" "float""'");
|
|
}
|
|
arg1 = static_cast< float >(val1);
|
|
{
|
|
try {
|
|
result = (float)cvCbrt(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCheckArr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 = (int) 0 ;
|
|
double arg3 = (double) 0 ;
|
|
double arg4 = (double) 0 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|OOO:cvCheckArr",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCheckArr" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCheckArr" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvCheckArr" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvCheckArr((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRandArr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRNG *arg1 = (CvRNG *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 ;
|
|
CvScalar arg4 ;
|
|
CvScalar arg5 ;
|
|
void *vptr1 ;
|
|
CvRNG_Wrapper *wrapper1 ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvRandArr",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
if(SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_CvRNG_Wrapper, 0)==-1){
|
|
SWIG_exception( SWIG_TypeError, "could not convert Python object to C value");
|
|
return NULL;
|
|
}
|
|
wrapper1 = (CvRNG_Wrapper *) vptr1;
|
|
arg1 = wrapper1->ptr();
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvRandArr" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
arg4 = PyObject_to_CvScalar( obj3 );
|
|
}
|
|
{
|
|
arg5 = PyObject_to_CvScalar( obj4 );
|
|
}
|
|
{
|
|
try {
|
|
cvRandArr(arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRandShuffle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvRNG *arg2 = (CvRNG *) 0 ;
|
|
double arg3 = (double) 1. ;
|
|
bool freearg1 = false ;
|
|
void *vptr2 ;
|
|
CvRNG_Wrapper *wrapper2 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvRandShuffle",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if(SWIG_ConvertPtr(obj1, &vptr2, SWIGTYPE_p_CvRNG_Wrapper, 0)==-1){
|
|
SWIG_exception( SWIG_TypeError, "could not convert Python object to C value");
|
|
return NULL;
|
|
}
|
|
wrapper2 = (CvRNG_Wrapper *) vptr2;
|
|
arg2 = wrapper2->ptr();
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvRandShuffle" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
}
|
|
{
|
|
try {
|
|
cvRandShuffle(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) NULL ;
|
|
CvArr *arg3 = (CvArr *) NULL ;
|
|
int arg4 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|OOO:cvSort",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
if (obj1) {
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
}
|
|
if (obj2) {
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvSort" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
cvSort((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSolveCubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvSolveCubic",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
int m = arg1->rows * arg1->cols;
|
|
if (m<2) {
|
|
PyErr_SetString (PyExc_TypeError,"must give at least 2 coefficients");
|
|
return NULL;
|
|
}
|
|
arg2 = cvCreateMat(m-1, 1, CV_MAKETYPE(CV_MAT_DEPTH(arg1->type),1));
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvSolveCubic((CvMat const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj(arg2, SWIGTYPE_p_CvMat, 1));
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSolvePoly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
int arg3 = (int) 20 ;
|
|
int arg4 = (int) 100 ;
|
|
bool freearg1 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|OO:cvSolvePoly",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
int m = arg1->rows * arg1->cols;
|
|
if (m<2) {
|
|
PyErr_SetString (PyExc_TypeError,"must give at least 2 coefficients");
|
|
return NULL;
|
|
}
|
|
arg2 = cvCreateMat(m-1, 1, CV_MAKETYPE(CV_MAT_DEPTH(arg1->type),2));
|
|
}
|
|
if (obj1) {
|
|
ecode3 = SWIG_AsVal_int(obj1, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvSolvePoly" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj2) {
|
|
ecode4 = SWIG_AsVal_int(obj2, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvSolvePoly" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
cvSolvePoly((CvMat const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj(arg2, SWIGTYPE_p_CvMat, 1));
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCrossProduct(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvCrossProduct",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
try {
|
|
cvCrossProduct((void const *)arg1,(void const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGEMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
double arg3 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
double arg5 ;
|
|
CvArr *arg6 = (CvArr *) 0 ;
|
|
int arg7 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
bool freearg4 = false ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
bool freearg6 = false ;
|
|
int val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO|O:cvGEMM",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvGEMM" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
ecode5 = SWIG_AsVal_double(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvGEMM" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
{
|
|
arg6 = PyObject_to_CvArr(obj5, &freearg6);
|
|
}
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_int(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvGEMM" "', argument " "7"" of type '" "int""'");
|
|
}
|
|
arg7 = static_cast< int >(val7);
|
|
}
|
|
{
|
|
try {
|
|
cvGEMM((void const *)arg1,(void const *)arg2,arg3,(void const *)arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6)
|
|
{
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6)
|
|
{
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvMat *arg4 = (CvMat *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvTransform",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvTransform((void const *)arg1,arg2,(CvMat const *)arg3,(CvMat const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPerspectiveTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvPerspectiveTransform",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
try {
|
|
cvPerspectiveTransform((void const *)arg1,arg2,(CvMat const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMulTransposed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
double arg5 = (double) 1. ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
bool freearg4 = false ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OO:cvMulTransposed",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvMulTransposed" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_double(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvMulTransposed" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
}
|
|
{
|
|
try {
|
|
cvMulTransposed((void const *)arg1,arg2,arg3,(void const *)arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvTranspose(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvTranspose",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
cvTranspose((void const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCompleteSymm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvCompleteSymm",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCompleteSymm" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
try {
|
|
cvCompleteSymm(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFlip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) NULL ;
|
|
int arg3 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|OO:cvFlip",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
if (obj1) {
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvFlip" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
try {
|
|
cvFlip((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSVD(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) NULL ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
int arg5 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OOO:cvSVD",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvSVD" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
{
|
|
try {
|
|
cvSVD(arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSVBkSb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
CvArr *arg5 = (CvArr *) 0 ;
|
|
int arg6 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
bool freearg5 = false ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO:cvSVBkSb",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
arg5 = PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvSVBkSb" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
{
|
|
try {
|
|
cvSVBkSb((void const *)arg1,(void const *)arg2,(void const *)arg3,(void const *)arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5)
|
|
{
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5)
|
|
{
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvInvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvInvert",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvInvert" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
try {
|
|
result = (double)cvInvert((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSolve(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
int arg4 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvSolve",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvSolve" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvSolve((void const *)arg1,(void const *)arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvDet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvDet",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (double)cvDet((void const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvTrace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
CvScalar result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvTrace",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = cvTrace((void const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvScalar(static_cast< const CvScalar& >(result))), SWIGTYPE_p_CvScalar, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvEigenVV(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
double arg4 = (double) 0 ;
|
|
int arg5 = (int) -1 ;
|
|
int arg6 = (int) -1 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OOO:cvEigenVV",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvEigenVV" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvEigenVV" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvEigenVV" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
{
|
|
try {
|
|
cvEigenVV(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvScalar arg2 = (CvScalar) cvRealScalar(1) ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvSetIdentity",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
if (obj1) {
|
|
{
|
|
arg2 = PyObject_to_CvScalar( obj1 );
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvSetIdentity(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
double arg2 ;
|
|
double arg3 ;
|
|
bool freearg1 = false ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvArr *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvRange",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvRange" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvRange" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
{
|
|
try {
|
|
result = (CvArr *)cvRange(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcCovarMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr **arg1 = (CvArr **) 0 ;
|
|
int arg2 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
int arg5 ;
|
|
CvArr *one_image1 = NULL ;
|
|
bool free_one_arg1 = false ;
|
|
CvArr **many_images1 = NULL ;
|
|
bool *free_many_args1 = NULL ;
|
|
int nimages1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvCalcCovarMatrix",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
/* first, check if this is a tuple */
|
|
if PyTuple_Check (obj0) {
|
|
/* This is a tuple, so we need to test each element and pass
|
|
them to the called function */
|
|
|
|
int i;
|
|
|
|
/* get the size of the tuple */
|
|
nimages1 = PyTuple_Size (obj0);
|
|
|
|
/* allocate the necessary place */
|
|
many_images1 = (CvArr **)malloc (nimages1 * sizeof (CvArr *));
|
|
free_many_args1 = (bool *)malloc(nimages1 * sizeof(bool));
|
|
|
|
for (i = 0; i < nimages1; i++) {
|
|
/* convert the current tuple element to a CvArr *, and
|
|
store to many_images1 [i] */
|
|
many_images1[i] = PyObject_to_CvArr (PyTuple_GetItem (obj0, i),
|
|
free_many_args1+i);
|
|
|
|
/* check that the current item is a correct type */
|
|
if(!many_images1[i]) {
|
|
/* incorrect ! */
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
|
|
/* what to give to the called function */
|
|
arg1 = many_images1;
|
|
|
|
} else if((one_image1 = PyObject_to_CvArr( obj0, &free_one_arg1 ))){
|
|
/* this is just one CvArr *, so one_image1 will receive it */
|
|
arg1 = &one_image1;
|
|
|
|
} else {
|
|
/* not a CvArr *, not a tuple, this is wrong */
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCalcCovarMatrix" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvCalcCovarMatrix" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
{
|
|
try {
|
|
cvCalcCovarMatrix((void const **)arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(free_one_arg1){
|
|
cvFree(&(one_image1));
|
|
}
|
|
else if(free_many_args1){
|
|
int i;
|
|
for (i=0; i<nimages1; i++){
|
|
if(free_many_args1[i]){
|
|
cvReleaseData(many_images1[i]);
|
|
cvFree(many_images1+i);
|
|
}
|
|
}
|
|
free(many_images1);
|
|
free(free_many_args1);
|
|
}
|
|
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(free_one_arg1){
|
|
cvFree(&(one_image1));
|
|
}
|
|
else if(free_many_args1){
|
|
int i;
|
|
for (i=0; i<nimages1; i++){
|
|
if(free_many_args1[i]){
|
|
cvReleaseData(many_images1[i]);
|
|
cvFree(many_images1+i);
|
|
}
|
|
}
|
|
free(many_images1);
|
|
free(free_many_args1);
|
|
}
|
|
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcPCA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
int arg5 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvCalcPCA",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvCalcPCA" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
{
|
|
try {
|
|
cvCalcPCA((void const *)arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvProjectPCA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvProjectPCA",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
try {
|
|
cvProjectPCA((void const *)arg1,(void const *)arg2,(void const *)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvBackProjectPCA(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvBackProjectPCA",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
try {
|
|
cvBackProjectPCA((void const *)arg1,(void const *)arg2,(void const *)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMahalanobis(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvMahalanobis",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
try {
|
|
result = (double)cvMahalanobis((void const *)arg1,(void const *)arg2,(void const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
CvScalar result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvSum",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = cvSum((void const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvScalar(static_cast< const CvScalar& >(result))), SWIGTYPE_p_CvScalar, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCountNonZero(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvCountNonZero",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvCountNonZero((void const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAvg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvScalar result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvAvg",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
if (obj1) {
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = cvAvg((void const *)arg1,(void const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvScalar(static_cast< const CvScalar& >(result))), SWIGTYPE_p_CvScalar, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAvgSdv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvScalar *arg2 = (CvScalar *) 0 ;
|
|
CvScalar *arg3 = (CvScalar *) 0 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvAvgSdv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvScalar, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvAvgSdv" "', argument " "2"" of type '" "CvScalar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvScalar * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvScalar, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvAvgSdv" "', argument " "3"" of type '" "CvScalar *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvScalar * >(argp3);
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvAvgSdv((void const *)arg1,arg2,arg3,(void const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMinMaxLoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
double *arg2 = (double *) 0 ;
|
|
double *arg3 = (double *) 0 ;
|
|
CvPoint *arg4 = (CvPoint *) NULL ;
|
|
CvPoint *arg5 = (CvPoint *) NULL ;
|
|
CvArr *arg6 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
double temp2 ;
|
|
int res2 = SWIG_TMPOBJ ;
|
|
double temp3 ;
|
|
int res3 = SWIG_TMPOBJ ;
|
|
bool freearg6 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
arg2 = &temp2;
|
|
arg3 = &temp3;
|
|
{
|
|
arg4 = (CvPoint *) malloc(sizeof(CvPoint));
|
|
}
|
|
{
|
|
arg5 = (CvPoint *) malloc(sizeof(CvPoint));
|
|
}
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvMinMaxLoc",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
if (obj1) {
|
|
{
|
|
arg6 = PyObject_to_CvArr(obj1, &freearg6);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvMinMaxLoc((void const *)arg1,arg2,arg3,arg4,arg5,(void const *)arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsTmpObj(res2)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
|
|
}
|
|
{
|
|
PyObject * to_add = SWIG_NewPointerObj (arg4, SWIGTYPE_p_CvPoint, SWIG_POINTER_OWN);
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, to_add);
|
|
}
|
|
{
|
|
PyObject * to_add = SWIG_NewPointerObj (arg5, SWIGTYPE_p_CvPoint, SWIG_POINTER_OWN);
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, to_add);
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6)
|
|
{
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6)
|
|
{
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvNorm(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) NULL ;
|
|
int arg3 = (int) 4 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|OOO:cvNorm",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
if (obj1) {
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvNorm" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (double)cvNorm((void const *)arg1,(void const *)arg2,arg3,(void const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvNormalize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
double arg3 = (double) 1. ;
|
|
double arg4 = (double) 0. ;
|
|
int arg5 = (int) 4 ;
|
|
CvArr *arg6 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
bool freearg6 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OOOO:cvNormalize",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvNormalize" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvNormalize" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvNormalize" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
{
|
|
arg6 = PyObject_to_CvArr(obj5, &freearg6);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvNormalize((void const *)arg1,arg2,arg3,arg4,arg5,(void const *)arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6)
|
|
{
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6)
|
|
{
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReduce(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 = (int) -1 ;
|
|
int arg4 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OO:cvReduce",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvReduce" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvReduce" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
cvReduce((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvDFT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 ;
|
|
int arg4 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvDFT",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvDFT" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvDFT" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
cvDFT((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMulSpectrums(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
int arg4 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvMulSpectrums",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvMulSpectrums" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
try {
|
|
cvMulSpectrums((void const *)arg1,(void const *)arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetOptimalDFTSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvGetOptimalDFTSize",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvGetOptimalDFTSize" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
{
|
|
try {
|
|
result = (int)cvGetOptimalDFTSize(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvDCT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvDCT",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvDCT" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
cvDCT((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSliceLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSlice arg1 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
CvSlice temp1 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvSliceLength",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"ii", & temp1.start_index, & temp1.end_index))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (start_index, end_index)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvSlice * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvSlice, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSlice");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvSliceLength(arg1,(CvSeq const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateMemStorage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMemStorage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"|O:cvCreateMemStorage",&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvCreateMemStorage" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMemStorage *)cvCreateMemStorage(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMemStorage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateChildMemStorage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMemStorage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvCreateChildMemStorage",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvCreateChildMemStorage" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvMemStorage *)cvCreateChildMemStorage(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMemStorage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvClearMemStorage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvClearMemStorage",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvClearMemStorage" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
{
|
|
try {
|
|
cvClearMemStorage(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSaveMemStoragePos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
CvMemStoragePos *arg2 = (CvMemStoragePos *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvSaveMemStoragePos",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvSaveMemStoragePos" "', argument " "1"" of type '" "CvMemStorage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStoragePos, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvSaveMemStoragePos" "', argument " "2"" of type '" "CvMemStoragePos *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStoragePos * >(argp2);
|
|
{
|
|
try {
|
|
cvSaveMemStoragePos((CvMemStorage const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRestoreMemStoragePos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
CvMemStoragePos *arg2 = (CvMemStoragePos *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvRestoreMemStoragePos",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvRestoreMemStoragePos" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStoragePos, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvRestoreMemStoragePos" "', argument " "2"" of type '" "CvMemStoragePos *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStoragePos * >(argp2);
|
|
{
|
|
try {
|
|
cvRestoreMemStoragePos(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMemStorageAlloc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
size_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
void *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvMemStorageAlloc",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvMemStorageAlloc" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvMemStorageAlloc" "', argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
{
|
|
try {
|
|
result = (void *)cvMemStorageAlloc(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMemStorageAllocString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMemStorage *arg1 = (CvMemStorage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
int arg3 = (int) -1 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvString result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvMemStorageAllocString",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvMemStorageAllocString" "', argument " "1"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMemStorage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvMemStorageAllocString" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvMemStorageAllocString" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
try {
|
|
result = cvMemStorageAllocString(arg1,(char const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvString(static_cast< const CvString& >(result))), SWIGTYPE_p_CvString, SWIG_POINTER_OWN | 0 );
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateSeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
CvMemStorage *arg4 = (CvMemStorage *) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvCreateSeq",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvCreateSeq" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCreateSeq" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateSeq" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvCreateSeq" "', argument " "4"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvMemStorage * >(argp4);
|
|
{
|
|
try {
|
|
result = (CvSeq *)cvCreateSeq(arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetSeqBlockSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvSetSeqBlockSize",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSetSeqBlockSize" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
cvSetSeqBlockSize(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSeqPush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *arg2 = (void *) NULL ;
|
|
void *ptr1 ;
|
|
int res2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvSeqPush",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
if (obj1) {
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvSeqPush" "', argument " "2"" of type '" "void const *""'");
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (schar *)cvSeqPush(arg1,(void const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSeqPushFront(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *arg2 = (void *) NULL ;
|
|
void *ptr1 ;
|
|
int res2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvSeqPushFront",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
if (obj1) {
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvSeqPushFront" "', argument " "2"" of type '" "void const *""'");
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (schar *)cvSeqPushFront(arg1,(void const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSeqPop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *arg2 = (void *) NULL ;
|
|
void *ptr1 ;
|
|
int res2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvSeqPop",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
if (obj1) {
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvSeqPop" "', argument " "2"" of type '" "void *""'");
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvSeqPop(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSeqPopFront(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *arg2 = (void *) NULL ;
|
|
void *ptr1 ;
|
|
int res2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvSeqPopFront",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
if (obj1) {
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvSeqPopFront" "', argument " "2"" of type '" "void *""'");
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvSeqPopFront(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSeqPushMulti(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
int arg3 ;
|
|
int arg4 = (int) 0 ;
|
|
void *ptr1 ;
|
|
int res2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvSeqPushMulti",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvSeqPushMulti" "', argument " "2"" of type '" "void const *""'");
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvSeqPushMulti" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvSeqPushMulti" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
cvSeqPushMulti(arg1,(void const *)arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSeqPopMulti(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
int arg3 ;
|
|
int arg4 = (int) 0 ;
|
|
void *ptr1 ;
|
|
int res2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvSeqPopMulti",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvSeqPopMulti" "', argument " "2"" of type '" "void *""'");
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvSeqPopMulti" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvSeqPopMulti" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
cvSeqPopMulti(arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSeqInsert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
int arg2 ;
|
|
void *arg3 = (void *) NULL ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int res3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvSeqInsert",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSeqInsert" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (obj2) {
|
|
res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvSeqInsert" "', argument " "3"" of type '" "void const *""'");
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (schar *)cvSeqInsert(arg1,arg2,(void const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSeqRemove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvSeqRemove",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSeqRemove" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
cvSeqRemove(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvClearSeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvClearSeq",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
try {
|
|
cvClearSeq(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetSeqElem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGetSeqElem",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvGetSeqElem" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (schar *)cvGetSeqElem((CvSeq const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSeqElemIdx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
CvSeqBlock **arg3 = (CvSeqBlock **) NULL ;
|
|
void *ptr1 ;
|
|
int res2 ;
|
|
void *vptr3 ;
|
|
CvSeqBlock *buffer3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvSeqElemIdx",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvSeqElemIdx" "', argument " "2"" of type '" "void const *""'");
|
|
}
|
|
if (obj2) {
|
|
{
|
|
if ((SWIG_ConvertPtr(obj2, &vptr3, SWIGTYPE_p_CvSeqBlock, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer3 = (CvSeqBlock *) vptr3;
|
|
arg3=&buffer3;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvSeqElemIdx((CvSeq const *)arg1,(void const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvStartAppendToSeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvSeqWriter *arg2 = (CvSeqWriter *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvStartAppendToSeq",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqWriter, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvStartAppendToSeq" "', argument " "2"" of type '" "CvSeqWriter *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqWriter * >(argp2);
|
|
{
|
|
try {
|
|
cvStartAppendToSeq(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvStartWriteSeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
CvMemStorage *arg4 = (CvMemStorage *) 0 ;
|
|
CvSeqWriter *arg5 = (CvSeqWriter *) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvStartWriteSeq",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvStartWriteSeq" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvStartWriteSeq" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvStartWriteSeq" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvStartWriteSeq" "', argument " "4"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvMemStorage * >(argp4);
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_CvSeqWriter, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvStartWriteSeq" "', argument " "5"" of type '" "CvSeqWriter *""'");
|
|
}
|
|
arg5 = reinterpret_cast< CvSeqWriter * >(argp5);
|
|
{
|
|
try {
|
|
cvStartWriteSeq(arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvEndWriteSeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqWriter *arg1 = (CvSeqWriter *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvEndWriteSeq",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqWriter, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvEndWriteSeq" "', argument " "1"" of type '" "CvSeqWriter *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqWriter * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvSeq *)cvEndWriteSeq(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFlushSeqWriter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqWriter *arg1 = (CvSeqWriter *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvFlushSeqWriter",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqWriter, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvFlushSeqWriter" "', argument " "1"" of type '" "CvSeqWriter *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqWriter * >(argp1);
|
|
{
|
|
try {
|
|
cvFlushSeqWriter(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvStartReadSeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvSeqReader *arg2 = (CvSeqReader *) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvStartReadSeq",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvStartReadSeq" "', argument " "2"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqReader * >(argp2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvStartReadSeq" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
try {
|
|
cvStartReadSeq((CvSeq const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetSeqReaderPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvGetSeqReaderPos",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvGetSeqReaderPos" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)cvGetSeqReaderPos(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetSeqReaderPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqReader *arg1 = (CvSeqReader *) 0 ;
|
|
int arg2 ;
|
|
int arg3 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvSetSeqReaderPos",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvSetSeqReaderPos" "', argument " "1"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqReader * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSetSeqReaderPos" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvSetSeqReaderPos" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
try {
|
|
cvSetSeqReaderPos(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMakeSeqHeaderForArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *arg4 = (void *) 0 ;
|
|
int arg5 ;
|
|
CvSeq *arg6 = (CvSeq *) 0 ;
|
|
CvSeqBlock *arg7 = (CvSeqBlock *) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int res4 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
void *ptr6 ;
|
|
void *argp7 = 0 ;
|
|
int res7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:cvMakeSeqHeaderForArray",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvMakeSeqHeaderForArray" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvMakeSeqHeaderForArray" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvMakeSeqHeaderForArray" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
res4 = SWIG_ConvertPtr(obj3,SWIG_as_voidptrptr(&arg4), 0, 0);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvMakeSeqHeaderForArray" "', argument " "4"" of type '" "void *""'");
|
|
}
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvMakeSeqHeaderForArray" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
{
|
|
if( SWIG_ConvertPtr(obj5, &ptr6, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj5, &ptr6, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj5, &ptr6, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj5, &ptr6, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj5, &ptr6, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj5, &ptr6, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj5, &ptr6, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg6 = (CvSeq *) ptr6;
|
|
}
|
|
res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
if (!SWIG_IsOK(res7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "cvMakeSeqHeaderForArray" "', argument " "7"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg7 = reinterpret_cast< CvSeqBlock * >(argp7);
|
|
{
|
|
try {
|
|
result = (CvSeq *)cvMakeSeqHeaderForArray(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSeqSlice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvSlice arg2 ;
|
|
CvMemStorage *arg3 = (CvMemStorage *) NULL ;
|
|
int arg4 = (int) 0 ;
|
|
void *ptr1 ;
|
|
CvSlice temp2 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OO:cvSeqSlice",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ii", & temp2.start_index, & temp2.end_index))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (start_index, end_index)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvSlice * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvSlice, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSlice");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
if (obj2) {
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvSeqSlice" "', argument " "3"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvMemStorage * >(argp3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvSeqSlice" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvSeq *)cvSeqSlice((CvSeq const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCloneSeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) NULL ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvCloneSeq",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
if (obj1) {
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvCloneSeq" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvSeq *)cvCloneSeq((CvSeq const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSeqRemoveSlice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvSlice arg2 ;
|
|
void *ptr1 ;
|
|
CvSlice temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvSeqRemoveSlice",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ii", & temp2.start_index, & temp2.end_index))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (start_index, end_index)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvSlice * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvSlice, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSlice");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvSeqRemoveSlice(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSeqInsertSlice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
int arg2 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvSeqInsertSlice",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSeqInsertSlice" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
try {
|
|
cvSeqInsertSlice(arg1,arg2,(void const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSeqSort(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvCmpFunc arg2 = (CvCmpFunc) 0 ;
|
|
void *arg3 = (void *) NULL ;
|
|
void *ptr1 ;
|
|
int res3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvSeqSort",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__int);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cvSeqSort" "', argument " "2"" of type '" "CvCmpFunc""'");
|
|
}
|
|
}
|
|
if (obj2) {
|
|
res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvSeqSort" "', argument " "3"" of type '" "void *""'");
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvSeqSort(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSeqSearch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
CvCmpFunc arg3 = (CvCmpFunc) 0 ;
|
|
int arg4 ;
|
|
int *arg5 = (int *) 0 ;
|
|
void *arg6 = (void *) NULL ;
|
|
void *ptr1 ;
|
|
int res2 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
int res6 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO|O:cvSeqSearch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvSeqSearch" "', argument " "2"" of type '" "void const *""'");
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj2, (void**)(&arg3), SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__int);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cvSeqSearch" "', argument " "3"" of type '" "CvCmpFunc""'");
|
|
}
|
|
}
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvSeqSearch" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvSeqSearch" "', argument " "5"" of type '" "int *""'");
|
|
}
|
|
arg5 = reinterpret_cast< int * >(argp5);
|
|
if (obj5) {
|
|
res6 = SWIG_ConvertPtr(obj5,SWIG_as_voidptrptr(&arg6), 0, 0);
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "cvSeqSearch" "', argument " "6"" of type '" "void *""'");
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (schar *)cvSeqSearch(arg1,(void const *)arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSeqInvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvSeqInvert",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
try {
|
|
cvSeqInvert(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSeqPartition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
CvSeq **arg3 = (CvSeq **) 0 ;
|
|
CvCmpFunc arg4 = (CvCmpFunc) 0 ;
|
|
void *arg5 = (void *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *vptr3 ;
|
|
CvSeq *buffer3 ;
|
|
int res5 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvSeqPartition",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvSeqPartition" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
{
|
|
if ((SWIG_ConvertPtr(obj2, &vptr3, SWIGTYPE_p_CvSeq, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer3 = (CvSeq *) vptr3;
|
|
arg3=&buffer3;
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj3, (void**)(&arg4), SWIGTYPE_p_f_p_q_const__void_p_q_const__void_p_void__int);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cvSeqPartition" "', argument " "4"" of type '" "CvCmpFunc""'");
|
|
}
|
|
}
|
|
res5 = SWIG_ConvertPtr(obj4,SWIG_as_voidptrptr(&arg5), 0, 0);
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvSeqPartition" "', argument " "5"" of type '" "void *""'");
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvSeqPartition((CvSeq const *)arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvChangeSeqBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void *arg1 = (void *) 0 ;
|
|
int arg2 ;
|
|
int res1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvChangeSeqBlock",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvChangeSeqBlock" "', argument " "1"" of type '" "void *""'");
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvChangeSeqBlock" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
cvChangeSeqBlock(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateSeqBlock(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeqWriter *arg1 = (CvSeqWriter *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvCreateSeqBlock",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSeqWriter, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvCreateSeqBlock" "', argument " "1"" of type '" "CvSeqWriter *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSeqWriter * >(argp1);
|
|
{
|
|
try {
|
|
cvCreateSeqBlock(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
CvMemStorage *arg4 = (CvMemStorage *) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvSet *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvCreateSet",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvCreateSet" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCreateSet" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateSet" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvCreateSet" "', argument " "4"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvMemStorage * >(argp4);
|
|
{
|
|
try {
|
|
result = (CvSet *)cvCreateSet(arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSet, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetAdd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
CvSetElem *arg2 = (CvSetElem *) NULL ;
|
|
CvSetElem **arg3 = (CvSetElem **) NULL ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *vptr3 ;
|
|
CvSetElem *buffer3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|OO:cvSetAdd",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
if (obj1) {
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSetElem, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvSetAdd" "', argument " "2"" of type '" "CvSetElem *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSetElem * >(argp2);
|
|
}
|
|
if (obj2) {
|
|
{
|
|
if ((SWIG_ConvertPtr(obj2, &vptr3, SWIGTYPE_p_CvSetElem, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer3 = (CvSetElem *) vptr3;
|
|
arg3=&buffer3;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvSetAdd(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetNew(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSetElem *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvSetNew",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
{
|
|
try {
|
|
result = (CvSetElem *)cvSetNew(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSetElem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetRemoveByPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
void *ptr1 ;
|
|
int res2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvSetRemoveByPtr",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvSetRemoveByPtr" "', argument " "2"" of type '" "void *""'");
|
|
}
|
|
{
|
|
try {
|
|
cvSetRemoveByPtr(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetRemove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvSetRemove",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSetRemove" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
cvSetRemove(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetSetElem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvSetElem *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGetSetElem",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvGetSetElem" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (CvSetElem *)cvGetSetElem((CvSet const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSetElem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvClearSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSet *arg1 = (CvSet *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvClearSet",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSet");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSet *)ptr1;
|
|
}
|
|
{
|
|
try {
|
|
cvClearSet(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateGraph(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
CvMemStorage *arg5 = (CvMemStorage *) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
CvGraph *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvCreateGraph",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvCreateGraph" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCreateGraph" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateGraph" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvCreateGraph" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvCreateGraph" "', argument " "5"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg5 = reinterpret_cast< CvMemStorage * >(argp5);
|
|
{
|
|
try {
|
|
result = (CvGraph *)cvCreateGraph(arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvGraph, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGraphAddVtx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvGraphVtx *arg2 = (CvGraphVtx *) NULL ;
|
|
CvGraphVtx **arg3 = (CvGraphVtx **) NULL ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *vptr3 ;
|
|
CvGraphVtx *buffer3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|OO:cvGraphAddVtx",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
if (obj1) {
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvGraphAddVtx" "', argument " "2"" of type '" "CvGraphVtx const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvGraphVtx * >(argp2);
|
|
}
|
|
if (obj2) {
|
|
{
|
|
if ((SWIG_ConvertPtr(obj2, &vptr3, SWIGTYPE_p_CvGraphVtx, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer3 = (CvGraphVtx *) vptr3;
|
|
arg3=&buffer3;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvGraphAddVtx(arg1,(CvGraphVtx const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGraphRemoveVtx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGraphRemoveVtx",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvGraphRemoveVtx" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (int)cvGraphRemoveVtx(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGraphRemoveVtxByPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvGraphVtx *arg2 = (CvGraphVtx *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGraphRemoveVtxByPtr",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvGraphRemoveVtxByPtr" "', argument " "2"" of type '" "CvGraphVtx *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvGraphVtx * >(argp2);
|
|
{
|
|
try {
|
|
result = (int)cvGraphRemoveVtxByPtr(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGraphAddEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
CvGraphEdge *arg4 = (CvGraphEdge *) NULL ;
|
|
CvGraphEdge **arg5 = (CvGraphEdge **) NULL ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
void *vptr5 ;
|
|
CvGraphEdge *buffer5 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OO:cvGraphAddEdge",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvGraphAddEdge" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvGraphAddEdge" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvGraphAddEdge" "', argument " "4"" of type '" "CvGraphEdge const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvGraphEdge * >(argp4);
|
|
}
|
|
if (obj4) {
|
|
{
|
|
if ((SWIG_ConvertPtr(obj4, &vptr5, SWIGTYPE_p_CvGraphEdge, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer5 = (CvGraphEdge *) vptr5;
|
|
arg5=&buffer5;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvGraphAddEdge(arg1,arg2,arg3,(CvGraphEdge const *)arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGraphAddEdgeByPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvGraphVtx *arg2 = (CvGraphVtx *) 0 ;
|
|
CvGraphVtx *arg3 = (CvGraphVtx *) 0 ;
|
|
CvGraphEdge *arg4 = (CvGraphEdge *) NULL ;
|
|
CvGraphEdge **arg5 = (CvGraphEdge **) NULL ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
void *vptr5 ;
|
|
CvGraphEdge *buffer5 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OO:cvGraphAddEdgeByPtr",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvGraphAddEdgeByPtr" "', argument " "2"" of type '" "CvGraphVtx *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvGraphVtx * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvGraphAddEdgeByPtr" "', argument " "3"" of type '" "CvGraphVtx *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvGraphVtx * >(argp3);
|
|
if (obj3) {
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvGraphAddEdgeByPtr" "', argument " "4"" of type '" "CvGraphEdge const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvGraphEdge * >(argp4);
|
|
}
|
|
if (obj4) {
|
|
{
|
|
if ((SWIG_ConvertPtr(obj4, &vptr5, SWIGTYPE_p_CvGraphEdge, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer5 = (CvGraphEdge *) vptr5;
|
|
arg5=&buffer5;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvGraphAddEdgeByPtr(arg1,arg2,arg3,(CvGraphEdge const *)arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGraphRemoveEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvGraphRemoveEdge",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvGraphRemoveEdge" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvGraphRemoveEdge" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
cvGraphRemoveEdge(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGraphRemoveEdgeByPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvGraphVtx *arg2 = (CvGraphVtx *) 0 ;
|
|
CvGraphVtx *arg3 = (CvGraphVtx *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvGraphRemoveEdgeByPtr",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvGraphRemoveEdgeByPtr" "', argument " "2"" of type '" "CvGraphVtx *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvGraphVtx * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvGraphRemoveEdgeByPtr" "', argument " "3"" of type '" "CvGraphVtx *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvGraphVtx * >(argp3);
|
|
{
|
|
try {
|
|
cvGraphRemoveEdgeByPtr(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFindGraphEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvGraphEdge *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvFindGraphEdge",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvFindGraphEdge" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvFindGraphEdge" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (CvGraphEdge *)cvFindGraphEdge((CvGraph const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFindGraphEdgeByPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvGraphVtx *arg2 = (CvGraphVtx *) 0 ;
|
|
CvGraphVtx *arg3 = (CvGraphVtx *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvGraphEdge *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvFindGraphEdgeByPtr",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvFindGraphEdgeByPtr" "', argument " "2"" of type '" "CvGraphVtx const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvGraphVtx * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvFindGraphEdgeByPtr" "', argument " "3"" of type '" "CvGraphVtx const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvGraphVtx * >(argp3);
|
|
{
|
|
try {
|
|
result = (CvGraphEdge *)cvFindGraphEdgeByPtr((CvGraph const *)arg1,(CvGraphVtx const *)arg2,(CvGraphVtx const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvClearGraph(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvClearGraph",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
{
|
|
try {
|
|
cvClearGraph(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGraphVtxDegree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
int arg2 ;
|
|
void *ptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGraphVtxDegree",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvGraphVtxDegree" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (int)cvGraphVtxDegree((CvGraph const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGraphVtxDegreeByPtr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvGraphVtx *arg2 = (CvGraphVtx *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGraphVtxDegreeByPtr",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvGraphVtxDegreeByPtr" "', argument " "2"" of type '" "CvGraphVtx const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvGraphVtx * >(argp2);
|
|
{
|
|
try {
|
|
result = (int)cvGraphVtxDegreeByPtr((CvGraph const *)arg1,(CvGraphVtx const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphScanner_vtx_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphScanner *arg1 = (CvGraphScanner *) 0 ;
|
|
CvGraphVtx *arg2 = (CvGraphVtx *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraphScanner_vtx_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphScanner, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphScanner_vtx_set" "', argument " "1"" of type '" "CvGraphScanner *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphScanner * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvGraphVtx, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvGraphScanner_vtx_set" "', argument " "2"" of type '" "CvGraphVtx *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvGraphVtx * >(argp2);
|
|
if (arg1) (arg1)->vtx = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphScanner_vtx_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphScanner *arg1 = (CvGraphScanner *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvGraphVtx *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraphScanner_vtx_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphScanner, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphScanner_vtx_get" "', argument " "1"" of type '" "CvGraphScanner *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphScanner * >(argp1);
|
|
result = (CvGraphVtx *) ((arg1)->vtx);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphScanner_dst_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphScanner *arg1 = (CvGraphScanner *) 0 ;
|
|
CvGraphVtx *arg2 = (CvGraphVtx *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraphScanner_dst_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphScanner, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphScanner_dst_set" "', argument " "1"" of type '" "CvGraphScanner *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphScanner * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvGraphVtx, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvGraphScanner_dst_set" "', argument " "2"" of type '" "CvGraphVtx *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvGraphVtx * >(argp2);
|
|
if (arg1) (arg1)->dst = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphScanner_dst_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphScanner *arg1 = (CvGraphScanner *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvGraphVtx *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraphScanner_dst_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphScanner, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphScanner_dst_get" "', argument " "1"" of type '" "CvGraphScanner *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphScanner * >(argp1);
|
|
result = (CvGraphVtx *) ((arg1)->dst);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphScanner_edge_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphScanner *arg1 = (CvGraphScanner *) 0 ;
|
|
CvGraphEdge *arg2 = (CvGraphEdge *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraphScanner_edge_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphScanner, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphScanner_edge_set" "', argument " "1"" of type '" "CvGraphScanner *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphScanner * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvGraphEdge, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvGraphScanner_edge_set" "', argument " "2"" of type '" "CvGraphEdge *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvGraphEdge * >(argp2);
|
|
if (arg1) (arg1)->edge = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphScanner_edge_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphScanner *arg1 = (CvGraphScanner *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvGraphEdge *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraphScanner_edge_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphScanner, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphScanner_edge_get" "', argument " "1"" of type '" "CvGraphScanner *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphScanner * >(argp1);
|
|
result = (CvGraphEdge *) ((arg1)->edge);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvGraphEdge, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphScanner_graph_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphScanner *arg1 = (CvGraphScanner *) 0 ;
|
|
CvGraph *arg2 = (CvGraph *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraphScanner_graph_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphScanner, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphScanner_graph_set" "', argument " "1"" of type '" "CvGraphScanner *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphScanner * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvGraph *)ptr2;
|
|
}
|
|
if (arg1) (arg1)->graph = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphScanner_graph_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphScanner *arg1 = (CvGraphScanner *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvGraph *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraphScanner_graph_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphScanner, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphScanner_graph_get" "', argument " "1"" of type '" "CvGraphScanner *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphScanner * >(argp1);
|
|
result = (CvGraph *) ((arg1)->graph);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvGraph, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphScanner_stack_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphScanner *arg1 = (CvGraphScanner *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraphScanner_stack_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphScanner, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphScanner_stack_set" "', argument " "1"" of type '" "CvGraphScanner *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphScanner * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->stack = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphScanner_stack_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphScanner *arg1 = (CvGraphScanner *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraphScanner_stack_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphScanner, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphScanner_stack_get" "', argument " "1"" of type '" "CvGraphScanner *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphScanner * >(argp1);
|
|
result = (CvSeq *) ((arg1)->stack);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphScanner_index_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphScanner *arg1 = (CvGraphScanner *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraphScanner_index_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphScanner, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphScanner_index_set" "', argument " "1"" of type '" "CvGraphScanner *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphScanner * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvGraphScanner_index_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->index = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphScanner_index_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphScanner *arg1 = (CvGraphScanner *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraphScanner_index_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphScanner, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphScanner_index_get" "', argument " "1"" of type '" "CvGraphScanner *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphScanner * >(argp1);
|
|
result = (int) ((arg1)->index);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphScanner_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphScanner *arg1 = (CvGraphScanner *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvGraphScanner_mask_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphScanner, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphScanner_mask_set" "', argument " "1"" of type '" "CvGraphScanner *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphScanner * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvGraphScanner_mask_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->mask = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvGraphScanner_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphScanner *arg1 = (CvGraphScanner *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvGraphScanner_mask_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphScanner, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvGraphScanner_mask_get" "', argument " "1"" of type '" "CvGraphScanner *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphScanner * >(argp1);
|
|
result = (int) ((arg1)->mask);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvGraphScanner(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphScanner *arg1 = (CvGraphScanner *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvGraphScanner",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphScanner, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvGraphScanner" "', argument " "1"" of type '" "CvGraphScanner *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphScanner * >(argp1);
|
|
{
|
|
try {
|
|
delete_CvGraphScanner(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvGraphScanner_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvGraphScanner, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateGraphScanner(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvGraphVtx *arg2 = (CvGraphVtx *) NULL ;
|
|
int arg3 = (int) -1 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvGraphScanner *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|OO:cvCreateGraphScanner",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
if (obj1) {
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvGraphVtx, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvCreateGraphScanner" "', argument " "2"" of type '" "CvGraphVtx *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvGraphVtx * >(argp2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateGraphScanner" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvGraphScanner *)cvCreateGraphScanner(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvGraphScanner, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvNextGraphItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraphScanner *arg1 = (CvGraphScanner *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvNextGraphItem",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvGraphScanner, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvNextGraphItem" "', argument " "1"" of type '" "CvGraphScanner *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvGraphScanner * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)cvNextGraphItem(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCloneGraph(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvGraph *arg1 = (CvGraph *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvGraph *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvCloneGraph",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1)
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvGraph");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvGraph *)ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvCloneGraph" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
{
|
|
try {
|
|
result = (CvGraph *)cvCloneGraph((CvGraph const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvGraph, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvPoint arg2 ;
|
|
CvPoint arg3 ;
|
|
CvScalar arg4 ;
|
|
int arg5 = (int) 1 ;
|
|
int arg6 = (int) 8 ;
|
|
int arg7 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
CvPoint temp2 ;
|
|
CvPoint temp3 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
int val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|OOO:cvLine",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ii", & temp2.x, & temp2.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ii", & temp3.x, & temp3.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvScalar( obj3 );
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvLine" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvLine" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_int(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvLine" "', argument " "7"" of type '" "int""'");
|
|
}
|
|
arg7 = static_cast< int >(val7);
|
|
}
|
|
{
|
|
try {
|
|
cvLine(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvPoint arg2 ;
|
|
CvPoint arg3 ;
|
|
CvScalar arg4 ;
|
|
int arg5 = (int) 1 ;
|
|
int arg6 = (int) 8 ;
|
|
int arg7 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
CvPoint temp2 ;
|
|
CvPoint temp3 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
int val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|OOO:cvRectangle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ii", & temp2.x, & temp2.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ii", & temp3.x, & temp3.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvScalar( obj3 );
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvRectangle" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvRectangle" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_int(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvRectangle" "', argument " "7"" of type '" "int""'");
|
|
}
|
|
arg7 = static_cast< int >(val7);
|
|
}
|
|
{
|
|
try {
|
|
cvRectangle(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvPoint arg2 ;
|
|
int arg3 ;
|
|
CvScalar arg4 ;
|
|
int arg5 = (int) 1 ;
|
|
int arg6 = (int) 8 ;
|
|
int arg7 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
CvPoint temp2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
int val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|OOO:cvCircle",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ii", & temp2.x, & temp2.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCircle" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
arg4 = PyObject_to_CvScalar( obj3 );
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvCircle" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvCircle" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_int(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvCircle" "', argument " "7"" of type '" "int""'");
|
|
}
|
|
arg7 = static_cast< int >(val7);
|
|
}
|
|
{
|
|
try {
|
|
cvCircle(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvPoint arg2 ;
|
|
CvSize arg3 ;
|
|
double arg4 ;
|
|
double arg5 ;
|
|
double arg6 ;
|
|
CvScalar arg7 ;
|
|
int arg8 = (int) 1 ;
|
|
int arg9 = (int) 8 ;
|
|
int arg10 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
CvPoint temp2 ;
|
|
CvSize temp3 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
double val6 ;
|
|
int ecode6 = 0 ;
|
|
int val8 ;
|
|
int ecode8 = 0 ;
|
|
int val9 ;
|
|
int ecode9 = 0 ;
|
|
int val10 ;
|
|
int ecode10 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
PyObject * obj8 = 0 ;
|
|
PyObject * obj9 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOOO|OOO:cvEllipse",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ii", & temp2.x, & temp2.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ii", & temp3.width, & temp3.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvEllipse" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
ecode5 = SWIG_AsVal_double(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvEllipse" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
ecode6 = SWIG_AsVal_double(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvEllipse" "', argument " "6"" of type '" "double""'");
|
|
}
|
|
arg6 = static_cast< double >(val6);
|
|
{
|
|
arg7 = PyObject_to_CvScalar( obj6 );
|
|
}
|
|
if (obj7) {
|
|
ecode8 = SWIG_AsVal_int(obj7, &val8);
|
|
if (!SWIG_IsOK(ecode8)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "cvEllipse" "', argument " "8"" of type '" "int""'");
|
|
}
|
|
arg8 = static_cast< int >(val8);
|
|
}
|
|
if (obj8) {
|
|
ecode9 = SWIG_AsVal_int(obj8, &val9);
|
|
if (!SWIG_IsOK(ecode9)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "cvEllipse" "', argument " "9"" of type '" "int""'");
|
|
}
|
|
arg9 = static_cast< int >(val9);
|
|
}
|
|
if (obj9) {
|
|
ecode10 = SWIG_AsVal_int(obj9, &val10);
|
|
if (!SWIG_IsOK(ecode10)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "cvEllipse" "', argument " "10"" of type '" "int""'");
|
|
}
|
|
arg10 = static_cast< int >(val10);
|
|
}
|
|
{
|
|
try {
|
|
cvEllipse(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvEllipseBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvBox2D arg2 ;
|
|
CvScalar arg3 ;
|
|
int arg4 = (int) 1 ;
|
|
int arg5 = (int) 8 ;
|
|
int arg6 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
CvBox2D temp2 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OOO:cvEllipseBox",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"fffff", & temp2.center.x, & temp2.center.y, & temp2.size.width, & temp2.size.height, & temp2.angle))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 5 floats (center_x, center_y, width, height, angle)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvBox2D * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvBox2D, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvBox2D");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvScalar( obj2 );
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvEllipseBox" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvEllipseBox" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvEllipseBox" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
{
|
|
try {
|
|
cvEllipseBox(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFillConvexPoly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvPoint *arg2 = (CvPoint *) 0 ;
|
|
int arg3 ;
|
|
CvScalar arg4 ;
|
|
int arg5 = (int) 8 ;
|
|
int arg6 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|OO:cvFillConvexPoly",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvFillConvexPoly" "', argument " "2"" of type '" "CvPoint const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint * >(argp2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvFillConvexPoly" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
arg4 = PyObject_to_CvScalar( obj3 );
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvFillConvexPoly" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvFillConvexPoly" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
{
|
|
try {
|
|
cvFillConvexPoly(arg1,(CvPoint const *)arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFillPoly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvPoint **arg2 = (CvPoint **) 0 ;
|
|
int *arg3 = (int *) 0 ;
|
|
int arg4 ;
|
|
CvScalar arg5 ;
|
|
int arg6 = (int) 8 ;
|
|
int arg7 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
void *vptr2 ;
|
|
CvPoint *buffer2 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
int val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO|OO:cvFillPoly",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if ((SWIG_ConvertPtr(obj1, &vptr2, SWIGTYPE_p_CvPoint, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer2 = (CvPoint *) vptr2;
|
|
arg2=&buffer2;
|
|
}
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvFillPoly" "', argument " "3"" of type '" "int const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< int * >(argp3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvFillPoly" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
arg5 = PyObject_to_CvScalar( obj4 );
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvFillPoly" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_int(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvFillPoly" "', argument " "7"" of type '" "int""'");
|
|
}
|
|
arg7 = static_cast< int >(val7);
|
|
}
|
|
{
|
|
try {
|
|
cvFillPoly(arg1,arg2,(int const *)arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPolyLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvPoint **arg2 = (CvPoint **) 0 ;
|
|
int *arg3 = (int *) 0 ;
|
|
int arg4 ;
|
|
int arg5 ;
|
|
CvScalar arg6 ;
|
|
int arg7 = (int) 1 ;
|
|
int arg8 = (int) 8 ;
|
|
int arg9 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
void *vptr2 ;
|
|
CvPoint *buffer2 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val7 ;
|
|
int ecode7 = 0 ;
|
|
int val8 ;
|
|
int ecode8 = 0 ;
|
|
int val9 ;
|
|
int ecode9 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
PyObject * obj8 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO|OOO:cvPolyLine",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if ((SWIG_ConvertPtr(obj1, &vptr2, SWIGTYPE_p_CvPoint, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer2 = (CvPoint *) vptr2;
|
|
arg2=&buffer2;
|
|
}
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvPolyLine" "', argument " "3"" of type '" "int const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< int * >(argp3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvPolyLine" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvPolyLine" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
{
|
|
arg6 = PyObject_to_CvScalar( obj5 );
|
|
}
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_int(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvPolyLine" "', argument " "7"" of type '" "int""'");
|
|
}
|
|
arg7 = static_cast< int >(val7);
|
|
}
|
|
if (obj7) {
|
|
ecode8 = SWIG_AsVal_int(obj7, &val8);
|
|
if (!SWIG_IsOK(ecode8)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "cvPolyLine" "', argument " "8"" of type '" "int""'");
|
|
}
|
|
arg8 = static_cast< int >(val8);
|
|
}
|
|
if (obj8) {
|
|
ecode9 = SWIG_AsVal_int(obj8, &val9);
|
|
if (!SWIG_IsOK(ecode9)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "cvPolyLine" "', argument " "9"" of type '" "int""'");
|
|
}
|
|
arg9 = static_cast< int >(val9);
|
|
}
|
|
{
|
|
try {
|
|
cvPolyLine(arg1,arg2,(int const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvClipLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSize arg1 ;
|
|
CvPoint *arg2 = (CvPoint *) 0 ;
|
|
CvPoint *arg3 = (CvPoint *) 0 ;
|
|
CvSize temp1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvClipLine",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"ii", & temp1.width, & temp1.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvClipLine" "', argument " "2"" of type '" "CvPoint *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvClipLine" "', argument " "3"" of type '" "CvPoint *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvPoint * >(argp3);
|
|
{
|
|
try {
|
|
result = (int)cvClipLine(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvInitLineIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvPoint arg2 ;
|
|
CvPoint arg3 ;
|
|
CvLineIterator *arg4 = (CvLineIterator *) 0 ;
|
|
int arg5 = (int) 8 ;
|
|
int arg6 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
CvPoint temp2 ;
|
|
CvPoint temp3 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|OO:cvInitLineIterator",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ii", & temp2.x, & temp2.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ii", & temp3.x, & temp3.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvLineIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvInitLineIterator" "', argument " "4"" of type '" "CvLineIterator *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvLineIterator * >(argp4);
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvInitLineIterator" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvInitLineIterator" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvInitLineIterator((void const *)arg1,arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_font_face_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvFont_font_face_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_font_face_set" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvFont_font_face_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->font_face = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_font_face_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvFont_font_face_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_font_face_get" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
result = (int) ((arg1)->font_face);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_ascii_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvFont_ascii_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_ascii_set" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvFont_ascii_set" "', argument " "2"" of type '" "int const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< int * >(argp2);
|
|
if (arg1) (arg1)->ascii = (int const *)arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_ascii_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvFont_ascii_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_ascii_get" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
result = (int *) ((arg1)->ascii);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_greek_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvFont_greek_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_greek_set" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvFont_greek_set" "', argument " "2"" of type '" "int const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< int * >(argp2);
|
|
if (arg1) (arg1)->greek = (int const *)arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_greek_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvFont_greek_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_greek_get" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
result = (int *) ((arg1)->greek);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_cyrillic_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvFont_cyrillic_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_cyrillic_set" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvFont_cyrillic_set" "', argument " "2"" of type '" "int const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< int * >(argp2);
|
|
if (arg1) (arg1)->cyrillic = (int const *)arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_cyrillic_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvFont_cyrillic_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_cyrillic_get" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
result = (int *) ((arg1)->cyrillic);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_hscale_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvFont_hscale_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_hscale_set" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvFont_hscale_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->hscale = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_hscale_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvFont_hscale_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_hscale_get" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
result = (float) ((arg1)->hscale);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_vscale_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvFont_vscale_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_vscale_set" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvFont_vscale_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->vscale = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_vscale_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvFont_vscale_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_vscale_get" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
result = (float) ((arg1)->vscale);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_shear_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvFont_shear_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_shear_set" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvFont_shear_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->shear = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_shear_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvFont_shear_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_shear_get" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
result = (float) ((arg1)->shear);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_thickness_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvFont_thickness_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_thickness_set" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvFont_thickness_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->thickness = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_thickness_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvFont_thickness_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_thickness_get" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
result = (int) ((arg1)->thickness);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_dx_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvFont_dx_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_dx_set" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvFont_dx_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->dx = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_dx_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvFont_dx_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_dx_get" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
result = (float) ((arg1)->dx);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_line_type_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvFont_line_type_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_line_type_set" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvFont_line_type_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->line_type = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvFont_line_type_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvFont_line_type_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvFont_line_type_get" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
result = (int) ((arg1)->line_type);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvFont")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvFont *)new CvFont();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvFont, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvFont",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFont, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvFont" "', argument " "1"" of type '" "CvFont *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFont * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvFont, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvInitFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFont *arg1 = (CvFont *) 0 ;
|
|
int arg2 ;
|
|
double arg3 ;
|
|
double arg4 ;
|
|
double arg5 = (double) 0 ;
|
|
int arg6 = (int) 1 ;
|
|
int arg7 = (int) 8 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
int val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OOO:cvInitFont",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = (CvFont *)malloc (sizeof (CvFont));
|
|
arg2 = (int)PyInt_AsLong (obj0);
|
|
if (SWIG_arg_fail(1)) SWIG_fail;
|
|
}
|
|
ecode3 = SWIG_AsVal_double(obj1, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvInitFont" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
ecode4 = SWIG_AsVal_double(obj2, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvInitFont" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
if (obj3) {
|
|
ecode5 = SWIG_AsVal_double(obj3, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvInitFont" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
}
|
|
if (obj4) {
|
|
ecode6 = SWIG_AsVal_int(obj4, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvInitFont" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
if (obj5) {
|
|
ecode7 = SWIG_AsVal_int(obj5, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvInitFont" "', argument " "7"" of type '" "int""'");
|
|
}
|
|
arg7 = static_cast< int >(val7);
|
|
}
|
|
{
|
|
try {
|
|
cvInitFont(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
PyObject *to_add;
|
|
|
|
/* extract the pointer we want to add to the returned tuple */
|
|
to_add = SWIG_NewPointerObj (arg1, SWIGTYPE_p_CvFont, 0);
|
|
|
|
resultobj = SWIG_AppendResult(resultobj, &to_add, 1);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
int arg2 = (int) 1 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvFont result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvFont",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvFont" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvFont" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
try {
|
|
result = cvFont(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvFont(static_cast< const CvFont& >(result))), SWIGTYPE_p_CvFont, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPutText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
CvPoint arg3 ;
|
|
CvFont *arg4 = (CvFont *) 0 ;
|
|
CvScalar arg5 ;
|
|
bool freearg1 = false ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
CvPoint temp3 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvPutText",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvPutText" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ii", & temp3.x, & temp3.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvPutText" "', argument " "4"" of type '" "CvFont const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvFont * >(argp4);
|
|
{
|
|
arg5 = PyObject_to_CvScalar( obj4 );
|
|
}
|
|
{
|
|
try {
|
|
cvPutText(arg1,(char const *)arg2,arg3,(CvFont const *)arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetTextSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
CvFont *arg2 = (CvFont *) 0 ;
|
|
CvSize *arg3 = (CvSize *) 0 ;
|
|
int *arg4 = (int *) 0 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
{
|
|
CvSize *size = (CvSize *)malloc (sizeof (CvSize));
|
|
int *baseline = (int *)malloc (sizeof (int));
|
|
arg3 = size;
|
|
arg4 = baseline;
|
|
}
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGetTextSize",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvGetTextSize" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvGetTextSize" "', argument " "2"" of type '" "CvFont const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvFont * >(argp2);
|
|
{
|
|
try {
|
|
cvGetTextSize((char const *)arg1,(CvFont const *)arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
PyObject * to_add[2];
|
|
|
|
/* extract the pointers we want to add to the returned tuple */
|
|
to_add [0] = SWIG_NewPointerObj (arg3, SWIGTYPE_p_CvSize, 0);
|
|
to_add [1] = PyInt_FromLong (*arg4);
|
|
|
|
resultobj = SWIG_AppendResult(resultobj, to_add, 2);
|
|
}
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvColorToScalar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
int arg2 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvScalar result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvColorToScalar",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvColorToScalar" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvColorToScalar" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = cvColorToScalar(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvScalar(static_cast< const CvScalar& >(result))), SWIGTYPE_p_CvScalar, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvEllipse2Poly(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint arg1 ;
|
|
CvSize arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
int arg5 ;
|
|
CvPoint *arg6 = (CvPoint *) 0 ;
|
|
int arg7 ;
|
|
CvPoint temp1 ;
|
|
CvSize temp2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
void *argp6 = 0 ;
|
|
int res6 = 0 ;
|
|
int val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:cvEllipse2Poly",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"ii", & temp1.x, & temp1.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ii", & temp2.width, & temp2.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvEllipse2Poly" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvEllipse2Poly" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvEllipse2Poly" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "cvEllipse2Poly" "', argument " "6"" of type '" "CvPoint *""'");
|
|
}
|
|
arg6 = reinterpret_cast< CvPoint * >(argp6);
|
|
ecode7 = SWIG_AsVal_int(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvEllipse2Poly" "', argument " "7"" of type '" "int""'");
|
|
}
|
|
arg7 = static_cast< int >(val7);
|
|
{
|
|
try {
|
|
result = (int)cvEllipse2Poly(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvDrawContours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
CvScalar arg3 ;
|
|
CvScalar arg4 ;
|
|
int arg5 ;
|
|
int arg6 = (int) 1 ;
|
|
int arg7 = (int) 8 ;
|
|
CvPoint arg8 = (CvPoint) cvPoint(0,0) ;
|
|
bool freearg1 = false ;
|
|
void *ptr2 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
int val7 ;
|
|
int ecode7 = 0 ;
|
|
CvPoint temp8 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO|OOO:cvDrawContours",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvScalar( obj2 );
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvScalar( obj3 );
|
|
}
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvDrawContours" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvDrawContours" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_int(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvDrawContours" "', argument " "7"" of type '" "int""'");
|
|
}
|
|
arg7 = static_cast< int >(val7);
|
|
}
|
|
if (obj7) {
|
|
{
|
|
if (PyTuple_Check(obj7))
|
|
{
|
|
if (!PyArg_ParseTuple(obj7,"ii", & temp8.x, & temp8.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg8 = temp8;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj7, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg8 = *ptr;
|
|
}
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvDrawContours(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvLUT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvLUT",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
try {
|
|
cvLUT((void const *)arg1,arg2,(void const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTreeNodeIterator_node_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTreeNodeIterator *arg1 = (CvTreeNodeIterator *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTreeNodeIterator_node_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTreeNodeIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTreeNodeIterator_node_set" "', argument " "1"" of type '" "CvTreeNodeIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTreeNodeIterator * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvTreeNodeIterator_node_set" "', argument " "2"" of type '" "void const *""'");
|
|
}
|
|
if (arg1) (arg1)->node = (void const *)arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTreeNodeIterator_node_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTreeNodeIterator *arg1 = (CvTreeNodeIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
void *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTreeNodeIterator_node_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTreeNodeIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTreeNodeIterator_node_get" "', argument " "1"" of type '" "CvTreeNodeIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTreeNodeIterator * >(argp1);
|
|
result = (void *) ((arg1)->node);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTreeNodeIterator_level_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTreeNodeIterator *arg1 = (CvTreeNodeIterator *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTreeNodeIterator_level_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTreeNodeIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTreeNodeIterator_level_set" "', argument " "1"" of type '" "CvTreeNodeIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTreeNodeIterator * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvTreeNodeIterator_level_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->level = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTreeNodeIterator_level_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTreeNodeIterator *arg1 = (CvTreeNodeIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTreeNodeIterator_level_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTreeNodeIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTreeNodeIterator_level_get" "', argument " "1"" of type '" "CvTreeNodeIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTreeNodeIterator * >(argp1);
|
|
result = (int) ((arg1)->level);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTreeNodeIterator_max_level_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTreeNodeIterator *arg1 = (CvTreeNodeIterator *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTreeNodeIterator_max_level_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTreeNodeIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTreeNodeIterator_max_level_set" "', argument " "1"" of type '" "CvTreeNodeIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTreeNodeIterator * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvTreeNodeIterator_max_level_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->max_level = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTreeNodeIterator_max_level_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTreeNodeIterator *arg1 = (CvTreeNodeIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTreeNodeIterator_max_level_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTreeNodeIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTreeNodeIterator_max_level_get" "', argument " "1"" of type '" "CvTreeNodeIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTreeNodeIterator * >(argp1);
|
|
result = (int) ((arg1)->max_level);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvTreeNodeIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTreeNodeIterator *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvTreeNodeIterator")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvTreeNodeIterator *)new CvTreeNodeIterator();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTreeNodeIterator, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvTreeNodeIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTreeNodeIterator *arg1 = (CvTreeNodeIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvTreeNodeIterator",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTreeNodeIterator, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvTreeNodeIterator" "', argument " "1"" of type '" "CvTreeNodeIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTreeNodeIterator * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvTreeNodeIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvTreeNodeIterator, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvInitTreeNodeIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTreeNodeIterator *arg1 = (CvTreeNodeIterator *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvInitTreeNodeIterator",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTreeNodeIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvInitTreeNodeIterator" "', argument " "1"" of type '" "CvTreeNodeIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTreeNodeIterator * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvInitTreeNodeIterator" "', argument " "2"" of type '" "void const *""'");
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvInitTreeNodeIterator" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
cvInitTreeNodeIterator(arg1,(void const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvNextTreeNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTreeNodeIterator *arg1 = (CvTreeNodeIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
void *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvNextTreeNode",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTreeNodeIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvNextTreeNode" "', argument " "1"" of type '" "CvTreeNodeIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTreeNodeIterator * >(argp1);
|
|
{
|
|
try {
|
|
result = (void *)cvNextTreeNode(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPrevTreeNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTreeNodeIterator *arg1 = (CvTreeNodeIterator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
void *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvPrevTreeNode",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTreeNodeIterator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvPrevTreeNode" "', argument " "1"" of type '" "CvTreeNodeIterator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTreeNodeIterator * >(argp1);
|
|
{
|
|
try {
|
|
result = (void *)cvPrevTreeNode(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvInsertNodeIntoTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void *arg1 = (void *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
void *arg3 = (void *) 0 ;
|
|
int res1 ;
|
|
int res2 ;
|
|
int res3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvInsertNodeIntoTree",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvInsertNodeIntoTree" "', argument " "1"" of type '" "void *""'");
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvInsertNodeIntoTree" "', argument " "2"" of type '" "void *""'");
|
|
}
|
|
res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvInsertNodeIntoTree" "', argument " "3"" of type '" "void *""'");
|
|
}
|
|
{
|
|
try {
|
|
cvInsertNodeIntoTree(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRemoveNodeFromTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void *arg1 = (void *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
int res1 ;
|
|
int res2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvRemoveNodeFromTree",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvRemoveNodeFromTree" "', argument " "1"" of type '" "void *""'");
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvRemoveNodeFromTree" "', argument " "2"" of type '" "void *""'");
|
|
}
|
|
{
|
|
try {
|
|
cvRemoveNodeFromTree(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvTreeToNodeSeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void *arg1 = (void *) 0 ;
|
|
int arg2 ;
|
|
CvMemStorage *arg3 = (CvMemStorage *) 0 ;
|
|
int res1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvTreeToNodeSeq",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvTreeToNodeSeq" "', argument " "1"" of type '" "void const *""'");
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvTreeToNodeSeq" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvTreeToNodeSeq" "', argument " "3"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvMemStorage * >(argp3);
|
|
{
|
|
try {
|
|
result = (CvSeq *)cvTreeToNodeSeq((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvKMeans2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvTermCriteria arg4 ;
|
|
int arg5 = (int) 1 ;
|
|
CvRNG *arg6 = (CvRNG *) 0 ;
|
|
int arg7 = (int) 0 ;
|
|
CvArr *arg8 = (CvArr *) 0 ;
|
|
double *arg9 = (double *) 0 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool freearg3 = false ;
|
|
CvTermCriteria temp4 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
void *vptr6 ;
|
|
CvRNG_Wrapper *wrapper6 ;
|
|
int val7 ;
|
|
int ecode7 = 0 ;
|
|
bool freearg8 = false ;
|
|
void *argp9 = 0 ;
|
|
int res9 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
PyObject * obj8 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|OOOOO:cvKMeans2",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvKMeans2" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj3))
|
|
{
|
|
if (!PyArg_ParseTuple(obj3,"iid", & temp4.type, & temp4.max_iter, & temp4.epsilon))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers and a float (type, max_iter, epsilon)");
|
|
return NULL;
|
|
}
|
|
arg4 = temp4;
|
|
}
|
|
else
|
|
{
|
|
CvTermCriteria * ptr;
|
|
if (SWIG_ConvertPtr (obj3, (void **) & ptr, SWIGTYPE_p_CvTermCriteria, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvTermCriteria");
|
|
return NULL;
|
|
}
|
|
arg4 = *ptr;
|
|
}
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvKMeans2" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
{
|
|
if(SWIG_ConvertPtr(obj5, &vptr6, SWIGTYPE_p_CvRNG_Wrapper, 0)==-1){
|
|
SWIG_exception( SWIG_TypeError, "could not convert Python object to C value");
|
|
return NULL;
|
|
}
|
|
wrapper6 = (CvRNG_Wrapper *) vptr6;
|
|
arg6 = wrapper6->ptr();
|
|
}
|
|
}
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_int(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvKMeans2" "', argument " "7"" of type '" "int""'");
|
|
}
|
|
arg7 = static_cast< int >(val7);
|
|
}
|
|
if (obj7) {
|
|
{
|
|
arg8 = PyObject_to_CvArr(obj7, &freearg8);
|
|
}
|
|
}
|
|
if (obj8) {
|
|
res9 = SWIG_ConvertPtr(obj8, &argp9,SWIGTYPE_p_double, 0 | 0 );
|
|
if (!SWIG_IsOK(res9)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "cvKMeans2" "', argument " "9"" of type '" "double *""'");
|
|
}
|
|
arg9 = reinterpret_cast< double * >(argp9);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvKMeans2((void const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg8!=NULL && freearg8)
|
|
{
|
|
cvReleaseData( arg8 );
|
|
cvFree(&(arg8));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg8!=NULL && freearg8)
|
|
{
|
|
cvReleaseData( arg8 );
|
|
cvFree(&(arg8));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRegisterModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvModuleInfo *arg1 = (CvModuleInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvRegisterModule",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvModuleInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvRegisterModule" "', argument " "1"" of type '" "CvModuleInfo const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvModuleInfo * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)cvRegisterModule((CvModuleInfo const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvUseOptimized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvUseOptimized",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvUseOptimized" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
{
|
|
try {
|
|
result = (int)cvUseOptimized(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetModuleInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
char **arg2 = (char **) 0 ;
|
|
char **arg3 = (char **) 0 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
void *vptr2 ;
|
|
char *buffer2 ;
|
|
void *vptr3 ;
|
|
char *buffer3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvGetModuleInfo",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvGetModuleInfo" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
{
|
|
if ((SWIG_ConvertPtr(obj1, &vptr2, SWIGTYPE_p_char, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer2 = (char *) vptr2;
|
|
arg2=&buffer2;
|
|
}
|
|
{
|
|
if ((SWIG_ConvertPtr(obj2, &vptr3, SWIGTYPE_p_char, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer3 = (char *) vptr3;
|
|
arg3=&buffer3;
|
|
}
|
|
{
|
|
try {
|
|
cvGetModuleInfo((char const *)arg1,(char const **)arg2,(char const **)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetErrStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":cvGetErrStatus")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (int)cvGetErrStatus();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetErrStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvSetErrStatus",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvSetErrStatus" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
{
|
|
try {
|
|
cvSetErrStatus(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetErrMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":cvGetErrMode")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (int)cvGetErrMode();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetErrMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvSetErrMode",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvSetErrMode" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
{
|
|
try {
|
|
result = (int)cvSetErrMode(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
char *arg2 = (char *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
char *arg4 = (char *) 0 ;
|
|
int arg5 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
int res4 ;
|
|
char *buf4 = 0 ;
|
|
int alloc4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvError",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvError" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvError" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvError" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvError" "', argument " "4"" of type '" "char const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< char * >(buf4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvError" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
{
|
|
try {
|
|
cvError(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvErrorStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvErrorStr",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvErrorStr" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
{
|
|
try {
|
|
result = (char *)cvErrorStr(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_FromCharPtr((const char *)result);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetErrInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char **arg1 = (char **) 0 ;
|
|
char **arg2 = (char **) 0 ;
|
|
char **arg3 = (char **) 0 ;
|
|
int *arg4 = (int *) 0 ;
|
|
void *vptr1 ;
|
|
char *buffer1 ;
|
|
void *vptr2 ;
|
|
char *buffer2 ;
|
|
void *vptr3 ;
|
|
char *buffer3 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvGetErrInfo",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
if ((SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_char, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer1 = (char *) vptr1;
|
|
arg1=&buffer1;
|
|
}
|
|
{
|
|
if ((SWIG_ConvertPtr(obj1, &vptr2, SWIGTYPE_p_char, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer2 = (char *) vptr2;
|
|
arg2=&buffer2;
|
|
}
|
|
{
|
|
if ((SWIG_ConvertPtr(obj2, &vptr3, SWIGTYPE_p_char, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer3 = (char *) vptr3;
|
|
arg3=&buffer3;
|
|
}
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvGetErrInfo" "', argument " "4"" of type '" "int *""'");
|
|
}
|
|
arg4 = reinterpret_cast< int * >(argp4);
|
|
{
|
|
try {
|
|
result = (int)cvGetErrInfo((char const **)arg1,(char const **)arg2,(char const **)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvErrorFromIppStatus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvErrorFromIppStatus",&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvErrorFromIppStatus" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
{
|
|
try {
|
|
result = (int)cvErrorFromIppStatus(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRedirectError(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvErrorCallback arg1 = (CvErrorCallback) 0 ;
|
|
void *arg2 = (void *) NULL ;
|
|
void **arg3 = (void **) NULL ;
|
|
int res2 ;
|
|
void *vptr3 ;
|
|
void *buffer3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvErrorCallback result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|OO:cvRedirectError",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj0, (void**)(&arg1), SWIGTYPE_p_f_int_p_q_const__char_p_q_const__char_p_q_const__char_int_p_void__int);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cvRedirectError" "', argument " "1"" of type '" "CvErrorCallback""'");
|
|
}
|
|
}
|
|
if (obj1) {
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvRedirectError" "', argument " "2"" of type '" "void *""'");
|
|
}
|
|
}
|
|
if (obj2) {
|
|
{
|
|
if ((SWIG_ConvertPtr(obj2, &vptr3, SWIGTYPE_p_void, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer3 = (void *) vptr3;
|
|
arg3=&buffer3;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvErrorCallback)cvRedirectError(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_int_p_q_const__char_p_q_const__char_p_q_const__char_int_p_void__int);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvNulDevReport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
char *arg2 = (char *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
char *arg4 = (char *) 0 ;
|
|
int arg5 ;
|
|
void *arg6 = (void *) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
int res4 ;
|
|
char *buf4 = 0 ;
|
|
int alloc4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int res6 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO:cvNulDevReport",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvNulDevReport" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvNulDevReport" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvNulDevReport" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvNulDevReport" "', argument " "4"" of type '" "char const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< char * >(buf4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvNulDevReport" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
res6 = SWIG_ConvertPtr(obj5,SWIG_as_voidptrptr(&arg6), 0, 0);
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "cvNulDevReport" "', argument " "6"" of type '" "void *""'");
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvNulDevReport(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvStdErrReport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
char *arg2 = (char *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
char *arg4 = (char *) 0 ;
|
|
int arg5 ;
|
|
void *arg6 = (void *) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
int res4 ;
|
|
char *buf4 = 0 ;
|
|
int alloc4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int res6 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO:cvStdErrReport",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvStdErrReport" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvStdErrReport" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvStdErrReport" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvStdErrReport" "', argument " "4"" of type '" "char const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< char * >(buf4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvStdErrReport" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
res6 = SWIG_ConvertPtr(obj5,SWIG_as_voidptrptr(&arg6), 0, 0);
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "cvStdErrReport" "', argument " "6"" of type '" "void *""'");
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvStdErrReport(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGuiBoxReport(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
char *arg2 = (char *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
char *arg4 = (char *) 0 ;
|
|
int arg5 ;
|
|
void *arg6 = (void *) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
int res4 ;
|
|
char *buf4 = 0 ;
|
|
int alloc4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int res6 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO:cvGuiBoxReport",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvGuiBoxReport" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvGuiBoxReport" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvGuiBoxReport" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvGuiBoxReport" "', argument " "4"" of type '" "char const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< char * >(buf4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvGuiBoxReport" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
res6 = SWIG_ConvertPtr(obj5,SWIG_as_voidptrptr(&arg6), 0, 0);
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "cvGuiBoxReport" "', argument " "6"" of type '" "void *""'");
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvGuiBoxReport(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetMemoryManager(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvAllocFunc arg1 = (CvAllocFunc) NULL ;
|
|
CvFreeFunc arg2 = (CvFreeFunc) NULL ;
|
|
void *arg3 = (void *) NULL ;
|
|
int res3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"|OOO:cvSetMemoryManager",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
if (obj0) {
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj0, (void**)(&arg1), SWIGTYPE_p_f_size_t_p_void__p_void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cvSetMemoryManager" "', argument " "1"" of type '" "CvAllocFunc""'");
|
|
}
|
|
}
|
|
}
|
|
if (obj1) {
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_void_p_void__int);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cvSetMemoryManager" "', argument " "2"" of type '" "CvFreeFunc""'");
|
|
}
|
|
}
|
|
}
|
|
if (obj2) {
|
|
res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvSetMemoryManager" "', argument " "3"" of type '" "void *""'");
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvSetMemoryManager(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetIPLAllocators(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
Cv_iplCreateImageHeader arg1 = (Cv_iplCreateImageHeader) 0 ;
|
|
Cv_iplAllocateImageData arg2 = (Cv_iplAllocateImageData) 0 ;
|
|
Cv_iplDeallocate arg3 = (Cv_iplDeallocate) 0 ;
|
|
Cv_iplCreateROI arg4 = (Cv_iplCreateROI) 0 ;
|
|
Cv_iplCloneImage arg5 = (Cv_iplCloneImage) 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvSetIPLAllocators",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj0, (void**)(&arg1), SWIGTYPE_p_f_int_int_int_p_char_p_char_int_int_int_int_int_p_IplROI_p_IplImage_p_void_p_IplTileInfo__p__IplImage);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cvSetIPLAllocators" "', argument " "1"" of type '" "Cv_iplCreateImageHeader""'");
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p__IplImage_int_int__void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cvSetIPLAllocators" "', argument " "2"" of type '" "Cv_iplAllocateImageData""'");
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj2, (void**)(&arg3), SWIGTYPE_p_f_p__IplImage_int__void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cvSetIPLAllocators" "', argument " "3"" of type '" "Cv_iplDeallocate""'");
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj3, (void**)(&arg4), SWIGTYPE_p_f_int_int_int_int_int__p__IplROI);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cvSetIPLAllocators" "', argument " "4"" of type '" "Cv_iplCreateROI""'");
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj4, (void**)(&arg5), SWIGTYPE_p_f_p_q_const__IplImage__p__IplImage);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cvSetIPLAllocators" "', argument " "5"" of type '" "Cv_iplCloneImage""'");
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvSetIPLAllocators(arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvOpenFileStorage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
int arg3 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvFileStorage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvOpenFileStorage",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvOpenFileStorage" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvOpenFileStorage" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvOpenFileStorage" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (CvFileStorage *)cvOpenFileStorage((char const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvFileStorage, SWIG_POINTER_OWN | 0 );
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReleaseFileStorage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage **arg1 = (CvFileStorage **) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvReleaseFileStorage",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvReleaseFileStorage" "', argument " "1"" of type '" "CvFileStorage **""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage ** >(argp1);
|
|
{
|
|
try {
|
|
cvReleaseFileStorage(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAttrValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvAttrList *arg1 = (CvAttrList *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvAttrValue",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvAttrList, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvAttrValue" "', argument " "1"" of type '" "CvAttrList const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvAttrList * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvAttrValue" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
{
|
|
try {
|
|
result = (char *)cvAttrValue((CvAttrList const *)arg1,(char const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_FromCharPtr((const char *)result);
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvStartWriteStruct(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
int arg3 ;
|
|
char *arg4 = (char *) NULL ;
|
|
CvAttrList arg5 = (CvAttrList) cvAttrList() ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int res4 ;
|
|
char *buf4 = 0 ;
|
|
int alloc4 = 0 ;
|
|
void *argp5 ;
|
|
int res5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OO:cvStartWriteStruct",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvStartWriteStruct" "', argument " "1"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvStartWriteStruct" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvStartWriteStruct" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvStartWriteStruct" "', argument " "4"" of type '" "char const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< char * >(buf4);
|
|
}
|
|
if (obj4) {
|
|
{
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_CvAttrList, 0 | 0);
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvStartWriteStruct" "', argument " "5"" of type '" "CvAttrList""'");
|
|
}
|
|
if (!argp5) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cvStartWriteStruct" "', argument " "5"" of type '" "CvAttrList""'");
|
|
} else {
|
|
CvAttrList * temp = reinterpret_cast< CvAttrList * >(argp5);
|
|
arg5 = *temp;
|
|
if (SWIG_IsNewObj(res5)) delete temp;
|
|
}
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvStartWriteStruct(arg1,(char const *)arg2,arg3,(char const *)arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvEndWriteStruct(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvEndWriteStruct",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvEndWriteStruct" "', argument " "1"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
{
|
|
try {
|
|
cvEndWriteStruct(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvWriteInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvWriteInt",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvWriteInt" "', argument " "1"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvWriteInt" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvWriteInt" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
cvWriteInt(arg1,(char const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvWriteReal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
double arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvWriteReal",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvWriteReal" "', argument " "1"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvWriteReal" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvWriteReal" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
{
|
|
try {
|
|
cvWriteReal(arg1,(char const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvWriteString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
int arg4 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvWriteString",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvWriteString" "', argument " "1"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvWriteString" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvWriteString" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvWriteString" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
cvWriteString(arg1,(char const *)arg2,(char const *)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvWriteComment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvWriteComment",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvWriteComment" "', argument " "1"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvWriteComment" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvWriteComment" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
cvWriteComment(arg1,(char const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvWrite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
void *arg3 = (void *) 0 ;
|
|
CvAttrList arg4 = (CvAttrList) cvAttrList() ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
void *argp4 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvWrite",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvWrite" "', argument " "1"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvWrite" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvWrite" "', argument " "3"" of type '" "void const *""'");
|
|
}
|
|
if (obj3) {
|
|
{
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_CvAttrList, 0 | 0);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvWrite" "', argument " "4"" of type '" "CvAttrList""'");
|
|
}
|
|
if (!argp4) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cvWrite" "', argument " "4"" of type '" "CvAttrList""'");
|
|
} else {
|
|
CvAttrList * temp = reinterpret_cast< CvAttrList * >(argp4);
|
|
arg4 = *temp;
|
|
if (SWIG_IsNewObj(res4)) delete temp;
|
|
}
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvWrite(arg1,(char const *)arg2,(void const *)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvStartNextStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvStartNextStream",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvStartNextStream" "', argument " "1"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
{
|
|
try {
|
|
cvStartNextStream(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvWriteRawData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
int arg3 ;
|
|
char *arg4 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int res4 ;
|
|
char *buf4 = 0 ;
|
|
int alloc4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvWriteRawData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvWriteRawData" "', argument " "1"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvWriteRawData" "', argument " "2"" of type '" "void const *""'");
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvWriteRawData" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvWriteRawData" "', argument " "4"" of type '" "char const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< char * >(buf4);
|
|
{
|
|
try {
|
|
cvWriteRawData(arg1,(void const *)arg2,arg3,(char const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetHashedKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
int arg3 = (int) -1 ;
|
|
int arg4 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvStringHashNode *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OO:cvGetHashedKey",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvGetHashedKey" "', argument " "1"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvGetHashedKey" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvGetHashedKey" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvGetHashedKey" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvStringHashNode *)cvGetHashedKey(arg1,(char const *)arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvStringHashNode, 0 | 0 );
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetRootFileNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
int arg2 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvFileNode *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvGetRootFileNode",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvGetRootFileNode" "', argument " "1"" of type '" "CvFileStorage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvGetRootFileNode" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvFileNode *)cvGetRootFileNode((CvFileStorage const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetFileNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
CvFileNode *arg2 = (CvFileNode *) 0 ;
|
|
CvStringHashNode *arg3 = (CvStringHashNode *) 0 ;
|
|
int arg4 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvFileNode *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvGetFileNode",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvGetFileNode" "', argument " "1"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvGetFileNode" "', argument " "2"" of type '" "CvFileNode *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvFileNode * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvStringHashNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvGetFileNode" "', argument " "3"" of type '" "CvStringHashNode const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvStringHashNode * >(argp3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvGetFileNode" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvFileNode *)cvGetFileNode(arg1,arg2,(CvStringHashNode const *)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetFileNodeByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
CvFileNode *arg2 = (CvFileNode *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvFileNode *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvGetFileNodeByName",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvGetFileNodeByName" "', argument " "1"" of type '" "CvFileStorage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvGetFileNodeByName" "', argument " "2"" of type '" "CvFileNode const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvFileNode * >(argp2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvGetFileNodeByName" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
{
|
|
try {
|
|
result = (CvFileNode *)cvGetFileNodeByName((CvFileStorage const *)arg1,(CvFileNode const *)arg2,(char const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReadInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode *arg1 = (CvFileNode *) 0 ;
|
|
int arg2 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvReadInt",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvReadInt" "', argument " "1"" of type '" "CvFileNode const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvReadInt" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvReadInt((CvFileNode const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReadIntByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
CvFileNode *arg2 = (CvFileNode *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
int arg4 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvReadIntByName",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvReadIntByName" "', argument " "1"" of type '" "CvFileStorage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvReadIntByName" "', argument " "2"" of type '" "CvFileNode const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvFileNode * >(argp2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvReadIntByName" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvReadIntByName" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvReadIntByName((CvFileStorage const *)arg1,(CvFileNode const *)arg2,(char const *)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReadReal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode *arg1 = (CvFileNode *) 0 ;
|
|
double arg2 = (double) 0. ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvReadReal",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvReadReal" "', argument " "1"" of type '" "CvFileNode const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvReadReal" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
}
|
|
{
|
|
try {
|
|
result = (double)cvReadReal((CvFileNode const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReadRealByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
CvFileNode *arg2 = (CvFileNode *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
double arg4 = (double) 0. ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvReadRealByName",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvReadRealByName" "', argument " "1"" of type '" "CvFileStorage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvReadRealByName" "', argument " "2"" of type '" "CvFileNode const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvFileNode * >(argp2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvReadRealByName" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvReadRealByName" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
}
|
|
{
|
|
try {
|
|
result = (double)cvReadRealByName((CvFileStorage const *)arg1,(CvFileNode const *)arg2,(char const *)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReadString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode *arg1 = (CvFileNode *) 0 ;
|
|
char *arg2 = (char *) NULL ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvReadString",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvReadString" "', argument " "1"" of type '" "CvFileNode const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode * >(argp1);
|
|
if (obj1) {
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvReadString" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
}
|
|
{
|
|
try {
|
|
result = (char *)cvReadString((CvFileNode const *)arg1,(char const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_FromCharPtr((const char *)result);
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReadStringByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
CvFileNode *arg2 = (CvFileNode *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
char *arg4 = (char *) NULL ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
int res4 ;
|
|
char *buf4 = 0 ;
|
|
int alloc4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvReadStringByName",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvReadStringByName" "', argument " "1"" of type '" "CvFileStorage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvReadStringByName" "', argument " "2"" of type '" "CvFileNode const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvFileNode * >(argp2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvReadStringByName" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
if (obj3) {
|
|
res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvReadStringByName" "', argument " "4"" of type '" "char const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< char * >(buf4);
|
|
}
|
|
{
|
|
try {
|
|
result = (char *)cvReadStringByName((CvFileStorage const *)arg1,(CvFileNode const *)arg2,(char const *)arg3,(char const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_FromCharPtr((const char *)result);
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
CvFileNode *arg2 = (CvFileNode *) 0 ;
|
|
CvAttrList *arg3 = (CvAttrList *) NULL ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
void *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvRead",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvRead" "', argument " "1"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvRead" "', argument " "2"" of type '" "CvFileNode *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvFileNode * >(argp2);
|
|
if (obj2) {
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvAttrList, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvRead" "', argument " "3"" of type '" "CvAttrList *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvAttrList * >(argp3);
|
|
}
|
|
{
|
|
try {
|
|
result = (void *)cvRead(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReadByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
CvFileNode *arg2 = (CvFileNode *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
CvAttrList *arg4 = (CvAttrList *) NULL ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
void *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvReadByName",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvReadByName" "', argument " "1"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvReadByName" "', argument " "2"" of type '" "CvFileNode const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvFileNode * >(argp2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvReadByName" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
if (obj3) {
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvAttrList, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvReadByName" "', argument " "4"" of type '" "CvAttrList *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvAttrList * >(argp4);
|
|
}
|
|
{
|
|
try {
|
|
result = (void *)cvReadByName(arg1,(CvFileNode const *)arg2,(char const *)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvStartReadRawData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
CvFileNode *arg2 = (CvFileNode *) 0 ;
|
|
CvSeqReader *arg3 = (CvSeqReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvStartReadRawData",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvStartReadRawData" "', argument " "1"" of type '" "CvFileStorage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvStartReadRawData" "', argument " "2"" of type '" "CvFileNode const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvFileNode * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvStartReadRawData" "', argument " "3"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvSeqReader * >(argp3);
|
|
{
|
|
try {
|
|
cvStartReadRawData((CvFileStorage const *)arg1,(CvFileNode const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReadRawDataSlice(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
CvSeqReader *arg2 = (CvSeqReader *) 0 ;
|
|
int arg3 ;
|
|
void *arg4 = (void *) 0 ;
|
|
char *arg5 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int res4 ;
|
|
int res5 ;
|
|
char *buf5 = 0 ;
|
|
int alloc5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvReadRawDataSlice",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvReadRawDataSlice" "', argument " "1"" of type '" "CvFileStorage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvReadRawDataSlice" "', argument " "2"" of type '" "CvSeqReader *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqReader * >(argp2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvReadRawDataSlice" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
res4 = SWIG_ConvertPtr(obj3,SWIG_as_voidptrptr(&arg4), 0, 0);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvReadRawDataSlice" "', argument " "4"" of type '" "void *""'");
|
|
}
|
|
res5 = SWIG_AsCharPtrAndSize(obj4, &buf5, NULL, &alloc5);
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvReadRawDataSlice" "', argument " "5"" of type '" "char const *""'");
|
|
}
|
|
arg5 = reinterpret_cast< char * >(buf5);
|
|
{
|
|
try {
|
|
cvReadRawDataSlice((CvFileStorage const *)arg1,arg2,arg3,arg4,(char const *)arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc5 == SWIG_NEWOBJ) delete[] buf5;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReadRawData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
CvFileNode *arg2 = (CvFileNode *) 0 ;
|
|
void *arg3 = (void *) 0 ;
|
|
char *arg4 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int res3 ;
|
|
int res4 ;
|
|
char *buf4 = 0 ;
|
|
int alloc4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvReadRawData",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvReadRawData" "', argument " "1"" of type '" "CvFileStorage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvReadRawData" "', argument " "2"" of type '" "CvFileNode const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvFileNode * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvReadRawData" "', argument " "3"" of type '" "void *""'");
|
|
}
|
|
res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvReadRawData" "', argument " "4"" of type '" "char const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< char * >(buf4);
|
|
{
|
|
try {
|
|
cvReadRawData((CvFileStorage const *)arg1,(CvFileNode const *)arg2,arg3,(char const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvWriteFileNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
CvFileNode *arg3 = (CvFileNode *) 0 ;
|
|
int arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvWriteFileNode",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvWriteFileNode" "', argument " "1"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvWriteFileNode" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvWriteFileNode" "', argument " "3"" of type '" "CvFileNode const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvFileNode * >(argp3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvWriteFileNode" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
try {
|
|
cvWriteFileNode(arg1,(char const *)arg2,(CvFileNode const *)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetFileNodeName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileNode *arg1 = (CvFileNode *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvGetFileNodeName",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileNode, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvGetFileNodeName" "', argument " "1"" of type '" "CvFileNode const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileNode * >(argp1);
|
|
{
|
|
try {
|
|
result = (char *)cvGetFileNodeName((CvFileNode const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_FromCharPtr((const char *)result);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRegisterType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *arg1 = (CvTypeInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvRegisterType",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvRegisterType" "', argument " "1"" of type '" "CvTypeInfo const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypeInfo * >(argp1);
|
|
{
|
|
try {
|
|
cvRegisterType((CvTypeInfo const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvUnregisterType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvUnregisterType",&obj0)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvUnregisterType" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
{
|
|
try {
|
|
cvUnregisterType((char const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFirstType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypeInfo *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":cvFirstType")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvTypeInfo *)cvFirstType();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFindType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTypeInfo *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvFindType",&obj0)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvFindType" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
{
|
|
try {
|
|
result = (CvTypeInfo *)cvFindType((char const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvTypeOf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void *arg1 = (void *) 0 ;
|
|
int res1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTypeInfo *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvTypeOf",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvTypeOf" "', argument " "1"" of type '" "void const *""'");
|
|
}
|
|
{
|
|
try {
|
|
result = (CvTypeInfo *)cvTypeOf((void const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvClone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void *arg1 = (void *) 0 ;
|
|
int res1 ;
|
|
PyObject * obj0 = 0 ;
|
|
void *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvClone",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvClone" "', argument " "1"" of type '" "void const *""'");
|
|
}
|
|
{
|
|
try {
|
|
result = (void *)cvClone((void const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSave(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
char *arg3 = (char *) NULL ;
|
|
char *arg4 = (char *) NULL ;
|
|
CvAttrList arg5 = (CvAttrList) cvAttrList() ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
int res2 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
int res4 ;
|
|
char *buf4 = 0 ;
|
|
int alloc4 = 0 ;
|
|
void *argp5 ;
|
|
int res5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OOO:cvSave",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvSave" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvSave" "', argument " "2"" of type '" "void const *""'");
|
|
}
|
|
if (obj2) {
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvSave" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
}
|
|
if (obj3) {
|
|
res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvSave" "', argument " "4"" of type '" "char const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< char * >(buf4);
|
|
}
|
|
if (obj4) {
|
|
{
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_CvAttrList, 0 | 0);
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvSave" "', argument " "5"" of type '" "CvAttrList""'");
|
|
}
|
|
if (!argp5) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cvSave" "', argument " "5"" of type '" "CvAttrList""'");
|
|
} else {
|
|
CvAttrList * temp = reinterpret_cast< CvAttrList * >(argp5);
|
|
arg5 = *temp;
|
|
if (SWIG_IsNewObj(res5)) delete temp;
|
|
}
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvSave((char const *)arg1,(void const *)arg2,(char const *)arg3,(char const *)arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvLoad(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) NULL ;
|
|
char *arg3 = (char *) NULL ;
|
|
char **arg4 = (char **) NULL ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
void *vptr4 ;
|
|
char *buffer4 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
void *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|OOO:cvLoad",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvLoad" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
if (obj1) {
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvLoad" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
}
|
|
if (obj2) {
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvLoad" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
if ((SWIG_ConvertPtr(obj3, &vptr4, SWIGTYPE_p_char, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer4 = (char *) vptr4;
|
|
arg4=&buffer4;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (void *)cvLoad((char const *)arg1,arg2,(char const *)arg3,(char const **)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetTickCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int64 result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":cvGetTickCount")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = cvGetTickCount();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new int64(static_cast< const int64& >(result))), SWIGTYPE_p_int64_t, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetTickFrequency(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":cvGetTickFrequency")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (double)cvGetTickFrequency();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetNumThreads(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":cvGetNumThreads")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (int)cvGetNumThreads();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetNumThreads(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"|O:cvSetNumThreads",&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvSetNumThreads" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
{
|
|
try {
|
|
cvSetNumThreads(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetThreadNum(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":cvGetThreadNum")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (int)cvGetThreadNum();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetImageIOFunctions(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLoadImageFunc arg1 = (CvLoadImageFunc) 0 ;
|
|
CvLoadImageMFunc arg2 = (CvLoadImageMFunc) 0 ;
|
|
CvSaveImageFunc arg3 = (CvSaveImageFunc) 0 ;
|
|
CvShowImageFunc arg4 = (CvShowImageFunc) 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvSetImageIOFunctions",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj0, (void**)(&arg1), SWIGTYPE_p_f_p_q_const__char_int__p__IplImage);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cvSetImageIOFunctions" "', argument " "1"" of type '" "CvLoadImageFunc""'");
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__char_int__p_CvMat);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cvSetImageIOFunctions" "', argument " "2"" of type '" "CvLoadImageMFunc""'");
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj2, (void**)(&arg3), SWIGTYPE_p_f_p_q_const__char_p_q_const__void_p_q_const__int__int);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cvSetImageIOFunctions" "', argument " "3"" of type '" "CvSaveImageFunc""'");
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj3, (void**)(&arg4), SWIGTYPE_p_f_p_q_const__char_p_q_const__void__void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cvSetImageIOFunctions" "', argument " "4"" of type '" "CvShowImageFunc""'");
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvSetImageIOFunctions(arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvImage__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvImage")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvImage *)new CvImage();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvImage, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvImage__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSize arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
CvSize temp1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:new_CvImage",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"ii", & temp1.width, & temp1.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CvImage" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CvImage" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (CvImage *)new CvImage(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvImage, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvImage__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
IplImage header1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:new_CvImage",&obj0)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvImage *)new CvImage(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvImage, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvImage__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:new_CvImage",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CvImage, 0 | 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvImage" "', argument " "1"" of type '" "CvImage const &""'");
|
|
}
|
|
if (!argp1) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CvImage" "', argument " "1"" of type '" "CvImage const &""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvImage *)new CvImage((CvImage const &)*arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvImage, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvImage__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
int arg3 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:new_CvImage",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvImage" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CvImage" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CvImage" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (CvImage *)new CvImage((char const *)arg1,(char const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvImage, SWIG_POINTER_NEW | 0 );
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvImage__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:new_CvImage",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvImage" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CvImage" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
{
|
|
try {
|
|
result = (CvImage *)new CvImage((char const *)arg1,(char const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvImage, SWIG_POINTER_NEW | 0 );
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvImage__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:new_CvImage",&obj0)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvImage" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
{
|
|
try {
|
|
result = (CvImage *)new CvImage((char const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvImage, SWIG_POINTER_NEW | 0 );
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvImage__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:new_CvImage",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvImage" "', argument " "1"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CvImage" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CvImage" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
{
|
|
try {
|
|
result = (CvImage *)new CvImage(arg1,(char const *)arg2,(char const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvImage, SWIG_POINTER_NEW | 0 );
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvImage__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:new_CvImage",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvImage" "', argument " "1"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CvImage" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CvImage" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (CvImage *)new CvImage(arg1,(char const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvImage, SWIG_POINTER_NEW | 0 );
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvImage(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[4];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 0) {
|
|
return _wrap_new_CvImage__SWIG_0(self, args);
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvImage__SWIG_2(self, args);
|
|
}
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_CvImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvImage__SWIG_3(self, args);
|
|
}
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvImage__SWIG_6(self, args);
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvImage__SWIG_5(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_CvSize, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_new_CvImage__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvFileStorage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_new_CvImage__SWIG_8(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvFileStorage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvImage__SWIG_7(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_new_CvImage__SWIG_4(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_CvImage'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" CvImage()\n"
|
|
" CvImage(CvSize,int,int)\n"
|
|
" CvImage(IplImage *)\n"
|
|
" CvImage(CvImage const &)\n"
|
|
" CvImage(char const *,char const *,int)\n"
|
|
" CvImage(char const *,char const *)\n"
|
|
" CvImage(char const *)\n"
|
|
" CvImage(CvFileStorage *,char const *,char const *)\n"
|
|
" CvImage(CvFileStorage *,char const *,int)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvImage",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvImage" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvImage result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_clone",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_clone" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
result = (arg1)->clone();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvImage(static_cast< const CvImage& >(result))), SWIGTYPE_p_CvImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_create(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
CvSize arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
CvSize temp2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:CvImage_create",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_create" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ii", & temp2.width, & temp2.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CvImage_create" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CvImage_create" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
try {
|
|
(arg1)->create(arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_release",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_release" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
(arg1)->release();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_clear",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_clear" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
(arg1)->clear();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_attach__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
IplImage *arg2 = (IplImage *) 0 ;
|
|
bool arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
IplImage header2 ;
|
|
bool val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvImage_attach",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_attach" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj1, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg2 = cvGetImage((CvMat *)vptr, &header2);
|
|
}
|
|
ecode3 = SWIG_AsVal_bool(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CvImage_attach" "', argument " "3"" of type '" "bool""'");
|
|
}
|
|
arg3 = static_cast< bool >(val3);
|
|
{
|
|
try {
|
|
(arg1)->attach(arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_attach__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
IplImage *arg2 = (IplImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
IplImage header2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvImage_attach",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_attach" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj1, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg2 = cvGetImage((CvMat *)vptr, &header2);
|
|
}
|
|
{
|
|
try {
|
|
(arg1)->attach(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_attach(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[4];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvImage_attach__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p__IplImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_bool(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvImage_attach__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvImage_attach'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" attach(CvImage *,IplImage *,bool)\n"
|
|
" attach(CvImage *,IplImage *)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_detach",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_detach" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
(arg1)->detach();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
int arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:CvImage_load",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_load" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvImage_load" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvImage_load" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CvImage_load" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
try {
|
|
result = (bool)(arg1)->load((char const *)arg2,(char const *)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvImage_load",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_load" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvImage_load" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvImage_load" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
{
|
|
try {
|
|
result = (bool)(arg1)->load((char const *)arg2,(char const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_load__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvImage_load",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_load" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvImage_load" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
{
|
|
try {
|
|
result = (bool)(arg1)->load((char const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_load(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[5];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 4); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvImage_load__SWIG_2(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvImage_load__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 4) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[3], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvImage_load__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvImage_load'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" load(CvImage *,char const *,char const *,int)\n"
|
|
" load(CvImage *,char const *,char const *)\n"
|
|
" load(CvImage *,char const *)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_read__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
CvFileStorage *arg2 = (CvFileStorage *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
char *arg4 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
int res4 ;
|
|
char *buf4 = 0 ;
|
|
int alloc4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:CvImage_read",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_read" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvImage_read" "', argument " "2"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvFileStorage * >(argp2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvImage_read" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CvImage_read" "', argument " "4"" of type '" "char const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< char * >(buf4);
|
|
{
|
|
try {
|
|
result = (bool)(arg1)->read(arg2,(char const *)arg3,(char const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_read__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
CvFileStorage *arg2 = (CvFileStorage *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
int arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:CvImage_read",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_read" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvImage_read" "', argument " "2"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvFileStorage * >(argp2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvImage_read" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CvImage_read" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
try {
|
|
result = (bool)(arg1)->read(arg2,(char const *)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_read(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[5];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 4); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 4) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CvFileStorage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[3], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvImage_read__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 4) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CvFileStorage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvImage_read__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvImage_read'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" read(CvImage *,CvFileStorage *,char const *,char const *)\n"
|
|
" read(CvImage *,CvFileStorage *,char const *,int)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
int *arg4 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:CvImage_save",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_save" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvImage_save" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvImage_save" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CvImage_save" "', argument " "4"" of type '" "int const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< int * >(argp4);
|
|
{
|
|
try {
|
|
(arg1)->save((char const *)arg2,(char const *)arg3,(int const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvImage_save",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_save" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvImage_save" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvImage_save" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
{
|
|
try {
|
|
(arg1)->save((char const *)arg2,(char const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_save(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[5];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 4); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvImage_save__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 4) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_int, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvImage_save__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvImage_save'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" save(CvImage *,char const *,char const *,int const *)\n"
|
|
" save(CvImage *,char const *,char const *)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
CvFileStorage *arg2 = (CvFileStorage *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvImage_write",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_write" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvImage_write" "', argument " "2"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvFileStorage * >(argp2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvImage_write" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
{
|
|
try {
|
|
(arg1)->write(arg2,(char const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvImage_show",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_show" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvImage_show" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
{
|
|
try {
|
|
(arg1)->show((char const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_is_valid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_is_valid",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_is_valid" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
result = (bool)(arg1)->is_valid();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_width(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_width",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_width" "', argument " "1"" of type '" "CvImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)((CvImage const *)arg1)->width();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_height(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_height",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_height" "', argument " "1"" of type '" "CvImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)((CvImage const *)arg1)->height();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSize result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_size",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_size" "', argument " "1"" of type '" "CvImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
result = ((CvImage const *)arg1)->size();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvSize(static_cast< const CvSize& >(result))), SWIGTYPE_p_CvSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_roi_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSize result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_roi_size",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_roi_size" "', argument " "1"" of type '" "CvImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
result = ((CvImage const *)arg1)->roi_size();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvSize(static_cast< const CvSize& >(result))), SWIGTYPE_p_CvSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_roi(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvRect result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_roi",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_roi" "', argument " "1"" of type '" "CvImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
result = ((CvImage const *)arg1)->roi();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvRect(static_cast< const CvRect& >(result))), SWIGTYPE_p_CvRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_coi(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_coi",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_coi" "', argument " "1"" of type '" "CvImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)((CvImage const *)arg1)->coi();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_set_roi(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
CvRect arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
CvRect temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvImage_set_roi",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_set_roi" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"iiii", & temp2.x, & temp2.y, & temp2.width, & temp2.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 4 integers (x, y, width, height)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvRect * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvRect, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvRect");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
(arg1)->set_roi(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_reset_roi(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_reset_roi",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_reset_roi" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
(arg1)->reset_roi();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_set_coi(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvImage_set_coi",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_set_coi" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvImage_set_coi" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
(arg1)->set_coi(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_depth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_depth",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_depth" "', argument " "1"" of type '" "CvImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)((CvImage const *)arg1)->depth();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_channels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_channels",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_channels" "', argument " "1"" of type '" "CvImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)((CvImage const *)arg1)->channels();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_pix_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_pix_size",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_pix_size" "', argument " "1"" of type '" "CvImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)((CvImage const *)arg1)->pix_size();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_data__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
uchar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_data",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_data" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
result = (uchar *)(arg1)->data();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_data__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
uchar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_data",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_data" "', argument " "1"" of type '" "CvImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
result = (uchar *)((CvImage const *)arg1)->data();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_data(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[2];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 1); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvImage_data__SWIG_0(self, args);
|
|
}
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvImage_data__SWIG_1(self, args);
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvImage_data'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" data(CvImage *)\n"
|
|
" data(CvImage const *)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_step(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_step",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_step" "', argument " "1"" of type '" "CvImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)((CvImage const *)arg1)->step();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_origin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_origin",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_origin" "', argument " "1"" of type '" "CvImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)((CvImage const *)arg1)->origin();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_roi_row__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
uchar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvImage_roi_row",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_roi_row" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvImage_roi_row" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (uchar *)(arg1)->roi_row(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_roi_row__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
uchar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvImage_roi_row",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_roi_row" "', argument " "1"" of type '" "CvImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvImage_roi_row" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (uchar *)((CvImage const *)arg1)->roi_row(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_roi_row(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvImage_roi_row__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvImage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvImage_roi_row__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvImage_roi_row'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" roi_row(CvImage *,int)\n"
|
|
" roi_row(CvImage const *,int)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvImage_asIplImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvImage *arg1 = (CvImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
IplImage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvImage_asIplImage",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvImage_asIplImage" "', argument " "1"" of type '" "CvImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvImage * >(argp1);
|
|
{
|
|
try {
|
|
result = (IplImage *)(arg1)->operator IplImage*();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
SWIG_exception( SWIG_TypeError, "IplImage * return type is deprecated. Please file a bug report at www.sourceforge.net/opencvlibrary if you see this error message.");
|
|
SWIG_fail;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvImage, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatrix__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvMatrix")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvMatrix *)new CvMatrix();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatrix, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatrix__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvMatrix *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:new_CvMatrix",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CvMatrix" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CvMatrix" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CvMatrix" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (CvMatrix *)new CvMatrix(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatrix, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatrix__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
void *arg5 = (void *) 0 ;
|
|
int arg6 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
bool freearg4 = false ;
|
|
int res5 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
CvMatrix *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO:new_CvMatrix",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CvMatrix" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CvMatrix" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CvMatrix" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
res5 = SWIG_ConvertPtr(obj4,SWIG_as_voidptrptr(&arg5), 0, 0);
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CvMatrix" "', argument " "5"" of type '" "void *""'");
|
|
}
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CvMatrix" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
{
|
|
try {
|
|
result = (CvMatrix *)new CvMatrix(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatrix, SWIG_POINTER_NEW | 0 );
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatrix__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
void *arg5 = (void *) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
bool freearg4 = false ;
|
|
int res5 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
CvMatrix *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_CvMatrix",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CvMatrix" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CvMatrix" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CvMatrix" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
res5 = SWIG_ConvertPtr(obj4,SWIG_as_voidptrptr(&arg5), 0, 0);
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_CvMatrix" "', argument " "5"" of type '" "void *""'");
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMatrix *)new CvMatrix(arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatrix, SWIG_POINTER_NEW | 0 );
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatrix__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvMatrix *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:new_CvMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CvMatrix" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CvMatrix" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CvMatrix" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMatrix *)new CvMatrix(arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatrix, SWIG_POINTER_NEW | 0 );
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatrix__SWIG_5(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
CvMemStorage *arg4 = (CvMemStorage *) 0 ;
|
|
bool arg5 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
bool val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
CvMatrix *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_CvMatrix",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CvMatrix" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CvMatrix" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CvMatrix" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CvMatrix" "', argument " "4"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvMemStorage * >(argp4);
|
|
ecode5 = SWIG_AsVal_bool(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_CvMatrix" "', argument " "5"" of type '" "bool""'");
|
|
}
|
|
arg5 = static_cast< bool >(val5);
|
|
{
|
|
try {
|
|
result = (CvMatrix *)new CvMatrix(arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatrix, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatrix__SWIG_6(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
CvMemStorage *arg4 = (CvMemStorage *) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvMatrix *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:new_CvMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CvMatrix" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CvMatrix" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CvMatrix" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CvMatrix" "', argument " "4"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvMemStorage * >(argp4);
|
|
{
|
|
try {
|
|
result = (CvMatrix *)new CvMatrix(arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatrix, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatrix__SWIG_7(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *arg4 = (void *) 0 ;
|
|
int arg5 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int res4 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
CvMatrix *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_CvMatrix",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CvMatrix" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CvMatrix" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CvMatrix" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
res4 = SWIG_ConvertPtr(obj3,SWIG_as_voidptrptr(&arg4), 0, 0);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CvMatrix" "', argument " "4"" of type '" "void *""'");
|
|
}
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_CvMatrix" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
{
|
|
try {
|
|
result = (CvMatrix *)new CvMatrix(arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatrix, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatrix__SWIG_8(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *arg4 = (void *) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int res4 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvMatrix *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:new_CvMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CvMatrix" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CvMatrix" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CvMatrix" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
res4 = SWIG_ConvertPtr(obj3,SWIG_as_voidptrptr(&arg4), 0, 0);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_CvMatrix" "', argument " "4"" of type '" "void *""'");
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMatrix *)new CvMatrix(arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatrix, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatrix__SWIG_9(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMatrix *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:new_CvMatrix",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMatrix *)new CvMatrix(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatrix, SWIG_POINTER_NEW | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatrix__SWIG_10(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMatrix *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:new_CvMatrix",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_CvMatrix, 0 | 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvMatrix" "', argument " "1"" of type '" "CvMatrix const &""'");
|
|
}
|
|
if (!argp1) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CvMatrix" "', argument " "1"" of type '" "CvMatrix const &""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvMatrix *)new CvMatrix((CvMatrix const &)*arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatrix, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatrix__SWIG_11(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
int arg3 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvMatrix *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:new_CvMatrix",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvMatrix" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CvMatrix" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CvMatrix" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (CvMatrix *)new CvMatrix((char const *)arg1,(char const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatrix, SWIG_POINTER_NEW | 0 );
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatrix__SWIG_12(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMatrix *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:new_CvMatrix",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvMatrix" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CvMatrix" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
{
|
|
try {
|
|
result = (CvMatrix *)new CvMatrix((char const *)arg1,(char const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatrix, SWIG_POINTER_NEW | 0 );
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatrix__SWIG_13(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMatrix *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:new_CvMatrix",&obj0)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvMatrix" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
{
|
|
try {
|
|
result = (CvMatrix *)new CvMatrix((char const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatrix, SWIG_POINTER_NEW | 0 );
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatrix__SWIG_14(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvMatrix *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:new_CvMatrix",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvMatrix" "', argument " "1"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CvMatrix" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_CvMatrix" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
{
|
|
try {
|
|
result = (CvMatrix *)new CvMatrix(arg1,(char const *)arg2,(char const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatrix, SWIG_POINTER_NEW | 0 );
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatrix__SWIG_15(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFileStorage *arg1 = (CvFileStorage *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvMatrix *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:new_CvMatrix",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvMatrix" "', argument " "1"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFileStorage * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CvMatrix" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_CvMatrix" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (CvMatrix *)new CvMatrix(arg1,(char const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatrix, SWIG_POINTER_NEW | 0 );
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatrix(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[7];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 6); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 0) {
|
|
return _wrap_new_CvMatrix__SWIG_0(self, args);
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvMatrix__SWIG_9(self, args);
|
|
}
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_CvMatrix, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvMatrix__SWIG_10(self, args);
|
|
}
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvMatrix__SWIG_13(self, args);
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvMatrix__SWIG_12(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvFileStorage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_new_CvMatrix__SWIG_15(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvFileStorage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvMatrix__SWIG_14(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
{
|
|
int res = SWIG_AsVal_int(argv[0], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_new_CvMatrix__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_new_CvMatrix__SWIG_11(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 4) {
|
|
int _v;
|
|
{
|
|
int res = SWIG_AsVal_int(argv[0], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CvMemStorage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvMatrix__SWIG_6(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 4) {
|
|
int _v;
|
|
{
|
|
int res = SWIG_AsVal_int(argv[0], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvMatrix__SWIG_4(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 4) {
|
|
int _v;
|
|
{
|
|
int res = SWIG_AsVal_int(argv[0], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[3], &ptr, 0, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvMatrix__SWIG_8(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 5) {
|
|
int _v;
|
|
{
|
|
int res = SWIG_AsVal_int(argv[0], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CvMemStorage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_bool(argv[4], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_new_CvMatrix__SWIG_5(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 5) {
|
|
int _v;
|
|
{
|
|
int res = SWIG_AsVal_int(argv[0], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[4], &ptr, 0, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvMatrix__SWIG_3(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 5) {
|
|
int _v;
|
|
{
|
|
int res = SWIG_AsVal_int(argv[0], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[3], &ptr, 0, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[4], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_new_CvMatrix__SWIG_7(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 6) {
|
|
int _v;
|
|
{
|
|
int res = SWIG_AsVal_int(argv[0], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_CvMat, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[4], &ptr, 0, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[5], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_new_CvMatrix__SWIG_2(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_CvMatrix'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" CvMatrix()\n"
|
|
" CvMatrix(int,int,int)\n"
|
|
" CvMatrix(int,int,int,CvMat *,void *,int)\n"
|
|
" CvMatrix(int,int,int,CvMat *,void *)\n"
|
|
" CvMatrix(int,int,int,CvMat *)\n"
|
|
" CvMatrix(int,int,int,CvMemStorage *,bool)\n"
|
|
" CvMatrix(int,int,int,CvMemStorage *)\n"
|
|
" CvMatrix(int,int,int,void *,int)\n"
|
|
" CvMatrix(int,int,int,void *)\n"
|
|
" CvMatrix(CvMat *)\n"
|
|
" CvMatrix(CvMatrix const &)\n"
|
|
" CvMatrix(char const *,char const *,int)\n"
|
|
" CvMatrix(char const *,char const *)\n"
|
|
" CvMatrix(char const *)\n"
|
|
" CvMatrix(CvFileStorage *,char const *,char const *)\n"
|
|
" CvMatrix(CvFileStorage *,char const *,int)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvMatrix",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvMatrix" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMatrix result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatrix_clone",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_clone" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
try {
|
|
result = (arg1)->clone();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvMatrix(static_cast< const CvMatrix& >(result))), SWIGTYPE_p_CvMatrix, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
bool arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
bool val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvMatrix_set",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_set" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_bool(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CvMatrix_set" "', argument " "3"" of type '" "bool""'");
|
|
}
|
|
arg3 = static_cast< bool >(val3);
|
|
{
|
|
try {
|
|
(arg1)->set(arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_create(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:CvMatrix_create",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_create" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMatrix_create" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CvMatrix_create" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CvMatrix_create" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
try {
|
|
(arg1)->create(arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_addref(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatrix_addref",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_addref" "', argument " "1"" of type '" "CvMatrix const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
try {
|
|
((CvMatrix const *)arg1)->addref();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_release(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatrix_release",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_release" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
try {
|
|
(arg1)->release();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatrix_clear",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_clear" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
try {
|
|
(arg1)->clear();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_load__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
int arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:CvMatrix_load",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_load" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMatrix_load" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvMatrix_load" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CvMatrix_load" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
try {
|
|
result = (bool)(arg1)->load((char const *)arg2,(char const *)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_load__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvMatrix_load",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_load" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMatrix_load" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvMatrix_load" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
{
|
|
try {
|
|
result = (bool)(arg1)->load((char const *)arg2,(char const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_load__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMatrix_load",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_load" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMatrix_load" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
{
|
|
try {
|
|
result = (bool)(arg1)->load((char const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_load(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[5];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 4); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMatrix, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvMatrix_load__SWIG_2(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMatrix, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvMatrix_load__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 4) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMatrix, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[3], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMatrix_load__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvMatrix_load'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" load(CvMatrix *,char const *,char const *,int)\n"
|
|
" load(CvMatrix *,char const *,char const *)\n"
|
|
" load(CvMatrix *,char const *)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_read__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
CvFileStorage *arg2 = (CvFileStorage *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
char *arg4 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
int res4 ;
|
|
char *buf4 = 0 ;
|
|
int alloc4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:CvMatrix_read",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_read" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMatrix_read" "', argument " "2"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvFileStorage * >(argp2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvMatrix_read" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CvMatrix_read" "', argument " "4"" of type '" "char const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< char * >(buf4);
|
|
{
|
|
try {
|
|
result = (bool)(arg1)->read(arg2,(char const *)arg3,(char const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_read__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
CvFileStorage *arg2 = (CvFileStorage *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
int arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:CvMatrix_read",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_read" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMatrix_read" "', argument " "2"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvFileStorage * >(argp2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvMatrix_read" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "CvMatrix_read" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
try {
|
|
result = (bool)(arg1)->read(arg2,(char const *)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_read(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[5];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 4); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 4) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMatrix, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CvFileStorage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[3], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMatrix_read__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 4) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMatrix, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_CvFileStorage, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvMatrix_read__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvMatrix_read'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" read(CvMatrix *,CvFileStorage *,char const *,char const *)\n"
|
|
" read(CvMatrix *,CvFileStorage *,char const *,int)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_save__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
int *arg4 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:CvMatrix_save",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_save" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMatrix_save" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvMatrix_save" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CvMatrix_save" "', argument " "4"" of type '" "int const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< int * >(argp4);
|
|
{
|
|
try {
|
|
(arg1)->save((char const *)arg2,(char const *)arg3,(int const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_save__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvMatrix_save",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_save" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMatrix_save" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvMatrix_save" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
{
|
|
try {
|
|
(arg1)->save((char const *)arg2,(char const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_save(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[5];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 4); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMatrix, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvMatrix_save__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 4) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMatrix, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[1], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
int res = SWIG_AsCharPtrAndSize(argv[2], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_int, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvMatrix_save__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvMatrix_save'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" save(CvMatrix *,char const *,char const *,int const *)\n"
|
|
" save(CvMatrix *,char const *,char const *)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
CvFileStorage *arg2 = (CvFileStorage *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvMatrix_write",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_write" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvFileStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMatrix_write" "', argument " "2"" of type '" "CvFileStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvFileStorage * >(argp2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvMatrix_write" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
{
|
|
try {
|
|
(arg1)->write(arg2,(char const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
char *arg2 = (char *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMatrix_show",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_show" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMatrix_show" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
{
|
|
try {
|
|
(arg1)->show((char const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_is_valid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
bool result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatrix_is_valid",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_is_valid" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
try {
|
|
result = (bool)(arg1)->is_valid();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_bool(static_cast< bool >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_rows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatrix_rows",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_rows" "', argument " "1"" of type '" "CvMatrix const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)((CvMatrix const *)arg1)->rows();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_cols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatrix_cols",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_cols" "', argument " "1"" of type '" "CvMatrix const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)((CvMatrix const *)arg1)->cols();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSize result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatrix_size",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_size" "', argument " "1"" of type '" "CvMatrix const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
try {
|
|
result = ((CvMatrix const *)arg1)->size();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvSize(static_cast< const CvSize& >(result))), SWIGTYPE_p_CvSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_type(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatrix_type",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_type" "', argument " "1"" of type '" "CvMatrix const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)((CvMatrix const *)arg1)->type();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_depth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatrix_depth",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_depth" "', argument " "1"" of type '" "CvMatrix const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)((CvMatrix const *)arg1)->depth();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_channels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatrix_channels",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_channels" "', argument " "1"" of type '" "CvMatrix const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)((CvMatrix const *)arg1)->channels();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_pix_size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatrix_pix_size",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_pix_size" "', argument " "1"" of type '" "CvMatrix const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)((CvMatrix const *)arg1)->pix_size();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_data__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
uchar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatrix_data",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_data" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
try {
|
|
result = (uchar *)(arg1)->data();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_data__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
uchar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatrix_data",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_data" "', argument " "1"" of type '" "CvMatrix const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
try {
|
|
result = (uchar *)((CvMatrix const *)arg1)->data();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_data(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[2];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 1); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMatrix, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvMatrix_data__SWIG_0(self, args);
|
|
}
|
|
}
|
|
if (argc == 1) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMatrix, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvMatrix_data__SWIG_1(self, args);
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvMatrix_data'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" data(CvMatrix *)\n"
|
|
" data(CvMatrix const *)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_step(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatrix_step",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_step" "', argument " "1"" of type '" "CvMatrix const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
try {
|
|
result = (int)((CvMatrix const *)arg1)->step();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_set_data__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvMatrix_set_data",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_set_data" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMatrix_set_data" "', argument " "2"" of type '" "void *""'");
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CvMatrix_set_data" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
(arg1)->set_data(arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_set_data__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMatrix_set_data",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_set_data" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMatrix_set_data" "', argument " "2"" of type '" "void *""'");
|
|
}
|
|
{
|
|
try {
|
|
(arg1)->set_data(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_set_data(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[4];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 3); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMatrix, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_CvMatrix_set_data__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMatrix, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &ptr, 0, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[2], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMatrix_set_data__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvMatrix_set_data'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" set_data(CvMatrix *,void *,int)\n"
|
|
" set_data(CvMatrix *,void *)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_row__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
uchar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMatrix_row",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_row" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMatrix_row" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (uchar *)(arg1)->row(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_row__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
uchar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMatrix_row",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_row" "', argument " "1"" of type '" "CvMatrix const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMatrix_row" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (uchar *)((CvMatrix const *)arg1)->row(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_unsigned_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_row(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 2); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMatrix, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMatrix_row__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_CvMatrix, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
{
|
|
int res = SWIG_AsVal_int(argv[1], NULL);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (_v) {
|
|
return _wrap_CvMatrix_row__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'CvMatrix_row'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" row(CvMatrix *,int)\n"
|
|
" row(CvMatrix const *,int)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix_asCvMat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix *arg1 = (CvMatrix *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatrix_asCvMat",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix_asCvMat" "', argument " "1"" of type '" "CvMatrix *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvMat *)(arg1)->operator CvMat*();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvMatrix, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvModuleInfo *arg1 = (CvModuleInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvModule *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:new_CvModule",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvModuleInfo, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvModule" "', argument " "1"" of type '" "CvModuleInfo *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvModuleInfo * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvModule *)new CvModule(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvModule, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvModule(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvModule *arg1 = (CvModule *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvModule",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvModule, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvModule" "', argument " "1"" of type '" "CvModule *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvModule * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvModule_info_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvModule *arg1 = (CvModule *) 0 ;
|
|
CvModuleInfo *arg2 = (CvModuleInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvModule_info_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvModule, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvModule_info_set" "', argument " "1"" of type '" "CvModule *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvModule * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvModuleInfo, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvModule_info_set" "', argument " "2"" of type '" "CvModuleInfo *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvModuleInfo * >(argp2);
|
|
if (arg1) (arg1)->info = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvModule_info_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvModule *arg1 = (CvModule *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvModuleInfo *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvModule_info_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvModule, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvModule_info_get" "', argument " "1"" of type '" "CvModule *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvModule * >(argp1);
|
|
result = (CvModuleInfo *) ((arg1)->info);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvModuleInfo, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN int Swig_var_CvModule_first_set(PyObject *_val) {
|
|
{
|
|
void *argp = 0;
|
|
int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_CvModuleInfo, 0 );
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""CvModule::first""' of type '""CvModuleInfo *""'");
|
|
}
|
|
CvModule::first = reinterpret_cast< CvModuleInfo * >(argp);
|
|
}
|
|
return 0;
|
|
fail:
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Swig_var_CvModule_first_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(CvModule::first), SWIGTYPE_p_CvModuleInfo, 0 );
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvModule_first_get(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(args)) {
|
|
return Swig_var_CvModule_first_get();
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvModule_first_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *value;
|
|
int res;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:set",&value)) return NULL;
|
|
res = Swig_var_CvModule_first_set(value);
|
|
return !res ? SWIG_Py_Void() : NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN int Swig_var_CvModule_last_set(PyObject *_val) {
|
|
{
|
|
void *argp = 0;
|
|
int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_CvModuleInfo, 0 );
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""CvModule::last""' of type '""CvModuleInfo *""'");
|
|
}
|
|
CvModule::last = reinterpret_cast< CvModuleInfo * >(argp);
|
|
}
|
|
return 0;
|
|
fail:
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Swig_var_CvModule_last_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(CvModule::last), SWIGTYPE_p_CvModuleInfo, 0 );
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvModule_last_get(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(args)) {
|
|
return Swig_var_CvModule_last_get();
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvModule_last_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *value;
|
|
int res;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:set",&value)) return NULL;
|
|
res = Swig_var_CvModule_last_set(value);
|
|
return !res ? SWIG_Py_Void() : NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvModule_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvModule, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvType__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
CvIsInstanceFunc arg2 = (CvIsInstanceFunc) 0 ;
|
|
CvReleaseFunc arg3 = (CvReleaseFunc) 0 ;
|
|
CvReadFunc arg4 = (CvReadFunc) 0 ;
|
|
CvWriteFunc arg5 = (CvWriteFunc) 0 ;
|
|
CvCloneFunc arg6 = (CvCloneFunc) 0 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
CvType *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO:new_CvType",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvType" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__void__int);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "new_CvType" "', argument " "2"" of type '" "CvIsInstanceFunc""'");
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj2, (void**)(&arg3), SWIGTYPE_p_f_p_p_void__void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "new_CvType" "', argument " "3"" of type '" "CvReleaseFunc""'");
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj3, (void**)(&arg4), SWIGTYPE_p_f_p_CvFileStorage_p_CvFileNode__p_void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "new_CvType" "', argument " "4"" of type '" "CvReadFunc""'");
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj4, (void**)(&arg5), SWIGTYPE_p_f_p_CvFileStorage_p_q_const__char_p_q_const__void_CvAttrList__void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "new_CvType" "', argument " "5"" of type '" "CvWriteFunc""'");
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj5, (void**)(&arg6), SWIGTYPE_p_f_p_q_const__void__p_void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "new_CvType" "', argument " "6"" of type '" "CvCloneFunc""'");
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvType *)new CvType((char const *)arg1,arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvType, SWIG_POINTER_NEW | 0 );
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvType__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
CvIsInstanceFunc arg2 = (CvIsInstanceFunc) 0 ;
|
|
CvReleaseFunc arg3 = (CvReleaseFunc) 0 ;
|
|
CvReadFunc arg4 = (CvReadFunc) 0 ;
|
|
CvWriteFunc arg5 = (CvWriteFunc) 0 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
CvType *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:new_CvType",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvType" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__void__int);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "new_CvType" "', argument " "2"" of type '" "CvIsInstanceFunc""'");
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj2, (void**)(&arg3), SWIGTYPE_p_f_p_p_void__void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "new_CvType" "', argument " "3"" of type '" "CvReleaseFunc""'");
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj3, (void**)(&arg4), SWIGTYPE_p_f_p_CvFileStorage_p_CvFileNode__p_void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "new_CvType" "', argument " "4"" of type '" "CvReadFunc""'");
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj4, (void**)(&arg5), SWIGTYPE_p_f_p_CvFileStorage_p_q_const__char_p_q_const__void_CvAttrList__void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "new_CvType" "', argument " "5"" of type '" "CvWriteFunc""'");
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvType *)new CvType((char const *)arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvType, SWIG_POINTER_NEW | 0 );
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvType__SWIG_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
CvIsInstanceFunc arg2 = (CvIsInstanceFunc) 0 ;
|
|
CvReleaseFunc arg3 = (CvReleaseFunc) 0 ;
|
|
CvReadFunc arg4 = (CvReadFunc) 0 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvType *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:new_CvType",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvType" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__void__int);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "new_CvType" "', argument " "2"" of type '" "CvIsInstanceFunc""'");
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj2, (void**)(&arg3), SWIGTYPE_p_f_p_p_void__void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "new_CvType" "', argument " "3"" of type '" "CvReleaseFunc""'");
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj3, (void**)(&arg4), SWIGTYPE_p_f_p_CvFileStorage_p_CvFileNode__p_void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "new_CvType" "', argument " "4"" of type '" "CvReadFunc""'");
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvType *)new CvType((char const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvType, SWIG_POINTER_NEW | 0 );
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvType__SWIG_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
CvIsInstanceFunc arg2 = (CvIsInstanceFunc) 0 ;
|
|
CvReleaseFunc arg3 = (CvReleaseFunc) 0 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvType *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:new_CvType",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvType" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__void__int);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "new_CvType" "', argument " "2"" of type '" "CvIsInstanceFunc""'");
|
|
}
|
|
}
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj2, (void**)(&arg3), SWIGTYPE_p_f_p_p_void__void);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "new_CvType" "', argument " "3"" of type '" "CvReleaseFunc""'");
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvType *)new CvType((char const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvType, SWIG_POINTER_NEW | 0 );
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvType__SWIG_4(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
CvIsInstanceFunc arg2 = (CvIsInstanceFunc) 0 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvType *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:new_CvType",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CvType" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj1, (void**)(&arg2), SWIGTYPE_p_f_p_q_const__void__int);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "new_CvType" "', argument " "2"" of type '" "CvIsInstanceFunc""'");
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvType *)new CvType((char const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvType, SWIG_POINTER_NEW | 0 );
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvType(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[7];
|
|
int ii;
|
|
|
|
if (!PyTuple_Check(args)) SWIG_fail;
|
|
argc = (int)PyObject_Length(args);
|
|
for (ii = 0; (ii < argc) && (ii < 6); ii++) {
|
|
argv[ii] = PyTuple_GET_ITEM(args,ii);
|
|
}
|
|
if (argc == 2) {
|
|
int _v;
|
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertFunctionPtr(argv[1], &ptr, SWIGTYPE_p_f_p_q_const__void__int);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvType__SWIG_4(self, args);
|
|
}
|
|
}
|
|
}
|
|
if (argc == 3) {
|
|
int _v;
|
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertFunctionPtr(argv[1], &ptr, SWIGTYPE_p_f_p_q_const__void__int);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertFunctionPtr(argv[2], &ptr, SWIGTYPE_p_f_p_p_void__void);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvType__SWIG_3(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 4) {
|
|
int _v;
|
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertFunctionPtr(argv[1], &ptr, SWIGTYPE_p_f_p_q_const__void__int);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertFunctionPtr(argv[2], &ptr, SWIGTYPE_p_f_p_p_void__void);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertFunctionPtr(argv[3], &ptr, SWIGTYPE_p_f_p_CvFileStorage_p_CvFileNode__p_void);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvType__SWIG_2(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 5) {
|
|
int _v;
|
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertFunctionPtr(argv[1], &ptr, SWIGTYPE_p_f_p_q_const__void__int);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertFunctionPtr(argv[2], &ptr, SWIGTYPE_p_f_p_p_void__void);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertFunctionPtr(argv[3], &ptr, SWIGTYPE_p_f_p_CvFileStorage_p_CvFileNode__p_void);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertFunctionPtr(argv[4], &ptr, SWIGTYPE_p_f_p_CvFileStorage_p_q_const__char_p_q_const__void_CvAttrList__void);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvType__SWIG_1(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (argc == 6) {
|
|
int _v;
|
|
int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertFunctionPtr(argv[1], &ptr, SWIGTYPE_p_f_p_q_const__void__int);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertFunctionPtr(argv[2], &ptr, SWIGTYPE_p_f_p_p_void__void);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertFunctionPtr(argv[3], &ptr, SWIGTYPE_p_f_p_CvFileStorage_p_CvFileNode__p_void);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertFunctionPtr(argv[4], &ptr, SWIGTYPE_p_f_p_CvFileStorage_p_q_const__char_p_q_const__void_CvAttrList__void);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
void *ptr = 0;
|
|
int res = SWIG_ConvertFunctionPtr(argv[5], &ptr, SWIGTYPE_p_f_p_q_const__void__p_void);
|
|
_v = SWIG_CheckState(res);
|
|
if (_v) {
|
|
return _wrap_new_CvType__SWIG_0(self, args);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_CvType'.\n"
|
|
" Possible C/C++ prototypes are:\n"
|
|
" CvType(char const *,CvIsInstanceFunc,CvReleaseFunc,CvReadFunc,CvWriteFunc,CvCloneFunc)\n"
|
|
" CvType(char const *,CvIsInstanceFunc,CvReleaseFunc,CvReadFunc,CvWriteFunc)\n"
|
|
" CvType(char const *,CvIsInstanceFunc,CvReleaseFunc,CvReadFunc)\n"
|
|
" CvType(char const *,CvIsInstanceFunc,CvReleaseFunc)\n"
|
|
" CvType(char const *,CvIsInstanceFunc)\n");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvType *arg1 = (CvType *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvType",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvType, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvType" "', argument " "1"" of type '" "CvType *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvType * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvType_info_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvType *arg1 = (CvType *) 0 ;
|
|
CvTypeInfo *arg2 = (CvTypeInfo *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvType_info_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvType, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvType_info_set" "', argument " "1"" of type '" "CvType *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvType * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvTypeInfo, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvType_info_set" "', argument " "2"" of type '" "CvTypeInfo *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvTypeInfo * >(argp2);
|
|
if (arg1) (arg1)->info = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvType_info_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvType *arg1 = (CvType *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTypeInfo *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvType_info_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvType, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvType_info_get" "', argument " "1"" of type '" "CvType *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvType * >(argp1);
|
|
result = (CvTypeInfo *) ((arg1)->info);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypeInfo, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN int Swig_var_CvType_first_set(PyObject *_val) {
|
|
{
|
|
void *argp = 0;
|
|
int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_CvTypeInfo, 0 );
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""CvType::first""' of type '""CvTypeInfo *""'");
|
|
}
|
|
CvType::first = reinterpret_cast< CvTypeInfo * >(argp);
|
|
}
|
|
return 0;
|
|
fail:
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Swig_var_CvType_first_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(CvType::first), SWIGTYPE_p_CvTypeInfo, 0 );
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvType_first_get(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(args)) {
|
|
return Swig_var_CvType_first_get();
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvType_first_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *value;
|
|
int res;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:set",&value)) return NULL;
|
|
res = Swig_var_CvType_first_set(value);
|
|
return !res ? SWIG_Py_Void() : NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN int Swig_var_CvType_last_set(PyObject *_val) {
|
|
{
|
|
void *argp = 0;
|
|
int res = SWIG_ConvertPtr(_val, &argp, SWIGTYPE_p_CvTypeInfo, 0 );
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in variable '""CvType::last""' of type '""CvTypeInfo *""'");
|
|
}
|
|
CvType::last = reinterpret_cast< CvTypeInfo * >(argp);
|
|
}
|
|
return 0;
|
|
fail:
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Swig_var_CvType_last_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(CvType::last), SWIGTYPE_p_CvTypeInfo, 0 );
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvType_last_get(PyObject *SWIGUNUSEDPARM(self), PyObject *SWIGUNUSEDPARM(args)) {
|
|
return Swig_var_CvType_last_get();
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvType_last_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *value;
|
|
int res;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:set",&value)) return NULL;
|
|
res = Swig_var_CvType_last_set(value);
|
|
return !res ? SWIG_Py_Void() : NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvType_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvType, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m00_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMoments_m00_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m00_set" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMoments_m00_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->m00 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m00_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMoments_m00_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m00_get" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
result = (double) ((arg1)->m00);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m10_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMoments_m10_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m10_set" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMoments_m10_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->m10 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m10_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMoments_m10_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m10_get" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
result = (double) ((arg1)->m10);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m01_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMoments_m01_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m01_set" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMoments_m01_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->m01 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m01_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMoments_m01_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m01_get" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
result = (double) ((arg1)->m01);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m20_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMoments_m20_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m20_set" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMoments_m20_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->m20 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m20_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMoments_m20_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m20_get" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
result = (double) ((arg1)->m20);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m11_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMoments_m11_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m11_set" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMoments_m11_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->m11 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m11_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMoments_m11_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m11_get" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
result = (double) ((arg1)->m11);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m02_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMoments_m02_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m02_set" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMoments_m02_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->m02 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m02_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMoments_m02_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m02_get" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
result = (double) ((arg1)->m02);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m30_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMoments_m30_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m30_set" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMoments_m30_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->m30 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m30_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMoments_m30_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m30_get" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
result = (double) ((arg1)->m30);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m21_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMoments_m21_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m21_set" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMoments_m21_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->m21 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m21_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMoments_m21_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m21_get" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
result = (double) ((arg1)->m21);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m12_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMoments_m12_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m12_set" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMoments_m12_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->m12 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m12_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMoments_m12_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m12_get" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
result = (double) ((arg1)->m12);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m03_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMoments_m03_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m03_set" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMoments_m03_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->m03 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_m03_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMoments_m03_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_m03_get" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
result = (double) ((arg1)->m03);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_mu20_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMoments_mu20_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_mu20_set" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMoments_mu20_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->mu20 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_mu20_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMoments_mu20_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_mu20_get" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
result = (double) ((arg1)->mu20);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_mu11_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMoments_mu11_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_mu11_set" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMoments_mu11_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->mu11 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_mu11_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMoments_mu11_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_mu11_get" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
result = (double) ((arg1)->mu11);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_mu02_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMoments_mu02_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_mu02_set" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMoments_mu02_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->mu02 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_mu02_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMoments_mu02_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_mu02_get" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
result = (double) ((arg1)->mu02);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_mu30_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMoments_mu30_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_mu30_set" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMoments_mu30_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->mu30 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_mu30_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMoments_mu30_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_mu30_get" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
result = (double) ((arg1)->mu30);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_mu21_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMoments_mu21_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_mu21_set" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMoments_mu21_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->mu21 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_mu21_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMoments_mu21_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_mu21_get" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
result = (double) ((arg1)->mu21);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_mu12_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMoments_mu12_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_mu12_set" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMoments_mu12_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->mu12 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_mu12_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMoments_mu12_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_mu12_get" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
result = (double) ((arg1)->mu12);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_mu03_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMoments_mu03_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_mu03_set" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMoments_mu03_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->mu03 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_mu03_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMoments_mu03_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_mu03_get" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
result = (double) ((arg1)->mu03);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_inv_sqrt_m00_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMoments_inv_sqrt_m00_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_inv_sqrt_m00_set" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMoments_inv_sqrt_m00_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->inv_sqrt_m00 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMoments_inv_sqrt_m00_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMoments_inv_sqrt_m00_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMoments_inv_sqrt_m00_get" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
result = (double) ((arg1)->inv_sqrt_m00);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMoments(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvMoments")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvMoments *)new CvMoments();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMoments, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvMoments(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvMoments",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvMoments" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvMoments_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvMoments, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHuMoments_hu1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHuMoments *arg1 = (CvHuMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHuMoments_hu1_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHuMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHuMoments_hu1_set" "', argument " "1"" of type '" "CvHuMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHuMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHuMoments_hu1_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->hu1 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHuMoments_hu1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHuMoments *arg1 = (CvHuMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHuMoments_hu1_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHuMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHuMoments_hu1_get" "', argument " "1"" of type '" "CvHuMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHuMoments * >(argp1);
|
|
result = (double) ((arg1)->hu1);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHuMoments_hu2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHuMoments *arg1 = (CvHuMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHuMoments_hu2_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHuMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHuMoments_hu2_set" "', argument " "1"" of type '" "CvHuMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHuMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHuMoments_hu2_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->hu2 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHuMoments_hu2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHuMoments *arg1 = (CvHuMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHuMoments_hu2_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHuMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHuMoments_hu2_get" "', argument " "1"" of type '" "CvHuMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHuMoments * >(argp1);
|
|
result = (double) ((arg1)->hu2);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHuMoments_hu3_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHuMoments *arg1 = (CvHuMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHuMoments_hu3_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHuMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHuMoments_hu3_set" "', argument " "1"" of type '" "CvHuMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHuMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHuMoments_hu3_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->hu3 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHuMoments_hu3_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHuMoments *arg1 = (CvHuMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHuMoments_hu3_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHuMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHuMoments_hu3_get" "', argument " "1"" of type '" "CvHuMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHuMoments * >(argp1);
|
|
result = (double) ((arg1)->hu3);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHuMoments_hu4_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHuMoments *arg1 = (CvHuMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHuMoments_hu4_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHuMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHuMoments_hu4_set" "', argument " "1"" of type '" "CvHuMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHuMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHuMoments_hu4_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->hu4 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHuMoments_hu4_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHuMoments *arg1 = (CvHuMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHuMoments_hu4_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHuMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHuMoments_hu4_get" "', argument " "1"" of type '" "CvHuMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHuMoments * >(argp1);
|
|
result = (double) ((arg1)->hu4);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHuMoments_hu5_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHuMoments *arg1 = (CvHuMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHuMoments_hu5_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHuMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHuMoments_hu5_set" "', argument " "1"" of type '" "CvHuMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHuMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHuMoments_hu5_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->hu5 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHuMoments_hu5_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHuMoments *arg1 = (CvHuMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHuMoments_hu5_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHuMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHuMoments_hu5_get" "', argument " "1"" of type '" "CvHuMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHuMoments * >(argp1);
|
|
result = (double) ((arg1)->hu5);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHuMoments_hu6_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHuMoments *arg1 = (CvHuMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHuMoments_hu6_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHuMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHuMoments_hu6_set" "', argument " "1"" of type '" "CvHuMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHuMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHuMoments_hu6_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->hu6 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHuMoments_hu6_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHuMoments *arg1 = (CvHuMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHuMoments_hu6_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHuMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHuMoments_hu6_get" "', argument " "1"" of type '" "CvHuMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHuMoments * >(argp1);
|
|
result = (double) ((arg1)->hu6);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHuMoments_hu7_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHuMoments *arg1 = (CvHuMoments *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHuMoments_hu7_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHuMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHuMoments_hu7_set" "', argument " "1"" of type '" "CvHuMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHuMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHuMoments_hu7_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->hu7 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHuMoments_hu7_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHuMoments *arg1 = (CvHuMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHuMoments_hu7_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHuMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHuMoments_hu7_get" "', argument " "1"" of type '" "CvHuMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHuMoments * >(argp1);
|
|
result = (double) ((arg1)->hu7);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvHuMoments(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHuMoments *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvHuMoments")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvHuMoments *)new CvHuMoments();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvHuMoments, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvHuMoments(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHuMoments *arg1 = (CvHuMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvHuMoments",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHuMoments, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvHuMoments" "', argument " "1"" of type '" "CvHuMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHuMoments * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvHuMoments_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvHuMoments, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConnectedComp_area_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConnectedComp *arg1 = (CvConnectedComp *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConnectedComp_area_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConnectedComp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConnectedComp_area_set" "', argument " "1"" of type '" "CvConnectedComp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConnectedComp * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvConnectedComp_area_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->area = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConnectedComp_area_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConnectedComp *arg1 = (CvConnectedComp *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConnectedComp_area_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConnectedComp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConnectedComp_area_get" "', argument " "1"" of type '" "CvConnectedComp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConnectedComp * >(argp1);
|
|
result = (double) ((arg1)->area);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConnectedComp_value_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConnectedComp *arg1 = (CvConnectedComp *) 0 ;
|
|
CvScalar *arg2 = (CvScalar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConnectedComp_value_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConnectedComp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConnectedComp_value_set" "', argument " "1"" of type '" "CvConnectedComp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConnectedComp * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvScalar, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvConnectedComp_value_set" "', argument " "2"" of type '" "CvScalar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvScalar * >(argp2);
|
|
if (arg1) (arg1)->value = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConnectedComp_value_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConnectedComp *arg1 = (CvConnectedComp *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvScalar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConnectedComp_value_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConnectedComp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConnectedComp_value_get" "', argument " "1"" of type '" "CvConnectedComp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConnectedComp * >(argp1);
|
|
result = (CvScalar *)& ((arg1)->value);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvScalar, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConnectedComp_rect_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConnectedComp *arg1 = (CvConnectedComp *) 0 ;
|
|
CvRect *arg2 = (CvRect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConnectedComp_rect_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConnectedComp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConnectedComp_rect_set" "', argument " "1"" of type '" "CvConnectedComp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConnectedComp * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvConnectedComp_rect_set" "', argument " "2"" of type '" "CvRect *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvRect * >(argp2);
|
|
if (arg1) (arg1)->rect = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConnectedComp_rect_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConnectedComp *arg1 = (CvConnectedComp *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvRect *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConnectedComp_rect_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConnectedComp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConnectedComp_rect_get" "', argument " "1"" of type '" "CvConnectedComp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConnectedComp * >(argp1);
|
|
result = (CvRect *)& ((arg1)->rect);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvRect, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConnectedComp_contour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConnectedComp *arg1 = (CvConnectedComp *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConnectedComp_contour_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConnectedComp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConnectedComp_contour_set" "', argument " "1"" of type '" "CvConnectedComp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConnectedComp * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->contour = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConnectedComp_contour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConnectedComp *arg1 = (CvConnectedComp *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConnectedComp_contour_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConnectedComp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConnectedComp_contour_get" "', argument " "1"" of type '" "CvConnectedComp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConnectedComp * >(argp1);
|
|
result = (CvSeq *) ((arg1)->contour);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvConnectedComp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConnectedComp *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvConnectedComp")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvConnectedComp *)new CvConnectedComp();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvConnectedComp, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvConnectedComp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConnectedComp *arg1 = (CvConnectedComp *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvConnectedComp",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConnectedComp, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvConnectedComp" "', argument " "1"" of type '" "CvConnectedComp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConnectedComp * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvConnectedComp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvConnectedComp, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_header_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChainPtReader_header_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_header_size_set" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvChainPtReader_header_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->header_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_header_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChainPtReader_header_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_header_size_get" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
result = (int) ((arg1)->header_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_seq_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChainPtReader_seq_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_seq_set" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->seq = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_seq_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChainPtReader_seq_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_seq_get" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
result = (CvSeq *) ((arg1)->seq);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_block_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChainPtReader_block_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_block_set" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvChainPtReader_block_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->block = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_block_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChainPtReader_block_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_block_get" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
result = (CvSeqBlock *) ((arg1)->block);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_ptr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChainPtReader_ptr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_ptr_set" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvChainPtReader_ptr_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->ptr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_ptr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChainPtReader_ptr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_ptr_get" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
result = (schar *) ((arg1)->ptr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_block_min_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChainPtReader_block_min_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_block_min_set" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvChainPtReader_block_min_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->block_min = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_block_min_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChainPtReader_block_min_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_block_min_get" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
result = (schar *) ((arg1)->block_min);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_block_max_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChainPtReader_block_max_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_block_max_set" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvChainPtReader_block_max_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->block_max = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_block_max_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChainPtReader_block_max_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_block_max_get" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
result = (schar *) ((arg1)->block_max);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_delta_index_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChainPtReader_delta_index_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_delta_index_set" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvChainPtReader_delta_index_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->delta_index = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_delta_index_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChainPtReader_delta_index_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_delta_index_get" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
result = (int) ((arg1)->delta_index);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_prev_elem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChainPtReader_prev_elem_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_prev_elem_set" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvChainPtReader_prev_elem_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->prev_elem = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_prev_elem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChainPtReader_prev_elem_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_prev_elem_get" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
result = (schar *) ((arg1)->prev_elem);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
char arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChainPtReader_code_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_code_set" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
ecode2 = SWIG_AsVal_char(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvChainPtReader_code_set" "', argument " "2"" of type '" "char""'");
|
|
}
|
|
arg2 = static_cast< char >(val2);
|
|
if (arg1) (arg1)->code = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChainPtReader_code_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_code_get" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
result = (char) ((arg1)->code);
|
|
resultobj = SWIG_From_char(static_cast< char >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_pt_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
CvPoint *arg2 = (CvPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChainPtReader_pt_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_pt_set" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvChainPtReader_pt_set" "', argument " "2"" of type '" "CvPoint *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint * >(argp2);
|
|
if (arg1) (arg1)->pt = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_pt_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChainPtReader_pt_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_pt_get" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
result = (CvPoint *)& ((arg1)->pt);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_deltas_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
schar (*arg2)[2] ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvChainPtReader_deltas_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_deltas_set" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_a_2__signed_char, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvChainPtReader_deltas_set" "', argument " "2"" of type '" "schar [8][2]""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar (*)[2] >(argp2);
|
|
{
|
|
if (arg2) {
|
|
size_t ii = 0;
|
|
for (; ii < (size_t)8; ++ii) {
|
|
if (arg2[ii]) {
|
|
size_t jj = 0;
|
|
for (; jj < (size_t)2; ++jj) arg1->deltas[ii][jj] = arg2[ii][jj];
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""deltas""' of type '""schar [8][2]""'");
|
|
}
|
|
}
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""deltas""' of type '""schar [8][2]""'");
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvChainPtReader_deltas_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar (*result)[2] = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvChainPtReader_deltas_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvChainPtReader_deltas_get" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
result = (schar (*)[2])(schar (*)[2]) ((arg1)->deltas);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_2__signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvChainPtReader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvChainPtReader")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvChainPtReader *)new CvChainPtReader();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvChainPtReader, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvChainPtReader(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvChainPtReader",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvChainPtReader" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvChainPtReader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvChainPtReader, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_flags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContourTree_flags_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_flags_set" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvContourTree_flags_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->flags = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_flags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContourTree_flags_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_flags_get" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
result = (int) ((arg1)->flags);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_header_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContourTree_header_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_header_size_set" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvContourTree_header_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->header_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_header_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContourTree_header_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_header_size_get" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
result = (int) ((arg1)->header_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_h_prev_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContourTree_h_prev_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_h_prev_set" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->h_prev = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_h_prev_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContourTree_h_prev_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_h_prev_get" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
result = (CvSeq *) ((arg1)->h_prev);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_h_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContourTree_h_next_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_h_next_set" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->h_next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_h_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContourTree_h_next_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_h_next_get" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
result = (CvSeq *) ((arg1)->h_next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_v_prev_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContourTree_v_prev_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_v_prev_set" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->v_prev = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_v_prev_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContourTree_v_prev_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_v_prev_get" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
result = (CvSeq *) ((arg1)->v_prev);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_v_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContourTree_v_next_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_v_next_set" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->v_next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_v_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContourTree_v_next_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_v_next_get" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
result = (CvSeq *) ((arg1)->v_next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_total_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContourTree_total_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_total_set" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvContourTree_total_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->total = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_total_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContourTree_total_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_total_get" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
result = (int) ((arg1)->total);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_elem_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContourTree_elem_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_elem_size_set" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvContourTree_elem_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->elem_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_elem_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContourTree_elem_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_elem_size_get" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
result = (int) ((arg1)->elem_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_block_max_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContourTree_block_max_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_block_max_set" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvContourTree_block_max_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->block_max = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_block_max_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContourTree_block_max_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_block_max_get" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
result = (schar *) ((arg1)->block_max);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_ptr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContourTree_ptr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_ptr_set" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvContourTree_ptr_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->ptr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_ptr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContourTree_ptr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_ptr_get" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
result = (schar *) ((arg1)->ptr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_delta_elems_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContourTree_delta_elems_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_delta_elems_set" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvContourTree_delta_elems_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->delta_elems = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_delta_elems_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContourTree_delta_elems_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_delta_elems_get" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
result = (int) ((arg1)->delta_elems);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_storage_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContourTree_storage_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_storage_set" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvContourTree_storage_set" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
if (arg1) (arg1)->storage = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_storage_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMemStorage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContourTree_storage_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_storage_get" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
result = (CvMemStorage *) ((arg1)->storage);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_free_blocks_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContourTree_free_blocks_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_free_blocks_set" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvContourTree_free_blocks_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->free_blocks = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_free_blocks_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContourTree_free_blocks_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_free_blocks_get" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
result = (CvSeqBlock *) ((arg1)->free_blocks);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_first_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContourTree_first_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_first_set" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvContourTree_first_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->first = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_first_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContourTree_first_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_first_get" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
result = (CvSeqBlock *) ((arg1)->first);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_p1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
CvPoint *arg2 = (CvPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContourTree_p1_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_p1_set" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvContourTree_p1_set" "', argument " "2"" of type '" "CvPoint *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint * >(argp2);
|
|
if (arg1) (arg1)->p1 = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_p1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContourTree_p1_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_p1_get" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
result = (CvPoint *)& ((arg1)->p1);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_p2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
CvPoint *arg2 = (CvPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvContourTree_p2_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_p2_set" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvContourTree_p2_set" "', argument " "2"" of type '" "CvPoint *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint * >(argp2);
|
|
if (arg1) (arg1)->p2 = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvContourTree_p2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvContourTree_p2_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvContourTree_p2_get" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
result = (CvPoint *)& ((arg1)->p2);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvContourTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvContourTree")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvContourTree *)new CvContourTree();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvContourTree, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvContourTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvContourTree",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvContourTree" "', argument " "1"" of type '" "CvContourTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvContourTree_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvContourTree, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConvexityDefect_start_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConvexityDefect *arg1 = (CvConvexityDefect *) 0 ;
|
|
CvPoint *arg2 = (CvPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConvexityDefect_start_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConvexityDefect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConvexityDefect_start_set" "', argument " "1"" of type '" "CvConvexityDefect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConvexityDefect * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvConvexityDefect_start_set" "', argument " "2"" of type '" "CvPoint *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint * >(argp2);
|
|
if (arg1) (arg1)->start = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConvexityDefect_start_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConvexityDefect *arg1 = (CvConvexityDefect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConvexityDefect_start_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConvexityDefect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConvexityDefect_start_get" "', argument " "1"" of type '" "CvConvexityDefect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConvexityDefect * >(argp1);
|
|
result = (CvPoint *) ((arg1)->start);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConvexityDefect_end_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConvexityDefect *arg1 = (CvConvexityDefect *) 0 ;
|
|
CvPoint *arg2 = (CvPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConvexityDefect_end_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConvexityDefect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConvexityDefect_end_set" "', argument " "1"" of type '" "CvConvexityDefect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConvexityDefect * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvConvexityDefect_end_set" "', argument " "2"" of type '" "CvPoint *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint * >(argp2);
|
|
if (arg1) (arg1)->end = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConvexityDefect_end_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConvexityDefect *arg1 = (CvConvexityDefect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConvexityDefect_end_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConvexityDefect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConvexityDefect_end_get" "', argument " "1"" of type '" "CvConvexityDefect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConvexityDefect * >(argp1);
|
|
result = (CvPoint *) ((arg1)->end);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConvexityDefect_depth_point_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConvexityDefect *arg1 = (CvConvexityDefect *) 0 ;
|
|
CvPoint *arg2 = (CvPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConvexityDefect_depth_point_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConvexityDefect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConvexityDefect_depth_point_set" "', argument " "1"" of type '" "CvConvexityDefect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConvexityDefect * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvConvexityDefect_depth_point_set" "', argument " "2"" of type '" "CvPoint *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint * >(argp2);
|
|
if (arg1) (arg1)->depth_point = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConvexityDefect_depth_point_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConvexityDefect *arg1 = (CvConvexityDefect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConvexityDefect_depth_point_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConvexityDefect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConvexityDefect_depth_point_get" "', argument " "1"" of type '" "CvConvexityDefect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConvexityDefect * >(argp1);
|
|
result = (CvPoint *) ((arg1)->depth_point);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConvexityDefect_depth_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConvexityDefect *arg1 = (CvConvexityDefect *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConvexityDefect_depth_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConvexityDefect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConvexityDefect_depth_set" "', argument " "1"" of type '" "CvConvexityDefect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConvexityDefect * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvConvexityDefect_depth_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->depth = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConvexityDefect_depth_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConvexityDefect *arg1 = (CvConvexityDefect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConvexityDefect_depth_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConvexityDefect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConvexityDefect_depth_get" "', argument " "1"" of type '" "CvConvexityDefect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConvexityDefect * >(argp1);
|
|
result = (float) ((arg1)->depth);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvConvexityDefect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConvexityDefect *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvConvexityDefect")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvConvexityDefect *)new CvConvexityDefect();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvConvexityDefect, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvConvexityDefect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConvexityDefect *arg1 = (CvConvexityDefect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvConvexityDefect",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConvexityDefect, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvConvexityDefect" "', argument " "1"" of type '" "CvConvexityDefect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConvexityDefect * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvConvexityDefect_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvConvexityDefect, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvQuadEdge2D_flags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvQuadEdge2D *arg1 = (CvQuadEdge2D *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvQuadEdge2D_flags_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvQuadEdge2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvQuadEdge2D_flags_set" "', argument " "1"" of type '" "CvQuadEdge2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvQuadEdge2D * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvQuadEdge2D_flags_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->flags = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvQuadEdge2D_flags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvQuadEdge2D *arg1 = (CvQuadEdge2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvQuadEdge2D_flags_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvQuadEdge2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvQuadEdge2D_flags_get" "', argument " "1"" of type '" "CvQuadEdge2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvQuadEdge2D * >(argp1);
|
|
result = (int) ((arg1)->flags);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvQuadEdge2D_pt_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvQuadEdge2D *arg1 = (CvQuadEdge2D *) 0 ;
|
|
CvSubdiv2DPoint **arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvQuadEdge2D_pt_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvQuadEdge2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvQuadEdge2D_pt_set" "', argument " "1"" of type '" "CvQuadEdge2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvQuadEdge2D * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_p_CvSubdiv2DPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvQuadEdge2D_pt_set" "', argument " "2"" of type '" "CvSubdiv2DPoint *[4]""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSubdiv2DPoint ** >(argp2);
|
|
{
|
|
if (arg2) {
|
|
size_t ii = 0;
|
|
for (; ii < (size_t)4; ++ii) arg1->pt[ii] = arg2[ii];
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""pt""' of type '""CvSubdiv2DPoint *[4]""'");
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvQuadEdge2D_pt_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvQuadEdge2D *arg1 = (CvQuadEdge2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSubdiv2DPoint **result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvQuadEdge2D_pt_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvQuadEdge2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvQuadEdge2D_pt_get" "', argument " "1"" of type '" "CvQuadEdge2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvQuadEdge2D * >(argp1);
|
|
result = (CvSubdiv2DPoint **)(CvSubdiv2DPoint **) ((arg1)->pt);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_CvSubdiv2DPoint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvQuadEdge2D_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvQuadEdge2D *arg1 = (CvQuadEdge2D *) 0 ;
|
|
CvSubdiv2DEdge *arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvQuadEdge2D_next_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvQuadEdge2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvQuadEdge2D_next_set" "', argument " "1"" of type '" "CvQuadEdge2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvQuadEdge2D * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_size_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvQuadEdge2D_next_set" "', argument " "2"" of type '" "CvSubdiv2DEdge [4]""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSubdiv2DEdge * >(argp2);
|
|
{
|
|
if (arg2) {
|
|
size_t ii = 0;
|
|
for (; ii < (size_t)4; ++ii) arg1->next[ii] = arg2[ii];
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""next""' of type '""CvSubdiv2DEdge [4]""'");
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvQuadEdge2D_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvQuadEdge2D *arg1 = (CvQuadEdge2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSubdiv2DEdge *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvQuadEdge2D_next_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvQuadEdge2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvQuadEdge2D_next_get" "', argument " "1"" of type '" "CvQuadEdge2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvQuadEdge2D * >(argp1);
|
|
result = (CvSubdiv2DEdge *)(CvSubdiv2DEdge *) ((arg1)->next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_size_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvQuadEdge2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvQuadEdge2D *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvQuadEdge2D")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvQuadEdge2D *)new CvQuadEdge2D();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvQuadEdge2D, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvQuadEdge2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvQuadEdge2D *arg1 = (CvQuadEdge2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvQuadEdge2D",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvQuadEdge2D, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvQuadEdge2D" "', argument " "1"" of type '" "CvQuadEdge2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvQuadEdge2D * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvQuadEdge2D_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvQuadEdge2D, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2DPoint_flags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DPoint *arg1 = (CvSubdiv2DPoint *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2DPoint_flags_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2DPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2DPoint_flags_set" "', argument " "1"" of type '" "CvSubdiv2DPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2DPoint * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSubdiv2DPoint_flags_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->flags = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2DPoint_flags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DPoint *arg1 = (CvSubdiv2DPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2DPoint_flags_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2DPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2DPoint_flags_get" "', argument " "1"" of type '" "CvSubdiv2DPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2DPoint * >(argp1);
|
|
result = (int) ((arg1)->flags);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2DPoint_first_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DPoint *arg1 = (CvSubdiv2DPoint *) 0 ;
|
|
CvSubdiv2DEdge arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
CvSubdiv2DEdge_Wrapper *wrapper2 ;
|
|
CvQuadEdge2D *qedge2 ;
|
|
void *vptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2DPoint_first_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2DPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2DPoint_first_set" "', argument " "1"" of type '" "CvSubdiv2DPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2DPoint * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &vptr2, SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 0) != -1 ){
|
|
wrapper2 = (CvSubdiv2DEdge_Wrapper *) vptr2;
|
|
arg2 = wrapper2->ref();
|
|
}
|
|
else if( SWIG_ConvertPtr(obj1, &vptr2, SWIGTYPE_p_CvQuadEdge2D, 0) != -1 ){
|
|
qedge2 = (CvQuadEdge2D *) vptr2;
|
|
arg2 = (CvSubdiv2DEdge)qedge2;
|
|
}
|
|
else{
|
|
SWIG_exception( SWIG_TypeError, "could not convert to CvSubdiv2DEdge");
|
|
return NULL;
|
|
}
|
|
}
|
|
if (arg1) (arg1)->first = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2DPoint_first_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DPoint *arg1 = (CvSubdiv2DPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSubdiv2DEdge result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2DPoint_first_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2DPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2DPoint_first_get" "', argument " "1"" of type '" "CvSubdiv2DPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2DPoint * >(argp1);
|
|
result = ((arg1)->first);
|
|
{
|
|
CvSubdiv2DEdge_Wrapper * wrapper = new CvSubdiv2DEdge_Wrapper( result );
|
|
resultobj = SWIG_NewPointerObj( wrapper, SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 1 );
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2DPoint_pt_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DPoint *arg1 = (CvSubdiv2DPoint *) 0 ;
|
|
CvPoint2D32f *arg2 = (CvPoint2D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2DPoint_pt_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2DPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2DPoint_pt_set" "', argument " "1"" of type '" "CvSubdiv2DPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2DPoint * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSubdiv2DPoint_pt_set" "', argument " "2"" of type '" "CvPoint2D32f *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint2D32f * >(argp2);
|
|
if (arg1) (arg1)->pt = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2DPoint_pt_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DPoint *arg1 = (CvSubdiv2DPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint2D32f *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2DPoint_pt_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2DPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2DPoint_pt_get" "', argument " "1"" of type '" "CvSubdiv2DPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2DPoint * >(argp1);
|
|
result = (CvPoint2D32f *)& ((arg1)->pt);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSubdiv2DPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSubdiv2DPoint")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvSubdiv2DPoint *)new CvSubdiv2DPoint();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSubdiv2DPoint, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSubdiv2DPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DPoint *arg1 = (CvSubdiv2DPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSubdiv2DPoint",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2DPoint, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSubdiv2DPoint" "', argument " "1"" of type '" "CvSubdiv2DPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2DPoint * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSubdiv2DPoint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvSubdiv2DPoint, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_flags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_flags_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_flags_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSubdiv2D_flags_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->flags = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_flags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_flags_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_flags_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (int) ((arg1)->flags);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_header_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_header_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_header_size_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSubdiv2D_header_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->header_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_header_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_header_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_header_size_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (int) ((arg1)->header_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_h_prev_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_h_prev_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_h_prev_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->h_prev = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_h_prev_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_h_prev_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_h_prev_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (CvSeq *) ((arg1)->h_prev);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_h_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_h_next_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_h_next_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->h_next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_h_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_h_next_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_h_next_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (CvSeq *) ((arg1)->h_next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_v_prev_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_v_prev_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_v_prev_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->v_prev = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_v_prev_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_v_prev_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_v_prev_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (CvSeq *) ((arg1)->v_prev);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_v_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_v_next_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_v_next_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
if (arg1) (arg1)->v_next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_v_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_v_next_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_v_next_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (CvSeq *) ((arg1)->v_next);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_total_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_total_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_total_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSubdiv2D_total_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->total = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_total_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_total_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_total_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (int) ((arg1)->total);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_elem_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_elem_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_elem_size_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSubdiv2D_elem_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->elem_size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_elem_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_elem_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_elem_size_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (int) ((arg1)->elem_size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_block_max_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_block_max_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_block_max_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSubdiv2D_block_max_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->block_max = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_block_max_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_block_max_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_block_max_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (schar *) ((arg1)->block_max);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_ptr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
schar *arg2 = (schar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_ptr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_ptr_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_signed_char, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSubdiv2D_ptr_set" "', argument " "2"" of type '" "schar *""'");
|
|
}
|
|
arg2 = reinterpret_cast< schar * >(argp2);
|
|
if (arg1) (arg1)->ptr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_ptr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
schar *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_ptr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_ptr_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (schar *) ((arg1)->ptr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_signed_char, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_delta_elems_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_delta_elems_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_delta_elems_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSubdiv2D_delta_elems_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->delta_elems = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_delta_elems_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_delta_elems_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_delta_elems_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (int) ((arg1)->delta_elems);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_storage_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_storage_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_storage_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSubdiv2D_storage_set" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
if (arg1) (arg1)->storage = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_storage_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMemStorage *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_storage_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_storage_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (CvMemStorage *) ((arg1)->storage);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_free_blocks_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_free_blocks_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_free_blocks_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSubdiv2D_free_blocks_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->free_blocks = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_free_blocks_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_free_blocks_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_free_blocks_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (CvSeqBlock *) ((arg1)->free_blocks);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_first_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
CvSeqBlock *arg2 = (CvSeqBlock *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_first_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_first_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSeqBlock, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSubdiv2D_first_set" "', argument " "2"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSeqBlock * >(argp2);
|
|
if (arg1) (arg1)->first = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_first_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeqBlock *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_first_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_first_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (CvSeqBlock *) ((arg1)->first);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_free_elems_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
CvSetElem *arg2 = (CvSetElem *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_free_elems_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_free_elems_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSetElem, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSubdiv2D_free_elems_set" "', argument " "2"" of type '" "CvSetElem *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSetElem * >(argp2);
|
|
if (arg1) (arg1)->free_elems = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_free_elems_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSetElem *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_free_elems_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_free_elems_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (CvSetElem *) ((arg1)->free_elems);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSetElem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_active_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_active_count_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_active_count_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSubdiv2D_active_count_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->active_count = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_active_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_active_count_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_active_count_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (int) ((arg1)->active_count);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_quad_edges_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_quad_edges_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_quad_edges_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSubdiv2D_quad_edges_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->quad_edges = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_quad_edges_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_quad_edges_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_quad_edges_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (int) ((arg1)->quad_edges);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_is_geometry_valid_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_is_geometry_valid_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_is_geometry_valid_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSubdiv2D_is_geometry_valid_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->is_geometry_valid = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_is_geometry_valid_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_is_geometry_valid_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_is_geometry_valid_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (int) ((arg1)->is_geometry_valid);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_recent_edge_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
CvSubdiv2DEdge arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
CvSubdiv2DEdge_Wrapper *wrapper2 ;
|
|
CvQuadEdge2D *qedge2 ;
|
|
void *vptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_recent_edge_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_recent_edge_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &vptr2, SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 0) != -1 ){
|
|
wrapper2 = (CvSubdiv2DEdge_Wrapper *) vptr2;
|
|
arg2 = wrapper2->ref();
|
|
}
|
|
else if( SWIG_ConvertPtr(obj1, &vptr2, SWIGTYPE_p_CvQuadEdge2D, 0) != -1 ){
|
|
qedge2 = (CvQuadEdge2D *) vptr2;
|
|
arg2 = (CvSubdiv2DEdge)qedge2;
|
|
}
|
|
else{
|
|
SWIG_exception( SWIG_TypeError, "could not convert to CvSubdiv2DEdge");
|
|
return NULL;
|
|
}
|
|
}
|
|
if (arg1) (arg1)->recent_edge = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_recent_edge_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSubdiv2DEdge result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_recent_edge_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_recent_edge_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = ((arg1)->recent_edge);
|
|
{
|
|
CvSubdiv2DEdge_Wrapper * wrapper = new CvSubdiv2DEdge_Wrapper( result );
|
|
resultobj = SWIG_NewPointerObj( wrapper, SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 1 );
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_topleft_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
CvPoint2D32f *arg2 = (CvPoint2D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_topleft_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_topleft_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSubdiv2D_topleft_set" "', argument " "2"" of type '" "CvPoint2D32f *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint2D32f * >(argp2);
|
|
if (arg1) (arg1)->topleft = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_topleft_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint2D32f *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_topleft_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_topleft_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (CvPoint2D32f *)& ((arg1)->topleft);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_bottomright_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
CvPoint2D32f *arg2 = (CvPoint2D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_bottomright_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_bottomright_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSubdiv2D_bottomright_set" "', argument " "2"" of type '" "CvPoint2D32f *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint2D32f * >(argp2);
|
|
if (arg1) (arg1)->bottomright = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_bottomright_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint2D32f *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_bottomright_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_bottomright_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
result = (CvPoint2D32f *)& ((arg1)->bottomright);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_edges_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
CvTypedSeq< CvQuadEdge2D > *arg2 = (CvTypedSeq< CvQuadEdge2D > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_edges_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_edges_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvTypedSeqT_CvQuadEdge2D_t, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSubdiv2D_edges_set" "', argument " "2"" of type '" "CvTypedSeq< CvQuadEdge2D > *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvTypedSeq< CvQuadEdge2D > * >(argp2);
|
|
{
|
|
try {
|
|
CvSubdiv2D_typed_edges_set(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_edges_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTypedSeq< CvQuadEdge2D > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_edges_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_edges_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvQuadEdge2D > *)CvSubdiv2D_typed_edges_get(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvQuadEdge2D_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_typed_edges_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTypedSeq< CvQuadEdge2D > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSubdiv2D_typed_edges_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_typed_edges_get" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvQuadEdge2D > *)CvSubdiv2D_typed_edges_get(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvQuadEdge2D_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSubdiv2D_typed_edges_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
CvTypedSeq< CvQuadEdge2D > *arg2 = (CvTypedSeq< CvQuadEdge2D > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSubdiv2D_typed_edges_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSubdiv2D_typed_edges_set" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvTypedSeqT_CvQuadEdge2D_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSubdiv2D_typed_edges_set" "', argument " "2"" of type '" "CvTypedSeq< CvQuadEdge2D > *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvTypedSeq< CvQuadEdge2D > * >(argp2);
|
|
{
|
|
try {
|
|
CvSubdiv2D_typed_edges_set(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSubdiv2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSubdiv2D")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvSubdiv2D *)new CvSubdiv2D();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSubdiv2D, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSubdiv2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSubdiv2D",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSubdiv2D" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSubdiv2D_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvSubdiv2D, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix3_m_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix3 *arg1 = (CvMatrix3 *) 0 ;
|
|
float (*arg2)[3] ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMatrix3_m_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix3, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix3_m_set" "', argument " "1"" of type '" "CvMatrix3 *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix3 * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_a_3__float, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvMatrix3_m_set" "', argument " "2"" of type '" "float [3][3]""'");
|
|
}
|
|
arg2 = reinterpret_cast< float (*)[3] >(argp2);
|
|
{
|
|
if (arg2) {
|
|
size_t ii = 0;
|
|
for (; ii < (size_t)3; ++ii) {
|
|
if (arg2[ii]) {
|
|
size_t jj = 0;
|
|
for (; jj < (size_t)3; ++jj) arg1->m[ii][jj] = arg2[ii][jj];
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""m""' of type '""float [3][3]""'");
|
|
}
|
|
}
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""m""' of type '""float [3][3]""'");
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMatrix3_m_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix3 *arg1 = (CvMatrix3 *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float (*result)[3] = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMatrix3_m_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix3, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMatrix3_m_get" "', argument " "1"" of type '" "CvMatrix3 *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix3 * >(argp1);
|
|
result = (float (*)[3])(float (*)[3]) ((arg1)->m);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_a_3__float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMatrix3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix3 *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvMatrix3")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvMatrix3 *)new CvMatrix3();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMatrix3, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvMatrix3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMatrix3 *arg1 = (CvMatrix3 *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvMatrix3",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMatrix3, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvMatrix3" "', argument " "1"" of type '" "CvMatrix3 *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMatrix3 * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvMatrix3_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvMatrix3, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_MP_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConDensation_MP_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_MP_set" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvConDensation_MP_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->MP = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_MP_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConDensation_MP_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_MP_get" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
result = (int) ((arg1)->MP);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_DP_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConDensation_DP_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_DP_set" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvConDensation_DP_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->DP = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_DP_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConDensation_DP_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_DP_get" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
result = (int) ((arg1)->DP);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_DynamMatr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConDensation_DynamMatr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_DynamMatr_set" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvConDensation_DynamMatr_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->DynamMatr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_DynamMatr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConDensation_DynamMatr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_DynamMatr_get" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
result = (float *) ((arg1)->DynamMatr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_State_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConDensation_State_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_State_set" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvConDensation_State_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->State = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_State_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConDensation_State_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_State_get" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
result = (float *) ((arg1)->State);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_SamplesNum_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConDensation_SamplesNum_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_SamplesNum_set" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvConDensation_SamplesNum_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->SamplesNum = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_SamplesNum_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConDensation_SamplesNum_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_SamplesNum_get" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
result = (int) ((arg1)->SamplesNum);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_flSamples_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
float **arg2 = (float **) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *vptr2 ;
|
|
float *buffer2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConDensation_flSamples_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_flSamples_set" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
{
|
|
if ((SWIG_ConvertPtr(obj1, &vptr2, SWIGTYPE_p_float, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer2 = (float *) vptr2;
|
|
arg2=&buffer2;
|
|
}
|
|
if (arg1) (arg1)->flSamples = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_flSamples_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float **result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConDensation_flSamples_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_flSamples_get" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
result = (float **) ((arg1)->flSamples);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_flNewSamples_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
float **arg2 = (float **) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *vptr2 ;
|
|
float *buffer2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConDensation_flNewSamples_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_flNewSamples_set" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
{
|
|
if ((SWIG_ConvertPtr(obj1, &vptr2, SWIGTYPE_p_float, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer2 = (float *) vptr2;
|
|
arg2=&buffer2;
|
|
}
|
|
if (arg1) (arg1)->flNewSamples = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_flNewSamples_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float **result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConDensation_flNewSamples_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_flNewSamples_get" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
result = (float **) ((arg1)->flNewSamples);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_flConfidence_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConDensation_flConfidence_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_flConfidence_set" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvConDensation_flConfidence_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->flConfidence = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_flConfidence_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConDensation_flConfidence_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_flConfidence_get" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
result = (float *) ((arg1)->flConfidence);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_flCumulative_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConDensation_flCumulative_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_flCumulative_set" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvConDensation_flCumulative_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->flCumulative = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_flCumulative_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConDensation_flCumulative_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_flCumulative_get" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
result = (float *) ((arg1)->flCumulative);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_Temp_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConDensation_Temp_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_Temp_set" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvConDensation_Temp_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->Temp = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_Temp_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConDensation_Temp_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_Temp_get" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
result = (float *) ((arg1)->Temp);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_RandomSample_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConDensation_RandomSample_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_RandomSample_set" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvConDensation_RandomSample_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->RandomSample = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_RandomSample_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConDensation_RandomSample_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_RandomSample_get" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
result = (float *) ((arg1)->RandomSample);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_RandS_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
CvRandState *arg2 = (CvRandState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvConDensation_RandS_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_RandS_set" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvRandState, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvConDensation_RandS_set" "', argument " "2"" of type '" "CvRandState *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvRandState * >(argp2);
|
|
if (arg1) (arg1)->RandS = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvConDensation_RandS_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvRandState *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvConDensation_RandS_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvConDensation_RandS_get" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
result = (CvRandState *) ((arg1)->RandS);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvRandState, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvConDensation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvConDensation",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvConDensation" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
{
|
|
try {
|
|
delete_CvConDensation(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvConDensation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvConDensation, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_MP_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_MP_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_MP_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvKalman_MP_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->MP = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_MP_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_MP_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_MP_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (int) ((arg1)->MP);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_DP_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_DP_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_DP_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvKalman_DP_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->DP = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_DP_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_DP_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_DP_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (int) ((arg1)->DP);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_CP_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_CP_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_CP_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvKalman_CP_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->CP = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_CP_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_CP_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_CP_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (int) ((arg1)->CP);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_PosterState_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_PosterState_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_PosterState_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvKalman_PosterState_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->PosterState = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_PosterState_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_PosterState_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_PosterState_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (float *) ((arg1)->PosterState);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_PriorState_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_PriorState_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_PriorState_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvKalman_PriorState_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->PriorState = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_PriorState_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_PriorState_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_PriorState_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (float *) ((arg1)->PriorState);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_DynamMatr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_DynamMatr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_DynamMatr_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvKalman_DynamMatr_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->DynamMatr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_DynamMatr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_DynamMatr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_DynamMatr_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (float *) ((arg1)->DynamMatr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_MeasurementMatr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_MeasurementMatr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_MeasurementMatr_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvKalman_MeasurementMatr_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->MeasurementMatr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_MeasurementMatr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_MeasurementMatr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_MeasurementMatr_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (float *) ((arg1)->MeasurementMatr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_MNCovariance_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_MNCovariance_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_MNCovariance_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvKalman_MNCovariance_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->MNCovariance = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_MNCovariance_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_MNCovariance_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_MNCovariance_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (float *) ((arg1)->MNCovariance);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_PNCovariance_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_PNCovariance_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_PNCovariance_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvKalman_PNCovariance_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->PNCovariance = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_PNCovariance_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_PNCovariance_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_PNCovariance_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (float *) ((arg1)->PNCovariance);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_KalmGainMatr_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_KalmGainMatr_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_KalmGainMatr_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvKalman_KalmGainMatr_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->KalmGainMatr = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_KalmGainMatr_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_KalmGainMatr_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_KalmGainMatr_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (float *) ((arg1)->KalmGainMatr);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_PriorErrorCovariance_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_PriorErrorCovariance_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_PriorErrorCovariance_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvKalman_PriorErrorCovariance_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->PriorErrorCovariance = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_PriorErrorCovariance_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_PriorErrorCovariance_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_PriorErrorCovariance_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (float *) ((arg1)->PriorErrorCovariance);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_PosterErrorCovariance_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_PosterErrorCovariance_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_PosterErrorCovariance_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvKalman_PosterErrorCovariance_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->PosterErrorCovariance = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_PosterErrorCovariance_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_PosterErrorCovariance_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_PosterErrorCovariance_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (float *) ((arg1)->PosterErrorCovariance);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_Temp1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_Temp1_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_Temp1_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvKalman_Temp1_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->Temp1 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_Temp1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_Temp1_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_Temp1_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (float *) ((arg1)->Temp1);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_Temp2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_Temp2_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_Temp2_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvKalman_Temp2_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->Temp2 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_Temp2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_Temp2_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_Temp2_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (float *) ((arg1)->Temp2);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_state_pre_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_state_pre_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_state_pre_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->state_pre = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_state_pre_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_state_pre_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_state_pre_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (CvMat *) ((arg1)->state_pre);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_state_post_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_state_post_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_state_post_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->state_post = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_state_post_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_state_post_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_state_post_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (CvMat *) ((arg1)->state_post);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_transition_matrix_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_transition_matrix_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_transition_matrix_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->transition_matrix = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_transition_matrix_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_transition_matrix_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_transition_matrix_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (CvMat *) ((arg1)->transition_matrix);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_control_matrix_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_control_matrix_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_control_matrix_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->control_matrix = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_control_matrix_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_control_matrix_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_control_matrix_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (CvMat *) ((arg1)->control_matrix);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_measurement_matrix_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_measurement_matrix_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_measurement_matrix_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->measurement_matrix = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_measurement_matrix_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_measurement_matrix_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_measurement_matrix_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (CvMat *) ((arg1)->measurement_matrix);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_process_noise_cov_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_process_noise_cov_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_process_noise_cov_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->process_noise_cov = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_process_noise_cov_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_process_noise_cov_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_process_noise_cov_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (CvMat *) ((arg1)->process_noise_cov);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_measurement_noise_cov_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_measurement_noise_cov_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_measurement_noise_cov_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->measurement_noise_cov = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_measurement_noise_cov_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_measurement_noise_cov_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_measurement_noise_cov_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (CvMat *) ((arg1)->measurement_noise_cov);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_error_cov_pre_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_error_cov_pre_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_error_cov_pre_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->error_cov_pre = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_error_cov_pre_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_error_cov_pre_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_error_cov_pre_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (CvMat *) ((arg1)->error_cov_pre);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_gain_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_gain_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_gain_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->gain = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_gain_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_gain_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_gain_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (CvMat *) ((arg1)->gain);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_error_cov_post_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_error_cov_post_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_error_cov_post_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->error_cov_post = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_error_cov_post_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_error_cov_post_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_error_cov_post_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (CvMat *) ((arg1)->error_cov_post);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_temp1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_temp1_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_temp1_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->temp1 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_temp1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_temp1_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_temp1_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (CvMat *) ((arg1)->temp1);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_temp2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_temp2_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_temp2_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->temp2 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_temp2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_temp2_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_temp2_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (CvMat *) ((arg1)->temp2);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_temp3_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_temp3_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_temp3_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->temp3 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_temp3_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_temp3_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_temp3_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (CvMat *) ((arg1)->temp3);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_temp4_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_temp4_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_temp4_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->temp4 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_temp4_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_temp4_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_temp4_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (CvMat *) ((arg1)->temp4);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_temp5_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvKalman_temp5_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_temp5_set" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->temp5 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvKalman_temp5_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvKalman_temp5_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvKalman_temp5_get" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
result = (CvMat *) ((arg1)->temp5);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvKalman(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvKalman",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvKalman" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
{
|
|
try {
|
|
delete_CvKalman(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvKalman_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvKalman, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarFeature_tilted_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarFeature *arg1 = (CvHaarFeature *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarFeature_tilted_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarFeature, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarFeature_tilted_set" "', argument " "1"" of type '" "CvHaarFeature *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarFeature * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHaarFeature_tilted_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->tilted = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarFeature_tilted_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarFeature *arg1 = (CvHaarFeature *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarFeature_tilted_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarFeature, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarFeature_tilted_get" "', argument " "1"" of type '" "CvHaarFeature *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarFeature * >(argp1);
|
|
result = (int) ((arg1)->tilted);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarFeature_rect_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarFeature *arg1 = (CvHaarFeature *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvHaarFeature_rect *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarFeature_rect_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarFeature, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarFeature_rect_get" "', argument " "1"" of type '" "CvHaarFeature *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarFeature * >(argp1);
|
|
result = (CvHaarFeature_rect *)(CvHaarFeature_rect *) ((arg1)->rect);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvHaarFeature_rect, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvHaarFeature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarFeature *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvHaarFeature")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvHaarFeature *)new CvHaarFeature();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvHaarFeature, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvHaarFeature(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarFeature *arg1 = (CvHaarFeature *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvHaarFeature",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarFeature, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvHaarFeature" "', argument " "1"" of type '" "CvHaarFeature *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarFeature * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvHaarFeature_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvHaarFeature, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarFeature_rect_r_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarFeature_rect *arg1 = (CvHaarFeature_rect *) 0 ;
|
|
CvRect *arg2 = (CvRect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarFeature_rect_r_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarFeature_rect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarFeature_rect_r_set" "', argument " "1"" of type '" "CvHaarFeature_rect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarFeature_rect * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvHaarFeature_rect_r_set" "', argument " "2"" of type '" "CvRect *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvRect * >(argp2);
|
|
if (arg1) (arg1)->r = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarFeature_rect_r_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarFeature_rect *arg1 = (CvHaarFeature_rect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvRect *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarFeature_rect_r_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarFeature_rect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarFeature_rect_r_get" "', argument " "1"" of type '" "CvHaarFeature_rect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarFeature_rect * >(argp1);
|
|
result = (CvRect *)& ((arg1)->r);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvRect, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarFeature_rect_weight_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarFeature_rect *arg1 = (CvHaarFeature_rect *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarFeature_rect_weight_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarFeature_rect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarFeature_rect_weight_set" "', argument " "1"" of type '" "CvHaarFeature_rect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarFeature_rect * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHaarFeature_rect_weight_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->weight = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarFeature_rect_weight_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarFeature_rect *arg1 = (CvHaarFeature_rect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarFeature_rect_weight_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarFeature_rect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarFeature_rect_weight_get" "', argument " "1"" of type '" "CvHaarFeature_rect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarFeature_rect * >(argp1);
|
|
result = (float) ((arg1)->weight);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvHaarFeature_rect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarFeature_rect *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvHaarFeature_rect")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvHaarFeature_rect *)new CvHaarFeature_rect();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvHaarFeature_rect, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvHaarFeature_rect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarFeature_rect *arg1 = (CvHaarFeature_rect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvHaarFeature_rect",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarFeature_rect, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvHaarFeature_rect" "', argument " "1"" of type '" "CvHaarFeature_rect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarFeature_rect * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvHaarFeature_rect_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvHaarFeature_rect, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifier_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifier *arg1 = (CvHaarClassifier *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarClassifier_count_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifier_count_set" "', argument " "1"" of type '" "CvHaarClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifier * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHaarClassifier_count_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->count = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifier_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifier *arg1 = (CvHaarClassifier *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarClassifier_count_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifier_count_get" "', argument " "1"" of type '" "CvHaarClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifier * >(argp1);
|
|
result = (int) ((arg1)->count);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifier_haar_feature_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifier *arg1 = (CvHaarClassifier *) 0 ;
|
|
CvHaarFeature *arg2 = (CvHaarFeature *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarClassifier_haar_feature_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifier_haar_feature_set" "', argument " "1"" of type '" "CvHaarClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifier * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvHaarFeature, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvHaarClassifier_haar_feature_set" "', argument " "2"" of type '" "CvHaarFeature *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvHaarFeature * >(argp2);
|
|
if (arg1) (arg1)->haar_feature = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifier_haar_feature_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifier *arg1 = (CvHaarClassifier *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvHaarFeature *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarClassifier_haar_feature_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifier_haar_feature_get" "', argument " "1"" of type '" "CvHaarClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifier * >(argp1);
|
|
result = (CvHaarFeature *) ((arg1)->haar_feature);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvHaarFeature, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifier_threshold_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifier *arg1 = (CvHaarClassifier *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarClassifier_threshold_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifier_threshold_set" "', argument " "1"" of type '" "CvHaarClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifier * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvHaarClassifier_threshold_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->threshold = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifier_threshold_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifier *arg1 = (CvHaarClassifier *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarClassifier_threshold_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifier_threshold_get" "', argument " "1"" of type '" "CvHaarClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifier * >(argp1);
|
|
result = (float *) ((arg1)->threshold);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifier_left_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifier *arg1 = (CvHaarClassifier *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarClassifier_left_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifier_left_set" "', argument " "1"" of type '" "CvHaarClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifier * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvHaarClassifier_left_set" "', argument " "2"" of type '" "int *""'");
|
|
}
|
|
arg2 = reinterpret_cast< int * >(argp2);
|
|
if (arg1) (arg1)->left = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifier_left_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifier *arg1 = (CvHaarClassifier *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarClassifier_left_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifier_left_get" "', argument " "1"" of type '" "CvHaarClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifier * >(argp1);
|
|
result = (int *) ((arg1)->left);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifier_right_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifier *arg1 = (CvHaarClassifier *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarClassifier_right_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifier_right_set" "', argument " "1"" of type '" "CvHaarClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifier * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_int, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvHaarClassifier_right_set" "', argument " "2"" of type '" "int *""'");
|
|
}
|
|
arg2 = reinterpret_cast< int * >(argp2);
|
|
if (arg1) (arg1)->right = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifier_right_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifier *arg1 = (CvHaarClassifier *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarClassifier_right_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifier_right_get" "', argument " "1"" of type '" "CvHaarClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifier * >(argp1);
|
|
result = (int *) ((arg1)->right);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifier_alpha_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifier *arg1 = (CvHaarClassifier *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarClassifier_alpha_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifier_alpha_set" "', argument " "1"" of type '" "CvHaarClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifier * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvHaarClassifier_alpha_set" "', argument " "2"" of type '" "float *""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
if (arg1) (arg1)->alpha = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifier_alpha_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifier *arg1 = (CvHaarClassifier *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarClassifier_alpha_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifier_alpha_get" "', argument " "1"" of type '" "CvHaarClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifier * >(argp1);
|
|
result = (float *) ((arg1)->alpha);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvHaarClassifier(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifier *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvHaarClassifier")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvHaarClassifier *)new CvHaarClassifier();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvHaarClassifier, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvHaarClassifier(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifier *arg1 = (CvHaarClassifier *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvHaarClassifier",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifier, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvHaarClassifier" "', argument " "1"" of type '" "CvHaarClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifier * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvHaarClassifier_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvHaarClassifier, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarStageClassifier_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarStageClassifier *arg1 = (CvHaarStageClassifier *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarStageClassifier_count_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarStageClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarStageClassifier_count_set" "', argument " "1"" of type '" "CvHaarStageClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarStageClassifier * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHaarStageClassifier_count_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->count = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarStageClassifier_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarStageClassifier *arg1 = (CvHaarStageClassifier *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarStageClassifier_count_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarStageClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarStageClassifier_count_get" "', argument " "1"" of type '" "CvHaarStageClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarStageClassifier * >(argp1);
|
|
result = (int) ((arg1)->count);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarStageClassifier_threshold_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarStageClassifier *arg1 = (CvHaarStageClassifier *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarStageClassifier_threshold_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarStageClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarStageClassifier_threshold_set" "', argument " "1"" of type '" "CvHaarStageClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarStageClassifier * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHaarStageClassifier_threshold_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->threshold = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarStageClassifier_threshold_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarStageClassifier *arg1 = (CvHaarStageClassifier *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarStageClassifier_threshold_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarStageClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarStageClassifier_threshold_get" "', argument " "1"" of type '" "CvHaarStageClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarStageClassifier * >(argp1);
|
|
result = (float) ((arg1)->threshold);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarStageClassifier_classifier_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarStageClassifier *arg1 = (CvHaarStageClassifier *) 0 ;
|
|
CvHaarClassifier *arg2 = (CvHaarClassifier *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarStageClassifier_classifier_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarStageClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarStageClassifier_classifier_set" "', argument " "1"" of type '" "CvHaarStageClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarStageClassifier * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvHaarClassifier, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvHaarStageClassifier_classifier_set" "', argument " "2"" of type '" "CvHaarClassifier *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvHaarClassifier * >(argp2);
|
|
if (arg1) (arg1)->classifier = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarStageClassifier_classifier_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarStageClassifier *arg1 = (CvHaarStageClassifier *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvHaarClassifier *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarStageClassifier_classifier_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarStageClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarStageClassifier_classifier_get" "', argument " "1"" of type '" "CvHaarStageClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarStageClassifier * >(argp1);
|
|
result = (CvHaarClassifier *) ((arg1)->classifier);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvHaarClassifier, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarStageClassifier_next_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarStageClassifier *arg1 = (CvHaarStageClassifier *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarStageClassifier_next_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarStageClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarStageClassifier_next_set" "', argument " "1"" of type '" "CvHaarStageClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarStageClassifier * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHaarStageClassifier_next_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->next = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarStageClassifier_next_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarStageClassifier *arg1 = (CvHaarStageClassifier *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarStageClassifier_next_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarStageClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarStageClassifier_next_get" "', argument " "1"" of type '" "CvHaarStageClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarStageClassifier * >(argp1);
|
|
result = (int) ((arg1)->next);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarStageClassifier_child_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarStageClassifier *arg1 = (CvHaarStageClassifier *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarStageClassifier_child_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarStageClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarStageClassifier_child_set" "', argument " "1"" of type '" "CvHaarStageClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarStageClassifier * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHaarStageClassifier_child_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->child = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarStageClassifier_child_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarStageClassifier *arg1 = (CvHaarStageClassifier *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarStageClassifier_child_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarStageClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarStageClassifier_child_get" "', argument " "1"" of type '" "CvHaarStageClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarStageClassifier * >(argp1);
|
|
result = (int) ((arg1)->child);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarStageClassifier_parent_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarStageClassifier *arg1 = (CvHaarStageClassifier *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarStageClassifier_parent_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarStageClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarStageClassifier_parent_set" "', argument " "1"" of type '" "CvHaarStageClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarStageClassifier * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHaarStageClassifier_parent_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->parent = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarStageClassifier_parent_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarStageClassifier *arg1 = (CvHaarStageClassifier *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarStageClassifier_parent_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarStageClassifier, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarStageClassifier_parent_get" "', argument " "1"" of type '" "CvHaarStageClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarStageClassifier * >(argp1);
|
|
result = (int) ((arg1)->parent);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvHaarStageClassifier(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarStageClassifier *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvHaarStageClassifier")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvHaarStageClassifier *)new CvHaarStageClassifier();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvHaarStageClassifier, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvHaarStageClassifier(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarStageClassifier *arg1 = (CvHaarStageClassifier *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvHaarStageClassifier",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarStageClassifier, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvHaarStageClassifier" "', argument " "1"" of type '" "CvHaarStageClassifier *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarStageClassifier * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvHaarStageClassifier_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvHaarStageClassifier, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifierCascade_flags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifierCascade *arg1 = (CvHaarClassifierCascade *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarClassifierCascade_flags_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifierCascade_flags_set" "', argument " "1"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifierCascade * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHaarClassifierCascade_flags_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->flags = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifierCascade_flags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifierCascade *arg1 = (CvHaarClassifierCascade *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarClassifierCascade_flags_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifierCascade_flags_get" "', argument " "1"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifierCascade * >(argp1);
|
|
result = (int) ((arg1)->flags);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifierCascade_count_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifierCascade *arg1 = (CvHaarClassifierCascade *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarClassifierCascade_count_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifierCascade_count_set" "', argument " "1"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifierCascade * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHaarClassifierCascade_count_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->count = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifierCascade_count_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifierCascade *arg1 = (CvHaarClassifierCascade *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarClassifierCascade_count_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifierCascade_count_get" "', argument " "1"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifierCascade * >(argp1);
|
|
result = (int) ((arg1)->count);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifierCascade_orig_window_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifierCascade *arg1 = (CvHaarClassifierCascade *) 0 ;
|
|
CvSize *arg2 = (CvSize *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarClassifierCascade_orig_window_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifierCascade_orig_window_size_set" "', argument " "1"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifierCascade * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvHaarClassifierCascade_orig_window_size_set" "', argument " "2"" of type '" "CvSize *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSize * >(argp2);
|
|
if (arg1) (arg1)->orig_window_size = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifierCascade_orig_window_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifierCascade *arg1 = (CvHaarClassifierCascade *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSize *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarClassifierCascade_orig_window_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifierCascade_orig_window_size_get" "', argument " "1"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifierCascade * >(argp1);
|
|
result = (CvSize *)& ((arg1)->orig_window_size);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSize, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifierCascade_real_window_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifierCascade *arg1 = (CvHaarClassifierCascade *) 0 ;
|
|
CvSize *arg2 = (CvSize *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarClassifierCascade_real_window_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifierCascade_real_window_size_set" "', argument " "1"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifierCascade * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvHaarClassifierCascade_real_window_size_set" "', argument " "2"" of type '" "CvSize *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvSize * >(argp2);
|
|
if (arg1) (arg1)->real_window_size = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifierCascade_real_window_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifierCascade *arg1 = (CvHaarClassifierCascade *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSize *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarClassifierCascade_real_window_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifierCascade_real_window_size_get" "', argument " "1"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifierCascade * >(argp1);
|
|
result = (CvSize *)& ((arg1)->real_window_size);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSize, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifierCascade_scale_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifierCascade *arg1 = (CvHaarClassifierCascade *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarClassifierCascade_scale_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifierCascade_scale_set" "', argument " "1"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifierCascade * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvHaarClassifierCascade_scale_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->scale = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifierCascade_scale_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifierCascade *arg1 = (CvHaarClassifierCascade *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarClassifierCascade_scale_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifierCascade_scale_get" "', argument " "1"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifierCascade * >(argp1);
|
|
result = (double) ((arg1)->scale);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifierCascade_stage_classifier_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifierCascade *arg1 = (CvHaarClassifierCascade *) 0 ;
|
|
CvHaarStageClassifier *arg2 = (CvHaarStageClassifier *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarClassifierCascade_stage_classifier_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifierCascade_stage_classifier_set" "', argument " "1"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifierCascade * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvHaarStageClassifier, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvHaarClassifierCascade_stage_classifier_set" "', argument " "2"" of type '" "CvHaarStageClassifier *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvHaarStageClassifier * >(argp2);
|
|
if (arg1) (arg1)->stage_classifier = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifierCascade_stage_classifier_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifierCascade *arg1 = (CvHaarClassifierCascade *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvHaarStageClassifier *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarClassifierCascade_stage_classifier_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifierCascade_stage_classifier_get" "', argument " "1"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifierCascade * >(argp1);
|
|
result = (CvHaarStageClassifier *) ((arg1)->stage_classifier);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvHaarStageClassifier, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifierCascade_hid_cascade_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifierCascade *arg1 = (CvHaarClassifierCascade *) 0 ;
|
|
CvHidHaarClassifierCascade *arg2 = (CvHidHaarClassifierCascade *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvHaarClassifierCascade_hid_cascade_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifierCascade_hid_cascade_set" "', argument " "1"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifierCascade * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvHidHaarClassifierCascade, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvHaarClassifierCascade_hid_cascade_set" "', argument " "2"" of type '" "CvHidHaarClassifierCascade *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvHidHaarClassifierCascade * >(argp2);
|
|
if (arg1) (arg1)->hid_cascade = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvHaarClassifierCascade_hid_cascade_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifierCascade *arg1 = (CvHaarClassifierCascade *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvHidHaarClassifierCascade *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvHaarClassifierCascade_hid_cascade_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvHaarClassifierCascade_hid_cascade_get" "', argument " "1"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifierCascade * >(argp1);
|
|
result = (CvHidHaarClassifierCascade *) ((arg1)->hid_cascade);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvHidHaarClassifierCascade, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvHaarClassifierCascade(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifierCascade *arg1 = (CvHaarClassifierCascade *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvHaarClassifierCascade",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifierCascade, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvHaarClassifierCascade" "', argument " "1"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifierCascade * >(argp1);
|
|
{
|
|
try {
|
|
delete_CvHaarClassifierCascade(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvHaarClassifierCascade_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvHaarClassifierCascade, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvAvgComp_rect_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvAvgComp *arg1 = (CvAvgComp *) 0 ;
|
|
CvRect *arg2 = (CvRect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvAvgComp_rect_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvAvgComp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvAvgComp_rect_set" "', argument " "1"" of type '" "CvAvgComp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvAvgComp * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvAvgComp_rect_set" "', argument " "2"" of type '" "CvRect *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvRect * >(argp2);
|
|
if (arg1) (arg1)->rect = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvAvgComp_rect_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvAvgComp *arg1 = (CvAvgComp *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvRect *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvAvgComp_rect_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvAvgComp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvAvgComp_rect_get" "', argument " "1"" of type '" "CvAvgComp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvAvgComp * >(argp1);
|
|
result = (CvRect *)& ((arg1)->rect);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvRect, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvAvgComp_neighbors_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvAvgComp *arg1 = (CvAvgComp *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvAvgComp_neighbors_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvAvgComp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvAvgComp_neighbors_set" "', argument " "1"" of type '" "CvAvgComp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvAvgComp * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvAvgComp_neighbors_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->neighbors = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvAvgComp_neighbors_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvAvgComp *arg1 = (CvAvgComp *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvAvgComp_neighbors_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvAvgComp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvAvgComp_neighbors_get" "', argument " "1"" of type '" "CvAvgComp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvAvgComp * >(argp1);
|
|
result = (int) ((arg1)->neighbors);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvAvgComp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvAvgComp *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvAvgComp")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvAvgComp *)new CvAvgComp();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvAvgComp, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvAvgComp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvAvgComp *arg1 = (CvAvgComp *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvAvgComp",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvAvgComp, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvAvgComp" "', argument " "1"" of type '" "CvAvgComp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvAvgComp * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvAvgComp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvAvgComp, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCopyMakeBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvPoint arg3 ;
|
|
int arg4 ;
|
|
CvScalar arg5 = (CvScalar) cvScalarAll(0) ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
CvPoint temp3 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|O:cvCopyMakeBorder",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ii", & temp3.x, & temp3.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvCopyMakeBorder" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
if (obj4) {
|
|
{
|
|
arg5 = PyObject_to_CvScalar( obj4 );
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvCopyMakeBorder((void const *)arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSmooth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 = (int) 2 ;
|
|
int arg4 = (int) 3 ;
|
|
int arg5 = (int) 0 ;
|
|
double arg6 = (double) 0 ;
|
|
double arg7 = (double) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
double val6 ;
|
|
int ecode6 = 0 ;
|
|
double val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OOOOO:cvSmooth",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvSmooth" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvSmooth" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvSmooth" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_double(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvSmooth" "', argument " "6"" of type '" "double""'");
|
|
}
|
|
arg6 = static_cast< double >(val6);
|
|
}
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_double(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvSmooth" "', argument " "7"" of type '" "double""'");
|
|
}
|
|
arg7 = static_cast< double >(val7);
|
|
}
|
|
{
|
|
try {
|
|
cvSmooth((void const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFilter2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvPoint arg4 = (CvPoint) cvPoint(-1,-1) ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
CvPoint temp4 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvFilter2D",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
if (PyTuple_Check(obj3))
|
|
{
|
|
if (!PyArg_ParseTuple(obj3,"ii", & temp4.x, & temp4.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg4 = temp4;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj3, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg4 = *ptr;
|
|
}
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvFilter2D((void const *)arg1,arg2,(CvMat const *)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvIntegral(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) NULL ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OO:cvIntegral",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvIntegral((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPyrDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 = (int) CV_GAUSSIAN_5x5 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvPyrDown",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvPyrDown" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
try {
|
|
cvPyrDown((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPyrUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 = (int) CV_GAUSSIAN_5x5 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvPyrUp",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvPyrUp" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
try {
|
|
cvPyrUp((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreatePyramid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
double arg3 ;
|
|
CvSize *arg4 = (CvSize *) 0 ;
|
|
CvArr *arg5 = (CvArr *) 0 ;
|
|
int arg6 = (int) 1 ;
|
|
int arg7 = (int) CV_GAUSSIAN_5x5 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
bool freearg5 = false ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
int val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
CvMat **result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OOOO:cvCreatePyramid",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCreatePyramid" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreatePyramid" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
if (obj3) {
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvCreatePyramid" "', argument " "4"" of type '" "CvSize const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvSize * >(argp4);
|
|
}
|
|
if (obj4) {
|
|
{
|
|
arg5 = PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvCreatePyramid" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_int(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvCreatePyramid" "', argument " "7"" of type '" "int""'");
|
|
}
|
|
arg7 = static_cast< int >(val7);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat **)cvCreatePyramid((void const *)arg1,arg2,arg3,(CvSize const *)arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_CvMat, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5)
|
|
{
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5)
|
|
{
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReleasePyramid(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat ***arg1 = (CvMat ***) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvReleasePyramid",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_p_p_CvMat, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvReleasePyramid" "', argument " "1"" of type '" "CvMat ***""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMat *** >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvReleasePyramid" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
cvReleasePyramid(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPyrSegmentationUntyped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage *arg1 = (IplImage *) 0 ;
|
|
IplImage *arg2 = (IplImage *) 0 ;
|
|
CvMemStorage *arg3 = (CvMemStorage *) 0 ;
|
|
CvSeq **arg4 = (CvSeq **) 0 ;
|
|
int arg5 ;
|
|
double arg6 ;
|
|
double arg7 ;
|
|
IplImage header1 ;
|
|
IplImage header2 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
CvSeq *seq4 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
double val6 ;
|
|
int ecode6 = 0 ;
|
|
double val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
{
|
|
arg4 = &seq4;
|
|
}
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO:cvPyrSegmentationUntyped",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj0, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg1 = cvGetImage((CvMat *)vptr, &header1);
|
|
}
|
|
{
|
|
void * vptr;
|
|
int res = SWIG_ConvertPtr(obj1, (&vptr), SWIGTYPE_p_CvMat, 0);
|
|
if ( res == -1 ){
|
|
SWIG_exception( SWIG_TypeError, "%%typemap(in) IplImage * : could not convert to CvMat");
|
|
SWIG_fail;
|
|
}
|
|
arg2 = cvGetImage((CvMat *)vptr, &header2);
|
|
}
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvPyrSegmentationUntyped" "', argument " "3"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvMemStorage * >(argp3);
|
|
ecode5 = SWIG_AsVal_int(obj3, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvPyrSegmentationUntyped" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
ecode6 = SWIG_AsVal_double(obj4, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvPyrSegmentationUntyped" "', argument " "6"" of type '" "double""'");
|
|
}
|
|
arg6 = static_cast< double >(val6);
|
|
ecode7 = SWIG_AsVal_double(obj5, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvPyrSegmentationUntyped" "', argument " "7"" of type '" "double""'");
|
|
}
|
|
arg7 = static_cast< double >(val7);
|
|
{
|
|
try {
|
|
cvPyrSegmentation(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
PyObject *to_add;
|
|
|
|
/* extract the pointer we want to add to the returned tuple */
|
|
/* sequence is allocated in CvMemStorage, so python_ownership=0 */
|
|
to_add = SWIG_NewPointerObj (*arg4, SWIGTYPE_p_CvSeq, 0);
|
|
|
|
resultobj = SWIG_AppendResult(resultobj, &to_add, 1);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPyrMeanShiftFiltering(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
double arg3 ;
|
|
double arg4 ;
|
|
int arg5 = (int) 1 ;
|
|
CvTermCriteria arg6 = (CvTermCriteria) cvTermCriteria(1 +2,5,1) ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
CvTermCriteria temp6 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|OO:cvPyrMeanShiftFiltering",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvPyrMeanShiftFiltering" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvPyrMeanShiftFiltering" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvPyrMeanShiftFiltering" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
{
|
|
if (PyTuple_Check(obj5))
|
|
{
|
|
if (!PyArg_ParseTuple(obj5,"iid", & temp6.type, & temp6.max_iter, & temp6.epsilon))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers and a float (type, max_iter, epsilon)");
|
|
return NULL;
|
|
}
|
|
arg6 = temp6;
|
|
}
|
|
else
|
|
{
|
|
CvTermCriteria * ptr;
|
|
if (SWIG_ConvertPtr (obj5, (void **) & ptr, SWIGTYPE_p_CvTermCriteria, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvTermCriteria");
|
|
return NULL;
|
|
}
|
|
arg6 = *ptr;
|
|
}
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvPyrMeanShiftFiltering((void const *)arg1,arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvWatershed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvWatershed",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
cvWatershed((void const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvInpaint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
double arg4 ;
|
|
int arg5 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvInpaint",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvInpaint" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvInpaint" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
{
|
|
try {
|
|
cvInpaint((void const *)arg1,(void const *)arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSobel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
int arg5 = (int) 3 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|O:cvSobel",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvSobel" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvSobel" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvSobel" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
{
|
|
try {
|
|
cvSobel((void const *)arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvLaplace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 = (int) 3 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvLaplace",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvLaplace" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
try {
|
|
cvLaplace((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCvtColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvCvtColor",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCvtColor" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
cvCvtColor((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 = (int) 1 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvResize",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvResize" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
try {
|
|
cvResize((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvWarpAffine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
int arg4 = (int) 1+8 ;
|
|
CvScalar arg5 = (CvScalar) cvScalarAll(0) ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OO:cvWarpAffine",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvWarpAffine" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
{
|
|
arg5 = PyObject_to_CvScalar( obj4 );
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvWarpAffine((void const *)arg1,arg2,(CvMat const *)arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetAffineTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D32f *arg1 = (CvPoint2D32f *) 0 ;
|
|
CvPoint2D32f *arg2 = (CvPoint2D32f *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvGetAffineTransform",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvGetAffineTransform" "', argument " "1"" of type '" "CvPoint2D32f const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint2D32f * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvGetAffineTransform" "', argument " "2"" of type '" "CvPoint2D32f const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint2D32f * >(argp2);
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)cvGetAffineTransform((CvPoint2D32f const *)arg1,(CvPoint2D32f const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cv2DRotationMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D32f arg1 ;
|
|
double arg2 ;
|
|
double arg3 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
CvPoint2D32f temp1 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cv2DRotationMatrix",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"ff", & temp1.x, & temp1.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 floats (x, y)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvPoint2D32f * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint2D32f");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cv2DRotationMatrix" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cv2DRotationMatrix" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)cv2DRotationMatrix(arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvWarpPerspective(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
int arg4 = (int) 1+8 ;
|
|
CvScalar arg5 = (CvScalar) cvScalarAll(0) ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OO:cvWarpPerspective",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvWarpPerspective" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
{
|
|
arg5 = PyObject_to_CvScalar( obj4 );
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvWarpPerspective((void const *)arg1,arg2,(CvMat const *)arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetPerspectiveTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D32f *arg1 = (CvPoint2D32f *) 0 ;
|
|
CvPoint2D32f *arg2 = (CvPoint2D32f *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvGetPerspectiveTransform",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvGetPerspectiveTransform" "', argument " "1"" of type '" "CvPoint2D32f const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint2D32f * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvGetPerspectiveTransform" "', argument " "2"" of type '" "CvPoint2D32f const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint2D32f * >(argp2);
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)cvGetPerspectiveTransform((CvPoint2D32f const *)arg1,(CvPoint2D32f const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRemap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
int arg5 = (int) 1+8 ;
|
|
CvScalar arg6 = (CvScalar) cvScalarAll(0) ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|OO:cvRemap",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvRemap" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
{
|
|
arg6 = PyObject_to_CvScalar( obj5 );
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvRemap((void const *)arg1,arg2,(void const *)arg3,(void const *)arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvConvertMaps(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvConvertMaps",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
try {
|
|
cvConvertMaps((void const *)arg1,(void const *)arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvLogPolar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvPoint2D32f arg3 ;
|
|
double arg4 ;
|
|
int arg5 = (int) 1+8 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
CvPoint2D32f temp3 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|O:cvLogPolar",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ff", & temp3.x, & temp3.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 floats (x, y)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvPoint2D32f * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint2D32f");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvLogPolar" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvLogPolar" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
{
|
|
try {
|
|
cvLogPolar((void const *)arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvLinearPolar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvPoint2D32f arg3 ;
|
|
double arg4 ;
|
|
int arg5 = (int) 1+8 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
CvPoint2D32f temp3 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|O:cvLinearPolar",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ff", & temp3.x, & temp3.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 floats (x, y)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvPoint2D32f * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint2D32f");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvLinearPolar" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvLinearPolar" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
{
|
|
try {
|
|
cvLinearPolar((void const *)arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateStructuringElementEx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
int arg5 ;
|
|
int *arg6 = (int *) NULL ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
void *argp6 = 0 ;
|
|
int res6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
IplConvKernel *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO|O:cvCreateStructuringElementEx",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvCreateStructuringElementEx" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCreateStructuringElementEx" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateStructuringElementEx" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvCreateStructuringElementEx" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvCreateStructuringElementEx" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
if (obj5) {
|
|
res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_int, 0 | 0 );
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "cvCreateStructuringElementEx" "', argument " "6"" of type '" "int *""'");
|
|
}
|
|
arg6 = reinterpret_cast< int * >(argp6);
|
|
}
|
|
{
|
|
try {
|
|
result = (IplConvKernel *)cvCreateStructuringElementEx(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__IplConvKernel, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvErode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplConvKernel *arg3 = (IplConvKernel *) NULL ;
|
|
int arg4 = (int) 1 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OO:cvErode",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p__IplConvKernel, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvErode" "', argument " "3"" of type '" "IplConvKernel *""'");
|
|
}
|
|
arg3 = reinterpret_cast< IplConvKernel * >(argp3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvErode" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
cvErode((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvDilate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
IplConvKernel *arg3 = (IplConvKernel *) NULL ;
|
|
int arg4 = (int) 1 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OO:cvDilate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p__IplConvKernel, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvDilate" "', argument " "3"" of type '" "IplConvKernel *""'");
|
|
}
|
|
arg3 = reinterpret_cast< IplConvKernel * >(argp3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvDilate" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
cvDilate((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMorphologyEx(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
IplConvKernel *arg4 = (IplConvKernel *) 0 ;
|
|
int arg5 ;
|
|
int arg6 = (int) 1 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO|O:cvMorphologyEx",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p__IplConvKernel, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvMorphologyEx" "', argument " "4"" of type '" "IplConvKernel *""'");
|
|
}
|
|
arg4 = reinterpret_cast< IplConvKernel * >(argp4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvMorphologyEx" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvMorphologyEx" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
{
|
|
try {
|
|
cvMorphologyEx((void const *)arg1,arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMoments(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvMoments *arg2 = (CvMoments *) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvMoments",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvMoments" "', argument " "2"" of type '" "CvMoments *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMoments * >(argp2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvMoments" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
try {
|
|
cvMoments((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetSpatialMoment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvGetSpatialMoment",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvGetSpatialMoment" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvGetSpatialMoment" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvGetSpatialMoment" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (double)cvGetSpatialMoment(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetCentralMoment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvGetCentralMoment",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvGetCentralMoment" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvGetCentralMoment" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvGetCentralMoment" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (double)cvGetCentralMoment(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetNormalizedCentralMoment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvGetNormalizedCentralMoment",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvGetNormalizedCentralMoment" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvGetNormalizedCentralMoment" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvGetNormalizedCentralMoment" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (double)cvGetNormalizedCentralMoment(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetHuMoments(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMoments *arg1 = (CvMoments *) 0 ;
|
|
CvHuMoments *arg2 = (CvHuMoments *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvGetHuMoments",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvGetHuMoments" "', argument " "1"" of type '" "CvMoments *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMoments * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvHuMoments, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvGetHuMoments" "', argument " "2"" of type '" "CvHuMoments *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvHuMoments * >(argp2);
|
|
{
|
|
try {
|
|
cvGetHuMoments(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSampleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvPoint arg2 ;
|
|
CvPoint arg3 ;
|
|
void *arg4 = (void *) 0 ;
|
|
int arg5 = (int) 8 ;
|
|
bool freearg1 = false ;
|
|
CvPoint temp2 ;
|
|
CvPoint temp3 ;
|
|
int res4 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|O:cvSampleLine",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ii", & temp2.x, & temp2.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ii", & temp3.x, & temp3.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
res4 = SWIG_ConvertPtr(obj3,SWIG_as_voidptrptr(&arg4), 0, 0);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvSampleLine" "', argument " "4"" of type '" "void *""'");
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvSampleLine" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvSampleLine((void const *)arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetRectSubPix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvPoint2D32f arg3 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
CvPoint2D32f temp3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvGetRectSubPix",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ff", & temp3.x, & temp3.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 floats (x, y)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvPoint2D32f * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint2D32f");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvGetRectSubPix((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetQuadrangleSubPix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvGetQuadrangleSubPix",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
try {
|
|
cvGetQuadrangleSubPix((void const *)arg1,arg2,(CvMat const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMatchTemplate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
int arg4 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvMatchTemplate",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvMatchTemplate" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
try {
|
|
cvMatchTemplate((void const *)arg1,(void const *)arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcEMD2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 ;
|
|
CvDistanceFunction arg4 = (CvDistanceFunction) NULL ;
|
|
CvArr *arg5 = (CvArr *) NULL ;
|
|
CvArr *arg6 = (CvArr *) NULL ;
|
|
float *arg7 = (float *) NULL ;
|
|
void *arg8 = (void *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
bool freearg5 = false ;
|
|
bool freearg6 = false ;
|
|
void *argp7 = 0 ;
|
|
int res7 = 0 ;
|
|
int res8 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OOOOO:cvCalcEMD2",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCalcEMD2" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
{
|
|
int res = SWIG_ConvertFunctionPtr(obj3, (void**)(&arg4), SWIGTYPE_p_f_p_q_const__float_p_q_const__float_p_void__float);
|
|
if (!SWIG_IsOK(res)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res), "in method '" "cvCalcEMD2" "', argument " "4"" of type '" "CvDistanceFunction""'");
|
|
}
|
|
}
|
|
}
|
|
if (obj4) {
|
|
{
|
|
arg5 = PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
}
|
|
if (obj5) {
|
|
{
|
|
arg6 = PyObject_to_CvArr(obj5, &freearg6);
|
|
}
|
|
}
|
|
if (obj6) {
|
|
res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
|
|
if (!SWIG_IsOK(res7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "cvCalcEMD2" "', argument " "7"" of type '" "float *""'");
|
|
}
|
|
arg7 = reinterpret_cast< float * >(argp7);
|
|
}
|
|
if (obj7) {
|
|
res8 = SWIG_ConvertPtr(obj7,SWIG_as_voidptrptr(&arg8), 0, 0);
|
|
if (!SWIG_IsOK(res8)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "cvCalcEMD2" "', argument " "8"" of type '" "void *""'");
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (float)cvCalcEMD2((void const *)arg1,(void const *)arg2,arg3,arg4,(void const *)arg5,arg6,arg7,arg8);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5)
|
|
{
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6)
|
|
{
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5)
|
|
{
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6)
|
|
{
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFindContoursUntyped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
CvSeq **arg3 = (CvSeq **) 0 ;
|
|
int arg4 = (int) sizeof(CvContour) ;
|
|
int arg5 = (int) 1 ;
|
|
int arg6 = (int) 2 ;
|
|
CvPoint arg7 = (CvPoint) cvPoint(0,0) ;
|
|
bool freearg1 = false ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
CvSeq *seq3 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
CvPoint temp7 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
int result;
|
|
|
|
{
|
|
arg3 = &seq3;
|
|
}
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OOOO:cvFindContoursUntyped",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvFindContoursUntyped" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
if (obj2) {
|
|
ecode4 = SWIG_AsVal_int(obj2, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvFindContoursUntyped" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj3) {
|
|
ecode5 = SWIG_AsVal_int(obj3, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvFindContoursUntyped" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj4) {
|
|
ecode6 = SWIG_AsVal_int(obj4, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvFindContoursUntyped" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
if (obj5) {
|
|
{
|
|
if (PyTuple_Check(obj5))
|
|
{
|
|
if (!PyArg_ParseTuple(obj5,"ii", & temp7.x, & temp7.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg7 = temp7;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj5, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg7 = *ptr;
|
|
}
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvFindContours(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
PyObject *to_add;
|
|
|
|
/* extract the pointer we want to add to the returned tuple */
|
|
/* sequence is allocated in CvMemStorage, so python_ownership=0 */
|
|
to_add = SWIG_NewPointerObj (*arg3, SWIGTYPE_p_CvSeq, 0);
|
|
|
|
resultobj = SWIG_AppendResult(resultobj, &to_add, 1);
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvStartFindContours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
int arg3 = (int) sizeof(CvContour) ;
|
|
int arg4 = (int) 1 ;
|
|
int arg5 = (int) 2 ;
|
|
CvPoint arg6 = (CvPoint) cvPoint(0,0) ;
|
|
bool freearg1 = false ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
CvPoint temp6 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
CvContourScanner result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OOOO:cvStartFindContours",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvStartFindContours" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvStartFindContours" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvStartFindContours" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvStartFindContours" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
{
|
|
if (PyTuple_Check(obj5))
|
|
{
|
|
if (!PyArg_ParseTuple(obj5,"ii", & temp6.x, & temp6.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg6 = temp6;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj5, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg6 = *ptr;
|
|
}
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvContourScanner)cvStartFindContours(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p__CvContourScanner, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFindNextContour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourScanner arg1 = (CvContourScanner) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvFindNextContour",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CvContourScanner, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvFindNextContour" "', argument " "1"" of type '" "CvContourScanner""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourScanner >(argp1);
|
|
{
|
|
try {
|
|
result = (CvSeq *)cvFindNextContour(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSubstituteContour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourScanner arg1 = (CvContourScanner) 0 ;
|
|
CvSeq *arg2 = (CvSeq *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *ptr2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvSubstituteContour",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p__CvContourScanner, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvSubstituteContour" "', argument " "1"" of type '" "CvContourScanner""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourScanner >(argp1);
|
|
{
|
|
if( SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj1, &ptr2, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg2 = (CvSeq *) ptr2;
|
|
}
|
|
{
|
|
try {
|
|
cvSubstituteContour(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvEndFindContours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourScanner *arg1 = (CvContourScanner *) 0 ;
|
|
void *vptr1 ;
|
|
CvContourScanner buffer1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvEndFindContours",&obj0)) SWIG_fail;
|
|
{
|
|
if ((SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p__CvContourScanner, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer1 = (CvContourScanner) vptr1;
|
|
arg1=&buffer1;
|
|
}
|
|
{
|
|
try {
|
|
result = (CvSeq *)cvEndFindContours(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvApproxChainsUntyped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
int arg3 = (int) 2 ;
|
|
double arg4 = (double) 0 ;
|
|
int arg5 = (int) 0 ;
|
|
int arg6 = (int) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OOOO:cvApproxChainsUntyped",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvApproxChainsUntyped" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvApproxChainsUntyped" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvApproxChainsUntyped" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvApproxChainsUntyped" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvApproxChainsUntyped" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvSeq *)cvApproxChains(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvStartReadChainPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChain *arg1 = (CvChain *) 0 ;
|
|
CvChainPtReader *arg2 = (CvChainPtReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvStartReadChainPoints",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChain, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvStartReadChainPoints" "', argument " "1"" of type '" "CvChain *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChain * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvStartReadChainPoints" "', argument " "2"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvChainPtReader * >(argp2);
|
|
{
|
|
try {
|
|
cvStartReadChainPoints(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReadChainPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvChainPtReader *arg1 = (CvChainPtReader *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvReadChainPoint",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvChainPtReader, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvReadChainPoint" "', argument " "1"" of type '" "CvChainPtReader *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvChainPtReader * >(argp1);
|
|
{
|
|
try {
|
|
result = cvReadChainPoint(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvPoint(static_cast< const CvPoint& >(result))), SWIGTYPE_p_CvPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcOpticalFlowLK(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvSize arg3 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
CvArr *arg5 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
CvSize temp3 ;
|
|
bool freearg4 = false ;
|
|
bool freearg5 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvCalcOpticalFlowLK",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ii", & temp3.width, & temp3.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
arg5 = PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
{
|
|
try {
|
|
cvCalcOpticalFlowLK((void const *)arg1,(void const *)arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5)
|
|
{
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5)
|
|
{
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcOpticalFlowBM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvSize arg3 ;
|
|
CvSize arg4 ;
|
|
CvSize arg5 ;
|
|
int arg6 ;
|
|
CvArr *arg7 = (CvArr *) 0 ;
|
|
CvArr *arg8 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
CvSize temp3 ;
|
|
CvSize temp4 ;
|
|
CvSize temp5 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
bool freearg7 = false ;
|
|
bool freearg8 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOOOO:cvCalcOpticalFlowBM",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ii", & temp3.width, & temp3.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj3))
|
|
{
|
|
if (!PyArg_ParseTuple(obj3,"ii", & temp4.width, & temp4.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg4 = temp4;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj3, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg4 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj4))
|
|
{
|
|
if (!PyArg_ParseTuple(obj4,"ii", & temp5.width, & temp5.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg5 = temp5;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj4, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg5 = *ptr;
|
|
}
|
|
}
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvCalcOpticalFlowBM" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
{
|
|
arg7 = PyObject_to_CvArr(obj6, &freearg7);
|
|
}
|
|
{
|
|
arg8 = PyObject_to_CvArr(obj7, &freearg8);
|
|
}
|
|
{
|
|
try {
|
|
cvCalcOpticalFlowBM((void const *)arg1,(void const *)arg2,arg3,arg4,arg5,arg6,arg7,arg8);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg7!=NULL && freearg7)
|
|
{
|
|
cvReleaseData( arg7 );
|
|
cvFree(&(arg7));
|
|
}
|
|
}
|
|
{
|
|
if(arg8!=NULL && freearg8)
|
|
{
|
|
cvReleaseData( arg8 );
|
|
cvFree(&(arg8));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg7!=NULL && freearg7)
|
|
{
|
|
cvReleaseData( arg7 );
|
|
cvFree(&(arg7));
|
|
}
|
|
}
|
|
{
|
|
if(arg8!=NULL && freearg8)
|
|
{
|
|
cvReleaseData( arg8 );
|
|
cvFree(&(arg8));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcOpticalFlowHS(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
CvArr *arg5 = (CvArr *) 0 ;
|
|
double arg6 ;
|
|
CvTermCriteria arg7 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
bool freearg4 = false ;
|
|
bool freearg5 = false ;
|
|
double val6 ;
|
|
int ecode6 = 0 ;
|
|
CvTermCriteria temp7 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOOO:cvCalcOpticalFlowHS",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCalcOpticalFlowHS" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
arg5 = PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
ecode6 = SWIG_AsVal_double(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvCalcOpticalFlowHS" "', argument " "6"" of type '" "double""'");
|
|
}
|
|
arg6 = static_cast< double >(val6);
|
|
{
|
|
if (PyTuple_Check(obj6))
|
|
{
|
|
if (!PyArg_ParseTuple(obj6,"iid", & temp7.type, & temp7.max_iter, & temp7.epsilon))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers and a float (type, max_iter, epsilon)");
|
|
return NULL;
|
|
}
|
|
arg7 = temp7;
|
|
}
|
|
else
|
|
{
|
|
CvTermCriteria * ptr;
|
|
if (SWIG_ConvertPtr (obj6, (void **) & ptr, SWIGTYPE_p_CvTermCriteria, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvTermCriteria");
|
|
return NULL;
|
|
}
|
|
arg7 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvCalcOpticalFlowHS((void const *)arg1,(void const *)arg2,arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5)
|
|
{
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5)
|
|
{
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcOpticalFlowPyrLK(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
CvPoint2D32f *arg5 = (CvPoint2D32f *) 0 ;
|
|
CvPoint2D32f *arg6 = (CvPoint2D32f *) 0 ;
|
|
int arg7 ;
|
|
CvSize arg8 ;
|
|
int arg9 ;
|
|
char *arg10 = (char *) 0 ;
|
|
float *arg11 = (float *) 0 ;
|
|
CvTermCriteria arg12 ;
|
|
int arg13 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
int tmpCount6 ;
|
|
CvSize temp8 ;
|
|
int val9 ;
|
|
int ecode9 = 0 ;
|
|
int tmpCountStatus10 ;
|
|
void *argp11 = 0 ;
|
|
int res11 = 0 ;
|
|
CvTermCriteria temp12 ;
|
|
int val13 ;
|
|
int ecode13 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
PyObject * obj8 = 0 ;
|
|
PyObject * obj9 = 0 ;
|
|
PyObject * obj10 = 0 ;
|
|
PyObject * obj11 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOO:cvCalcOpticalFlowPyrLK",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
int i;
|
|
int size;
|
|
|
|
/* get the size of the input array */
|
|
size = PyList_Size (obj4);
|
|
|
|
/* allocate the needed memory */
|
|
CvPoint2D32f * features = (CvPoint2D32f *) malloc (size * sizeof (CvPoint2D32f));
|
|
|
|
/* extract all the points values from the list */
|
|
for (i = 0; i < size; i++)
|
|
{
|
|
PyObject *item = PyList_GetItem (obj4, i);
|
|
|
|
void * vptr;
|
|
SWIG_Python_ConvertPtr (item, &vptr,
|
|
SWIGTYPE_p_CvPoint2D32f,
|
|
SWIG_POINTER_EXCEPTION);
|
|
CvPoint2D32f *p = (CvPoint2D32f *)vptr;
|
|
features[i].x = p->x;
|
|
features[i].y = p->y;
|
|
}
|
|
|
|
// these are the arguments passed to the OpenCV function
|
|
arg5 = features;
|
|
}
|
|
{
|
|
/* as input, we only need the size of the wanted features */
|
|
|
|
/* memorize the size of the wanted features */
|
|
tmpCount6 = (int)PyInt_AsLong (obj5);
|
|
|
|
/* create the array for the C call */
|
|
arg6 = (CvPoint2D32f *) malloc(tmpCount6 * sizeof (CvPoint2D32f));
|
|
|
|
/* the size of the array for the C call */
|
|
arg7 = tmpCount6;
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj6))
|
|
{
|
|
if (!PyArg_ParseTuple(obj6,"ii", & temp8.width, & temp8.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg8 = temp8;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj6, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg8 = *ptr;
|
|
}
|
|
}
|
|
ecode9 = SWIG_AsVal_int(obj7, &val9);
|
|
if (!SWIG_IsOK(ecode9)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "cvCalcOpticalFlowPyrLK" "', argument " "9"" of type '" "int""'");
|
|
}
|
|
arg9 = static_cast< int >(val9);
|
|
{
|
|
/* as input, we still need the size of the status array */
|
|
|
|
/* memorize the size of the status array */
|
|
tmpCountStatus10 = (int)PyInt_AsLong (obj8);
|
|
|
|
/* create the status array for the C call */
|
|
arg10 = (char *)malloc (tmpCountStatus10 * sizeof (char));
|
|
}
|
|
res11 = SWIG_ConvertPtr(obj9, &argp11,SWIGTYPE_p_float, 0 | 0 );
|
|
if (!SWIG_IsOK(res11)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res11), "in method '" "cvCalcOpticalFlowPyrLK" "', argument " "11"" of type '" "float *""'");
|
|
}
|
|
arg11 = reinterpret_cast< float * >(argp11);
|
|
{
|
|
if (PyTuple_Check(obj10))
|
|
{
|
|
if (!PyArg_ParseTuple(obj10,"iid", & temp12.type, & temp12.max_iter, & temp12.epsilon))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers and a float (type, max_iter, epsilon)");
|
|
return NULL;
|
|
}
|
|
arg12 = temp12;
|
|
}
|
|
else
|
|
{
|
|
CvTermCriteria * ptr;
|
|
if (SWIG_ConvertPtr (obj10, (void **) & ptr, SWIGTYPE_p_CvTermCriteria, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvTermCriteria");
|
|
return NULL;
|
|
}
|
|
arg12 = *ptr;
|
|
}
|
|
}
|
|
ecode13 = SWIG_AsVal_int(obj11, &val13);
|
|
if (!SWIG_IsOK(ecode13)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "cvCalcOpticalFlowPyrLK" "', argument " "13"" of type '" "int""'");
|
|
}
|
|
arg13 = static_cast< int >(val13);
|
|
{
|
|
try {
|
|
cvCalcOpticalFlowPyrLK((void const *)arg1,(void const *)arg2,arg3,arg4,(CvPoint2D32f const *)arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
int i;
|
|
PyObject *to_add;
|
|
|
|
/* create the list to return */
|
|
to_add = PyList_New (tmpCount6);
|
|
|
|
/* extract all the points values of the result, and add it to the
|
|
final resulting list */
|
|
for (i = 0; i < tmpCount6; i++) {
|
|
PyList_SetItem (to_add, i,
|
|
SWIG_NewPointerObj (&(arg6 [i]),
|
|
SWIGTYPE_p_CvPoint2D32f, 0));
|
|
}
|
|
|
|
resultobj = SWIG_AppendResult(resultobj, &to_add, 1);
|
|
}
|
|
{
|
|
int i;
|
|
PyObject *to_add;
|
|
|
|
/* create the list to return */
|
|
to_add = PyList_New (tmpCountStatus10);
|
|
|
|
/* extract all the integer values of the result, and add it to the
|
|
final resulting list */
|
|
for (i = 0; i < tmpCountStatus10; i++) {
|
|
PyList_SetItem (to_add, i, PyBool_FromLong (arg10 [i]));
|
|
}
|
|
|
|
resultobj = SWIG_AppendResult(resultobj, &to_add, 1);
|
|
}
|
|
{
|
|
PyObject * to_add = SWIG_NewPointerObj (arg11, SWIGTYPE_p_float, SWIG_POINTER_OWN);
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, to_add);
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcAffineFlowPyrLK(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
CvPoint2D32f *arg5 = (CvPoint2D32f *) 0 ;
|
|
CvPoint2D32f *arg6 = (CvPoint2D32f *) 0 ;
|
|
float *arg7 = (float *) 0 ;
|
|
int arg8 ;
|
|
CvSize arg9 ;
|
|
int arg10 ;
|
|
char *arg11 = (char *) 0 ;
|
|
float *arg12 = (float *) 0 ;
|
|
CvTermCriteria arg13 ;
|
|
int arg14 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
void *argp6 = 0 ;
|
|
int res6 = 0 ;
|
|
void *argp7 = 0 ;
|
|
int res7 = 0 ;
|
|
int val8 ;
|
|
int ecode8 = 0 ;
|
|
CvSize temp9 ;
|
|
int val10 ;
|
|
int ecode10 = 0 ;
|
|
int tmpCountStatus11 ;
|
|
void *argp12 = 0 ;
|
|
int res12 = 0 ;
|
|
CvTermCriteria temp13 ;
|
|
int val14 ;
|
|
int ecode14 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
PyObject * obj8 = 0 ;
|
|
PyObject * obj9 = 0 ;
|
|
PyObject * obj10 = 0 ;
|
|
PyObject * obj11 = 0 ;
|
|
PyObject * obj12 = 0 ;
|
|
PyObject * obj13 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOOOOO:cvCalcAffineFlowPyrLK",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
int i;
|
|
int size;
|
|
|
|
/* get the size of the input array */
|
|
size = PyList_Size (obj4);
|
|
|
|
/* allocate the needed memory */
|
|
CvPoint2D32f * features = (CvPoint2D32f *) malloc (size * sizeof (CvPoint2D32f));
|
|
|
|
/* extract all the points values from the list */
|
|
for (i = 0; i < size; i++)
|
|
{
|
|
PyObject *item = PyList_GetItem (obj4, i);
|
|
|
|
void * vptr;
|
|
SWIG_Python_ConvertPtr (item, &vptr,
|
|
SWIGTYPE_p_CvPoint2D32f,
|
|
SWIG_POINTER_EXCEPTION);
|
|
CvPoint2D32f *p = (CvPoint2D32f *)vptr;
|
|
features[i].x = p->x;
|
|
features[i].y = p->y;
|
|
}
|
|
|
|
// these are the arguments passed to the OpenCV function
|
|
arg5 = features;
|
|
}
|
|
res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "cvCalcAffineFlowPyrLK" "', argument " "6"" of type '" "CvPoint2D32f *""'");
|
|
}
|
|
arg6 = reinterpret_cast< CvPoint2D32f * >(argp6);
|
|
res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_float, 0 | 0 );
|
|
if (!SWIG_IsOK(res7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "cvCalcAffineFlowPyrLK" "', argument " "7"" of type '" "float *""'");
|
|
}
|
|
arg7 = reinterpret_cast< float * >(argp7);
|
|
ecode8 = SWIG_AsVal_int(obj7, &val8);
|
|
if (!SWIG_IsOK(ecode8)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "cvCalcAffineFlowPyrLK" "', argument " "8"" of type '" "int""'");
|
|
}
|
|
arg8 = static_cast< int >(val8);
|
|
{
|
|
if (PyTuple_Check(obj8))
|
|
{
|
|
if (!PyArg_ParseTuple(obj8,"ii", & temp9.width, & temp9.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg9 = temp9;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj8, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg9 = *ptr;
|
|
}
|
|
}
|
|
ecode10 = SWIG_AsVal_int(obj9, &val10);
|
|
if (!SWIG_IsOK(ecode10)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "cvCalcAffineFlowPyrLK" "', argument " "10"" of type '" "int""'");
|
|
}
|
|
arg10 = static_cast< int >(val10);
|
|
{
|
|
/* as input, we still need the size of the status array */
|
|
|
|
/* memorize the size of the status array */
|
|
tmpCountStatus11 = (int)PyInt_AsLong (obj10);
|
|
|
|
/* create the status array for the C call */
|
|
arg11 = (char *)malloc (tmpCountStatus11 * sizeof (char));
|
|
}
|
|
res12 = SWIG_ConvertPtr(obj11, &argp12,SWIGTYPE_p_float, 0 | 0 );
|
|
if (!SWIG_IsOK(res12)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res12), "in method '" "cvCalcAffineFlowPyrLK" "', argument " "12"" of type '" "float *""'");
|
|
}
|
|
arg12 = reinterpret_cast< float * >(argp12);
|
|
{
|
|
if (PyTuple_Check(obj12))
|
|
{
|
|
if (!PyArg_ParseTuple(obj12,"iid", & temp13.type, & temp13.max_iter, & temp13.epsilon))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers and a float (type, max_iter, epsilon)");
|
|
return NULL;
|
|
}
|
|
arg13 = temp13;
|
|
}
|
|
else
|
|
{
|
|
CvTermCriteria * ptr;
|
|
if (SWIG_ConvertPtr (obj12, (void **) & ptr, SWIGTYPE_p_CvTermCriteria, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvTermCriteria");
|
|
return NULL;
|
|
}
|
|
arg13 = *ptr;
|
|
}
|
|
}
|
|
ecode14 = SWIG_AsVal_int(obj13, &val14);
|
|
if (!SWIG_IsOK(ecode14)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode14), "in method '" "cvCalcAffineFlowPyrLK" "', argument " "14"" of type '" "int""'");
|
|
}
|
|
arg14 = static_cast< int >(val14);
|
|
{
|
|
try {
|
|
cvCalcAffineFlowPyrLK((void const *)arg1,(void const *)arg2,arg3,arg4,(CvPoint2D32f const *)arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
int i;
|
|
PyObject *to_add;
|
|
|
|
/* create the list to return */
|
|
to_add = PyList_New (tmpCountStatus11);
|
|
|
|
/* extract all the integer values of the result, and add it to the
|
|
final resulting list */
|
|
for (i = 0; i < tmpCountStatus11; i++) {
|
|
PyList_SetItem (to_add, i, PyBool_FromLong (arg11 [i]));
|
|
}
|
|
|
|
resultobj = SWIG_AppendResult(resultobj, &to_add, 1);
|
|
}
|
|
{
|
|
PyObject * to_add = SWIG_NewPointerObj (arg12, SWIGTYPE_p_float, SWIG_POINTER_OWN);
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, to_add);
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvEstimateRigidTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
int arg4 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvEstimateRigidTransform",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvEstimateRigidTransform" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
try {
|
|
result = (int)cvEstimateRigidTransform((void const *)arg1,(void const *)arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvUpdateMotionHistory(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
double arg3 ;
|
|
double arg4 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvUpdateMotionHistory",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvUpdateMotionHistory" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvUpdateMotionHistory" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
{
|
|
try {
|
|
cvUpdateMotionHistory((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcMotionGradient(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
double arg4 ;
|
|
double arg5 ;
|
|
int arg6 = (int) 3 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO|O:cvCalcMotionGradient",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvCalcMotionGradient" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
ecode5 = SWIG_AsVal_double(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvCalcMotionGradient" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvCalcMotionGradient" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
{
|
|
try {
|
|
cvCalcMotionGradient((void const *)arg1,arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcGlobalOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
double arg4 ;
|
|
double arg5 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvCalcGlobalOrientation",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvCalcGlobalOrientation" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
ecode5 = SWIG_AsVal_double(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvCalcGlobalOrientation" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
{
|
|
try {
|
|
result = (double)cvCalcGlobalOrientation((void const *)arg1,(void const *)arg2,(void const *)arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAcc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvAcc",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvAcc((void const *)arg1,arg2,(void const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSquareAcc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvSquareAcc",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvSquareAcc((void const *)arg1,arg2,(void const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMultiplyAcc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvMultiplyAcc",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvMultiplyAcc((void const *)arg1,(void const *)arg2,arg3,(void const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRunningAvg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
double arg3 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvRunningAvg",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvRunningAvg" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvRunningAvg((void const *)arg1,arg2,arg3,(void const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCamShift(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvRect arg2 ;
|
|
CvTermCriteria arg3 ;
|
|
CvConnectedComp *arg4 = (CvConnectedComp *) 0 ;
|
|
CvBox2D *arg5 = (CvBox2D *) NULL ;
|
|
bool freearg1 = false ;
|
|
CvRect temp2 ;
|
|
CvTermCriteria temp3 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|O:cvCamShift",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"iiii", & temp2.x, & temp2.y, & temp2.width, & temp2.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 4 integers (x, y, width, height)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvRect * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvRect, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvRect");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"iid", & temp3.type, & temp3.max_iter, & temp3.epsilon))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers and a float (type, max_iter, epsilon)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvTermCriteria * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvTermCriteria, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvTermCriteria");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvConnectedComp, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvCamShift" "', argument " "4"" of type '" "CvConnectedComp *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvConnectedComp * >(argp4);
|
|
if (obj4) {
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_CvBox2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvCamShift" "', argument " "5"" of type '" "CvBox2D *""'");
|
|
}
|
|
arg5 = reinterpret_cast< CvBox2D * >(argp5);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvCamShift((void const *)arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMeanShift(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvRect arg2 ;
|
|
CvTermCriteria arg3 ;
|
|
CvConnectedComp *arg4 = (CvConnectedComp *) 0 ;
|
|
bool freearg1 = false ;
|
|
CvRect temp2 ;
|
|
CvTermCriteria temp3 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvMeanShift",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"iiii", & temp2.x, & temp2.y, & temp2.width, & temp2.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 4 integers (x, y, width, height)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvRect * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvRect, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvRect");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"iid", & temp3.type, & temp3.max_iter, & temp3.epsilon))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers and a float (type, max_iter, epsilon)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvTermCriteria * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvTermCriteria, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvTermCriteria");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvConnectedComp, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvMeanShift" "', argument " "4"" of type '" "CvConnectedComp *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvConnectedComp * >(argp4);
|
|
{
|
|
try {
|
|
result = (int)cvMeanShift((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateConDensation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvConDensation *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvCreateConDensation",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvCreateConDensation" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCreateConDensation" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateConDensation" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (CvConDensation *)cvCreateConDensation(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvConDensation, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvConDensUpdateByTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvConDensUpdateByTime",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvConDensUpdateByTime" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
{
|
|
try {
|
|
cvConDensUpdateByTime(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvConDensInitSampleSet(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvConDensation *arg1 = (CvConDensation *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvConDensInitSampleSet",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvConDensation, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvConDensInitSampleSet" "', argument " "1"" of type '" "CvConDensation *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvConDensation * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
try {
|
|
cvConDensInitSampleSet(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateKalman(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 = (int) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvKalman *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvCreateKalman",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvCreateKalman" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCreateKalman" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateKalman" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvKalman *)cvCreateKalman(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvKalman, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvKalmanPredict(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
CvMat *arg2 = (CvMat *) NULL ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvKalmanPredict",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvKalmanPredict" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
if (obj1) {
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)cvKalmanPredict(arg1,(CvMat const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvKalmanCorrect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvKalman *arg1 = (CvKalman *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvKalmanCorrect",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvKalman, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvKalmanCorrect" "', argument " "1"" of type '" "CvKalman *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvKalman * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvMat *)cvKalmanCorrect(arg1,(CvMat const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvInitSubdivDelaunay2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
CvRect arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
CvRect temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvInitSubdivDelaunay2D",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvInitSubdivDelaunay2D" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"iiii", & temp2.x, & temp2.y, & temp2.width, & temp2.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 4 integers (x, y, width, height)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvRect * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvRect, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvRect");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvInitSubdivDelaunay2D(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateSubdiv2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
CvMemStorage *arg5 = (CvMemStorage *) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
CvSubdiv2D *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvCreateSubdiv2D",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvCreateSubdiv2D" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCreateSubdiv2D" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateSubdiv2D" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvCreateSubdiv2D" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvCreateSubdiv2D" "', argument " "5"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg5 = reinterpret_cast< CvMemStorage * >(argp5);
|
|
{
|
|
try {
|
|
result = (CvSubdiv2D *)cvCreateSubdiv2D(arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateSubdivDelaunay2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRect arg1 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
CvRect temp1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvSubdiv2D *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvCreateSubdivDelaunay2D",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"iiii", & temp1.x, & temp1.y, & temp1.width, & temp1.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 4 integers (x, y, width, height)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvRect * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvRect, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvRect");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvCreateSubdivDelaunay2D" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
{
|
|
try {
|
|
result = (CvSubdiv2D *)cvCreateSubdivDelaunay2D(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSubdivDelaunay2DInsert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
CvPoint2D32f arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
CvPoint2D32f temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvSubdiv2DPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvSubdivDelaunay2DInsert",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvSubdivDelaunay2DInsert" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ff", & temp2.x, & temp2.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 floats (x, y)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvPoint2D32f * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint2D32f");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvSubdiv2DPoint *)cvSubdivDelaunay2DInsert(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSubdiv2DPoint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSubdiv2DLocate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
CvPoint2D32f arg2 ;
|
|
CvSubdiv2DEdge *arg3 = (CvSubdiv2DEdge *) 0 ;
|
|
CvSubdiv2DPoint **arg4 = (CvSubdiv2DPoint **) NULL ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
CvPoint2D32f temp2 ;
|
|
CvSubdiv2DEdge tmpEdge3 ;
|
|
CvSubdiv2DPoint *tmpVertex3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvSubdiv2DPointLocation result;
|
|
|
|
{
|
|
arg3 = &tmpEdge3;
|
|
arg4 = &tmpVertex3;
|
|
}
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvSubdiv2DLocate",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvSubdiv2DLocate" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ff", & temp2.x, & temp2.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 floats (x, y)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvPoint2D32f * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint2D32f");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvSubdiv2DPointLocation)cvSubdiv2DLocate(arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
PyObject * to_add[2] = {
|
|
NULL, NULL
|
|
};
|
|
if(result==CV_PTLOC_INSIDE || result==CV_PTLOC_ON_EDGE){
|
|
CvSubdiv2DEdge_Wrapper * wrapper = new CvSubdiv2DEdge_Wrapper( tmpEdge3 );
|
|
to_add[0] = SWIG_NewPointerObj( wrapper, SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 0);
|
|
to_add[1] = Py_None;
|
|
}
|
|
if(result==CV_PTLOC_VERTEX){
|
|
to_add[0] = Py_None;
|
|
to_add[1] = SWIG_NewPointerObj( tmpVertex3, SWIGTYPE_p_CvSubdiv2DPoint, 0);
|
|
}
|
|
|
|
resultobj = SWIG_AppendResult(resultobj, to_add, 2);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcSubdivVoronoi2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvCalcSubdivVoronoi2D",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvCalcSubdivVoronoi2D" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
{
|
|
try {
|
|
cvCalcSubdivVoronoi2D(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvClearSubdivVoronoi2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvClearSubdivVoronoi2D",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvClearSubdivVoronoi2D" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
{
|
|
try {
|
|
cvClearSubdivVoronoi2D(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFindNearestPoint2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2D *arg1 = (CvSubdiv2D *) 0 ;
|
|
CvPoint2D32f arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
CvPoint2D32f temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvSubdiv2DPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvFindNearestPoint2D",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSubdiv2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvFindNearestPoint2D" "', argument " "1"" of type '" "CvSubdiv2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSubdiv2D * >(argp1);
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ff", & temp2.x, & temp2.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 floats (x, y)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvPoint2D32f * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint2D32f");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvSubdiv2DPoint *)cvFindNearestPoint2D(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSubdiv2DPoint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSubdiv2DNextEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DEdge arg1 ;
|
|
CvSubdiv2DEdge_Wrapper *wrapper1 ;
|
|
CvQuadEdge2D *qedge1 ;
|
|
void *vptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSubdiv2DEdge result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvSubdiv2DNextEdge",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 0) != -1 ){
|
|
wrapper1 = (CvSubdiv2DEdge_Wrapper *) vptr1;
|
|
arg1 = wrapper1->ref();
|
|
}
|
|
else if( SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_CvQuadEdge2D, 0) != -1 ){
|
|
qedge1 = (CvQuadEdge2D *) vptr1;
|
|
arg1 = (CvSubdiv2DEdge)qedge1;
|
|
}
|
|
else{
|
|
SWIG_exception( SWIG_TypeError, "could not convert to CvSubdiv2DEdge");
|
|
return NULL;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = cvSubdiv2DNextEdge(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
CvSubdiv2DEdge_Wrapper * wrapper = new CvSubdiv2DEdge_Wrapper( result );
|
|
resultobj = SWIG_NewPointerObj( wrapper, SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 1 );
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSubdiv2DRotateEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DEdge arg1 ;
|
|
int arg2 ;
|
|
CvSubdiv2DEdge_Wrapper *wrapper1 ;
|
|
CvQuadEdge2D *qedge1 ;
|
|
void *vptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvSubdiv2DEdge result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvSubdiv2DRotateEdge",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 0) != -1 ){
|
|
wrapper1 = (CvSubdiv2DEdge_Wrapper *) vptr1;
|
|
arg1 = wrapper1->ref();
|
|
}
|
|
else if( SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_CvQuadEdge2D, 0) != -1 ){
|
|
qedge1 = (CvQuadEdge2D *) vptr1;
|
|
arg1 = (CvSubdiv2DEdge)qedge1;
|
|
}
|
|
else{
|
|
SWIG_exception( SWIG_TypeError, "could not convert to CvSubdiv2DEdge");
|
|
return NULL;
|
|
}
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSubdiv2DRotateEdge" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = cvSubdiv2DRotateEdge(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
CvSubdiv2DEdge_Wrapper * wrapper = new CvSubdiv2DEdge_Wrapper( result );
|
|
resultobj = SWIG_NewPointerObj( wrapper, SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 1 );
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSubdiv2DSymEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DEdge arg1 ;
|
|
CvSubdiv2DEdge_Wrapper *wrapper1 ;
|
|
CvQuadEdge2D *qedge1 ;
|
|
void *vptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSubdiv2DEdge result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvSubdiv2DSymEdge",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 0) != -1 ){
|
|
wrapper1 = (CvSubdiv2DEdge_Wrapper *) vptr1;
|
|
arg1 = wrapper1->ref();
|
|
}
|
|
else if( SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_CvQuadEdge2D, 0) != -1 ){
|
|
qedge1 = (CvQuadEdge2D *) vptr1;
|
|
arg1 = (CvSubdiv2DEdge)qedge1;
|
|
}
|
|
else{
|
|
SWIG_exception( SWIG_TypeError, "could not convert to CvSubdiv2DEdge");
|
|
return NULL;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = cvSubdiv2DSymEdge(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
CvSubdiv2DEdge_Wrapper * wrapper = new CvSubdiv2DEdge_Wrapper( result );
|
|
resultobj = SWIG_NewPointerObj( wrapper, SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 1 );
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSubdiv2DGetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DEdge arg1 ;
|
|
CvNextEdgeType arg2 ;
|
|
CvSubdiv2DEdge_Wrapper *wrapper1 ;
|
|
CvQuadEdge2D *qedge1 ;
|
|
void *vptr1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvSubdiv2DEdge result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvSubdiv2DGetEdge",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 0) != -1 ){
|
|
wrapper1 = (CvSubdiv2DEdge_Wrapper *) vptr1;
|
|
arg1 = wrapper1->ref();
|
|
}
|
|
else if( SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_CvQuadEdge2D, 0) != -1 ){
|
|
qedge1 = (CvQuadEdge2D *) vptr1;
|
|
arg1 = (CvSubdiv2DEdge)qedge1;
|
|
}
|
|
else{
|
|
SWIG_exception( SWIG_TypeError, "could not convert to CvSubdiv2DEdge");
|
|
return NULL;
|
|
}
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSubdiv2DGetEdge" "', argument " "2"" of type '" "CvNextEdgeType""'");
|
|
}
|
|
arg2 = static_cast< CvNextEdgeType >(val2);
|
|
{
|
|
try {
|
|
result = cvSubdiv2DGetEdge(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
CvSubdiv2DEdge_Wrapper * wrapper = new CvSubdiv2DEdge_Wrapper( result );
|
|
resultobj = SWIG_NewPointerObj( wrapper, SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 1 );
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSubdiv2DEdgeOrg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DEdge arg1 ;
|
|
CvSubdiv2DEdge_Wrapper *wrapper1 ;
|
|
CvQuadEdge2D *qedge1 ;
|
|
void *vptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSubdiv2DPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvSubdiv2DEdgeOrg",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 0) != -1 ){
|
|
wrapper1 = (CvSubdiv2DEdge_Wrapper *) vptr1;
|
|
arg1 = wrapper1->ref();
|
|
}
|
|
else if( SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_CvQuadEdge2D, 0) != -1 ){
|
|
qedge1 = (CvQuadEdge2D *) vptr1;
|
|
arg1 = (CvSubdiv2DEdge)qedge1;
|
|
}
|
|
else{
|
|
SWIG_exception( SWIG_TypeError, "could not convert to CvSubdiv2DEdge");
|
|
return NULL;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvSubdiv2DPoint *)cvSubdiv2DEdgeOrg(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSubdiv2DPoint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSubdiv2DEdgeDst(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSubdiv2DEdge arg1 ;
|
|
CvSubdiv2DEdge_Wrapper *wrapper1 ;
|
|
CvQuadEdge2D *qedge1 ;
|
|
void *vptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSubdiv2DPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvSubdiv2DEdgeDst",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_CvSubdiv2DEdge_Wrapper, 0) != -1 ){
|
|
wrapper1 = (CvSubdiv2DEdge_Wrapper *) vptr1;
|
|
arg1 = wrapper1->ref();
|
|
}
|
|
else if( SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_CvQuadEdge2D, 0) != -1 ){
|
|
qedge1 = (CvQuadEdge2D *) vptr1;
|
|
arg1 = (CvSubdiv2DEdge)qedge1;
|
|
}
|
|
else{
|
|
SWIG_exception( SWIG_TypeError, "could not convert to CvSubdiv2DEdge");
|
|
return NULL;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvSubdiv2DPoint *)cvSubdiv2DEdgeDst(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSubdiv2DPoint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvTriangleArea(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D32f arg1 ;
|
|
CvPoint2D32f arg2 ;
|
|
CvPoint2D32f arg3 ;
|
|
CvPoint2D32f temp1 ;
|
|
CvPoint2D32f temp2 ;
|
|
CvPoint2D32f temp3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvTriangleArea",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"ff", & temp1.x, & temp1.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 floats (x, y)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvPoint2D32f * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint2D32f");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ff", & temp2.x, & temp2.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 floats (x, y)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvPoint2D32f * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint2D32f");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ff", & temp3.x, & temp3.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 floats (x, y)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvPoint2D32f * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint2D32f");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (double)cvTriangleArea(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFindDominantPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
int arg3 = (int) 1 ;
|
|
double arg4 = (double) 0 ;
|
|
double arg5 = (double) 0 ;
|
|
double arg6 = (double) 0 ;
|
|
double arg7 = (double) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
double val6 ;
|
|
int ecode6 = 0 ;
|
|
double val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OOOOO:cvFindDominantPoints",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvFindDominantPoints" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvFindDominantPoints" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvFindDominantPoints" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_double(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvFindDominantPoints" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_double(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvFindDominantPoints" "', argument " "6"" of type '" "double""'");
|
|
}
|
|
arg6 = static_cast< double >(val6);
|
|
}
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_double(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvFindDominantPoints" "', argument " "7"" of type '" "double""'");
|
|
}
|
|
arg7 = static_cast< double >(val7);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvSeq *)cvFindDominantPoints(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvArcLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void *arg1 = (void *) 0 ;
|
|
CvSlice arg2 = (CvSlice) cvSlice(0, 0x3fffffff) ;
|
|
int arg3 = (int) -1 ;
|
|
int res1 ;
|
|
CvSlice temp2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|OO:cvArcLength",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvArcLength" "', argument " "1"" of type '" "void const *""'");
|
|
}
|
|
if (obj1) {
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ii", & temp2.start_index, & temp2.end_index))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (start_index, end_index)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvSlice * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvSlice, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSlice");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvArcLength" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
try {
|
|
result = (double)cvArcLength((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvRect result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvBoundingRect",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvBoundingRect" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
try {
|
|
result = cvBoundingRect(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvRect(static_cast< const CvRect& >(result))), SWIGTYPE_p_CvRect, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvContourArea(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvSlice arg2 = (CvSlice) cvSlice(0, 0x3fffffff) ;
|
|
bool freearg1 = false ;
|
|
CvSlice temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvContourArea",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
if (obj1) {
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ii", & temp2.start_index, & temp2.end_index))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (start_index, end_index)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvSlice * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvSlice, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSlice");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (double)cvContourArea((void const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMinAreaRect2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) NULL ;
|
|
bool freearg1 = false ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvBox2D result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvMinAreaRect2",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
if (obj1) {
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvMinAreaRect2" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
}
|
|
{
|
|
try {
|
|
result = cvMinAreaRect2((void const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvBox2D(static_cast< const CvBox2D& >(result))), SWIGTYPE_p_CvBox2D, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMinEnclosingCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvPoint2D32f *arg2 = (CvPoint2D32f *) 0 ;
|
|
float *arg3 = (float *) 0 ;
|
|
bool freearg1 = false ;
|
|
CvPoint2D32f *tmp_center2 ;
|
|
float tmp_radius2 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
{
|
|
tmp_center2 = (CvPoint2D32f *) malloc(sizeof(CvPoint2D32f));
|
|
arg2 = tmp_center2;
|
|
arg3 = &tmp_radius2;
|
|
}
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvMinEnclosingCircle",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvMinEnclosingCircle((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
PyObject * to_add[2] = {
|
|
NULL, NULL
|
|
};
|
|
to_add[0] = SWIG_NewPointerObj( tmp_center2, SWIGTYPE_p_CvPoint2D32f, 1);
|
|
to_add[1] = PyFloat_FromDouble( tmp_radius2 );
|
|
|
|
resultobj = SWIG_AppendResult(resultobj, to_add, 2);
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMatchShapes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void *arg1 = (void *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
int arg3 ;
|
|
double arg4 = (double) 0 ;
|
|
int res1 ;
|
|
int res2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvMatchShapes",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvMatchShapes" "', argument " "1"" of type '" "void const *""'");
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvMatchShapes" "', argument " "2"" of type '" "void const *""'");
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvMatchShapes" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvMatchShapes" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
}
|
|
{
|
|
try {
|
|
result = (double)cvMatchShapes((void const *)arg1,(void const *)arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateContourTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
double arg3 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvContourTree *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvCreateContourTree",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvCreateContourTree" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateContourTree" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
{
|
|
try {
|
|
result = (CvContourTree *)cvCreateContourTree((CvSeq const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvContourFromContourTreeUntyped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
CvTermCriteria arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
CvTermCriteria temp3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvContourFromContourTreeUntyped",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvContourFromContourTreeUntyped" "', argument " "1"" of type '" "CvContourTree const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvContourFromContourTreeUntyped" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"iid", & temp3.type, & temp3.max_iter, & temp3.epsilon))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers and a float (type, max_iter, epsilon)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvTermCriteria * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvTermCriteria, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvTermCriteria");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvSeq *)cvContourFromContourTree((CvContourTree const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMatchContourTrees(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvContourTree *arg1 = (CvContourTree *) 0 ;
|
|
CvContourTree *arg2 = (CvContourTree *) 0 ;
|
|
int arg3 ;
|
|
double arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvMatchContourTrees",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvMatchContourTrees" "', argument " "1"" of type '" "CvContourTree const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvContourTree * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvContourTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvMatchContourTrees" "', argument " "2"" of type '" "CvContourTree const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvContourTree * >(argp2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvMatchContourTrees" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvMatchContourTrees" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
{
|
|
try {
|
|
result = (double)cvMatchContourTrees((CvContourTree const *)arg1,(CvContourTree const *)arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcPGH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
CvHistogram *arg2 = (CvHistogram *) 0 ;
|
|
void *ptr1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvCalcPGH",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvCalcPGH" "', argument " "2"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvHistogram * >(argp2);
|
|
{
|
|
try {
|
|
cvCalcPGH((CvSeq const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCheckContourConvexity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvCheckContourConvexity",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvCheckContourConvexity((void const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvConvexityDefectsUntyped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvMemStorage *arg3 = (CvMemStorage *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvConvexityDefectsUntyped",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvConvexityDefectsUntyped" "', argument " "3"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvMemStorage * >(argp3);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvSeq *)cvConvexityDefects((void const *)arg1,(void const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFitEllipse2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
CvBox2D result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvFitEllipse2",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = cvFitEllipse2((void const *)arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvBox2D(static_cast< const CvBox2D& >(result))), SWIGTYPE_p_CvBox2D, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMaxRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvRect *arg1 = (CvRect *) 0 ;
|
|
CvRect *arg2 = (CvRect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvRect result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvMaxRect",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvMaxRect" "', argument " "1"" of type '" "CvRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvRect * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvMaxRect" "', argument " "2"" of type '" "CvRect const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvRect * >(argp2);
|
|
{
|
|
try {
|
|
result = cvMaxRect((CvRect const *)arg1,(CvRect const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvRect(static_cast< const CvRect& >(result))), SWIGTYPE_p_CvRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvBoxPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvBox2D arg1 ;
|
|
CvPoint2D32f *arg2 ;
|
|
CvBox2D temp1 ;
|
|
CvPoint2D32f tmp_pts2[4] ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
{
|
|
arg2 = tmp_pts2;
|
|
}
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvBoxPoints",&obj0)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"fffff", & temp1.center.x, & temp1.center.y, & temp1.size.width, & temp1.size.height, & temp1.angle))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 5 floats (center_x, center_y, width, height, angle)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvBox2D * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvBox2D, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvBox2D");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvBoxPoints(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
PyObject * to_add = PyList_New(4);
|
|
int i;
|
|
for(i=0; i<4; i++){
|
|
CvPoint2D32f * p = new CvPoint2D32f;
|
|
*p = tmp_pts2[i];
|
|
PyList_SetItem(to_add, i, SWIG_NewPointerObj( p, SWIGTYPE_p_CvPoint2D32f, 1 ) );
|
|
}
|
|
resultobj = SWIG_AppendResult(resultobj, &to_add, 1);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPointSeqFromMat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvContour *arg3 = (CvContour *) 0 ;
|
|
CvSeqBlock *arg4 = (CvSeqBlock *) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
bool freearg2 = false ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvPointSeqFromMat",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvPointSeqFromMat" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvContour, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvPointSeqFromMat" "', argument " "3"" of type '" "CvContour *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvContour * >(argp3);
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvSeqBlock, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvPointSeqFromMat" "', argument " "4"" of type '" "CvSeqBlock *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvSeqBlock * >(argp4);
|
|
{
|
|
try {
|
|
result = (CvSeq *)cvPointSeqFromMat(arg1,(void const *)arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPointPolygonTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvPoint2D32f arg2 ;
|
|
int arg3 ;
|
|
bool freearg1 = false ;
|
|
CvPoint2D32f temp2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvPointPolygonTest",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ff", & temp2.x, & temp2.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 floats (x, y)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvPoint2D32f * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint2D32f");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvPointPolygonTest" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (double)cvPointPolygonTest((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateHist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int *arg2 = (int *) 0 ;
|
|
int arg3 ;
|
|
float **arg4 = (float **) NULL ;
|
|
int arg5 = (int) 1 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvHistogram *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OO:cvCreateHist",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
int i;
|
|
|
|
/* get the size of the dimention array */
|
|
arg1 = PyList_Size (obj0);
|
|
|
|
/* allocate the needed memory */
|
|
arg2 = (int *)malloc (arg1 * sizeof (int));
|
|
|
|
/* extract all the integer values from the list */
|
|
for (i = 0; i < arg1; i++) {
|
|
PyObject *item = PyList_GetItem (obj0, i);
|
|
arg2 [i] = (int)PyInt_AsLong (item);
|
|
}
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj1, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateHist" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj2) {
|
|
{
|
|
int i1;
|
|
int i2;
|
|
int size1;
|
|
int size2 = 0;
|
|
|
|
/* get the number of lines of the matrix */
|
|
size1 = PyList_Size (obj2);
|
|
|
|
/* allocate the correct number of lines for the destination matrix */
|
|
arg4 = (float **)malloc (size1 * sizeof (float *));
|
|
|
|
for (i1 = 0; i1 < size1; i1++) {
|
|
/* extract all the lines of the matrix */
|
|
PyObject *list = PyList_GetItem (obj2, i1);
|
|
|
|
if (size2 == 0) {
|
|
/* size 2 wasn't computed before */
|
|
size2 = PyList_Size (list);
|
|
} else if (size2 != PyList_Size (list)) {
|
|
/* the current line as a different size than the previous one */
|
|
/* so, generate an exception */
|
|
SWIG_exception (SWIG_ValueError, "Lines must be the same size");
|
|
}
|
|
|
|
/* allocate the correct number of rows for the current line */
|
|
arg4 [i1] = (float *)malloc (size2 * sizeof (float));
|
|
|
|
/* extract all the float values of this row */
|
|
for (i2 = 0; i2 < size2; i2++) {
|
|
PyObject *item = PyList_GetItem (list, i2);
|
|
arg4 [i1][i2] = (float)PyFloat_AsDouble (item);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (obj3) {
|
|
ecode5 = SWIG_AsVal_int(obj3, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvCreateHist" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvHistogram *)cvCreateHist(arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvHistogram, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetHistBinRanges(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
float **arg2 = (float **) 0 ;
|
|
int arg3 = (int) 1 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvSetHistBinRanges",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvSetHistBinRanges" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
{
|
|
int i1;
|
|
int i2;
|
|
int size1;
|
|
int size2 = 0;
|
|
|
|
/* get the number of lines of the matrix */
|
|
size1 = PyList_Size (obj1);
|
|
|
|
/* allocate the correct number of lines for the destination matrix */
|
|
arg2 = (float **)malloc (size1 * sizeof (float *));
|
|
|
|
for (i1 = 0; i1 < size1; i1++) {
|
|
/* extract all the lines of the matrix */
|
|
PyObject *list = PyList_GetItem (obj1, i1);
|
|
|
|
if (size2 == 0) {
|
|
/* size 2 wasn't computed before */
|
|
size2 = PyList_Size (list);
|
|
} else if (size2 != PyList_Size (list)) {
|
|
/* the current line as a different size than the previous one */
|
|
/* so, generate an exception */
|
|
SWIG_exception (SWIG_ValueError, "Lines must be the same size");
|
|
}
|
|
|
|
/* allocate the correct number of rows for the current line */
|
|
arg2 [i1] = (float *)malloc (size2 * sizeof (float));
|
|
|
|
/* extract all the float values of this row */
|
|
for (i2 = 0; i2 < size2; i2++) {
|
|
PyObject *item = PyList_GetItem (list, i2);
|
|
arg2 [i1][i2] = (float)PyFloat_AsDouble (item);
|
|
}
|
|
}
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvSetHistBinRanges" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
try {
|
|
cvSetHistBinRanges(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMakeHistHeaderForArray(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int *arg2 = (int *) 0 ;
|
|
CvHistogram *arg3 = (CvHistogram *) 0 ;
|
|
float *arg4 = (float *) 0 ;
|
|
float **arg5 = (float **) NULL ;
|
|
int arg6 = (int) 1 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
CvHistogram *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OO:cvMakeHistHeaderForArray",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
int i;
|
|
|
|
/* get the size of the dimention array */
|
|
arg1 = PyList_Size (obj0);
|
|
|
|
/* allocate the needed memory */
|
|
arg2 = (int *)malloc (arg1 * sizeof (int));
|
|
|
|
/* extract all the integer values from the list */
|
|
for (i = 0; i < arg1; i++) {
|
|
PyObject *item = PyList_GetItem (obj0, i);
|
|
arg2 [i] = (int)PyInt_AsLong (item);
|
|
}
|
|
}
|
|
res3 = SWIG_ConvertPtr(obj1, &argp3,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvMakeHistHeaderForArray" "', argument " "3"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvHistogram * >(argp3);
|
|
res4 = SWIG_ConvertPtr(obj2, &argp4,SWIGTYPE_p_float, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvMakeHistHeaderForArray" "', argument " "4"" of type '" "float *""'");
|
|
}
|
|
arg4 = reinterpret_cast< float * >(argp4);
|
|
if (obj3) {
|
|
{
|
|
int i1;
|
|
int i2;
|
|
int size1;
|
|
int size2 = 0;
|
|
|
|
/* get the number of lines of the matrix */
|
|
size1 = PyList_Size (obj3);
|
|
|
|
/* allocate the correct number of lines for the destination matrix */
|
|
arg5 = (float **)malloc (size1 * sizeof (float *));
|
|
|
|
for (i1 = 0; i1 < size1; i1++) {
|
|
/* extract all the lines of the matrix */
|
|
PyObject *list = PyList_GetItem (obj3, i1);
|
|
|
|
if (size2 == 0) {
|
|
/* size 2 wasn't computed before */
|
|
size2 = PyList_Size (list);
|
|
} else if (size2 != PyList_Size (list)) {
|
|
/* the current line as a different size than the previous one */
|
|
/* so, generate an exception */
|
|
SWIG_exception (SWIG_ValueError, "Lines must be the same size");
|
|
}
|
|
|
|
/* allocate the correct number of rows for the current line */
|
|
arg5 [i1] = (float *)malloc (size2 * sizeof (float));
|
|
|
|
/* extract all the float values of this row */
|
|
for (i2 = 0; i2 < size2; i2++) {
|
|
PyObject *item = PyList_GetItem (list, i2);
|
|
arg5 [i1][i2] = (float)PyFloat_AsDouble (item);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if (obj4) {
|
|
ecode6 = SWIG_AsVal_int(obj4, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvMakeHistHeaderForArray" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvHistogram *)cvMakeHistHeaderForArray(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvClearHist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvClearHist",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvClearHist" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
{
|
|
try {
|
|
cvClearHist(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetMinMaxHistValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
float *arg2 = (float *) 0 ;
|
|
float *arg3 = (float *) 0 ;
|
|
int *arg4 = (int *) NULL ;
|
|
int *arg5 = (int *) NULL ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float temp2 ;
|
|
int res2 = SWIG_TMPOBJ ;
|
|
float temp3 ;
|
|
int res3 = SWIG_TMPOBJ ;
|
|
int temp4 ;
|
|
int res4 = SWIG_TMPOBJ ;
|
|
int temp5 ;
|
|
int res5 = SWIG_TMPOBJ ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
arg2 = &temp2;
|
|
arg3 = &temp3;
|
|
arg4 = &temp4;
|
|
arg5 = &temp5;
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvGetMinMaxHistValue",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvGetMinMaxHistValue" "', argument " "1"" of type '" "CvHistogram const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
{
|
|
try {
|
|
cvGetMinMaxHistValue((CvHistogram const *)arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsTmpObj(res2)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg2)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_float, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_float((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_float, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res4)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res5)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvNormalizeHist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvNormalizeHist",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvNormalizeHist" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvNormalizeHist" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
cvNormalizeHist(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvThreshHist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvThreshHist",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvThreshHist" "', argument " "1"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvThreshHist" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
try {
|
|
cvThreshHist(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCompareHist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
CvHistogram *arg2 = (CvHistogram *) 0 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvCompareHist",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvCompareHist" "', argument " "1"" of type '" "CvHistogram const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvCompareHist" "', argument " "2"" of type '" "CvHistogram const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvHistogram * >(argp2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCompareHist" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
try {
|
|
result = (double)cvCompareHist((CvHistogram const *)arg1,(CvHistogram const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCopyHist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
CvHistogram **arg2 = (CvHistogram **) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *vptr2 ;
|
|
CvHistogram *buffer2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvCopyHist",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvCopyHist" "', argument " "1"" of type '" "CvHistogram const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
{
|
|
if ((SWIG_ConvertPtr(obj1, &vptr2, SWIGTYPE_p_CvHistogram, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer2 = (CvHistogram *) vptr2;
|
|
arg2=&buffer2;
|
|
}
|
|
{
|
|
try {
|
|
cvCopyHist((CvHistogram const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcBayesianProb(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram **arg1 = (CvHistogram **) 0 ;
|
|
int arg2 ;
|
|
CvHistogram **arg3 = (CvHistogram **) 0 ;
|
|
void *vptr1 ;
|
|
CvHistogram *buffer1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *vptr3 ;
|
|
CvHistogram *buffer3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvCalcBayesianProb",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if ((SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p_CvHistogram, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer1 = (CvHistogram *) vptr1;
|
|
arg1=&buffer1;
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCalcBayesianProb" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
if ((SWIG_ConvertPtr(obj2, &vptr3, SWIGTYPE_p_CvHistogram, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer3 = (CvHistogram *) vptr3;
|
|
arg3=&buffer3;
|
|
}
|
|
{
|
|
try {
|
|
cvCalcBayesianProb(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcArrHist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr **arg1 = (CvArr **) 0 ;
|
|
CvHistogram *arg2 = (CvHistogram *) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
CvArr *one_image1 = NULL ;
|
|
bool free_one_arg1 = false ;
|
|
CvArr **many_images1 = NULL ;
|
|
bool *free_many_args1 = NULL ;
|
|
int nimages1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OO:cvCalcArrHist",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
/* first, check if this is a tuple */
|
|
if PyTuple_Check (obj0) {
|
|
/* This is a tuple, so we need to test each element and pass
|
|
them to the called function */
|
|
|
|
int i;
|
|
|
|
/* get the size of the tuple */
|
|
nimages1 = PyTuple_Size (obj0);
|
|
|
|
/* allocate the necessary place */
|
|
many_images1 = (CvArr **)malloc (nimages1 * sizeof (CvArr *));
|
|
free_many_args1 = (bool *)malloc(nimages1 * sizeof(bool));
|
|
|
|
for (i = 0; i < nimages1; i++) {
|
|
/* convert the current tuple element to a CvArr *, and
|
|
store to many_images1 [i] */
|
|
many_images1[i] = PyObject_to_CvArr (PyTuple_GetItem (obj0, i),
|
|
free_many_args1+i);
|
|
|
|
/* check that the current item is a correct type */
|
|
if(!many_images1[i]) {
|
|
/* incorrect ! */
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
|
|
/* what to give to the called function */
|
|
arg1 = many_images1;
|
|
|
|
} else if((one_image1 = PyObject_to_CvArr( obj0, &free_one_arg1 ))){
|
|
/* this is just one CvArr *, so one_image1 will receive it */
|
|
arg1 = &one_image1;
|
|
|
|
} else {
|
|
/* not a CvArr *, not a tuple, this is wrong */
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvCalcArrHist" "', argument " "2"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvHistogram * >(argp2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCalcArrHist" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvCalcArrHist(arg1,arg2,arg3,(void const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(free_one_arg1){
|
|
cvFree(&(one_image1));
|
|
}
|
|
else if(free_many_args1){
|
|
int i;
|
|
for (i=0; i<nimages1; i++){
|
|
if(free_many_args1[i]){
|
|
cvReleaseData(many_images1[i]);
|
|
cvFree(many_images1+i);
|
|
}
|
|
}
|
|
free(many_images1);
|
|
free(free_many_args1);
|
|
}
|
|
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(free_one_arg1){
|
|
cvFree(&(one_image1));
|
|
}
|
|
else if(free_many_args1){
|
|
int i;
|
|
for (i=0; i<nimages1; i++){
|
|
if(free_many_args1[i]){
|
|
cvReleaseData(many_images1[i]);
|
|
cvFree(many_images1+i);
|
|
}
|
|
}
|
|
free(many_images1);
|
|
free(free_many_args1);
|
|
}
|
|
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcHist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
IplImage **arg1 = (IplImage **) 0 ;
|
|
CvHistogram *arg2 = (CvHistogram *) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
CvArr *arg4 = (CvArr *) NULL ;
|
|
void *vptr1 ;
|
|
IplImage *buffer1 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OO:cvCalcHist",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
if ((SWIG_ConvertPtr(obj0, &vptr1, SWIGTYPE_p__IplImage, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer1 = (IplImage *) vptr1;
|
|
arg1=&buffer1;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvCalcHist" "', argument " "2"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvHistogram * >(argp2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCalcHist" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvCalcHist(arg1,arg2,arg3,(void const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcArrBackProject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr **arg1 = (CvArr **) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvHistogram *arg3 = (CvHistogram *) 0 ;
|
|
CvArr *one_image1 = NULL ;
|
|
bool free_one_arg1 = false ;
|
|
CvArr **many_images1 = NULL ;
|
|
bool *free_many_args1 = NULL ;
|
|
int nimages1 = 0 ;
|
|
bool freearg2 = false ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvCalcArrBackProject",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
/* first, check if this is a tuple */
|
|
if PyTuple_Check (obj0) {
|
|
/* This is a tuple, so we need to test each element and pass
|
|
them to the called function */
|
|
|
|
int i;
|
|
|
|
/* get the size of the tuple */
|
|
nimages1 = PyTuple_Size (obj0);
|
|
|
|
/* allocate the necessary place */
|
|
many_images1 = (CvArr **)malloc (nimages1 * sizeof (CvArr *));
|
|
free_many_args1 = (bool *)malloc(nimages1 * sizeof(bool));
|
|
|
|
for (i = 0; i < nimages1; i++) {
|
|
/* convert the current tuple element to a CvArr *, and
|
|
store to many_images1 [i] */
|
|
many_images1[i] = PyObject_to_CvArr (PyTuple_GetItem (obj0, i),
|
|
free_many_args1+i);
|
|
|
|
/* check that the current item is a correct type */
|
|
if(!many_images1[i]) {
|
|
/* incorrect ! */
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
|
|
/* what to give to the called function */
|
|
arg1 = many_images1;
|
|
|
|
} else if((one_image1 = PyObject_to_CvArr( obj0, &free_one_arg1 ))){
|
|
/* this is just one CvArr *, so one_image1 will receive it */
|
|
arg1 = &one_image1;
|
|
|
|
} else {
|
|
/* not a CvArr *, not a tuple, this is wrong */
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvCalcArrBackProject" "', argument " "3"" of type '" "CvHistogram const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvHistogram * >(argp3);
|
|
{
|
|
try {
|
|
cvCalcArrBackProject(arg1,arg2,(CvHistogram const *)arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(free_one_arg1){
|
|
cvFree(&(one_image1));
|
|
}
|
|
else if(free_many_args1){
|
|
int i;
|
|
for (i=0; i<nimages1; i++){
|
|
if(free_many_args1[i]){
|
|
cvReleaseData(many_images1[i]);
|
|
cvFree(many_images1+i);
|
|
}
|
|
}
|
|
free(many_images1);
|
|
free(free_many_args1);
|
|
}
|
|
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(free_one_arg1){
|
|
cvFree(&(one_image1));
|
|
}
|
|
else if(free_many_args1){
|
|
int i;
|
|
for (i=0; i<nimages1; i++){
|
|
if(free_many_args1[i]){
|
|
cvReleaseData(many_images1[i]);
|
|
cvFree(many_images1+i);
|
|
}
|
|
}
|
|
free(many_images1);
|
|
free(free_many_args1);
|
|
}
|
|
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcArrBackProjectPatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr **arg1 = (CvArr **) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvSize arg3 ;
|
|
CvHistogram *arg4 = (CvHistogram *) 0 ;
|
|
int arg5 ;
|
|
double arg6 ;
|
|
CvArr *one_image1 = NULL ;
|
|
bool free_one_arg1 = false ;
|
|
CvArr **many_images1 = NULL ;
|
|
bool *free_many_args1 = NULL ;
|
|
int nimages1 = 0 ;
|
|
bool freearg2 = false ;
|
|
CvSize temp3 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
double val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO:cvCalcArrBackProjectPatch",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
/* first, check if this is a tuple */
|
|
if PyTuple_Check (obj0) {
|
|
/* This is a tuple, so we need to test each element and pass
|
|
them to the called function */
|
|
|
|
int i;
|
|
|
|
/* get the size of the tuple */
|
|
nimages1 = PyTuple_Size (obj0);
|
|
|
|
/* allocate the necessary place */
|
|
many_images1 = (CvArr **)malloc (nimages1 * sizeof (CvArr *));
|
|
free_many_args1 = (bool *)malloc(nimages1 * sizeof(bool));
|
|
|
|
for (i = 0; i < nimages1; i++) {
|
|
/* convert the current tuple element to a CvArr *, and
|
|
store to many_images1 [i] */
|
|
many_images1[i] = PyObject_to_CvArr (PyTuple_GetItem (obj0, i),
|
|
free_many_args1+i);
|
|
|
|
/* check that the current item is a correct type */
|
|
if(!many_images1[i]) {
|
|
/* incorrect ! */
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
|
|
/* what to give to the called function */
|
|
arg1 = many_images1;
|
|
|
|
} else if((one_image1 = PyObject_to_CvArr( obj0, &free_one_arg1 ))){
|
|
/* this is just one CvArr *, so one_image1 will receive it */
|
|
arg1 = &one_image1;
|
|
|
|
} else {
|
|
/* not a CvArr *, not a tuple, this is wrong */
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ii", & temp3.width, & temp3.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg3 = temp3;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg3 = *ptr;
|
|
}
|
|
}
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvCalcArrBackProjectPatch" "', argument " "4"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvHistogram * >(argp4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvCalcArrBackProjectPatch" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
ecode6 = SWIG_AsVal_double(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvCalcArrBackProjectPatch" "', argument " "6"" of type '" "double""'");
|
|
}
|
|
arg6 = static_cast< double >(val6);
|
|
{
|
|
try {
|
|
cvCalcArrBackProjectPatch(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(free_one_arg1){
|
|
cvFree(&(one_image1));
|
|
}
|
|
else if(free_many_args1){
|
|
int i;
|
|
for (i=0; i<nimages1; i++){
|
|
if(free_many_args1[i]){
|
|
cvReleaseData(many_images1[i]);
|
|
cvFree(many_images1+i);
|
|
}
|
|
}
|
|
free(many_images1);
|
|
free(free_many_args1);
|
|
}
|
|
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(free_one_arg1){
|
|
cvFree(&(one_image1));
|
|
}
|
|
else if(free_many_args1){
|
|
int i;
|
|
for (i=0; i<nimages1; i++){
|
|
if(free_many_args1[i]){
|
|
cvReleaseData(many_images1[i]);
|
|
cvFree(many_images1+i);
|
|
}
|
|
}
|
|
free(many_images1);
|
|
free(free_many_args1);
|
|
}
|
|
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcProbDensity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHistogram *arg1 = (CvHistogram *) 0 ;
|
|
CvHistogram *arg2 = (CvHistogram *) 0 ;
|
|
CvHistogram *arg3 = (CvHistogram *) 0 ;
|
|
double arg4 = (double) 255 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvCalcProbDensity",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvCalcProbDensity" "', argument " "1"" of type '" "CvHistogram const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHistogram * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvCalcProbDensity" "', argument " "2"" of type '" "CvHistogram const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvHistogram * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvCalcProbDensity" "', argument " "3"" of type '" "CvHistogram *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvHistogram * >(argp3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvCalcProbDensity" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
}
|
|
{
|
|
try {
|
|
cvCalcProbDensity((CvHistogram const *)arg1,(CvHistogram const *)arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvEqualizeHist(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvEqualizeHist",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
cvEqualizeHist((void const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcImageHomography(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
float *arg1 = (float *) 0 ;
|
|
CvPoint3D32f *arg2 = (CvPoint3D32f *) 0 ;
|
|
float *arg3 = (float *) 0 ;
|
|
float *arg4 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvCalcImageHomography",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_float, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvCalcImageHomography" "', argument " "1"" of type '" "float *""'");
|
|
}
|
|
arg1 = reinterpret_cast< float * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint3D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvCalcImageHomography" "', argument " "2"" of type '" "CvPoint3D32f *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint3D32f * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvCalcImageHomography" "', argument " "3"" of type '" "float *""'");
|
|
}
|
|
arg3 = reinterpret_cast< float * >(argp3);
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_float, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvCalcImageHomography" "', argument " "4"" of type '" "float *""'");
|
|
}
|
|
arg4 = reinterpret_cast< float * >(argp4);
|
|
{
|
|
try {
|
|
cvCalcImageHomography(arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvDistTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 = (int) 2 ;
|
|
int arg4 = (int) 3 ;
|
|
float *arg5 = (float *) NULL ;
|
|
CvArr *arg6 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
bool freearg6 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OOOO:cvDistTransform",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvDistTransform" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvDistTransform" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvDistTransform" "', argument " "5"" of type '" "float const *""'");
|
|
}
|
|
arg5 = reinterpret_cast< float * >(argp5);
|
|
}
|
|
if (obj5) {
|
|
{
|
|
arg6 = PyObject_to_CvArr(obj5, &freearg6);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvDistTransform((void const *)arg1,arg2,arg3,arg4,(float const *)arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6)
|
|
{
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6)
|
|
{
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
double arg3 ;
|
|
double arg4 ;
|
|
int arg5 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvThreshold",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvThreshold" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvThreshold" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvThreshold" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
{
|
|
try {
|
|
result = (double)cvThreshold((void const *)arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvAdaptiveThreshold(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
double arg3 ;
|
|
int arg4 = (int) 0 ;
|
|
int arg5 = (int) 0 ;
|
|
int arg6 = (int) 3 ;
|
|
double arg7 = (double) 5 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
double val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OOOO:cvAdaptiveThreshold",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvAdaptiveThreshold" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvAdaptiveThreshold" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvAdaptiveThreshold" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvAdaptiveThreshold" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_double(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvAdaptiveThreshold" "', argument " "7"" of type '" "double""'");
|
|
}
|
|
arg7 = static_cast< double >(val7);
|
|
}
|
|
{
|
|
try {
|
|
cvAdaptiveThreshold((void const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvPoint arg2 ;
|
|
CvScalar arg3 ;
|
|
CvScalar arg4 = (CvScalar) cvScalarAll(0) ;
|
|
CvScalar arg5 = (CvScalar) cvScalarAll(0) ;
|
|
CvConnectedComp *arg6 = (CvConnectedComp *) NULL ;
|
|
int arg7 = (int) 4 ;
|
|
CvArr *arg8 = (CvArr *) NULL ;
|
|
bool freearg1 = false ;
|
|
CvPoint temp2 ;
|
|
void *argp6 = 0 ;
|
|
int res6 = 0 ;
|
|
int val7 ;
|
|
int ecode7 = 0 ;
|
|
bool freearg8 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OOOOO:cvFloodFill",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ii", & temp2.x, & temp2.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvScalar( obj2 );
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = PyObject_to_CvScalar( obj3 );
|
|
}
|
|
}
|
|
if (obj4) {
|
|
{
|
|
arg5 = PyObject_to_CvScalar( obj4 );
|
|
}
|
|
}
|
|
if (obj5) {
|
|
res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_CvConnectedComp, 0 | 0 );
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "cvFloodFill" "', argument " "6"" of type '" "CvConnectedComp *""'");
|
|
}
|
|
arg6 = reinterpret_cast< CvConnectedComp * >(argp6);
|
|
}
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_int(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvFloodFill" "', argument " "7"" of type '" "int""'");
|
|
}
|
|
arg7 = static_cast< int >(val7);
|
|
}
|
|
if (obj7) {
|
|
{
|
|
arg8 = PyObject_to_CvArr(obj7, &freearg8);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvFloodFill(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg8!=NULL && freearg8)
|
|
{
|
|
cvReleaseData( arg8 );
|
|
cvFree(&(arg8));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg8!=NULL && freearg8)
|
|
{
|
|
cvReleaseData( arg8 );
|
|
cvFree(&(arg8));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCanny(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
double arg3 ;
|
|
double arg4 ;
|
|
int arg5 = (int) 3 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|O:cvCanny",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCanny" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvCanny" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvCanny" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
{
|
|
try {
|
|
cvCanny((void const *)arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPreCornerDetect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 = (int) 3 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvPreCornerDetect",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvPreCornerDetect" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
try {
|
|
cvPreCornerDetect((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCornerEigenValsAndVecs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 ;
|
|
int arg4 = (int) 3 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvCornerEigenValsAndVecs",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCornerEigenValsAndVecs" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvCornerEigenValsAndVecs" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
cvCornerEigenValsAndVecs((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCornerMinEigenVal(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 ;
|
|
int arg4 = (int) 3 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvCornerMinEigenVal",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCornerMinEigenVal" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvCornerMinEigenVal" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
cvCornerMinEigenVal((void const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCornerHarris(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
int arg3 ;
|
|
int arg4 = (int) 3 ;
|
|
double arg5 = (double) 0.04 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OO:cvCornerHarris",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCornerHarris" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvCornerHarris" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_double(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvCornerHarris" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
}
|
|
{
|
|
try {
|
|
cvCornerHarris((void const *)arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFindCornerSubPix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvPoint2D32f *arg2 = (CvPoint2D32f *) 0 ;
|
|
int arg3 ;
|
|
CvSize arg4 ;
|
|
CvSize arg5 ;
|
|
CvTermCriteria arg6 ;
|
|
bool freearg1 = false ;
|
|
int cornersCount2 ;
|
|
CvPoint2D32f *corners2 ;
|
|
CvSize temp4 ;
|
|
CvSize temp5 ;
|
|
CvTermCriteria temp6 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvFindCornerSubPix",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if(! PySequence_Check (obj1))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError, "Expected a list or tuple");
|
|
return NULL;
|
|
}
|
|
|
|
// TODO: will this ever be freed?
|
|
cornersCount2 = PySequence_Size (obj1);
|
|
corners2 = (CvPoint2D32f *) malloc (cornersCount2 * sizeof (CvPoint2D32f));
|
|
|
|
// extract all the points values from the list */
|
|
CvPoint2D32f * corner = corners2;
|
|
for (int i = 0; i < cornersCount2; i++, corner++)
|
|
{
|
|
PyObject * item = PySequence_GetItem (obj1, i);
|
|
|
|
if (PySequence_Check(item) && PySequence_Length(item) == 2)
|
|
{
|
|
PyObject * tuple = PySequence_Tuple (item);
|
|
if (!PyArg_ParseTuple (tuple, "ff", & corner->x, & corner->y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"each entry must consist of 2 floats (x, y)");
|
|
Py_DECREF (tuple);
|
|
Py_DECREF (item);
|
|
return NULL;
|
|
}
|
|
Py_DECREF (tuple);
|
|
}
|
|
else
|
|
{
|
|
CvPoint2D32f * ptr;
|
|
if (SWIG_ConvertPtr (item, (void **) & ptr, SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a sequence of 2 floats (x, y) or a CvPoint2D32f");
|
|
Py_DECREF (item);
|
|
return NULL;
|
|
}
|
|
*corner = *ptr;
|
|
}
|
|
|
|
Py_DECREF (item);
|
|
}
|
|
|
|
// these are the arguments passed to the OpenCV function
|
|
arg2 = corners2;
|
|
arg3 = cornersCount2;
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj2))
|
|
{
|
|
if (!PyArg_ParseTuple(obj2,"ii", & temp4.width, & temp4.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg4 = temp4;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj2, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg4 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj3))
|
|
{
|
|
if (!PyArg_ParseTuple(obj3,"ii", & temp5.width, & temp5.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg5 = temp5;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj3, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg5 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj4))
|
|
{
|
|
if (!PyArg_ParseTuple(obj4,"iid", & temp6.type, & temp6.max_iter, & temp6.epsilon))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers and a float (type, max_iter, epsilon)");
|
|
return NULL;
|
|
}
|
|
arg6 = temp6;
|
|
}
|
|
else
|
|
{
|
|
CvTermCriteria * ptr;
|
|
if (SWIG_ConvertPtr (obj4, (void **) & ptr, SWIGTYPE_p_CvTermCriteria, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvTermCriteria");
|
|
return NULL;
|
|
}
|
|
arg6 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvFindCornerSubPix((void const *)arg1,arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
int i;
|
|
PyObject *to_add;
|
|
|
|
/* create the list to return */
|
|
to_add = PyList_New (cornersCount2);
|
|
|
|
/* extract all the corner values of the result, and add it to the
|
|
final resulting list */
|
|
for (i = 0; i < cornersCount2; i++)
|
|
PyList_SetItem (to_add, i, SWIG_NewPointerObj (&(corners2 [i]), SWIGTYPE_p_CvPoint2D32f, 0));
|
|
|
|
resultobj = SWIG_AppendResult( resultobj, &to_add, 1);
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGoodFeaturesToTrack(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvPoint2D32f *arg4 = (CvPoint2D32f *) 0 ;
|
|
int *arg5 = (int *) 0 ;
|
|
double arg6 ;
|
|
double arg7 ;
|
|
CvArr *arg8 = (CvArr *) NULL ;
|
|
int arg9 = (int) 3 ;
|
|
int arg10 = (int) 0 ;
|
|
double arg11 = (double) 0.04 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
int tmpCount4 ;
|
|
double val6 ;
|
|
int ecode6 = 0 ;
|
|
double val7 ;
|
|
int ecode7 = 0 ;
|
|
bool freearg8 = false ;
|
|
int val9 ;
|
|
int ecode9 = 0 ;
|
|
int val10 ;
|
|
int ecode10 = 0 ;
|
|
double val11 ;
|
|
int ecode11 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
PyObject * obj8 = 0 ;
|
|
PyObject * obj9 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO|OOOO:cvGoodFeaturesToTrack",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
/* as input, we still need the size of the corners array */
|
|
|
|
/* memorize the size of the status corners */
|
|
tmpCount4 = (int) PyInt_AsLong (obj3);
|
|
|
|
// these are the arguments passed to the OpenCV function
|
|
arg4 = (CvPoint2D32f *) malloc (tmpCount4 * sizeof (CvPoint2D32f));
|
|
arg5 = &tmpCount4;
|
|
}
|
|
ecode6 = SWIG_AsVal_double(obj4, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvGoodFeaturesToTrack" "', argument " "6"" of type '" "double""'");
|
|
}
|
|
arg6 = static_cast< double >(val6);
|
|
ecode7 = SWIG_AsVal_double(obj5, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvGoodFeaturesToTrack" "', argument " "7"" of type '" "double""'");
|
|
}
|
|
arg7 = static_cast< double >(val7);
|
|
if (obj6) {
|
|
{
|
|
arg8 = PyObject_to_CvArr(obj6, &freearg8);
|
|
}
|
|
}
|
|
if (obj7) {
|
|
ecode9 = SWIG_AsVal_int(obj7, &val9);
|
|
if (!SWIG_IsOK(ecode9)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "cvGoodFeaturesToTrack" "', argument " "9"" of type '" "int""'");
|
|
}
|
|
arg9 = static_cast< int >(val9);
|
|
}
|
|
if (obj8) {
|
|
ecode10 = SWIG_AsVal_int(obj8, &val10);
|
|
if (!SWIG_IsOK(ecode10)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "cvGoodFeaturesToTrack" "', argument " "10"" of type '" "int""'");
|
|
}
|
|
arg10 = static_cast< int >(val10);
|
|
}
|
|
if (obj9) {
|
|
ecode11 = SWIG_AsVal_double(obj9, &val11);
|
|
if (!SWIG_IsOK(ecode11)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "cvGoodFeaturesToTrack" "', argument " "11"" of type '" "double""'");
|
|
}
|
|
arg11 = static_cast< double >(val11);
|
|
}
|
|
{
|
|
try {
|
|
cvGoodFeaturesToTrack((void const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7,(void const *)arg8,arg9,arg10,arg11);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
int i;
|
|
PyObject *to_add;
|
|
|
|
/* create the list to return */
|
|
to_add = PyList_New (tmpCount4);
|
|
|
|
/* extract all the integer values of the result, and add it to the final resulting list */
|
|
for (i = 0; i < tmpCount4; i++)
|
|
PyList_SetItem (to_add, i, SWIG_NewPointerObj (&(arg4 [i]), SWIGTYPE_p_CvPoint2D32f, 0));
|
|
|
|
resultobj = SWIG_AppendResult(resultobj, &to_add, 1);
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg8!=NULL && freearg8)
|
|
{
|
|
cvReleaseData( arg8 );
|
|
cvFree(&(arg8));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg8!=NULL && freearg8)
|
|
{
|
|
cvReleaseData( arg8 );
|
|
cvFree(&(arg8));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvHoughLinesUntyped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
int arg3 ;
|
|
double arg4 ;
|
|
double arg5 ;
|
|
int arg6 ;
|
|
double arg7 = (double) 0 ;
|
|
double arg8 = (double) 0 ;
|
|
bool freearg1 = false ;
|
|
int res2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
double val7 ;
|
|
int ecode7 = 0 ;
|
|
double val8 ;
|
|
int ecode8 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO|OO:cvHoughLinesUntyped",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvHoughLinesUntyped" "', argument " "2"" of type '" "void *""'");
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvHoughLinesUntyped" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvHoughLinesUntyped" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
ecode5 = SWIG_AsVal_double(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvHoughLinesUntyped" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvHoughLinesUntyped" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_double(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvHoughLinesUntyped" "', argument " "7"" of type '" "double""'");
|
|
}
|
|
arg7 = static_cast< double >(val7);
|
|
}
|
|
if (obj7) {
|
|
ecode8 = SWIG_AsVal_double(obj7, &val8);
|
|
if (!SWIG_IsOK(ecode8)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "cvHoughLinesUntyped" "', argument " "8"" of type '" "double""'");
|
|
}
|
|
arg8 = static_cast< double >(val8);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvSeq *)cvHoughLines2(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvHoughCirclesUntyped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
void *arg2 = (void *) 0 ;
|
|
int arg3 ;
|
|
double arg4 ;
|
|
double arg5 ;
|
|
double arg6 = (double) 100 ;
|
|
double arg7 = (double) 100 ;
|
|
int arg8 = (int) 0 ;
|
|
int arg9 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
int res2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
double val6 ;
|
|
int ecode6 = 0 ;
|
|
double val7 ;
|
|
int ecode7 = 0 ;
|
|
int val8 ;
|
|
int ecode8 = 0 ;
|
|
int val9 ;
|
|
int ecode9 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
PyObject * obj8 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO|OOOO:cvHoughCirclesUntyped",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvHoughCirclesUntyped" "', argument " "2"" of type '" "void *""'");
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvHoughCirclesUntyped" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvHoughCirclesUntyped" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
ecode5 = SWIG_AsVal_double(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvHoughCirclesUntyped" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_double(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvHoughCirclesUntyped" "', argument " "6"" of type '" "double""'");
|
|
}
|
|
arg6 = static_cast< double >(val6);
|
|
}
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_double(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvHoughCirclesUntyped" "', argument " "7"" of type '" "double""'");
|
|
}
|
|
arg7 = static_cast< double >(val7);
|
|
}
|
|
if (obj7) {
|
|
ecode8 = SWIG_AsVal_int(obj7, &val8);
|
|
if (!SWIG_IsOK(ecode8)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "cvHoughCirclesUntyped" "', argument " "8"" of type '" "int""'");
|
|
}
|
|
arg8 = static_cast< int >(val8);
|
|
}
|
|
if (obj8) {
|
|
ecode9 = SWIG_AsVal_int(obj8, &val9);
|
|
if (!SWIG_IsOK(ecode9)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "cvHoughCirclesUntyped" "', argument " "9"" of type '" "int""'");
|
|
}
|
|
arg9 = static_cast< int >(val9);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvSeq *)cvHoughCircles(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFitLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
int arg2 ;
|
|
double arg3 ;
|
|
double arg4 ;
|
|
double arg5 ;
|
|
float *arg6 = (float *) 0 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
void *argp6 = 0 ;
|
|
int res6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO:cvFitLine",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvFitLine" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvFitLine" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvFitLine" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
ecode5 = SWIG_AsVal_double(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvFitLine" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "cvFitLine" "', argument " "6"" of type '" "float *""'");
|
|
}
|
|
arg6 = reinterpret_cast< float * >(argp6);
|
|
{
|
|
try {
|
|
cvFitLine((void const *)arg1,arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateKDTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
CvFeatureTree *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvCreateKDTree",&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvFeatureTree *)cvCreateKDTree(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvFeatureTree, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateSpillTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 = (int) (int)50 ;
|
|
double arg3 = (double) (double).7 ;
|
|
double arg4 = (double) (double).1 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
CvFeatureTree *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|OOO:cvCreateSpillTree",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCreateSpillTree" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateSpillTree" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvCreateSpillTree" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvFeatureTree *)cvCreateSpillTree((CvMat const *)arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvFeatureTree, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReleaseFeatureTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFeatureTree *arg1 = (CvFeatureTree *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvReleaseFeatureTree",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFeatureTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvReleaseFeatureTree" "', argument " "1"" of type '" "CvFeatureTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFeatureTree * >(argp1);
|
|
{
|
|
try {
|
|
cvReleaseFeatureTree(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFindFeatures(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFeatureTree *arg1 = (CvFeatureTree *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
int arg5 ;
|
|
int arg6 = (int) 20 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
int num_query_points2 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvFindFeatures",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFeatureTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvFindFeatures" "', argument " "1"" of type '" "CvFeatureTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFeatureTree * >(argp1);
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
num_query_points2 = arg2->rows;
|
|
{
|
|
arg5 = (int)PyInt_AsLong(obj2);
|
|
arg3 = cvCreateMat(num_query_points2, arg5, CV_32SC1);
|
|
arg4 = cvCreateMat(num_query_points2, arg5, CV_64FC1);
|
|
}
|
|
if (obj3) {
|
|
ecode6 = SWIG_AsVal_int(obj3, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvFindFeatures" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
{
|
|
try {
|
|
cvFindFeatures(arg1,(CvMat const *)arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj(arg3, SWIGTYPE_p_CvMat, 1));
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj(arg4, SWIGTYPE_p_CvMat, 1));
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFindFeaturesBoxed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvFeatureTree *arg1 = (CvFeatureTree *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvFindFeaturesBoxed",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvFeatureTree, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvFindFeaturesBoxed" "', argument " "1"" of type '" "CvFeatureTree *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvFeatureTree * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
int max_out_indices = (int)PyInt_AsLong(obj3);
|
|
arg4 = cvCreateMat(max_out_indices, 1, CV_32SC1 );
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvFindFeaturesBoxed(arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj(arg4, SWIGTYPE_p_CvMat, 1));
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateLSH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLSHOperations *arg1 = (CvLSHOperations *) 0 ;
|
|
int arg2 ;
|
|
int arg3 = (int) 10 ;
|
|
int arg4 = (int) 10 ;
|
|
int arg5 = (int) (((6) &((1 << 3) -1)) +(((1) -1) << 3)) ;
|
|
double arg6 = (double) 4 ;
|
|
int64 arg7 = (int64) -1 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
double val6 ;
|
|
int ecode6 = 0 ;
|
|
void *argp7 ;
|
|
int res7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
CvLSH *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OOOOO:cvCreateLSH",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLSHOperations, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvCreateLSH" "', argument " "1"" of type '" "CvLSHOperations *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLSHOperations * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCreateLSH" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateLSH" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvCreateLSH" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvCreateLSH" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_double(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvCreateLSH" "', argument " "6"" of type '" "double""'");
|
|
}
|
|
arg6 = static_cast< double >(val6);
|
|
}
|
|
if (obj6) {
|
|
{
|
|
res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_int64_t, 0 | 0);
|
|
if (!SWIG_IsOK(res7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "cvCreateLSH" "', argument " "7"" of type '" "int64""'");
|
|
}
|
|
if (!argp7) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cvCreateLSH" "', argument " "7"" of type '" "int64""'");
|
|
} else {
|
|
int64 * temp = reinterpret_cast< int64 * >(argp7);
|
|
arg7 = *temp;
|
|
if (SWIG_IsNewObj(res7)) delete temp;
|
|
}
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvLSH *)cvCreateLSH(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvLSH, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateMemoryLSH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 = (int) 10 ;
|
|
int arg4 = (int) 10 ;
|
|
int arg5 = (int) (((6) &((1 << 3) -1)) +(((1) -1) << 3)) ;
|
|
double arg6 = (double) 4 ;
|
|
int64 arg7 = (int64) -1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
double val6 ;
|
|
int ecode6 = 0 ;
|
|
void *argp7 ;
|
|
int res7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
CvLSH *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OOOOO:cvCreateMemoryLSH",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvCreateMemoryLSH" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCreateMemoryLSH" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCreateMemoryLSH" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvCreateMemoryLSH" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvCreateMemoryLSH" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_double(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvCreateMemoryLSH" "', argument " "6"" of type '" "double""'");
|
|
}
|
|
arg6 = static_cast< double >(val6);
|
|
}
|
|
if (obj6) {
|
|
{
|
|
res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_int64_t, 0 | 0);
|
|
if (!SWIG_IsOK(res7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "cvCreateMemoryLSH" "', argument " "7"" of type '" "int64""'");
|
|
}
|
|
if (!argp7) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cvCreateMemoryLSH" "', argument " "7"" of type '" "int64""'");
|
|
} else {
|
|
int64 * temp = reinterpret_cast< int64 * >(argp7);
|
|
arg7 = *temp;
|
|
if (SWIG_IsNewObj(res7)) delete temp;
|
|
}
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvLSH *)cvCreateMemoryLSH(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvLSH, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReleaseLSH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLSH **arg1 = (CvLSH **) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvReleaseLSH",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_p_CvLSH, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvReleaseLSH" "', argument " "1"" of type '" "CvLSH **""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLSH ** >(argp1);
|
|
{
|
|
try {
|
|
cvReleaseLSH(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_LSHSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLSH *arg1 = (CvLSH *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
unsigned int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:LSHSize",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLSH, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LSHSize" "', argument " "1"" of type '" "CvLSH *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLSH * >(argp1);
|
|
{
|
|
try {
|
|
result = (unsigned int)LSHSize(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvLSHAdd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLSH *arg1 = (CvLSH *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvLSHAdd",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLSH, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvLSHAdd" "', argument " "1"" of type '" "CvLSH *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLSH * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
CvMat* m = (CvMat*)arg2;
|
|
arg3 = cvCreateMat(m->rows, 1, CV_32SC1 );
|
|
}
|
|
{
|
|
try {
|
|
cvLSHAdd(arg1,(CvMat const *)arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj(arg3, SWIGTYPE_p_CvMat, 1));
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvLSHRemove(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLSH *arg1 = (CvLSH *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvLSHRemove",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLSH, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvLSHRemove" "', argument " "1"" of type '" "CvLSH *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLSH * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
cvLSHRemove(arg1,(CvMat const *)arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvLSHQuery(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLSH *arg1 = (CvLSH *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
int arg5 ;
|
|
int arg6 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
int num_query_points2 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvLSHQuery",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLSH, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvLSHQuery" "', argument " "1"" of type '" "CvLSH *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLSH * >(argp1);
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
num_query_points2 = arg2->rows;
|
|
{
|
|
arg5 = (int)PyInt_AsLong(obj2);
|
|
arg3 = cvCreateMat(num_query_points2, arg5, CV_32SC1);
|
|
arg4 = cvCreateMat(num_query_points2, arg5, CV_64FC1);
|
|
}
|
|
ecode6 = SWIG_AsVal_int(obj3, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvLSHQuery" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
{
|
|
try {
|
|
cvLSHQuery(arg1,(CvMat const *)arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj(arg3, SWIGTYPE_p_CvMat, 1));
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj(arg4, SWIGTYPE_p_CvMat, 1));
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSURFPoint_pt_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFPoint *arg1 = (CvSURFPoint *) 0 ;
|
|
CvPoint2D32f *arg2 = (CvPoint2D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSURFPoint_pt_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSURFPoint_pt_set" "', argument " "1"" of type '" "CvSURFPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFPoint * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSURFPoint_pt_set" "', argument " "2"" of type '" "CvPoint2D32f *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint2D32f * >(argp2);
|
|
if (arg1) (arg1)->pt = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSURFPoint_pt_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFPoint *arg1 = (CvSURFPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint2D32f *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSURFPoint_pt_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSURFPoint_pt_get" "', argument " "1"" of type '" "CvSURFPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFPoint * >(argp1);
|
|
result = (CvPoint2D32f *)& ((arg1)->pt);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSURFPoint_laplacian_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFPoint *arg1 = (CvSURFPoint *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSURFPoint_laplacian_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSURFPoint_laplacian_set" "', argument " "1"" of type '" "CvSURFPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFPoint * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSURFPoint_laplacian_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->laplacian = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSURFPoint_laplacian_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFPoint *arg1 = (CvSURFPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSURFPoint_laplacian_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSURFPoint_laplacian_get" "', argument " "1"" of type '" "CvSURFPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFPoint * >(argp1);
|
|
result = (int) ((arg1)->laplacian);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSURFPoint_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFPoint *arg1 = (CvSURFPoint *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSURFPoint_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSURFPoint_size_set" "', argument " "1"" of type '" "CvSURFPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFPoint * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSURFPoint_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSURFPoint_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFPoint *arg1 = (CvSURFPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSURFPoint_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSURFPoint_size_get" "', argument " "1"" of type '" "CvSURFPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFPoint * >(argp1);
|
|
result = (int) ((arg1)->size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSURFPoint_dir_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFPoint *arg1 = (CvSURFPoint *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSURFPoint_dir_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSURFPoint_dir_set" "', argument " "1"" of type '" "CvSURFPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFPoint * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSURFPoint_dir_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->dir = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSURFPoint_dir_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFPoint *arg1 = (CvSURFPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSURFPoint_dir_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSURFPoint_dir_get" "', argument " "1"" of type '" "CvSURFPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFPoint * >(argp1);
|
|
result = (float) ((arg1)->dir);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSURFPoint_hessian_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFPoint *arg1 = (CvSURFPoint *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSURFPoint_hessian_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSURFPoint_hessian_set" "', argument " "1"" of type '" "CvSURFPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFPoint * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSURFPoint_hessian_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->hessian = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSURFPoint_hessian_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFPoint *arg1 = (CvSURFPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSURFPoint_hessian_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSURFPoint_hessian_get" "', argument " "1"" of type '" "CvSURFPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFPoint * >(argp1);
|
|
result = (float) ((arg1)->hessian);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSURFPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSURFPoint")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvSURFPoint *)new CvSURFPoint();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSURFPoint, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSURFPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFPoint *arg1 = (CvSURFPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSURFPoint",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFPoint, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSURFPoint" "', argument " "1"" of type '" "CvSURFPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFPoint * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSURFPoint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvSURFPoint, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSURFPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint2D32f arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
float arg4 = (float) 0 ;
|
|
float arg5 = (float) 0 ;
|
|
CvPoint2D32f temp1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
float val4 ;
|
|
int ecode4 = 0 ;
|
|
float val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
CvSURFPoint result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OO:cvSURFPoint",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"ff", & temp1.x, & temp1.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 floats (x, y)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvPoint2D32f * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint2D32f");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSURFPoint" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvSURFPoint" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_float(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvSURFPoint" "', argument " "4"" of type '" "float""'");
|
|
}
|
|
arg4 = static_cast< float >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_float(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvSURFPoint" "', argument " "5"" of type '" "float""'");
|
|
}
|
|
arg5 = static_cast< float >(val5);
|
|
}
|
|
{
|
|
try {
|
|
result = cvSURFPoint(arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvSURFPoint(static_cast< const CvSURFPoint& >(result))), SWIGTYPE_p_CvSURFPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSURFParams_extended_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFParams *arg1 = (CvSURFParams *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSURFParams_extended_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSURFParams_extended_set" "', argument " "1"" of type '" "CvSURFParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFParams * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSURFParams_extended_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->extended = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSURFParams_extended_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFParams *arg1 = (CvSURFParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSURFParams_extended_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSURFParams_extended_get" "', argument " "1"" of type '" "CvSURFParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFParams * >(argp1);
|
|
result = (int) ((arg1)->extended);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSURFParams_hessianThreshold_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFParams *arg1 = (CvSURFParams *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSURFParams_hessianThreshold_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSURFParams_hessianThreshold_set" "', argument " "1"" of type '" "CvSURFParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFParams * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSURFParams_hessianThreshold_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->hessianThreshold = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSURFParams_hessianThreshold_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFParams *arg1 = (CvSURFParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSURFParams_hessianThreshold_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSURFParams_hessianThreshold_get" "', argument " "1"" of type '" "CvSURFParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFParams * >(argp1);
|
|
result = (double) ((arg1)->hessianThreshold);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSURFParams_nOctaves_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFParams *arg1 = (CvSURFParams *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSURFParams_nOctaves_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSURFParams_nOctaves_set" "', argument " "1"" of type '" "CvSURFParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFParams * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSURFParams_nOctaves_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->nOctaves = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSURFParams_nOctaves_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFParams *arg1 = (CvSURFParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSURFParams_nOctaves_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSURFParams_nOctaves_get" "', argument " "1"" of type '" "CvSURFParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFParams * >(argp1);
|
|
result = (int) ((arg1)->nOctaves);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSURFParams_nOctaveLayers_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFParams *arg1 = (CvSURFParams *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSURFParams_nOctaveLayers_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSURFParams_nOctaveLayers_set" "', argument " "1"" of type '" "CvSURFParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFParams * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSURFParams_nOctaveLayers_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->nOctaveLayers = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSURFParams_nOctaveLayers_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFParams *arg1 = (CvSURFParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSURFParams_nOctaveLayers_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSURFParams_nOctaveLayers_get" "', argument " "1"" of type '" "CvSURFParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFParams * >(argp1);
|
|
result = (int) ((arg1)->nOctaveLayers);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSURFParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFParams *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSURFParams")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvSURFParams *)new CvSURFParams();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSURFParams, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSURFParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSURFParams *arg1 = (CvSURFParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSURFParams",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvSURFParams, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSURFParams" "', argument " "1"" of type '" "CvSURFParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvSURFParams * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSURFParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvSURFParams, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSURFParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
int arg2 = (int) 0 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvSURFParams result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O|O:cvSURFParams",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvSURFParams" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvSURFParams" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
try {
|
|
result = cvSURFParams(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvSURFParams(static_cast< const CvSURFParams& >(result))), SWIGTYPE_p_CvSURFParams, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvExtractSURF(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvSeq **arg3 = (CvSeq **) 0 ;
|
|
CvSeq **arg4 = (CvSeq **) 0 ;
|
|
CvMemStorage *arg5 = (CvMemStorage *) 0 ;
|
|
CvSURFParams arg6 ;
|
|
int arg7 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
CvSeq *keypoints3 = 0 ;
|
|
CvSeq *descriptors3 = 0 ;
|
|
CvMemStorage *storage3 ;
|
|
void *argp6 ;
|
|
int res6 = 0 ;
|
|
int val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
{
|
|
storage3 = cvCreateMemStorage();
|
|
arg3 = &keypoints3;
|
|
arg4 = &descriptors3;
|
|
arg5 = storage3;
|
|
}
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvExtractSURF",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
res6 = SWIG_ConvertPtr(obj2, &argp6, SWIGTYPE_p_CvSURFParams, 0 | 0);
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "cvExtractSURF" "', argument " "6"" of type '" "CvSURFParams""'");
|
|
}
|
|
if (!argp6) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cvExtractSURF" "', argument " "6"" of type '" "CvSURFParams""'");
|
|
} else {
|
|
CvSURFParams * temp = reinterpret_cast< CvSURFParams * >(argp6);
|
|
arg6 = *temp;
|
|
if (SWIG_IsNewObj(res6)) delete temp;
|
|
}
|
|
}
|
|
if (obj3) {
|
|
ecode7 = SWIG_AsVal_int(obj3, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvExtractSURF" "', argument " "7"" of type '" "int""'");
|
|
}
|
|
arg7 = static_cast< int >(val7);
|
|
}
|
|
{
|
|
try {
|
|
cvExtractSURF((void const *)arg1,(void const *)arg2,arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
const int n1 = 6;
|
|
int n2 = (*arg4)->elem_size / sizeof(float);
|
|
assert((*arg4)->elem_size == 64 * sizeof(float) ||
|
|
(*arg4)->elem_size == 128 * sizeof(float));
|
|
assert((*arg4)->total == (*arg3)->total);
|
|
CvMat* m1 = cvCreateMat((*arg4)->total,n1,CV_32FC1);
|
|
CvMat* m2 = cvCreateMat((*arg4)->total,n2,CV_32FC1);
|
|
CvSeqReader r1;
|
|
cvStartReadSeq(*arg3, &r1);
|
|
float* m1p = m1->data.fl;
|
|
for (int j=0;j<(*arg4)->total;++j) {
|
|
CvSURFPoint* sp = (CvSURFPoint*)r1.ptr;
|
|
m1p[0] = sp->pt.x;
|
|
m1p[1] = sp->pt.y;
|
|
m1p[2] = sp->laplacian;
|
|
m1p[3] = sp->size;
|
|
m1p[4] = sp->dir;
|
|
m1p[5] = sp->hessian;
|
|
m1p += n1;
|
|
CV_NEXT_SEQ_ELEM((*arg3)->elem_size, r1);
|
|
}
|
|
CvSeqReader r2;
|
|
cvStartReadSeq(*arg4, &r2);
|
|
float* m2p = m2->data.fl;
|
|
for (int j=0;j<(*arg4)->total;++j) {
|
|
memcpy(m2p,r2.ptr,n2*sizeof(float));
|
|
m2p += n2;
|
|
CV_NEXT_SEQ_ELEM((*arg4)->elem_size, r2);
|
|
}
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj(m1, SWIGTYPE_p_CvMat, 1));
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj(m2, SWIGTYPE_p_CvMat, 1));
|
|
cvReleaseMemStorage(&arg5);
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMSERParams_delta_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMSERParams_delta_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMSERParams_delta_set" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMSERParams_delta_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->delta = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMSERParams_delta_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMSERParams_delta_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMSERParams_delta_get" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
result = (int) ((arg1)->delta);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMSERParams_maxArea_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMSERParams_maxArea_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMSERParams_maxArea_set" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMSERParams_maxArea_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->maxArea = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMSERParams_maxArea_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMSERParams_maxArea_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMSERParams_maxArea_get" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
result = (int) ((arg1)->maxArea);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMSERParams_minArea_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMSERParams_minArea_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMSERParams_minArea_set" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMSERParams_minArea_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->minArea = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMSERParams_minArea_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMSERParams_minArea_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMSERParams_minArea_get" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
result = (int) ((arg1)->minArea);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMSERParams_maxVariation_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMSERParams_maxVariation_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMSERParams_maxVariation_set" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMSERParams_maxVariation_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->maxVariation = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMSERParams_maxVariation_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMSERParams_maxVariation_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMSERParams_maxVariation_get" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
result = (float) ((arg1)->maxVariation);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMSERParams_minDiversity_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMSERParams_minDiversity_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMSERParams_minDiversity_set" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMSERParams_minDiversity_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->minDiversity = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMSERParams_minDiversity_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMSERParams_minDiversity_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMSERParams_minDiversity_get" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
result = (float) ((arg1)->minDiversity);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMSERParams_maxEvolution_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMSERParams_maxEvolution_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMSERParams_maxEvolution_set" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMSERParams_maxEvolution_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->maxEvolution = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMSERParams_maxEvolution_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMSERParams_maxEvolution_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMSERParams_maxEvolution_get" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
result = (int) ((arg1)->maxEvolution);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMSERParams_areaThreshold_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMSERParams_areaThreshold_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMSERParams_areaThreshold_set" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMSERParams_areaThreshold_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->areaThreshold = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMSERParams_areaThreshold_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMSERParams_areaThreshold_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMSERParams_areaThreshold_get" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
result = (double) ((arg1)->areaThreshold);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMSERParams_minMargin_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMSERParams_minMargin_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMSERParams_minMargin_set" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMSERParams_minMargin_set" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->minMargin = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMSERParams_minMargin_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
double result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMSERParams_minMargin_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMSERParams_minMargin_get" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
result = (double) ((arg1)->minMargin);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMSERParams_edgeBlurSize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvMSERParams_edgeBlurSize_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMSERParams_edgeBlurSize_set" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvMSERParams_edgeBlurSize_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->edgeBlurSize = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvMSERParams_edgeBlurSize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvMSERParams_edgeBlurSize_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvMSERParams_edgeBlurSize_get" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
result = (int) ((arg1)->edgeBlurSize);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvMSERParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvMSERParams")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvMSERParams *)new CvMSERParams();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMSERParams, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvMSERParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMSERParams *arg1 = (CvMSERParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvMSERParams",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvMSERParams, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvMSERParams" "', argument " "1"" of type '" "CvMSERParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvMSERParams * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvMSERParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvMSERParams, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvMSERParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 5 ;
|
|
int arg2 = (int) 60 ;
|
|
int arg3 = (int) 14400 ;
|
|
float arg4 = (float) .25 ;
|
|
float arg5 = (float) .2 ;
|
|
int arg6 = (int) 200 ;
|
|
double arg7 = (double) 1.01 ;
|
|
double arg8 = (double) .003 ;
|
|
int arg9 = (int) 5 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
float val4 ;
|
|
int ecode4 = 0 ;
|
|
float val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
double val7 ;
|
|
int ecode7 = 0 ;
|
|
double val8 ;
|
|
int ecode8 = 0 ;
|
|
int val9 ;
|
|
int ecode9 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
PyObject * obj8 = 0 ;
|
|
CvMSERParams result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"|OOOOOOOOO:cvMSERParams",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvMSERParams" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvMSERParams" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvMSERParams" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_float(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvMSERParams" "', argument " "4"" of type '" "float""'");
|
|
}
|
|
arg4 = static_cast< float >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_float(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvMSERParams" "', argument " "5"" of type '" "float""'");
|
|
}
|
|
arg5 = static_cast< float >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvMSERParams" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_double(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvMSERParams" "', argument " "7"" of type '" "double""'");
|
|
}
|
|
arg7 = static_cast< double >(val7);
|
|
}
|
|
if (obj7) {
|
|
ecode8 = SWIG_AsVal_double(obj7, &val8);
|
|
if (!SWIG_IsOK(ecode8)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "cvMSERParams" "', argument " "8"" of type '" "double""'");
|
|
}
|
|
arg8 = static_cast< double >(val8);
|
|
}
|
|
if (obj8) {
|
|
ecode9 = SWIG_AsVal_int(obj8, &val9);
|
|
if (!SWIG_IsOK(ecode9)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "cvMSERParams" "', argument " "9"" of type '" "int""'");
|
|
}
|
|
arg9 = static_cast< int >(val9);
|
|
}
|
|
{
|
|
try {
|
|
result = cvMSERParams(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvMSERParams(static_cast< const CvMSERParams& >(result))), SWIGTYPE_p_CvMSERParams, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvExtractMSER(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvSeq **arg3 = (CvSeq **) 0 ;
|
|
CvMemStorage *arg4 = (CvMemStorage *) 0 ;
|
|
CvMSERParams arg5 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
void *vptr3 ;
|
|
CvSeq *buffer3 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
void *argp5 ;
|
|
int res5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvExtractMSER",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
if ((SWIG_ConvertPtr(obj2, &vptr3, SWIGTYPE_p_CvSeq, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer3 = (CvSeq *) vptr3;
|
|
arg3=&buffer3;
|
|
}
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvExtractMSER" "', argument " "4"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvMemStorage * >(argp4);
|
|
{
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_CvMSERParams, 0 | 0);
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvExtractMSER" "', argument " "5"" of type '" "CvMSERParams""'");
|
|
}
|
|
if (!argp5) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cvExtractMSER" "', argument " "5"" of type '" "CvMSERParams""'");
|
|
} else {
|
|
CvMSERParams * temp = reinterpret_cast< CvMSERParams * >(argp5);
|
|
arg5 = *temp;
|
|
if (SWIG_IsNewObj(res5)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvExtractMSER(arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStarKeypoint_pt_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarKeypoint *arg1 = (CvStarKeypoint *) 0 ;
|
|
CvPoint *arg2 = (CvPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStarKeypoint_pt_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStarKeypoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStarKeypoint_pt_set" "', argument " "1"" of type '" "CvStarKeypoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStarKeypoint * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvStarKeypoint_pt_set" "', argument " "2"" of type '" "CvPoint *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint * >(argp2);
|
|
if (arg1) (arg1)->pt = *arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStarKeypoint_pt_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarKeypoint *arg1 = (CvStarKeypoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStarKeypoint_pt_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStarKeypoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStarKeypoint_pt_get" "', argument " "1"" of type '" "CvStarKeypoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStarKeypoint * >(argp1);
|
|
result = (CvPoint *)& ((arg1)->pt);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStarKeypoint_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarKeypoint *arg1 = (CvStarKeypoint *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStarKeypoint_size_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStarKeypoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStarKeypoint_size_set" "', argument " "1"" of type '" "CvStarKeypoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStarKeypoint * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStarKeypoint_size_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->size = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStarKeypoint_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarKeypoint *arg1 = (CvStarKeypoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStarKeypoint_size_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStarKeypoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStarKeypoint_size_get" "', argument " "1"" of type '" "CvStarKeypoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStarKeypoint * >(argp1);
|
|
result = (int) ((arg1)->size);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStarKeypoint_response_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarKeypoint *arg1 = (CvStarKeypoint *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStarKeypoint_response_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStarKeypoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStarKeypoint_response_set" "', argument " "1"" of type '" "CvStarKeypoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStarKeypoint * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStarKeypoint_response_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->response = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStarKeypoint_response_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarKeypoint *arg1 = (CvStarKeypoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStarKeypoint_response_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStarKeypoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStarKeypoint_response_get" "', argument " "1"" of type '" "CvStarKeypoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStarKeypoint * >(argp1);
|
|
result = (float) ((arg1)->response);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvStarKeypoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarKeypoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvStarKeypoint")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvStarKeypoint *)new CvStarKeypoint();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvStarKeypoint, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvStarKeypoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarKeypoint *arg1 = (CvStarKeypoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvStarKeypoint",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStarKeypoint, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvStarKeypoint" "', argument " "1"" of type '" "CvStarKeypoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStarKeypoint * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvStarKeypoint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvStarKeypoint, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvStarKeypoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint arg1 ;
|
|
int arg2 ;
|
|
float arg3 ;
|
|
CvPoint temp1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
float val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvStarKeypoint result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:cvStarKeypoint",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if (PyTuple_Check(obj0))
|
|
{
|
|
if (!PyArg_ParseTuple(obj0,"ii", & temp1.x, & temp1.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg1 = temp1;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj0, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg1 = *ptr;
|
|
}
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvStarKeypoint" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_float(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvStarKeypoint" "', argument " "3"" of type '" "float""'");
|
|
}
|
|
arg3 = static_cast< float >(val3);
|
|
{
|
|
try {
|
|
result = cvStarKeypoint(arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvStarKeypoint(static_cast< const CvStarKeypoint& >(result))), SWIGTYPE_p_CvStarKeypoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStarDetectorParams_maxSize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarDetectorParams *arg1 = (CvStarDetectorParams *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStarDetectorParams_maxSize_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStarDetectorParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStarDetectorParams_maxSize_set" "', argument " "1"" of type '" "CvStarDetectorParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStarDetectorParams * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStarDetectorParams_maxSize_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->maxSize = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStarDetectorParams_maxSize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarDetectorParams *arg1 = (CvStarDetectorParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStarDetectorParams_maxSize_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStarDetectorParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStarDetectorParams_maxSize_get" "', argument " "1"" of type '" "CvStarDetectorParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStarDetectorParams * >(argp1);
|
|
result = (int) ((arg1)->maxSize);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStarDetectorParams_responseThreshold_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarDetectorParams *arg1 = (CvStarDetectorParams *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStarDetectorParams_responseThreshold_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStarDetectorParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStarDetectorParams_responseThreshold_set" "', argument " "1"" of type '" "CvStarDetectorParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStarDetectorParams * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStarDetectorParams_responseThreshold_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->responseThreshold = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStarDetectorParams_responseThreshold_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarDetectorParams *arg1 = (CvStarDetectorParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStarDetectorParams_responseThreshold_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStarDetectorParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStarDetectorParams_responseThreshold_get" "', argument " "1"" of type '" "CvStarDetectorParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStarDetectorParams * >(argp1);
|
|
result = (int) ((arg1)->responseThreshold);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStarDetectorParams_lineThresholdProjected_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarDetectorParams *arg1 = (CvStarDetectorParams *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStarDetectorParams_lineThresholdProjected_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStarDetectorParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStarDetectorParams_lineThresholdProjected_set" "', argument " "1"" of type '" "CvStarDetectorParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStarDetectorParams * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStarDetectorParams_lineThresholdProjected_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->lineThresholdProjected = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStarDetectorParams_lineThresholdProjected_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarDetectorParams *arg1 = (CvStarDetectorParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStarDetectorParams_lineThresholdProjected_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStarDetectorParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStarDetectorParams_lineThresholdProjected_get" "', argument " "1"" of type '" "CvStarDetectorParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStarDetectorParams * >(argp1);
|
|
result = (int) ((arg1)->lineThresholdProjected);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStarDetectorParams_lineThresholdBinarized_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarDetectorParams *arg1 = (CvStarDetectorParams *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStarDetectorParams_lineThresholdBinarized_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStarDetectorParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStarDetectorParams_lineThresholdBinarized_set" "', argument " "1"" of type '" "CvStarDetectorParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStarDetectorParams * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStarDetectorParams_lineThresholdBinarized_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->lineThresholdBinarized = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStarDetectorParams_lineThresholdBinarized_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarDetectorParams *arg1 = (CvStarDetectorParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStarDetectorParams_lineThresholdBinarized_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStarDetectorParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStarDetectorParams_lineThresholdBinarized_get" "', argument " "1"" of type '" "CvStarDetectorParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStarDetectorParams * >(argp1);
|
|
result = (int) ((arg1)->lineThresholdBinarized);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStarDetectorParams_suppressNonmaxSize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarDetectorParams *arg1 = (CvStarDetectorParams *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStarDetectorParams_suppressNonmaxSize_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStarDetectorParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStarDetectorParams_suppressNonmaxSize_set" "', argument " "1"" of type '" "CvStarDetectorParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStarDetectorParams * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStarDetectorParams_suppressNonmaxSize_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->suppressNonmaxSize = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStarDetectorParams_suppressNonmaxSize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarDetectorParams *arg1 = (CvStarDetectorParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStarDetectorParams_suppressNonmaxSize_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStarDetectorParams, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStarDetectorParams_suppressNonmaxSize_get" "', argument " "1"" of type '" "CvStarDetectorParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStarDetectorParams * >(argp1);
|
|
result = (int) ((arg1)->suppressNonmaxSize);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvStarDetectorParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarDetectorParams *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvStarDetectorParams")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvStarDetectorParams *)new CvStarDetectorParams();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvStarDetectorParams, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvStarDetectorParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStarDetectorParams *arg1 = (CvStarDetectorParams *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvStarDetectorParams",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStarDetectorParams, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvStarDetectorParams" "', argument " "1"" of type '" "CvStarDetectorParams *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStarDetectorParams * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvStarDetectorParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvStarDetectorParams, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvStarDetectorParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 45 ;
|
|
int arg2 = (int) 30 ;
|
|
int arg3 = (int) 10 ;
|
|
int arg4 = (int) 8 ;
|
|
int arg5 = (int) 5 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
CvStarDetectorParams result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"|OOOOO:cvStarDetectorParams",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvStarDetectorParams" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvStarDetectorParams" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvStarDetectorParams" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvStarDetectorParams" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvStarDetectorParams" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
{
|
|
try {
|
|
result = cvStarDetectorParams(arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new CvStarDetectorParams(static_cast< const CvStarDetectorParams& >(result))), SWIGTYPE_p_CvStarDetectorParams, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvGetStarKeypoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvMemStorage *arg2 = (CvMemStorage *) 0 ;
|
|
CvStarDetectorParams arg3 = (CvStarDetectorParams) cvStarDetectorParams() ;
|
|
bool freearg1 = false ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
CvSeq *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvGetStarKeypoints",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvMemStorage, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvGetStarKeypoints" "', argument " "2"" of type '" "CvMemStorage *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvMemStorage * >(argp2);
|
|
if (obj2) {
|
|
{
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_CvStarDetectorParams, 0 | 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "cvGetStarKeypoints" "', argument " "3"" of type '" "CvStarDetectorParams""'");
|
|
}
|
|
if (!argp3) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "cvGetStarKeypoints" "', argument " "3"" of type '" "CvStarDetectorParams""'");
|
|
} else {
|
|
CvStarDetectorParams * temp = reinterpret_cast< CvStarDetectorParams * >(argp3);
|
|
arg3 = *temp;
|
|
if (SWIG_IsNewObj(res3)) delete temp;
|
|
}
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvSeq *)cvGetStarKeypoints((void const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvSeq, 0 | 0 );
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvLoadHaarClassifierCascade(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
CvSize arg2 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
CvSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvHaarClassifierCascade *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvLoadHaarClassifierCascade",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvLoadHaarClassifierCascade" "', argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< char * >(buf1);
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ii", & temp2.width, & temp2.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (CvHaarClassifierCascade *)cvLoadHaarClassifierCascade((char const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvHaarClassifierCascade, SWIG_POINTER_OWN | 0 );
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvSetImagesForHaarClassifierCascade(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifierCascade *arg1 = (CvHaarClassifierCascade *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
double arg5 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvSetImagesForHaarClassifierCascade",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvSetImagesForHaarClassifierCascade" "', argument " "1"" of type '" "CvHaarClassifierCascade *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifierCascade * >(argp1);
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
ecode5 = SWIG_AsVal_double(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvSetImagesForHaarClassifierCascade" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
{
|
|
try {
|
|
cvSetImagesForHaarClassifierCascade(arg1,(void const *)arg2,(void const *)arg3,(void const *)arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRunHaarClassifierCascade(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvHaarClassifierCascade *arg1 = (CvHaarClassifierCascade *) 0 ;
|
|
CvPoint arg2 ;
|
|
int arg3 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
CvPoint temp2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvRunHaarClassifierCascade",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvHaarClassifierCascade, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvRunHaarClassifierCascade" "', argument " "1"" of type '" "CvHaarClassifierCascade const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvHaarClassifierCascade * >(argp1);
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ii", & temp2.x, & temp2.y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (x, y)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvPoint * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvPoint, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvPoint");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvRunHaarClassifierCascade" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvRunHaarClassifierCascade((CvHaarClassifierCascade const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvUndistort2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvUndistort2",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
try {
|
|
cvUndistort2((void const *)arg1,arg2,(CvMat const *)arg3,(CvMat const *)arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvInitUndistortMap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvInitUndistortMap",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
try {
|
|
cvInitUndistortMap((CvMat const *)arg1,(CvMat const *)arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvInitUndistortRectifyMap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
CvArr *arg5 = (CvArr *) 0 ;
|
|
CvArr *arg6 = (CvArr *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
bool freearg5 = false ;
|
|
bool freearg6 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO:cvInitUndistortRectifyMap",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
arg5 = PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
{
|
|
arg6 = PyObject_to_CvArr(obj5, &freearg6);
|
|
}
|
|
{
|
|
try {
|
|
cvInitUndistortRectifyMap((CvMat const *)arg1,(CvMat const *)arg2,(CvMat const *)arg3,(CvMat const *)arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5)
|
|
{
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6)
|
|
{
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5)
|
|
{
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6)
|
|
{
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvUndistortPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
CvMat *arg5 = (CvMat *) 0 ;
|
|
CvMat *arg6 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
bool freearg5 = false ;
|
|
bool freearg6 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|OO:cvUndistortPoints",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
if (obj4) {
|
|
{
|
|
arg5 = (CvMat*)PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
}
|
|
if (obj5) {
|
|
{
|
|
arg6 = (CvMat*)PyObject_to_CvArr(obj5, &freearg6);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvUndistortPoints((CvMat const *)arg1,arg2,(CvMat const *)arg3,(CvMat const *)arg4,(CvMat const *)arg5,(CvMat const *)arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRodrigues2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvRodrigues2",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvRodrigues2((CvMat const *)arg1,arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFindHomography(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
int arg4 = (int) 0 ;
|
|
double arg5 = (double) 0 ;
|
|
CvMat *arg6 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
bool freearg6 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
int result;
|
|
|
|
{
|
|
arg3 = cvCreateMat(3,3,CV_64FC1);
|
|
}
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OOO:cvFindHomography",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (obj2) {
|
|
ecode4 = SWIG_AsVal_int(obj2, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvFindHomography" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj3) {
|
|
ecode5 = SWIG_AsVal_double(obj3, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvFindHomography" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
}
|
|
if (obj4) {
|
|
{
|
|
arg6 = (CvMat*)PyObject_to_CvArr(obj4, &freearg6);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvFindHomography((CvMat const *)arg1,(CvMat const *)arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj(arg3, SWIGTYPE_p_CvMat, 1));
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRQDecomp3x3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvMat *arg4 = (CvMat *) NULL ;
|
|
CvMat *arg5 = (CvMat *) NULL ;
|
|
CvMat *arg6 = (CvMat *) NULL ;
|
|
CvPoint3D64f *arg7 = (CvPoint3D64f *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
bool freearg5 = false ;
|
|
bool freearg6 = false ;
|
|
void *argp7 = 0 ;
|
|
int res7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OOOO:cvRQDecomp3x3",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
}
|
|
if (obj4) {
|
|
{
|
|
arg5 = (CvMat*)PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
}
|
|
if (obj5) {
|
|
{
|
|
arg6 = (CvMat*)PyObject_to_CvArr(obj5, &freearg6);
|
|
}
|
|
}
|
|
if (obj6) {
|
|
res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_CvPoint3D64f, 0 | 0 );
|
|
if (!SWIG_IsOK(res7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "cvRQDecomp3x3" "', argument " "7"" of type '" "CvPoint3D64f *""'");
|
|
}
|
|
arg7 = reinterpret_cast< CvPoint3D64f * >(argp7);
|
|
}
|
|
{
|
|
try {
|
|
cvRQDecomp3x3((CvMat const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvDecomposeProjectionMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
CvMat *arg5 = (CvMat *) NULL ;
|
|
CvMat *arg6 = (CvMat *) NULL ;
|
|
CvMat *arg7 = (CvMat *) NULL ;
|
|
CvPoint3D64f *arg8 = (CvPoint3D64f *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
bool freearg5 = false ;
|
|
bool freearg6 = false ;
|
|
bool freearg7 = false ;
|
|
void *argp8 = 0 ;
|
|
int res8 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO|OOOO:cvDecomposeProjectionMatrix",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
if (obj4) {
|
|
{
|
|
arg5 = (CvMat*)PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
}
|
|
if (obj5) {
|
|
{
|
|
arg6 = (CvMat*)PyObject_to_CvArr(obj5, &freearg6);
|
|
}
|
|
}
|
|
if (obj6) {
|
|
{
|
|
arg7 = (CvMat*)PyObject_to_CvArr(obj6, &freearg7);
|
|
}
|
|
}
|
|
if (obj7) {
|
|
res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_CvPoint3D64f, 0 | 0 );
|
|
if (!SWIG_IsOK(res8)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "cvDecomposeProjectionMatrix" "', argument " "8"" of type '" "CvPoint3D64f *""'");
|
|
}
|
|
arg8 = reinterpret_cast< CvPoint3D64f * >(argp8);
|
|
}
|
|
{
|
|
try {
|
|
cvDecomposeProjectionMatrix((CvMat const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
{
|
|
if(arg7!=NULL && freearg7){
|
|
cvReleaseData( arg7 );
|
|
cvFree(&(arg7));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
{
|
|
if(arg7!=NULL && freearg7){
|
|
cvReleaseData( arg7 );
|
|
cvFree(&(arg7));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalcMatMulDeriv(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvCalcMatMulDeriv",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
try {
|
|
cvCalcMatMulDeriv((CvMat const *)arg1,(CvMat const *)arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvComposeRT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
CvMat *arg5 = (CvMat *) 0 ;
|
|
CvMat *arg6 = (CvMat *) 0 ;
|
|
CvMat *arg7 = (CvMat *) 0 ;
|
|
CvMat *arg8 = (CvMat *) 0 ;
|
|
CvMat *arg9 = (CvMat *) 0 ;
|
|
CvMat *arg10 = (CvMat *) 0 ;
|
|
CvMat *arg11 = (CvMat *) 0 ;
|
|
CvMat *arg12 = (CvMat *) 0 ;
|
|
CvMat *arg13 = (CvMat *) 0 ;
|
|
CvMat *arg14 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
bool freearg5 = false ;
|
|
bool freearg6 = false ;
|
|
bool freearg7 = false ;
|
|
bool freearg8 = false ;
|
|
bool freearg9 = false ;
|
|
bool freearg10 = false ;
|
|
bool freearg11 = false ;
|
|
bool freearg12 = false ;
|
|
bool freearg13 = false ;
|
|
bool freearg14 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
PyObject * obj8 = 0 ;
|
|
PyObject * obj9 = 0 ;
|
|
PyObject * obj10 = 0 ;
|
|
PyObject * obj11 = 0 ;
|
|
PyObject * obj12 = 0 ;
|
|
PyObject * obj13 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO|OOOOOOOO:cvComposeRT",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
arg5 = (CvMat*)PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
{
|
|
arg6 = (CvMat*)PyObject_to_CvArr(obj5, &freearg6);
|
|
}
|
|
if (obj6) {
|
|
{
|
|
arg7 = (CvMat*)PyObject_to_CvArr(obj6, &freearg7);
|
|
}
|
|
}
|
|
if (obj7) {
|
|
{
|
|
arg8 = (CvMat*)PyObject_to_CvArr(obj7, &freearg8);
|
|
}
|
|
}
|
|
if (obj8) {
|
|
{
|
|
arg9 = (CvMat*)PyObject_to_CvArr(obj8, &freearg9);
|
|
}
|
|
}
|
|
if (obj9) {
|
|
{
|
|
arg10 = (CvMat*)PyObject_to_CvArr(obj9, &freearg10);
|
|
}
|
|
}
|
|
if (obj10) {
|
|
{
|
|
arg11 = (CvMat*)PyObject_to_CvArr(obj10, &freearg11);
|
|
}
|
|
}
|
|
if (obj11) {
|
|
{
|
|
arg12 = (CvMat*)PyObject_to_CvArr(obj11, &freearg12);
|
|
}
|
|
}
|
|
if (obj12) {
|
|
{
|
|
arg13 = (CvMat*)PyObject_to_CvArr(obj12, &freearg13);
|
|
}
|
|
}
|
|
if (obj13) {
|
|
{
|
|
arg14 = (CvMat*)PyObject_to_CvArr(obj13, &freearg14);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
cvComposeRT((CvMat const *)arg1,(CvMat const *)arg2,(CvMat const *)arg3,(CvMat const *)arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
{
|
|
if(arg7!=NULL && freearg7){
|
|
cvReleaseData( arg7 );
|
|
cvFree(&(arg7));
|
|
}
|
|
}
|
|
{
|
|
if(arg8!=NULL && freearg8){
|
|
cvReleaseData( arg8 );
|
|
cvFree(&(arg8));
|
|
}
|
|
}
|
|
{
|
|
if(arg9!=NULL && freearg9){
|
|
cvReleaseData( arg9 );
|
|
cvFree(&(arg9));
|
|
}
|
|
}
|
|
{
|
|
if(arg10!=NULL && freearg10){
|
|
cvReleaseData( arg10 );
|
|
cvFree(&(arg10));
|
|
}
|
|
}
|
|
{
|
|
if(arg11!=NULL && freearg11){
|
|
cvReleaseData( arg11 );
|
|
cvFree(&(arg11));
|
|
}
|
|
}
|
|
{
|
|
if(arg12!=NULL && freearg12){
|
|
cvReleaseData( arg12 );
|
|
cvFree(&(arg12));
|
|
}
|
|
}
|
|
{
|
|
if(arg13!=NULL && freearg13){
|
|
cvReleaseData( arg13 );
|
|
cvFree(&(arg13));
|
|
}
|
|
}
|
|
{
|
|
if(arg14!=NULL && freearg14){
|
|
cvReleaseData( arg14 );
|
|
cvFree(&(arg14));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
{
|
|
if(arg7!=NULL && freearg7){
|
|
cvReleaseData( arg7 );
|
|
cvFree(&(arg7));
|
|
}
|
|
}
|
|
{
|
|
if(arg8!=NULL && freearg8){
|
|
cvReleaseData( arg8 );
|
|
cvFree(&(arg8));
|
|
}
|
|
}
|
|
{
|
|
if(arg9!=NULL && freearg9){
|
|
cvReleaseData( arg9 );
|
|
cvFree(&(arg9));
|
|
}
|
|
}
|
|
{
|
|
if(arg10!=NULL && freearg10){
|
|
cvReleaseData( arg10 );
|
|
cvFree(&(arg10));
|
|
}
|
|
}
|
|
{
|
|
if(arg11!=NULL && freearg11){
|
|
cvReleaseData( arg11 );
|
|
cvFree(&(arg11));
|
|
}
|
|
}
|
|
{
|
|
if(arg12!=NULL && freearg12){
|
|
cvReleaseData( arg12 );
|
|
cvFree(&(arg12));
|
|
}
|
|
}
|
|
{
|
|
if(arg13!=NULL && freearg13){
|
|
cvReleaseData( arg13 );
|
|
cvFree(&(arg13));
|
|
}
|
|
}
|
|
{
|
|
if(arg14!=NULL && freearg14){
|
|
cvReleaseData( arg14 );
|
|
cvFree(&(arg14));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvProjectPoints2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
CvMat *arg5 = (CvMat *) 0 ;
|
|
CvMat *arg6 = (CvMat *) 0 ;
|
|
CvMat *arg7 = (CvMat *) NULL ;
|
|
CvMat *arg8 = (CvMat *) NULL ;
|
|
CvMat *arg9 = (CvMat *) NULL ;
|
|
CvMat *arg10 = (CvMat *) NULL ;
|
|
CvMat *arg11 = (CvMat *) NULL ;
|
|
double arg12 = (double) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
bool freearg5 = false ;
|
|
bool freearg6 = false ;
|
|
bool freearg7 = false ;
|
|
bool freearg8 = false ;
|
|
bool freearg9 = false ;
|
|
bool freearg10 = false ;
|
|
bool freearg11 = false ;
|
|
double val12 ;
|
|
int ecode12 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
PyObject * obj8 = 0 ;
|
|
PyObject * obj9 = 0 ;
|
|
PyObject * obj10 = 0 ;
|
|
PyObject * obj11 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO|OOOOOO:cvProjectPoints2",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
arg5 = (CvMat*)PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
{
|
|
arg6 = (CvMat*)PyObject_to_CvArr(obj5, &freearg6);
|
|
}
|
|
if (obj6) {
|
|
{
|
|
arg7 = (CvMat*)PyObject_to_CvArr(obj6, &freearg7);
|
|
}
|
|
}
|
|
if (obj7) {
|
|
{
|
|
arg8 = (CvMat*)PyObject_to_CvArr(obj7, &freearg8);
|
|
}
|
|
}
|
|
if (obj8) {
|
|
{
|
|
arg9 = (CvMat*)PyObject_to_CvArr(obj8, &freearg9);
|
|
}
|
|
}
|
|
if (obj9) {
|
|
{
|
|
arg10 = (CvMat*)PyObject_to_CvArr(obj9, &freearg10);
|
|
}
|
|
}
|
|
if (obj10) {
|
|
{
|
|
arg11 = (CvMat*)PyObject_to_CvArr(obj10, &freearg11);
|
|
}
|
|
}
|
|
if (obj11) {
|
|
ecode12 = SWIG_AsVal_double(obj11, &val12);
|
|
if (!SWIG_IsOK(ecode12)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "cvProjectPoints2" "', argument " "12"" of type '" "double""'");
|
|
}
|
|
arg12 = static_cast< double >(val12);
|
|
}
|
|
{
|
|
try {
|
|
cvProjectPoints2((CvMat const *)arg1,(CvMat const *)arg2,(CvMat const *)arg3,(CvMat const *)arg4,(CvMat const *)arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
{
|
|
if(arg7!=NULL && freearg7){
|
|
cvReleaseData( arg7 );
|
|
cvFree(&(arg7));
|
|
}
|
|
}
|
|
{
|
|
if(arg8!=NULL && freearg8){
|
|
cvReleaseData( arg8 );
|
|
cvFree(&(arg8));
|
|
}
|
|
}
|
|
{
|
|
if(arg9!=NULL && freearg9){
|
|
cvReleaseData( arg9 );
|
|
cvFree(&(arg9));
|
|
}
|
|
}
|
|
{
|
|
if(arg10!=NULL && freearg10){
|
|
cvReleaseData( arg10 );
|
|
cvFree(&(arg10));
|
|
}
|
|
}
|
|
{
|
|
if(arg11!=NULL && freearg11){
|
|
cvReleaseData( arg11 );
|
|
cvFree(&(arg11));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
{
|
|
if(arg7!=NULL && freearg7){
|
|
cvReleaseData( arg7 );
|
|
cvFree(&(arg7));
|
|
}
|
|
}
|
|
{
|
|
if(arg8!=NULL && freearg8){
|
|
cvReleaseData( arg8 );
|
|
cvFree(&(arg8));
|
|
}
|
|
}
|
|
{
|
|
if(arg9!=NULL && freearg9){
|
|
cvReleaseData( arg9 );
|
|
cvFree(&(arg9));
|
|
}
|
|
}
|
|
{
|
|
if(arg10!=NULL && freearg10){
|
|
cvReleaseData( arg10 );
|
|
cvFree(&(arg10));
|
|
}
|
|
}
|
|
{
|
|
if(arg11!=NULL && freearg11){
|
|
cvReleaseData( arg11 );
|
|
cvFree(&(arg11));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFindExtrinsicCameraParams2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
CvMat *arg5 = (CvMat *) 0 ;
|
|
CvMat *arg6 = (CvMat *) 0 ;
|
|
int arg7 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
bool freearg5 = false ;
|
|
bool freearg6 = false ;
|
|
int val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO|O:cvFindExtrinsicCameraParams2",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
arg5 = (CvMat*)PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
{
|
|
arg6 = (CvMat*)PyObject_to_CvArr(obj5, &freearg6);
|
|
}
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_int(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvFindExtrinsicCameraParams2" "', argument " "7"" of type '" "int""'");
|
|
}
|
|
arg7 = static_cast< int >(val7);
|
|
}
|
|
{
|
|
try {
|
|
cvFindExtrinsicCameraParams2((CvMat const *)arg1,(CvMat const *)arg2,(CvMat const *)arg3,(CvMat const *)arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvInitIntrinsicParams2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvSize arg4 ;
|
|
CvMat *arg5 = (CvMat *) 0 ;
|
|
double arg6 = (double) 1. ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
CvSize temp4 ;
|
|
bool freearg5 = false ;
|
|
double val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO|O:cvInitIntrinsicParams2D",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj3))
|
|
{
|
|
if (!PyArg_ParseTuple(obj3,"ii", & temp4.width, & temp4.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg4 = temp4;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj3, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg4 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
arg5 = (CvMat*)PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_double(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvInitIntrinsicParams2D" "', argument " "6"" of type '" "double""'");
|
|
}
|
|
arg6 = static_cast< double >(val6);
|
|
}
|
|
{
|
|
try {
|
|
cvInitIntrinsicParams2D((CvMat const *)arg1,(CvMat const *)arg2,(CvMat const *)arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFindChessboardCorners(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void *arg1 = (void *) 0 ;
|
|
CvSize arg2 ;
|
|
CvPoint2D32f *arg3 = (CvPoint2D32f *) 0 ;
|
|
int *arg4 = (int *) NULL ;
|
|
int arg5 = (int) 1+2 ;
|
|
int res1 ;
|
|
CvSize *pattern_size2 ;
|
|
CvPoint2D32f *tmp_corners2 ;
|
|
int tmp_ncorners2 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|O:cvFindChessboardCorners",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvFindChessboardCorners" "', argument " "1"" of type '" "void const *""'");
|
|
}
|
|
{
|
|
void * vptr;
|
|
if( SWIG_ConvertPtr(obj1, &vptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION ) == -1){
|
|
return NULL;
|
|
}
|
|
pattern_size2=(CvSize *)vptr;
|
|
tmp_ncorners2 = pattern_size2->width*pattern_size2->height;
|
|
|
|
tmp_corners2 = (CvPoint2D32f *) malloc(sizeof(CvPoint2D32f)*tmp_ncorners2);
|
|
arg2 = *pattern_size2;
|
|
arg3 = tmp_corners2;
|
|
arg4 = &tmp_ncorners2;
|
|
}
|
|
if (obj2) {
|
|
ecode5 = SWIG_AsVal_int(obj2, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvFindChessboardCorners" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvFindChessboardCorners((void const *)arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
int i;
|
|
PyObject *to_add;
|
|
|
|
/* create the list to return */
|
|
to_add = PyList_New ( tmp_ncorners2 );
|
|
|
|
/* extract all the corner values of the result, and add it to the
|
|
final resulting list */
|
|
for (i = 0; i < tmp_ncorners2; i++) {
|
|
CvPoint2D32f * pt = new CvPoint2D32f;
|
|
pt->x = tmp_corners2[i].x;
|
|
pt->y = tmp_corners2[i].y;
|
|
|
|
PyList_SetItem (to_add, i,
|
|
SWIG_NewPointerObj( pt, SWIGTYPE_p_CvPoint2D32f, 0));
|
|
}
|
|
|
|
resultobj = SWIG_AppendResult( resultobj, &to_add, 1);
|
|
free(tmp_corners2);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvDrawChessboardCorners(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvSize arg2 ;
|
|
CvPoint2D32f *arg3 = (CvPoint2D32f *) 0 ;
|
|
int arg4 ;
|
|
int arg5 ;
|
|
bool freearg1 = false ;
|
|
CvSize temp2 ;
|
|
int cornersCount3 ;
|
|
CvPoint2D32f *corners3 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvDrawChessboardCorners",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ii", & temp2.width, & temp2.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
if(! PySequence_Check (obj2))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError, "Expected a list or tuple");
|
|
return NULL;
|
|
}
|
|
|
|
// TODO: will this ever be freed?
|
|
cornersCount3 = PySequence_Size (obj2);
|
|
corners3 = (CvPoint2D32f *) malloc (cornersCount3 * sizeof (CvPoint2D32f));
|
|
|
|
// extract all the points values from the list */
|
|
CvPoint2D32f * corner = corners3;
|
|
for (int i = 0; i < cornersCount3; i++, corner++)
|
|
{
|
|
PyObject * item = PySequence_GetItem (obj2, i);
|
|
|
|
if (PySequence_Check(item) && PySequence_Length(item) == 2)
|
|
{
|
|
PyObject * tuple = PySequence_Tuple (item);
|
|
if (!PyArg_ParseTuple (tuple, "ff", & corner->x, & corner->y))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"each entry must consist of 2 floats (x, y)");
|
|
Py_DECREF (tuple);
|
|
Py_DECREF (item);
|
|
return NULL;
|
|
}
|
|
Py_DECREF (tuple);
|
|
}
|
|
else
|
|
{
|
|
CvPoint2D32f * ptr;
|
|
if (SWIG_ConvertPtr (item, (void **) & ptr, SWIGTYPE_p_CvPoint2D32f, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a sequence of 2 floats (x, y) or a CvPoint2D32f");
|
|
Py_DECREF (item);
|
|
return NULL;
|
|
}
|
|
*corner = *ptr;
|
|
}
|
|
|
|
Py_DECREF (item);
|
|
}
|
|
|
|
// these are the arguments passed to the OpenCV function
|
|
arg3 = corners3;
|
|
arg4 = cornersCount3;
|
|
}
|
|
ecode5 = SWIG_AsVal_int(obj3, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvDrawChessboardCorners" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
{
|
|
try {
|
|
cvDrawChessboardCorners(arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
int i;
|
|
PyObject *to_add;
|
|
|
|
/* create the list to return */
|
|
to_add = PyList_New (cornersCount3);
|
|
|
|
/* extract all the corner values of the result, and add it to the
|
|
final resulting list */
|
|
for (i = 0; i < cornersCount3; i++)
|
|
PyList_SetItem (to_add, i, SWIG_NewPointerObj (&(corners3 [i]), SWIGTYPE_p_CvPoint2D32f, 0));
|
|
|
|
resultobj = SWIG_AppendResult( resultobj, &to_add, 1);
|
|
}
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalibrateCamera2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvSize arg4 ;
|
|
CvMat *arg5 = (CvMat *) 0 ;
|
|
CvMat *arg6 = (CvMat *) 0 ;
|
|
CvMat *arg7 = (CvMat *) NULL ;
|
|
CvMat *arg8 = (CvMat *) NULL ;
|
|
int arg9 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
CvSize temp4 ;
|
|
bool freearg5 = false ;
|
|
bool freearg6 = false ;
|
|
bool freearg7 = false ;
|
|
bool freearg8 = false ;
|
|
int val9 ;
|
|
int ecode9 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
PyObject * obj8 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO|OOO:cvCalibrateCamera2",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj3))
|
|
{
|
|
if (!PyArg_ParseTuple(obj3,"ii", & temp4.width, & temp4.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg4 = temp4;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj3, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg4 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
arg5 = (CvMat*)PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
{
|
|
arg6 = (CvMat*)PyObject_to_CvArr(obj5, &freearg6);
|
|
}
|
|
if (obj6) {
|
|
{
|
|
arg7 = (CvMat*)PyObject_to_CvArr(obj6, &freearg7);
|
|
}
|
|
}
|
|
if (obj7) {
|
|
{
|
|
arg8 = (CvMat*)PyObject_to_CvArr(obj7, &freearg8);
|
|
}
|
|
}
|
|
if (obj8) {
|
|
ecode9 = SWIG_AsVal_int(obj8, &val9);
|
|
if (!SWIG_IsOK(ecode9)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "cvCalibrateCamera2" "', argument " "9"" of type '" "int""'");
|
|
}
|
|
arg9 = static_cast< int >(val9);
|
|
}
|
|
{
|
|
try {
|
|
cvCalibrateCamera2((CvMat const *)arg1,(CvMat const *)arg2,(CvMat const *)arg3,arg4,arg5,arg6,arg7,arg8,arg9);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
{
|
|
if(arg7!=NULL && freearg7){
|
|
cvReleaseData( arg7 );
|
|
cvFree(&(arg7));
|
|
}
|
|
}
|
|
{
|
|
if(arg8!=NULL && freearg8){
|
|
cvReleaseData( arg8 );
|
|
cvFree(&(arg8));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
{
|
|
if(arg7!=NULL && freearg7){
|
|
cvReleaseData( arg7 );
|
|
cvFree(&(arg7));
|
|
}
|
|
}
|
|
{
|
|
if(arg8!=NULL && freearg8){
|
|
cvReleaseData( arg8 );
|
|
cvFree(&(arg8));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCalibrationMatrixValues(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvSize arg2 ;
|
|
double arg3 = (double) 0 ;
|
|
double arg4 = (double) 0 ;
|
|
double *arg5 = (double *) NULL ;
|
|
double *arg6 = (double *) NULL ;
|
|
double *arg7 = (double *) NULL ;
|
|
CvPoint2D64f *arg8 = (CvPoint2D64f *) NULL ;
|
|
double *arg9 = (double *) NULL ;
|
|
bool freearg1 = false ;
|
|
CvSize temp2 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
void *argp6 = 0 ;
|
|
int res6 = 0 ;
|
|
void *argp7 = 0 ;
|
|
int res7 = 0 ;
|
|
void *argp8 = 0 ;
|
|
int res8 = 0 ;
|
|
void *argp9 = 0 ;
|
|
int res9 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
PyObject * obj8 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO|OOOOOOO:cvCalibrationMatrixValues",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj1))
|
|
{
|
|
if (!PyArg_ParseTuple(obj1,"ii", & temp2.width, & temp2.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg2 = temp2;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj1, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg2 = *ptr;
|
|
}
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvCalibrationMatrixValues" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvCalibrationMatrixValues" "', argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
}
|
|
if (obj4) {
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_double, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvCalibrationMatrixValues" "', argument " "5"" of type '" "double *""'");
|
|
}
|
|
arg5 = reinterpret_cast< double * >(argp5);
|
|
}
|
|
if (obj5) {
|
|
res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_double, 0 | 0 );
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "cvCalibrationMatrixValues" "', argument " "6"" of type '" "double *""'");
|
|
}
|
|
arg6 = reinterpret_cast< double * >(argp6);
|
|
}
|
|
if (obj6) {
|
|
res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_double, 0 | 0 );
|
|
if (!SWIG_IsOK(res7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "cvCalibrationMatrixValues" "', argument " "7"" of type '" "double *""'");
|
|
}
|
|
arg7 = reinterpret_cast< double * >(argp7);
|
|
}
|
|
if (obj7) {
|
|
res8 = SWIG_ConvertPtr(obj7, &argp8,SWIGTYPE_p_CvPoint2D64f, 0 | 0 );
|
|
if (!SWIG_IsOK(res8)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "cvCalibrationMatrixValues" "', argument " "8"" of type '" "CvPoint2D64f *""'");
|
|
}
|
|
arg8 = reinterpret_cast< CvPoint2D64f * >(argp8);
|
|
}
|
|
if (obj8) {
|
|
res9 = SWIG_ConvertPtr(obj8, &argp9,SWIGTYPE_p_double, 0 | 0 );
|
|
if (!SWIG_IsOK(res9)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "cvCalibrationMatrixValues" "', argument " "9"" of type '" "double *""'");
|
|
}
|
|
arg9 = reinterpret_cast< double * >(argp9);
|
|
}
|
|
{
|
|
try {
|
|
cvCalibrationMatrixValues((CvMat const *)arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvStereoCalibrate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
CvMat *arg5 = (CvMat *) 0 ;
|
|
CvMat *arg6 = (CvMat *) 0 ;
|
|
CvMat *arg7 = (CvMat *) 0 ;
|
|
CvMat *arg8 = (CvMat *) 0 ;
|
|
CvSize arg9 ;
|
|
CvMat *arg10 = (CvMat *) 0 ;
|
|
CvMat *arg11 = (CvMat *) 0 ;
|
|
CvMat *arg12 = (CvMat *) 0 ;
|
|
CvMat *arg13 = (CvMat *) 0 ;
|
|
CvTermCriteria arg14 = (CvTermCriteria) cvTermCriteria( 1 +2,30,1e-6) ;
|
|
int arg15 = (int) 256 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
bool freearg5 = false ;
|
|
bool freearg6 = false ;
|
|
bool freearg7 = false ;
|
|
bool freearg8 = false ;
|
|
CvSize temp9 ;
|
|
bool freearg10 = false ;
|
|
bool freearg11 = false ;
|
|
bool freearg12 = false ;
|
|
bool freearg13 = false ;
|
|
CvTermCriteria temp14 ;
|
|
int val15 ;
|
|
int ecode15 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
PyObject * obj8 = 0 ;
|
|
PyObject * obj9 = 0 ;
|
|
PyObject * obj10 = 0 ;
|
|
PyObject * obj11 = 0 ;
|
|
PyObject * obj12 = 0 ;
|
|
PyObject * obj13 = 0 ;
|
|
PyObject * obj14 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOO|OOOO:cvStereoCalibrate",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12,&obj13,&obj14)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
arg5 = (CvMat*)PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
{
|
|
arg6 = (CvMat*)PyObject_to_CvArr(obj5, &freearg6);
|
|
}
|
|
{
|
|
arg7 = (CvMat*)PyObject_to_CvArr(obj6, &freearg7);
|
|
}
|
|
{
|
|
arg8 = (CvMat*)PyObject_to_CvArr(obj7, &freearg8);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj8))
|
|
{
|
|
if (!PyArg_ParseTuple(obj8,"ii", & temp9.width, & temp9.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg9 = temp9;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj8, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg9 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
arg10 = (CvMat*)PyObject_to_CvArr(obj9, &freearg10);
|
|
}
|
|
{
|
|
arg11 = (CvMat*)PyObject_to_CvArr(obj10, &freearg11);
|
|
}
|
|
if (obj11) {
|
|
{
|
|
arg12 = (CvMat*)PyObject_to_CvArr(obj11, &freearg12);
|
|
}
|
|
}
|
|
if (obj12) {
|
|
{
|
|
arg13 = (CvMat*)PyObject_to_CvArr(obj12, &freearg13);
|
|
}
|
|
}
|
|
if (obj13) {
|
|
{
|
|
if (PyTuple_Check(obj13))
|
|
{
|
|
if (!PyArg_ParseTuple(obj13,"iid", & temp14.type, & temp14.max_iter, & temp14.epsilon))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers and a float (type, max_iter, epsilon)");
|
|
return NULL;
|
|
}
|
|
arg14 = temp14;
|
|
}
|
|
else
|
|
{
|
|
CvTermCriteria * ptr;
|
|
if (SWIG_ConvertPtr (obj13, (void **) & ptr, SWIGTYPE_p_CvTermCriteria, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvTermCriteria");
|
|
return NULL;
|
|
}
|
|
arg14 = *ptr;
|
|
}
|
|
}
|
|
}
|
|
if (obj14) {
|
|
ecode15 = SWIG_AsVal_int(obj14, &val15);
|
|
if (!SWIG_IsOK(ecode15)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode15), "in method '" "cvStereoCalibrate" "', argument " "15"" of type '" "int""'");
|
|
}
|
|
arg15 = static_cast< int >(val15);
|
|
}
|
|
{
|
|
try {
|
|
cvStereoCalibrate((CvMat const *)arg1,(CvMat const *)arg2,(CvMat const *)arg3,(CvMat const *)arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12,arg13,arg14,arg15);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
{
|
|
if(arg7!=NULL && freearg7){
|
|
cvReleaseData( arg7 );
|
|
cvFree(&(arg7));
|
|
}
|
|
}
|
|
{
|
|
if(arg8!=NULL && freearg8){
|
|
cvReleaseData( arg8 );
|
|
cvFree(&(arg8));
|
|
}
|
|
}
|
|
{
|
|
if(arg10!=NULL && freearg10){
|
|
cvReleaseData( arg10 );
|
|
cvFree(&(arg10));
|
|
}
|
|
}
|
|
{
|
|
if(arg11!=NULL && freearg11){
|
|
cvReleaseData( arg11 );
|
|
cvFree(&(arg11));
|
|
}
|
|
}
|
|
{
|
|
if(arg12!=NULL && freearg12){
|
|
cvReleaseData( arg12 );
|
|
cvFree(&(arg12));
|
|
}
|
|
}
|
|
{
|
|
if(arg13!=NULL && freearg13){
|
|
cvReleaseData( arg13 );
|
|
cvFree(&(arg13));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
{
|
|
if(arg7!=NULL && freearg7){
|
|
cvReleaseData( arg7 );
|
|
cvFree(&(arg7));
|
|
}
|
|
}
|
|
{
|
|
if(arg8!=NULL && freearg8){
|
|
cvReleaseData( arg8 );
|
|
cvFree(&(arg8));
|
|
}
|
|
}
|
|
{
|
|
if(arg10!=NULL && freearg10){
|
|
cvReleaseData( arg10 );
|
|
cvFree(&(arg10));
|
|
}
|
|
}
|
|
{
|
|
if(arg11!=NULL && freearg11){
|
|
cvReleaseData( arg11 );
|
|
cvFree(&(arg11));
|
|
}
|
|
}
|
|
{
|
|
if(arg12!=NULL && freearg12){
|
|
cvReleaseData( arg12 );
|
|
cvFree(&(arg12));
|
|
}
|
|
}
|
|
{
|
|
if(arg13!=NULL && freearg13){
|
|
cvReleaseData( arg13 );
|
|
cvFree(&(arg13));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvStereoRectify(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
CvSize arg5 ;
|
|
CvMat *arg6 = (CvMat *) 0 ;
|
|
CvMat *arg7 = (CvMat *) 0 ;
|
|
CvMat *arg8 = (CvMat *) 0 ;
|
|
CvMat *arg9 = (CvMat *) 0 ;
|
|
CvMat *arg10 = (CvMat *) 0 ;
|
|
CvMat *arg11 = (CvMat *) 0 ;
|
|
CvMat *arg12 = (CvMat *) 0 ;
|
|
int arg13 = (int) 1024 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
CvSize temp5 ;
|
|
bool freearg6 = false ;
|
|
bool freearg7 = false ;
|
|
bool freearg8 = false ;
|
|
bool freearg9 = false ;
|
|
bool freearg10 = false ;
|
|
bool freearg11 = false ;
|
|
bool freearg12 = false ;
|
|
int val13 ;
|
|
int ecode13 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
PyObject * obj8 = 0 ;
|
|
PyObject * obj9 = 0 ;
|
|
PyObject * obj10 = 0 ;
|
|
PyObject * obj11 = 0 ;
|
|
PyObject * obj12 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOOOOOOO|OO:cvStereoRectify",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11,&obj12)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj4))
|
|
{
|
|
if (!PyArg_ParseTuple(obj4,"ii", & temp5.width, & temp5.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg5 = temp5;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj4, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg5 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
arg6 = (CvMat*)PyObject_to_CvArr(obj5, &freearg6);
|
|
}
|
|
{
|
|
arg7 = (CvMat*)PyObject_to_CvArr(obj6, &freearg7);
|
|
}
|
|
{
|
|
arg8 = (CvMat*)PyObject_to_CvArr(obj7, &freearg8);
|
|
}
|
|
{
|
|
arg9 = (CvMat*)PyObject_to_CvArr(obj8, &freearg9);
|
|
}
|
|
{
|
|
arg10 = (CvMat*)PyObject_to_CvArr(obj9, &freearg10);
|
|
}
|
|
{
|
|
arg11 = (CvMat*)PyObject_to_CvArr(obj10, &freearg11);
|
|
}
|
|
if (obj11) {
|
|
{
|
|
arg12 = (CvMat*)PyObject_to_CvArr(obj11, &freearg12);
|
|
}
|
|
}
|
|
if (obj12) {
|
|
ecode13 = SWIG_AsVal_int(obj12, &val13);
|
|
if (!SWIG_IsOK(ecode13)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode13), "in method '" "cvStereoRectify" "', argument " "13"" of type '" "int""'");
|
|
}
|
|
arg13 = static_cast< int >(val13);
|
|
}
|
|
{
|
|
try {
|
|
cvStereoRectify((CvMat const *)arg1,(CvMat const *)arg2,(CvMat const *)arg3,(CvMat const *)arg4,arg5,(CvMat const *)arg6,(CvMat const *)arg7,arg8,arg9,arg10,arg11,arg12,arg13);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
{
|
|
if(arg7!=NULL && freearg7){
|
|
cvReleaseData( arg7 );
|
|
cvFree(&(arg7));
|
|
}
|
|
}
|
|
{
|
|
if(arg8!=NULL && freearg8){
|
|
cvReleaseData( arg8 );
|
|
cvFree(&(arg8));
|
|
}
|
|
}
|
|
{
|
|
if(arg9!=NULL && freearg9){
|
|
cvReleaseData( arg9 );
|
|
cvFree(&(arg9));
|
|
}
|
|
}
|
|
{
|
|
if(arg10!=NULL && freearg10){
|
|
cvReleaseData( arg10 );
|
|
cvFree(&(arg10));
|
|
}
|
|
}
|
|
{
|
|
if(arg11!=NULL && freearg11){
|
|
cvReleaseData( arg11 );
|
|
cvFree(&(arg11));
|
|
}
|
|
}
|
|
{
|
|
if(arg12!=NULL && freearg12){
|
|
cvReleaseData( arg12 );
|
|
cvFree(&(arg12));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
{
|
|
if(arg7!=NULL && freearg7){
|
|
cvReleaseData( arg7 );
|
|
cvFree(&(arg7));
|
|
}
|
|
}
|
|
{
|
|
if(arg8!=NULL && freearg8){
|
|
cvReleaseData( arg8 );
|
|
cvFree(&(arg8));
|
|
}
|
|
}
|
|
{
|
|
if(arg9!=NULL && freearg9){
|
|
cvReleaseData( arg9 );
|
|
cvFree(&(arg9));
|
|
}
|
|
}
|
|
{
|
|
if(arg10!=NULL && freearg10){
|
|
cvReleaseData( arg10 );
|
|
cvFree(&(arg10));
|
|
}
|
|
}
|
|
{
|
|
if(arg11!=NULL && freearg11){
|
|
cvReleaseData( arg11 );
|
|
cvFree(&(arg11));
|
|
}
|
|
}
|
|
{
|
|
if(arg12!=NULL && freearg12){
|
|
cvReleaseData( arg12 );
|
|
cvFree(&(arg12));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvStereoRectifyUncalibrated(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvSize arg4 ;
|
|
CvMat *arg5 = (CvMat *) 0 ;
|
|
CvMat *arg6 = (CvMat *) 0 ;
|
|
double arg7 = (double) 5 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
CvSize temp4 ;
|
|
bool freearg5 = false ;
|
|
bool freearg6 = false ;
|
|
double val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO|O:cvStereoRectifyUncalibrated",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
if (PyTuple_Check(obj3))
|
|
{
|
|
if (!PyArg_ParseTuple(obj3,"ii", & temp4.width, & temp4.height))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers (width, height)");
|
|
return NULL;
|
|
}
|
|
arg4 = temp4;
|
|
}
|
|
else
|
|
{
|
|
CvSize * ptr;
|
|
if (SWIG_ConvertPtr (obj3, (void **) & ptr, SWIGTYPE_p_CvSize, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvSize");
|
|
return NULL;
|
|
}
|
|
arg4 = *ptr;
|
|
}
|
|
}
|
|
{
|
|
arg5 = (CvMat*)PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
{
|
|
arg6 = (CvMat*)PyObject_to_CvArr(obj5, &freearg6);
|
|
}
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_double(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "cvStereoRectifyUncalibrated" "', argument " "7"" of type '" "double""'");
|
|
}
|
|
arg7 = static_cast< double >(val7);
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvStereoRectifyUncalibrated((CvMat const *)arg1,(CvMat const *)arg2,(CvMat const *)arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
{
|
|
if(arg6!=NULL && freearg6){
|
|
cvReleaseData( arg6 );
|
|
cvFree(&(arg6));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreatePOSITObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPoint3D32f *arg1 = (CvPoint3D32f *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvPOSITObject *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvCreatePOSITObject",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPoint3D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvCreatePOSITObject" "', argument " "1"" of type '" "CvPoint3D32f *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPoint3D32f * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCreatePOSITObject" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (CvPOSITObject *)cvCreatePOSITObject(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPOSITObject, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvPOSIT(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPOSITObject *arg1 = (CvPOSITObject *) 0 ;
|
|
CvPoint2D32f *arg2 = (CvPoint2D32f *) 0 ;
|
|
double arg3 ;
|
|
CvTermCriteria arg4 ;
|
|
CvMatr32f arg5 = (CvMatr32f) 0 ;
|
|
CvVect32f arg6 = (CvVect32f) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
CvTermCriteria temp4 ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
void *argp6 = 0 ;
|
|
int res6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO:cvPOSIT",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvPOSITObject, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvPOSIT" "', argument " "1"" of type '" "CvPOSITObject *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPOSITObject * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "cvPOSIT" "', argument " "2"" of type '" "CvPoint2D32f *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint2D32f * >(argp2);
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvPOSIT" "', argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
{
|
|
if (PyTuple_Check(obj3))
|
|
{
|
|
if (!PyArg_ParseTuple(obj3,"iid", & temp4.type, & temp4.max_iter, & temp4.epsilon))
|
|
{
|
|
PyErr_SetString(PyExc_TypeError,"tuple must consist of 2 integers and a float (type, max_iter, epsilon)");
|
|
return NULL;
|
|
}
|
|
arg4 = temp4;
|
|
}
|
|
else
|
|
{
|
|
CvTermCriteria * ptr;
|
|
if (SWIG_ConvertPtr (obj3, (void **) & ptr, SWIGTYPE_p_CvTermCriteria, SWIG_POINTER_EXCEPTION) == -1)
|
|
{
|
|
PyErr_SetString (PyExc_TypeError,"expected a tuple or a CvTermCriteria");
|
|
return NULL;
|
|
}
|
|
arg4 = *ptr;
|
|
}
|
|
}
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_float, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvPOSIT" "', argument " "5"" of type '" "CvMatr32f""'");
|
|
}
|
|
arg5 = reinterpret_cast< CvMatr32f >(argp5);
|
|
res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_float, 0 | 0 );
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "cvPOSIT" "', argument " "6"" of type '" "CvVect32f""'");
|
|
}
|
|
arg6 = reinterpret_cast< CvVect32f >(argp6);
|
|
{
|
|
try {
|
|
cvPOSIT(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReleasePOSITObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvPOSITObject **arg1 = (CvPOSITObject **) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvReleasePOSITObject",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_p_CvPOSITObject, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvReleasePOSITObject" "', argument " "1"" of type '" "CvPOSITObject **""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvPOSITObject ** >(argp1);
|
|
{
|
|
try {
|
|
cvReleasePOSITObject(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvRANSACUpdateNumIters(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 ;
|
|
double arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvRANSACUpdateNumIters",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvRANSACUpdateNumIters" "', argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvRANSACUpdateNumIters" "', argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "cvRANSACUpdateNumIters" "', argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvRANSACUpdateNumIters" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
try {
|
|
result = (int)cvRANSACUpdateNumIters(arg1,arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvConvertPointsHomogeneous(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvConvertPointsHomogeneous",&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
try {
|
|
cvConvertPointsHomogeneous((CvMat const *)arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFindFundamentalMat(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
int arg4 = (int) 8 ;
|
|
double arg5 = (double) 3. ;
|
|
double arg6 = (double) 0.99 ;
|
|
CvMat *arg7 = (CvMat *) NULL ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
double val5 ;
|
|
int ecode5 = 0 ;
|
|
double val6 ;
|
|
int ecode6 = 0 ;
|
|
bool freearg7 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|OOOO:cvFindFundamentalMat",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvFindFundamentalMat" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_double(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "cvFindFundamentalMat" "', argument " "5"" of type '" "double""'");
|
|
}
|
|
arg5 = static_cast< double >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_double(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvFindFundamentalMat" "', argument " "6"" of type '" "double""'");
|
|
}
|
|
arg6 = static_cast< double >(val6);
|
|
}
|
|
if (obj6) {
|
|
{
|
|
arg7 = (CvMat*)PyObject_to_CvArr(obj6, &freearg7);
|
|
}
|
|
}
|
|
{
|
|
try {
|
|
result = (int)cvFindFundamentalMat((CvMat const *)arg1,(CvMat const *)arg2,arg3,arg4,arg5,arg6,arg7);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg7!=NULL && freearg7){
|
|
cvReleaseData( arg7 );
|
|
cvFree(&(arg7));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg7!=NULL && freearg7){
|
|
cvReleaseData( arg7 );
|
|
cvFree(&(arg7));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvComputeCorrespondEpilines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
int arg2 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvComputeCorrespondEpilines",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvComputeCorrespondEpilines" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
try {
|
|
cvComputeCorrespondEpilines((CvMat const *)arg1,arg2,(CvMat const *)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvTriangulatePoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
CvMat *arg5 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
bool freearg5 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvTriangulatePoints",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
arg5 = (CvMat*)PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
{
|
|
try {
|
|
cvTriangulatePoints(arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCorrectMatches(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvMat *arg1 = (CvMat *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
CvMat *arg4 = (CvMat *) 0 ;
|
|
CvMat *arg5 = (CvMat *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
bool freearg5 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO:cvCorrectMatches",&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
arg1 = (CvMat*)PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = (CvMat*)PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
{
|
|
arg5 = (CvMat*)PyObject_to_CvArr(obj4, &freearg5);
|
|
}
|
|
{
|
|
try {
|
|
cvCorrectMatches(arg1,arg2,arg3,arg4,arg5);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1){
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4){
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
{
|
|
if(arg5!=NULL && freearg5){
|
|
cvReleaseData( arg5 );
|
|
cvFree(&(arg5));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_preFilterType_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoBMState_preFilterType_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_preFilterType_set" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoBMState_preFilterType_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->preFilterType = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_preFilterType_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoBMState_preFilterType_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_preFilterType_get" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
result = (int) ((arg1)->preFilterType);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_preFilterSize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoBMState_preFilterSize_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_preFilterSize_set" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoBMState_preFilterSize_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->preFilterSize = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_preFilterSize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoBMState_preFilterSize_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_preFilterSize_get" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
result = (int) ((arg1)->preFilterSize);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_preFilterCap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoBMState_preFilterCap_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_preFilterCap_set" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoBMState_preFilterCap_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->preFilterCap = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_preFilterCap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoBMState_preFilterCap_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_preFilterCap_get" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
result = (int) ((arg1)->preFilterCap);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_SADWindowSize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoBMState_SADWindowSize_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_SADWindowSize_set" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoBMState_SADWindowSize_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->SADWindowSize = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_SADWindowSize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoBMState_SADWindowSize_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_SADWindowSize_get" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
result = (int) ((arg1)->SADWindowSize);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_minDisparity_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoBMState_minDisparity_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_minDisparity_set" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoBMState_minDisparity_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->minDisparity = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_minDisparity_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoBMState_minDisparity_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_minDisparity_get" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
result = (int) ((arg1)->minDisparity);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_numberOfDisparities_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoBMState_numberOfDisparities_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_numberOfDisparities_set" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoBMState_numberOfDisparities_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->numberOfDisparities = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_numberOfDisparities_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoBMState_numberOfDisparities_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_numberOfDisparities_get" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
result = (int) ((arg1)->numberOfDisparities);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_textureThreshold_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoBMState_textureThreshold_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_textureThreshold_set" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoBMState_textureThreshold_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->textureThreshold = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_textureThreshold_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoBMState_textureThreshold_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_textureThreshold_get" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
result = (int) ((arg1)->textureThreshold);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_uniquenessRatio_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoBMState_uniquenessRatio_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_uniquenessRatio_set" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoBMState_uniquenessRatio_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->uniquenessRatio = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_uniquenessRatio_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoBMState_uniquenessRatio_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_uniquenessRatio_get" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
result = (int) ((arg1)->uniquenessRatio);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_speckleWindowSize_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoBMState_speckleWindowSize_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_speckleWindowSize_set" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoBMState_speckleWindowSize_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->speckleWindowSize = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_speckleWindowSize_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoBMState_speckleWindowSize_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_speckleWindowSize_get" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
result = (int) ((arg1)->speckleWindowSize);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_speckleRange_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoBMState_speckleRange_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_speckleRange_set" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoBMState_speckleRange_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->speckleRange = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_speckleRange_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoBMState_speckleRange_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_speckleRange_get" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
result = (int) ((arg1)->speckleRange);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_trySmallerWindows_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoBMState_trySmallerWindows_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_trySmallerWindows_set" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoBMState_trySmallerWindows_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->trySmallerWindows = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_trySmallerWindows_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoBMState_trySmallerWindows_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_trySmallerWindows_get" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
result = (int) ((arg1)->trySmallerWindows);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_preFilteredImg0_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoBMState_preFilteredImg0_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_preFilteredImg0_set" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->preFilteredImg0 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_preFilteredImg0_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoBMState_preFilteredImg0_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_preFilteredImg0_get" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
result = (CvMat *) ((arg1)->preFilteredImg0);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_preFilteredImg1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoBMState_preFilteredImg1_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_preFilteredImg1_set" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->preFilteredImg1 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_preFilteredImg1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoBMState_preFilteredImg1_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_preFilteredImg1_get" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
result = (CvMat *) ((arg1)->preFilteredImg1);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_slidingSumBuf_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoBMState_slidingSumBuf_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_slidingSumBuf_set" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->slidingSumBuf = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_slidingSumBuf_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoBMState_slidingSumBuf_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_slidingSumBuf_get" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
result = (CvMat *) ((arg1)->slidingSumBuf);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_dbmin_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoBMState_dbmin_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_dbmin_set" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->dbmin = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_dbmin_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoBMState_dbmin_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_dbmin_get" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
result = (CvMat *) ((arg1)->dbmin);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_dbmax_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoBMState_dbmax_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_dbmax_set" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->dbmax = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoBMState_dbmax_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoBMState_dbmax_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoBMState_dbmax_get" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
result = (CvMat *) ((arg1)->dbmax);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvStereoBMState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvStereoBMState")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvStereoBMState *)new CvStereoBMState();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvStereoBMState, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvStereoBMState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState *arg1 = (CvStereoBMState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvStereoBMState",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoBMState, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvStereoBMState" "', argument " "1"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvStereoBMState_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvStereoBMState, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateStereoBMState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
int arg2 = (int) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvStereoBMState *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"|OO:cvCreateStereoBMState",&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvCreateStereoBMState" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCreateStereoBMState" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
try {
|
|
result = (CvStereoBMState *)cvCreateStereoBMState(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReleaseStereoBMState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoBMState **arg1 = (CvStereoBMState **) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvReleaseStereoBMState",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvReleaseStereoBMState" "', argument " "1"" of type '" "CvStereoBMState **""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoBMState ** >(argp1);
|
|
{
|
|
try {
|
|
cvReleaseStereoBMState(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFindStereoCorrespondenceBM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvStereoBMState *arg4 = (CvStereoBMState *) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOO:cvFindStereoCorrespondenceBM",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_CvStereoBMState, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "cvFindStereoCorrespondenceBM" "', argument " "4"" of type '" "CvStereoBMState *""'");
|
|
}
|
|
arg4 = reinterpret_cast< CvStereoBMState * >(argp4);
|
|
{
|
|
try {
|
|
cvFindStereoCorrespondenceBM((void const *)arg1,(void const *)arg2,arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_Ithreshold_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoGCState_Ithreshold_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_Ithreshold_set" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoGCState_Ithreshold_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->Ithreshold = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_Ithreshold_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoGCState_Ithreshold_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_Ithreshold_get" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
result = (int) ((arg1)->Ithreshold);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_interactionRadius_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoGCState_interactionRadius_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_interactionRadius_set" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoGCState_interactionRadius_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->interactionRadius = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_interactionRadius_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoGCState_interactionRadius_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_interactionRadius_get" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
result = (int) ((arg1)->interactionRadius);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_K_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoGCState_K_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_K_set" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoGCState_K_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->K = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_K_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoGCState_K_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_K_get" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
result = (float) ((arg1)->K);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState__lambda_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoGCState__lambda_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState__lambda_set" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoGCState__lambda_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->lambda = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState__lambda_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoGCState__lambda_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState__lambda_get" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
result = (float) ((arg1)->lambda);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_lambda1_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoGCState_lambda1_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_lambda1_set" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoGCState_lambda1_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->lambda1 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_lambda1_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoGCState_lambda1_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_lambda1_get" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
result = (float) ((arg1)->lambda1);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_lambda2_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoGCState_lambda2_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_lambda2_set" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoGCState_lambda2_set" "', argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
if (arg1) (arg1)->lambda2 = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_lambda2_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoGCState_lambda2_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_lambda2_get" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
result = (float) ((arg1)->lambda2);
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_occlusionCost_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoGCState_occlusionCost_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_occlusionCost_set" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoGCState_occlusionCost_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->occlusionCost = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_occlusionCost_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoGCState_occlusionCost_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_occlusionCost_get" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
result = (int) ((arg1)->occlusionCost);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_minDisparity_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoGCState_minDisparity_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_minDisparity_set" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoGCState_minDisparity_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->minDisparity = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_minDisparity_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoGCState_minDisparity_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_minDisparity_get" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
result = (int) ((arg1)->minDisparity);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_numberOfDisparities_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoGCState_numberOfDisparities_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_numberOfDisparities_set" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoGCState_numberOfDisparities_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->numberOfDisparities = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_numberOfDisparities_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoGCState_numberOfDisparities_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_numberOfDisparities_get" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
result = (int) ((arg1)->numberOfDisparities);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_maxIters_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoGCState_maxIters_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_maxIters_set" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvStereoGCState_maxIters_set" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->maxIters = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_maxIters_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoGCState_maxIters_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_maxIters_get" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
result = (int) ((arg1)->maxIters);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_left_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoGCState_left_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_left_set" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->left = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_left_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoGCState_left_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_left_get" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
result = (CvMat *) ((arg1)->left);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_right_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoGCState_right_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_right_set" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->right = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_right_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoGCState_right_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_right_get" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
result = (CvMat *) ((arg1)->right);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_dispLeft_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoGCState_dispLeft_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_dispLeft_set" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->dispLeft = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_dispLeft_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoGCState_dispLeft_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_dispLeft_get" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
result = (CvMat *) ((arg1)->dispLeft);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_dispRight_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoGCState_dispRight_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_dispRight_set" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->dispRight = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_dispRight_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoGCState_dispRight_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_dispRight_get" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
result = (CvMat *) ((arg1)->dispRight);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_ptrLeft_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoGCState_ptrLeft_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_ptrLeft_set" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->ptrLeft = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_ptrLeft_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoGCState_ptrLeft_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_ptrLeft_get" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
result = (CvMat *) ((arg1)->ptrLeft);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_ptrRight_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoGCState_ptrRight_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_ptrRight_set" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->ptrRight = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_ptrRight_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoGCState_ptrRight_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_ptrRight_get" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
result = (CvMat *) ((arg1)->ptrRight);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_vtxBuf_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoGCState_vtxBuf_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_vtxBuf_set" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->vtxBuf = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_vtxBuf_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoGCState_vtxBuf_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_vtxBuf_get" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
result = (CvMat *) ((arg1)->vtxBuf);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_edgeBuf_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
CvMat *arg2 = (CvMat *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool freearg2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvStereoGCState_edgeBuf_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_edgeBuf_set" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
{
|
|
arg2 = (CvMat*)PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
if (arg1) (arg1)->edgeBuf = arg2;
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg2!=NULL && freearg2){
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvStereoGCState_edgeBuf_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvMat *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvStereoGCState_edgeBuf_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvStereoGCState_edgeBuf_get" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
result = (CvMat *) ((arg1)->edgeBuf);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvMat, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvStereoGCState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvStereoGCState")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvStereoGCState *)new CvStereoGCState();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvStereoGCState, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvStereoGCState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState *arg1 = (CvStereoGCState *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvStereoGCState",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvStereoGCState, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvStereoGCState" "', argument " "1"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvStereoGCState_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvStereoGCState, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_cvCreateStereoGCState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvStereoGCState *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:cvCreateStereoGCState",&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "cvCreateStereoGCState" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "cvCreateStereoGCState" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (CvStereoGCState *)cvCreateStereoGCState(arg1,arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReleaseStereoGCState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvStereoGCState **arg1 = (CvStereoGCState **) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:cvReleaseStereoGCState",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "cvReleaseStereoGCState" "', argument " "1"" of type '" "CvStereoGCState **""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvStereoGCState ** >(argp1);
|
|
{
|
|
try {
|
|
cvReleaseStereoGCState(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvFindStereoCorrespondenceGC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvArr *arg3 = (CvArr *) 0 ;
|
|
CvArr *arg4 = (CvArr *) 0 ;
|
|
CvStereoGCState *arg5 = (CvStereoGCState *) 0 ;
|
|
int arg6 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
bool freearg4 = false ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOO|O:cvFindStereoCorrespondenceGC",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
{
|
|
arg4 = PyObject_to_CvArr(obj3, &freearg4);
|
|
}
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_CvStereoGCState, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "cvFindStereoCorrespondenceGC" "', argument " "5"" of type '" "CvStereoGCState *""'");
|
|
}
|
|
arg5 = reinterpret_cast< CvStereoGCState * >(argp5);
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "cvFindStereoCorrespondenceGC" "', argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
{
|
|
try {
|
|
cvFindStereoCorrespondenceGC((void const *)arg1,(void const *)arg2,arg3,arg4,arg5,arg6);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3)
|
|
{
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
{
|
|
if(arg4!=NULL && freearg4)
|
|
{
|
|
cvReleaseData( arg4 );
|
|
cvFree(&(arg4));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_cvReprojectImageTo3D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvArr *arg1 = (CvArr *) 0 ;
|
|
CvArr *arg2 = (CvArr *) 0 ;
|
|
CvMat *arg3 = (CvMat *) 0 ;
|
|
int arg4 = (int) 0 ;
|
|
bool freearg1 = false ;
|
|
bool freearg2 = false ;
|
|
bool freearg3 = false ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO|O:cvReprojectImageTo3D",&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
{
|
|
arg1 = PyObject_to_CvArr(obj0, &freearg1);
|
|
}
|
|
{
|
|
arg2 = PyObject_to_CvArr(obj1, &freearg2);
|
|
}
|
|
{
|
|
arg3 = (CvMat*)PyObject_to_CvArr(obj2, &freearg3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "cvReprojectImageTo3D" "', argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
try {
|
|
cvReprojectImageTo3D((void const *)arg1,arg2,(CvMat const *)arg3,arg4);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if(arg1!=NULL && freearg1)
|
|
{
|
|
cvReleaseData( arg1 );
|
|
cvFree(&(arg1));
|
|
}
|
|
}
|
|
{
|
|
if(arg2!=NULL && freearg2)
|
|
{
|
|
cvReleaseData( arg2 );
|
|
cvFree(&(arg2));
|
|
}
|
|
}
|
|
{
|
|
if(arg3!=NULL && freearg3){
|
|
cvReleaseData( arg3 );
|
|
cvFree(&(arg3));
|
|
}
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvLSH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvLSH *arg1 = (CvLSH *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvLSH",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvLSH, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvLSH" "', argument " "1"" of type '" "CvLSH *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvLSH * >(argp1);
|
|
{
|
|
try {
|
|
delete_CvLSH(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvLSH_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvLSH, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTuple_CvPoint_2_val_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTuple< CvPoint,2 > *arg1 = (CvTuple< CvPoint,2 > *) 0 ;
|
|
CvPoint *arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTuple_CvPoint_2_val_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTupleT_CvPoint_2_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTuple_CvPoint_2_val_set" "', argument " "1"" of type '" "CvTuple< CvPoint,2 > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTuple< CvPoint,2 > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvTuple_CvPoint_2_val_set" "', argument " "2"" of type '" "CvPoint [2]""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint * >(argp2);
|
|
{
|
|
if (arg2) {
|
|
size_t ii = 0;
|
|
for (; ii < (size_t)2; ++ii) arg1->val[ii] = arg2[ii];
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""val""' of type '""CvPoint [2]""'");
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTuple_CvPoint_2_val_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTuple< CvPoint,2 > *arg1 = (CvTuple< CvPoint,2 > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTuple_CvPoint_2_val_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTupleT_CvPoint_2_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTuple_CvPoint_2_val_get" "', argument " "1"" of type '" "CvTuple< CvPoint,2 > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTuple< CvPoint,2 > * >(argp1);
|
|
result = (CvPoint *)(CvPoint *) ((arg1)->val);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTuple_CvPoint_2___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTuple< CvPoint,2 > *arg1 = (CvTuple< CvPoint,2 > *) 0 ;
|
|
int arg2 ;
|
|
CvPoint *arg3 = (CvPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvTuple_CvPoint_2___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTupleT_CvPoint_2_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTuple_CvPoint_2___setitem__" "', argument " "1"" of type '" "CvTuple< CvPoint,2 > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTuple< CvPoint,2 > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvTuple_CvPoint_2___setitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvTuple_CvPoint_2___setitem__" "', argument " "3"" of type '" "CvPoint *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvPoint * >(argp3);
|
|
{
|
|
try {
|
|
(arg1)->__setitem__(arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTuple_CvPoint_2___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTuple< CvPoint,2 > *arg1 = (CvTuple< CvPoint,2 > *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTuple_CvPoint_2___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTupleT_CvPoint_2_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTuple_CvPoint_2___getitem__" "', argument " "1"" of type '" "CvTuple< CvPoint,2 > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTuple< CvPoint,2 > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvTuple_CvPoint_2___getitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (CvPoint *) &(arg1)->__getitem__(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvTuple_CvPoint_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTuple< CvPoint,2 > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvTuple_CvPoint_2")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvTuple< CvPoint,2 > *)new CvTuple< CvPoint,2 >();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTupleT_CvPoint_2_t, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvTuple_CvPoint_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTuple< CvPoint,2 > *arg1 = (CvTuple< CvPoint,2 > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvTuple_CvPoint_2",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTupleT_CvPoint_2_t, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvTuple_CvPoint_2" "', argument " "1"" of type '" "CvTuple< CvPoint,2 > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTuple< CvPoint,2 > * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvTuple_CvPoint_2_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvTupleT_CvPoint_2_t, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTuple_float_2_val_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTuple< float,2 > *arg1 = (CvTuple< float,2 > *) 0 ;
|
|
float *arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTuple_float_2_val_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTupleT_float_2_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTuple_float_2_val_set" "', argument " "1"" of type '" "CvTuple< float,2 > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTuple< float,2 > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvTuple_float_2_val_set" "', argument " "2"" of type '" "float [2]""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
{
|
|
if (arg2) {
|
|
size_t ii = 0;
|
|
for (; ii < (size_t)2; ++ii) arg1->val[ii] = arg2[ii];
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""val""' of type '""float [2]""'");
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTuple_float_2_val_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTuple< float,2 > *arg1 = (CvTuple< float,2 > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTuple_float_2_val_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTupleT_float_2_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTuple_float_2_val_get" "', argument " "1"" of type '" "CvTuple< float,2 > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTuple< float,2 > * >(argp1);
|
|
result = (float *)(float *) ((arg1)->val);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTuple_float_2___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTuple< float,2 > *arg1 = (CvTuple< float,2 > *) 0 ;
|
|
int arg2 ;
|
|
float *arg3 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvTuple_float_2___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTupleT_float_2_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTuple_float_2___setitem__" "', argument " "1"" of type '" "CvTuple< float,2 > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTuple< float,2 > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvTuple_float_2___setitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvTuple_float_2___setitem__" "', argument " "3"" of type '" "float *""'");
|
|
}
|
|
arg3 = reinterpret_cast< float * >(argp3);
|
|
{
|
|
try {
|
|
(arg1)->__setitem__(arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTuple_float_2___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTuple< float,2 > *arg1 = (CvTuple< float,2 > *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTuple_float_2___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTupleT_float_2_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTuple_float_2___getitem__" "', argument " "1"" of type '" "CvTuple< float,2 > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTuple< float,2 > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvTuple_float_2___getitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (float *) &(arg1)->__getitem__(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_float(static_cast< float >(*result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvTuple_float_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTuple< float,2 > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvTuple_float_2")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvTuple< float,2 > *)new CvTuple< float,2 >();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTupleT_float_2_t, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvTuple_float_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTuple< float,2 > *arg1 = (CvTuple< float,2 > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvTuple_float_2",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTupleT_float_2_t, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvTuple_float_2" "', argument " "1"" of type '" "CvTuple< float,2 > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTuple< float,2 > * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvTuple_float_2_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvTupleT_float_2_t, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTuple_float_3_val_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTuple< float,3 > *arg1 = (CvTuple< float,3 > *) 0 ;
|
|
float *arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTuple_float_3_val_set",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTupleT_float_3_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTuple_float_3_val_set" "', argument " "1"" of type '" "CvTuple< float,3 > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTuple< float,3 > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_float, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvTuple_float_3_val_set" "', argument " "2"" of type '" "float [2]""'");
|
|
}
|
|
arg2 = reinterpret_cast< float * >(argp2);
|
|
{
|
|
if (arg2) {
|
|
size_t ii = 0;
|
|
for (; ii < (size_t)2; ++ii) arg1->val[ii] = arg2[ii];
|
|
} else {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in variable '""val""' of type '""float [2]""'");
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTuple_float_3_val_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTuple< float,3 > *arg1 = (CvTuple< float,3 > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvTuple_float_3_val_get",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTupleT_float_3_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTuple_float_3_val_get" "', argument " "1"" of type '" "CvTuple< float,3 > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTuple< float,3 > * >(argp1);
|
|
result = (float *)(float *) ((arg1)->val);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_float, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTuple_float_3___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTuple< float,3 > *arg1 = (CvTuple< float,3 > *) 0 ;
|
|
int arg2 ;
|
|
float *arg3 = (float *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvTuple_float_3___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTupleT_float_3_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTuple_float_3___setitem__" "', argument " "1"" of type '" "CvTuple< float,3 > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTuple< float,3 > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvTuple_float_3___setitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_float, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvTuple_float_3___setitem__" "', argument " "3"" of type '" "float *""'");
|
|
}
|
|
arg3 = reinterpret_cast< float * >(argp3);
|
|
{
|
|
try {
|
|
(arg1)->__setitem__(arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvTuple_float_3___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTuple< float,3 > *arg1 = (CvTuple< float,3 > *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
float *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvTuple_float_3___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTupleT_float_3_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvTuple_float_3___getitem__" "', argument " "1"" of type '" "CvTuple< float,3 > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTuple< float,3 > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvTuple_float_3___getitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (float *) &(arg1)->__getitem__(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_float(static_cast< float >(*result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvTuple_float_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTuple< float,3 > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvTuple_float_3")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvTuple< float,3 > *)new CvTuple< float,3 >();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTupleT_float_3_t, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvTuple_float_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTuple< float,3 > *arg1 = (CvTuple< float,3 > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvTuple_float_3",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTupleT_float_3_t, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvTuple_float_3" "', argument " "1"" of type '" "CvTuple< float,3 > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTuple< float,3 > * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvTuple_float_3_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvTupleT_float_3_t, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvPoint_cast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTypedSeq< CvPoint > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_CvPoint_cast",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvPoint > *)CvTypedSeq< CvPoint >::SWIGTEMPLATEDISAMBIGUATOR cast(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvPoint_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvPoint___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvPoint > *arg1 = (CvTypedSeq< CvPoint > *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_CvPoint___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvPoint_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvPoint___getitem__" "', argument " "1"" of type '" "CvTypedSeq< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvPoint > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_CvPoint___getitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (CvPoint *)(arg1)->__getitem__(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvPoint___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvPoint > *arg1 = (CvTypedSeq< CvPoint > *) 0 ;
|
|
int arg2 ;
|
|
CvPoint *arg3 = (CvPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvSeq_CvPoint___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvPoint_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvPoint___setitem__" "', argument " "1"" of type '" "CvTypedSeq< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvPoint > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_CvPoint___setitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvSeq_CvPoint___setitem__" "', argument " "3"" of type '" "CvPoint *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvPoint * >(argp3);
|
|
{
|
|
try {
|
|
(arg1)->__setitem__(arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvPoint_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvPoint > *arg1 = (CvTypedSeq< CvPoint > *) 0 ;
|
|
CvPoint *arg2 = (CvPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_CvPoint_append",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvPoint_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvPoint_append" "', argument " "1"" of type '" "CvTypedSeq< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvPoint > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeq_CvPoint_append" "', argument " "2"" of type '" "CvPoint *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint * >(argp2);
|
|
{
|
|
try {
|
|
(arg1)->append(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvPoint_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvPoint > *arg1 = (CvTypedSeq< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_CvPoint_pop",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvPoint_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvPoint_pop" "', argument " "1"" of type '" "CvTypedSeq< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvPoint > * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvPoint *)(arg1)->pop();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSeq_CvPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvPoint > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSeq_CvPoint")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvPoint > *)new CvTypedSeq< CvPoint >();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvPoint_t, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSeq_CvPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvPoint > *arg1 = (CvTypedSeq< CvPoint > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSeq_CvPoint",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvPoint_t, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSeq_CvPoint" "', argument " "1"" of type '" "CvTypedSeq< CvPoint > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvPoint > * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSeq_CvPoint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvTypedSeqT_CvPoint_t, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvPoint2D32f_cast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTypedSeq< CvPoint2D32f > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_CvPoint2D32f_cast",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvPoint2D32f > *)CvTypedSeq< CvPoint2D32f >::SWIGTEMPLATEDISAMBIGUATOR cast(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvPoint2D32f_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvPoint2D32f___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvPoint2D32f > *arg1 = (CvTypedSeq< CvPoint2D32f > *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvPoint2D32f *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_CvPoint2D32f___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvPoint2D32f_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvPoint2D32f___getitem__" "', argument " "1"" of type '" "CvTypedSeq< CvPoint2D32f > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvPoint2D32f > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_CvPoint2D32f___getitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (CvPoint2D32f *)(arg1)->__getitem__(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvPoint2D32f___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvPoint2D32f > *arg1 = (CvTypedSeq< CvPoint2D32f > *) 0 ;
|
|
int arg2 ;
|
|
CvPoint2D32f *arg3 = (CvPoint2D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvSeq_CvPoint2D32f___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvPoint2D32f_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvPoint2D32f___setitem__" "', argument " "1"" of type '" "CvTypedSeq< CvPoint2D32f > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvPoint2D32f > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_CvPoint2D32f___setitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvSeq_CvPoint2D32f___setitem__" "', argument " "3"" of type '" "CvPoint2D32f *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvPoint2D32f * >(argp3);
|
|
{
|
|
try {
|
|
(arg1)->__setitem__(arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvPoint2D32f_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvPoint2D32f > *arg1 = (CvTypedSeq< CvPoint2D32f > *) 0 ;
|
|
CvPoint2D32f *arg2 = (CvPoint2D32f *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_CvPoint2D32f_append",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvPoint2D32f_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvPoint2D32f_append" "', argument " "1"" of type '" "CvTypedSeq< CvPoint2D32f > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvPoint2D32f > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeq_CvPoint2D32f_append" "', argument " "2"" of type '" "CvPoint2D32f *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvPoint2D32f * >(argp2);
|
|
{
|
|
try {
|
|
(arg1)->append(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvPoint2D32f_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvPoint2D32f > *arg1 = (CvTypedSeq< CvPoint2D32f > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvPoint2D32f *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_CvPoint2D32f_pop",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvPoint2D32f_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvPoint2D32f_pop" "', argument " "1"" of type '" "CvTypedSeq< CvPoint2D32f > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvPoint2D32f > * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvPoint2D32f *)(arg1)->pop();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvPoint2D32f, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSeq_CvPoint2D32f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvPoint2D32f > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSeq_CvPoint2D32f")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvPoint2D32f > *)new CvTypedSeq< CvPoint2D32f >();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvPoint2D32f_t, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSeq_CvPoint2D32f(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvPoint2D32f > *arg1 = (CvTypedSeq< CvPoint2D32f > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSeq_CvPoint2D32f",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvPoint2D32f_t, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSeq_CvPoint2D32f" "', argument " "1"" of type '" "CvTypedSeq< CvPoint2D32f > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvPoint2D32f > * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSeq_CvPoint2D32f_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvTypedSeqT_CvPoint2D32f_t, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvRect_cast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTypedSeq< CvRect > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_CvRect_cast",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvRect > *)CvTypedSeq< CvRect >::SWIGTEMPLATEDISAMBIGUATOR cast(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvRect_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvRect___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvRect > *arg1 = (CvTypedSeq< CvRect > *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvRect *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_CvRect___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvRect_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvRect___getitem__" "', argument " "1"" of type '" "CvTypedSeq< CvRect > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvRect > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_CvRect___getitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (CvRect *)(arg1)->__getitem__(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvRect, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvRect___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvRect > *arg1 = (CvTypedSeq< CvRect > *) 0 ;
|
|
int arg2 ;
|
|
CvRect *arg3 = (CvRect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvSeq_CvRect___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvRect_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvRect___setitem__" "', argument " "1"" of type '" "CvTypedSeq< CvRect > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvRect > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_CvRect___setitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvSeq_CvRect___setitem__" "', argument " "3"" of type '" "CvRect *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvRect * >(argp3);
|
|
{
|
|
try {
|
|
(arg1)->__setitem__(arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvRect_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvRect > *arg1 = (CvTypedSeq< CvRect > *) 0 ;
|
|
CvRect *arg2 = (CvRect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_CvRect_append",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvRect_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvRect_append" "', argument " "1"" of type '" "CvTypedSeq< CvRect > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvRect > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeq_CvRect_append" "', argument " "2"" of type '" "CvRect *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvRect * >(argp2);
|
|
{
|
|
try {
|
|
(arg1)->append(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvRect_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvRect > *arg1 = (CvTypedSeq< CvRect > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvRect *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_CvRect_pop",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvRect_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvRect_pop" "', argument " "1"" of type '" "CvTypedSeq< CvRect > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvRect > * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvRect *)(arg1)->pop();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvRect, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSeq_CvRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvRect > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSeq_CvRect")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvRect > *)new CvTypedSeq< CvRect >();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvRect_t, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSeq_CvRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvRect > *arg1 = (CvTypedSeq< CvRect > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSeq_CvRect",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvRect_t, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSeq_CvRect" "', argument " "1"" of type '" "CvTypedSeq< CvRect > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvRect > * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSeq_CvRect_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvTypedSeqT_CvRect_t, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvSeq_cast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTypedSeq< CvSeq * > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_CvSeq_cast",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvSeq * > *)CvTypedSeq< CvSeq * >::SWIGTEMPLATEDISAMBIGUATOR cast(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvSeq_p_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvSeq___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvSeq * > *arg1 = (CvTypedSeq< CvSeq * > *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvSeq **result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_CvSeq___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvSeq_p_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvSeq___getitem__" "', argument " "1"" of type '" "CvTypedSeq< CvSeq * > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvSeq * > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_CvSeq___getitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (CvSeq **)(arg1)->__getitem__(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvSeq___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvSeq * > *arg1 = (CvTypedSeq< CvSeq * > *) 0 ;
|
|
int arg2 ;
|
|
CvSeq **arg3 = (CvSeq **) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *vptr3 ;
|
|
CvSeq *buffer3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvSeq_CvSeq___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvSeq_p_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvSeq___setitem__" "', argument " "1"" of type '" "CvTypedSeq< CvSeq * > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvSeq * > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_CvSeq___setitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
if ((SWIG_ConvertPtr(obj2, &vptr3, SWIGTYPE_p_CvSeq, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer3 = (CvSeq *) vptr3;
|
|
arg3=&buffer3;
|
|
}
|
|
{
|
|
try {
|
|
(arg1)->__setitem__(arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvSeq_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvSeq * > *arg1 = (CvTypedSeq< CvSeq * > *) 0 ;
|
|
CvSeq **arg2 = (CvSeq **) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *vptr2 ;
|
|
CvSeq *buffer2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_CvSeq_append",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvSeq_p_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvSeq_append" "', argument " "1"" of type '" "CvTypedSeq< CvSeq * > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvSeq * > * >(argp1);
|
|
{
|
|
if ((SWIG_ConvertPtr(obj1, &vptr2, SWIGTYPE_p_CvSeq, 1)) == -1){
|
|
SWIG_fail;
|
|
}
|
|
buffer2 = (CvSeq *) vptr2;
|
|
arg2=&buffer2;
|
|
}
|
|
{
|
|
try {
|
|
(arg1)->append(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvSeq_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvSeq * > *arg1 = (CvTypedSeq< CvSeq * > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvSeq **result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_CvSeq_pop",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvSeq_p_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvSeq_pop" "', argument " "1"" of type '" "CvTypedSeq< CvSeq * > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvSeq * > * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvSeq **)(arg1)->pop();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_CvSeq, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSeq_CvSeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvSeq * > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSeq_CvSeq")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvSeq * > *)new CvTypedSeq< CvSeq * >();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvSeq_p_t, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSeq_CvSeq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvSeq * > *arg1 = (CvTypedSeq< CvSeq * > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSeq_CvSeq",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvSeq_p_t, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSeq_CvSeq" "', argument " "1"" of type '" "CvTypedSeq< CvSeq * > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvSeq * > * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSeq_CvSeq_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvTypedSeqT_CvSeq_p_t, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvQuadEdge2D_cast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTypedSeq< CvQuadEdge2D > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_CvQuadEdge2D_cast",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvQuadEdge2D > *)CvTypedSeq< CvQuadEdge2D >::SWIGTEMPLATEDISAMBIGUATOR cast(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvQuadEdge2D_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvQuadEdge2D___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvQuadEdge2D > *arg1 = (CvTypedSeq< CvQuadEdge2D > *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvQuadEdge2D *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_CvQuadEdge2D___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvQuadEdge2D_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvQuadEdge2D___getitem__" "', argument " "1"" of type '" "CvTypedSeq< CvQuadEdge2D > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvQuadEdge2D > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_CvQuadEdge2D___getitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (CvQuadEdge2D *)(arg1)->__getitem__(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvQuadEdge2D, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvQuadEdge2D___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvQuadEdge2D > *arg1 = (CvTypedSeq< CvQuadEdge2D > *) 0 ;
|
|
int arg2 ;
|
|
CvQuadEdge2D *arg3 = (CvQuadEdge2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvSeq_CvQuadEdge2D___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvQuadEdge2D_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvQuadEdge2D___setitem__" "', argument " "1"" of type '" "CvTypedSeq< CvQuadEdge2D > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvQuadEdge2D > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_CvQuadEdge2D___setitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvQuadEdge2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvSeq_CvQuadEdge2D___setitem__" "', argument " "3"" of type '" "CvQuadEdge2D *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvQuadEdge2D * >(argp3);
|
|
{
|
|
try {
|
|
(arg1)->__setitem__(arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvQuadEdge2D_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvQuadEdge2D > *arg1 = (CvTypedSeq< CvQuadEdge2D > *) 0 ;
|
|
CvQuadEdge2D *arg2 = (CvQuadEdge2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_CvQuadEdge2D_append",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvQuadEdge2D_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvQuadEdge2D_append" "', argument " "1"" of type '" "CvTypedSeq< CvQuadEdge2D > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvQuadEdge2D > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvQuadEdge2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeq_CvQuadEdge2D_append" "', argument " "2"" of type '" "CvQuadEdge2D *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvQuadEdge2D * >(argp2);
|
|
{
|
|
try {
|
|
(arg1)->append(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvQuadEdge2D_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvQuadEdge2D > *arg1 = (CvTypedSeq< CvQuadEdge2D > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvQuadEdge2D *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_CvQuadEdge2D_pop",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvQuadEdge2D_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvQuadEdge2D_pop" "', argument " "1"" of type '" "CvTypedSeq< CvQuadEdge2D > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvQuadEdge2D > * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvQuadEdge2D *)(arg1)->pop();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvQuadEdge2D, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSeq_CvQuadEdge2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvQuadEdge2D > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSeq_CvQuadEdge2D")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvQuadEdge2D > *)new CvTypedSeq< CvQuadEdge2D >();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvQuadEdge2D_t, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSeq_CvQuadEdge2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvQuadEdge2D > *arg1 = (CvTypedSeq< CvQuadEdge2D > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSeq_CvQuadEdge2D",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvQuadEdge2D_t, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSeq_CvQuadEdge2D" "', argument " "1"" of type '" "CvTypedSeq< CvQuadEdge2D > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvQuadEdge2D > * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSeq_CvQuadEdge2D_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvTypedSeqT_CvQuadEdge2D_t, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvConnectedComp_cast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTypedSeq< CvConnectedComp > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_CvConnectedComp_cast",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvConnectedComp > *)CvTypedSeq< CvConnectedComp >::SWIGTEMPLATEDISAMBIGUATOR cast(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvConnectedComp_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvConnectedComp___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvConnectedComp > *arg1 = (CvTypedSeq< CvConnectedComp > *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvConnectedComp *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_CvConnectedComp___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvConnectedComp_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvConnectedComp___getitem__" "', argument " "1"" of type '" "CvTypedSeq< CvConnectedComp > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvConnectedComp > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_CvConnectedComp___getitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (CvConnectedComp *)(arg1)->__getitem__(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvConnectedComp, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvConnectedComp___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvConnectedComp > *arg1 = (CvTypedSeq< CvConnectedComp > *) 0 ;
|
|
int arg2 ;
|
|
CvConnectedComp *arg3 = (CvConnectedComp *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvSeq_CvConnectedComp___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvConnectedComp_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvConnectedComp___setitem__" "', argument " "1"" of type '" "CvTypedSeq< CvConnectedComp > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvConnectedComp > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_CvConnectedComp___setitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvConnectedComp, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvSeq_CvConnectedComp___setitem__" "', argument " "3"" of type '" "CvConnectedComp *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvConnectedComp * >(argp3);
|
|
{
|
|
try {
|
|
(arg1)->__setitem__(arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvConnectedComp_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvConnectedComp > *arg1 = (CvTypedSeq< CvConnectedComp > *) 0 ;
|
|
CvConnectedComp *arg2 = (CvConnectedComp *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_CvConnectedComp_append",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvConnectedComp_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvConnectedComp_append" "', argument " "1"" of type '" "CvTypedSeq< CvConnectedComp > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvConnectedComp > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvConnectedComp, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeq_CvConnectedComp_append" "', argument " "2"" of type '" "CvConnectedComp *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvConnectedComp * >(argp2);
|
|
{
|
|
try {
|
|
(arg1)->append(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvConnectedComp_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvConnectedComp > *arg1 = (CvTypedSeq< CvConnectedComp > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvConnectedComp *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_CvConnectedComp_pop",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvConnectedComp_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvConnectedComp_pop" "', argument " "1"" of type '" "CvTypedSeq< CvConnectedComp > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvConnectedComp > * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvConnectedComp *)(arg1)->pop();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvConnectedComp, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSeq_CvConnectedComp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvConnectedComp > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSeq_CvConnectedComp")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvConnectedComp > *)new CvTypedSeq< CvConnectedComp >();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvConnectedComp_t, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSeq_CvConnectedComp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvConnectedComp > *arg1 = (CvTypedSeq< CvConnectedComp > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSeq_CvConnectedComp",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvConnectedComp_t, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSeq_CvConnectedComp" "', argument " "1"" of type '" "CvTypedSeq< CvConnectedComp > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvConnectedComp > * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSeq_CvConnectedComp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvTypedSeqT_CvConnectedComp_t, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvPoint_2_cast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTypedSeq< CvTuple< CvPoint,2 > > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_CvPoint_2_cast",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvTuple< CvPoint,2 > > *)CvTypedSeq< CvTuple< CvPoint,2 > >::SWIGTEMPLATEDISAMBIGUATOR cast(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvPoint_2___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvTuple< CvPoint,2 > > *arg1 = (CvTypedSeq< CvTuple< CvPoint,2 > > *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvTuple< CvPoint,2 > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_CvPoint_2___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvPoint_2___getitem__" "', argument " "1"" of type '" "CvTypedSeq< CvTuple< CvPoint,2 > > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvTuple< CvPoint,2 > > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_CvPoint_2___getitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (CvTuple< CvPoint,2 > *)(arg1)->__getitem__(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTupleT_CvPoint_2_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvPoint_2___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvTuple< CvPoint,2 > > *arg1 = (CvTypedSeq< CvTuple< CvPoint,2 > > *) 0 ;
|
|
int arg2 ;
|
|
CvTuple< CvPoint,2 > *arg3 = (CvTuple< CvPoint,2 > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvSeq_CvPoint_2___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvPoint_2___setitem__" "', argument " "1"" of type '" "CvTypedSeq< CvTuple< CvPoint,2 > > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvTuple< CvPoint,2 > > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_CvPoint_2___setitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvTupleT_CvPoint_2_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvSeq_CvPoint_2___setitem__" "', argument " "3"" of type '" "CvTuple< CvPoint,2 > *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvTuple< CvPoint,2 > * >(argp3);
|
|
{
|
|
try {
|
|
(arg1)->__setitem__(arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvPoint_2_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvTuple< CvPoint,2 > > *arg1 = (CvTypedSeq< CvTuple< CvPoint,2 > > *) 0 ;
|
|
CvTuple< CvPoint,2 > *arg2 = (CvTuple< CvPoint,2 > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_CvPoint_2_append",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvPoint_2_append" "', argument " "1"" of type '" "CvTypedSeq< CvTuple< CvPoint,2 > > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvTuple< CvPoint,2 > > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvTupleT_CvPoint_2_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeq_CvPoint_2_append" "', argument " "2"" of type '" "CvTuple< CvPoint,2 > *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvTuple< CvPoint,2 > * >(argp2);
|
|
{
|
|
try {
|
|
(arg1)->append(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_CvPoint_2_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvTuple< CvPoint,2 > > *arg1 = (CvTypedSeq< CvTuple< CvPoint,2 > > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTuple< CvPoint,2 > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_CvPoint_2_pop",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_CvPoint_2_pop" "', argument " "1"" of type '" "CvTypedSeq< CvTuple< CvPoint,2 > > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvTuple< CvPoint,2 > > * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvTuple< CvPoint,2 > *)(arg1)->pop();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTupleT_CvPoint_2_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSeq_CvPoint_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvTuple< CvPoint,2 > > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSeq_CvPoint_2")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvTuple< CvPoint,2 > > *)new CvTypedSeq< CvTuple< CvPoint,2 > >();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSeq_CvPoint_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvTuple< CvPoint,2 > > *arg1 = (CvTypedSeq< CvTuple< CvPoint,2 > > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSeq_CvPoint_2",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSeq_CvPoint_2" "', argument " "1"" of type '" "CvTypedSeq< CvTuple< CvPoint,2 > > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvTuple< CvPoint,2 > > * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSeq_CvPoint_2_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_float_2_cast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTypedSeq< CvTuple< float,2 > > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_float_2_cast",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvTuple< float,2 > > *)CvTypedSeq< CvTuple< float,2 > >::SWIGTEMPLATEDISAMBIGUATOR cast(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvTupleT_float_2_t_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_float_2___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvTuple< float,2 > > *arg1 = (CvTypedSeq< CvTuple< float,2 > > *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvTuple< float,2 > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_float_2___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvTupleT_float_2_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_float_2___getitem__" "', argument " "1"" of type '" "CvTypedSeq< CvTuple< float,2 > > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvTuple< float,2 > > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_float_2___getitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (CvTuple< float,2 > *)(arg1)->__getitem__(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTupleT_float_2_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_float_2___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvTuple< float,2 > > *arg1 = (CvTypedSeq< CvTuple< float,2 > > *) 0 ;
|
|
int arg2 ;
|
|
CvTuple< float,2 > *arg3 = (CvTuple< float,2 > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvSeq_float_2___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvTupleT_float_2_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_float_2___setitem__" "', argument " "1"" of type '" "CvTypedSeq< CvTuple< float,2 > > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvTuple< float,2 > > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_float_2___setitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvTupleT_float_2_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvSeq_float_2___setitem__" "', argument " "3"" of type '" "CvTuple< float,2 > *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvTuple< float,2 > * >(argp3);
|
|
{
|
|
try {
|
|
(arg1)->__setitem__(arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_float_2_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvTuple< float,2 > > *arg1 = (CvTypedSeq< CvTuple< float,2 > > *) 0 ;
|
|
CvTuple< float,2 > *arg2 = (CvTuple< float,2 > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_float_2_append",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvTupleT_float_2_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_float_2_append" "', argument " "1"" of type '" "CvTypedSeq< CvTuple< float,2 > > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvTuple< float,2 > > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvTupleT_float_2_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeq_float_2_append" "', argument " "2"" of type '" "CvTuple< float,2 > *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvTuple< float,2 > * >(argp2);
|
|
{
|
|
try {
|
|
(arg1)->append(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_float_2_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvTuple< float,2 > > *arg1 = (CvTypedSeq< CvTuple< float,2 > > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTuple< float,2 > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_float_2_pop",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvTupleT_float_2_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_float_2_pop" "', argument " "1"" of type '" "CvTypedSeq< CvTuple< float,2 > > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvTuple< float,2 > > * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvTuple< float,2 > *)(arg1)->pop();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTupleT_float_2_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSeq_float_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvTuple< float,2 > > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSeq_float_2")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvTuple< float,2 > > *)new CvTypedSeq< CvTuple< float,2 > >();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvTupleT_float_2_t_t, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSeq_float_2(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvTuple< float,2 > > *arg1 = (CvTypedSeq< CvTuple< float,2 > > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSeq_float_2",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvTupleT_float_2_t_t, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSeq_float_2" "', argument " "1"" of type '" "CvTypedSeq< CvTuple< float,2 > > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvTuple< float,2 > > * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSeq_float_2_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvTypedSeqT_CvTupleT_float_2_t_t, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_float_3_cast(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvSeq *arg1 = (CvSeq *) 0 ;
|
|
void *ptr1 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTypedSeq< CvTuple< float,3 > > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_float_3_cast",&obj0)) SWIG_fail;
|
|
{
|
|
if( SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSeq, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSet, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvGraph, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvSubdiv2D, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvChain, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContour, 0) == -1 &&
|
|
SWIG_ConvertPtr(obj0, &ptr1, SWIGTYPE_p_CvContourTree, 0) == -1 )
|
|
{
|
|
SWIG_exception (SWIG_TypeError, "could not convert to CvSeq");
|
|
return NULL;
|
|
}
|
|
arg1 = (CvSeq *) ptr1;
|
|
}
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvTuple< float,3 > > *)CvTypedSeq< CvTuple< float,3 > >::SWIGTEMPLATEDISAMBIGUATOR cast(arg1);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvTupleT_float_3_t_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_float_3___getitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvTuple< float,3 > > *arg1 = (CvTypedSeq< CvTuple< float,3 > > *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
CvTuple< float,3 > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_float_3___getitem__",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvTupleT_float_3_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_float_3___getitem__" "', argument " "1"" of type '" "CvTypedSeq< CvTuple< float,3 > > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvTuple< float,3 > > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_float_3___getitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
try {
|
|
result = (CvTuple< float,3 > *)(arg1)->__getitem__(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTupleT_float_3_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_float_3___setitem__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvTuple< float,3 > > *arg1 = (CvTypedSeq< CvTuple< float,3 > > *) 0 ;
|
|
int arg2 ;
|
|
CvTuple< float,3 > *arg3 = (CvTuple< float,3 > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOO:CvSeq_float_3___setitem__",&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvTupleT_float_3_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_float_3___setitem__" "', argument " "1"" of type '" "CvTypedSeq< CvTuple< float,3 > > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvTuple< float,3 > > * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CvSeq_float_3___setitem__" "', argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_CvTupleT_float_3_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CvSeq_float_3___setitem__" "', argument " "3"" of type '" "CvTuple< float,3 > *""'");
|
|
}
|
|
arg3 = reinterpret_cast< CvTuple< float,3 > * >(argp3);
|
|
{
|
|
try {
|
|
(arg1)->__setitem__(arg2,arg3);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_float_3_append(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvTuple< float,3 > > *arg1 = (CvTypedSeq< CvTuple< float,3 > > *) 0 ;
|
|
CvTuple< float,3 > *arg2 = (CvTuple< float,3 > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OO:CvSeq_float_3_append",&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvTupleT_float_3_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_float_3_append" "', argument " "1"" of type '" "CvTypedSeq< CvTuple< float,3 > > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvTuple< float,3 > > * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_CvTupleT_float_3_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CvSeq_float_3_append" "', argument " "2"" of type '" "CvTuple< float,3 > *""'");
|
|
}
|
|
arg2 = reinterpret_cast< CvTuple< float,3 > * >(argp2);
|
|
{
|
|
try {
|
|
(arg1)->append(arg2);
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CvSeq_float_3_pop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvTuple< float,3 > > *arg1 = (CvTypedSeq< CvTuple< float,3 > > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
CvTuple< float,3 > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:CvSeq_float_3_pop",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvTupleT_float_3_t_t, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CvSeq_float_3_pop" "', argument " "1"" of type '" "CvTypedSeq< CvTuple< float,3 > > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvTuple< float,3 > > * >(argp1);
|
|
{
|
|
try {
|
|
result = (CvTuple< float,3 > *)(arg1)->pop();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTupleT_float_3_t, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CvSeq_float_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvTuple< float,3 > > *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":new_CvSeq_float_3")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvTypedSeq< CvTuple< float,3 > > *)new CvTypedSeq< CvTuple< float,3 > >();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_CvTypedSeqT_CvTupleT_float_3_t_t, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CvSeq_float_3(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvTypedSeq< CvTuple< float,3 > > *arg1 = (CvTypedSeq< CvTuple< float,3 > > *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"O:delete_CvSeq_float_3",&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CvTypedSeqT_CvTupleT_float_3_t_t, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CvSeq_float_3" "', argument " "1"" of type '" "CvTypedSeq< CvTuple< float,3 > > *""'");
|
|
}
|
|
arg1 = reinterpret_cast< CvTypedSeq< CvTuple< float,3 > > * >(argp1);
|
|
{
|
|
try {
|
|
delete arg1;
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CvSeq_float_3_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!PyArg_ParseTuple(args,(char*)"O:swigregister", &obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_CvTypedSeqT_CvTupleT_float_3_t_t, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_SendErrorToPython(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
char *arg2 = (char *) 0 ;
|
|
char *arg3 = (char *) 0 ;
|
|
char *arg4 = (char *) 0 ;
|
|
int arg5 ;
|
|
void *arg6 = (void *) 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int res2 ;
|
|
char *buf2 = 0 ;
|
|
int alloc2 = 0 ;
|
|
int res3 ;
|
|
char *buf3 = 0 ;
|
|
int alloc3 = 0 ;
|
|
int res4 ;
|
|
char *buf4 = 0 ;
|
|
int alloc4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int res6 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
int result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)"OOOOOO:SendErrorToPython",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SendErrorToPython" "', argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SendErrorToPython" "', argument " "2"" of type '" "char const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< char * >(buf2);
|
|
res3 = SWIG_AsCharPtrAndSize(obj2, &buf3, NULL, &alloc3);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "SendErrorToPython" "', argument " "3"" of type '" "char const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< char * >(buf3);
|
|
res4 = SWIG_AsCharPtrAndSize(obj3, &buf4, NULL, &alloc4);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "SendErrorToPython" "', argument " "4"" of type '" "char const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< char * >(buf4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "SendErrorToPython" "', argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
res6 = SWIG_ConvertPtr(obj5,SWIG_as_voidptrptr(&arg6), 0, 0);
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "SendErrorToPython" "', argument " "6"" of type '" "void *""'");
|
|
}
|
|
{
|
|
try {
|
|
try {
|
|
result = (int)SendErrorToPython(arg1,(char const *)arg2,(char const *)arg3,(char const *)arg4,arg5,arg6);
|
|
}
|
|
catch(int &_e) {
|
|
SWIG_Python_Raise(SWIG_From_int(static_cast< int >(_e)), "int", 0); SWIG_fail;
|
|
}
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
|
|
if (alloc3 == SWIG_NEWOBJ) delete[] buf3;
|
|
if (alloc4 == SWIG_NEWOBJ) delete[] buf4;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_function_ptr_generator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
CvErrorCallback result;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":function_ptr_generator")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (CvErrorCallback)function_ptr_generator();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewFunctionPtrObj((void *)(result), SWIGTYPE_p_f_int_p_q_const__char_p_q_const__char_p_q_const__char_int_p_void__int);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_void_ptr_generator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void *result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":void_ptr_generator")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (void *)void_ptr_generator();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_void_ptrptr_generator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
void **result = 0 ;
|
|
|
|
if (!PyArg_ParseTuple(args,(char *)":void_ptrptr_generator")) SWIG_fail;
|
|
{
|
|
try {
|
|
result = (void **)void_ptrptr_generator();
|
|
}
|
|
catch (...)
|
|
{
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_p_void, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
static PyMethodDef SwigMethods[] = {
|
|
{ (char *)"SWIG_PyInstanceMethod_New", (PyCFunction)SWIG_PyInstanceMethod_New, METH_O, NULL},
|
|
{ (char *)"new_CvRNG_Wrapper", _wrap_new_CvRNG_Wrapper, METH_VARARGS, (char *)"new_CvRNG_Wrapper(CvRNG val) -> CvRNG_Wrapper"},
|
|
{ (char *)"CvRNG_Wrapper_ptr", _wrap_CvRNG_Wrapper_ptr, METH_VARARGS, (char *)"CvRNG_Wrapper_ptr(CvRNG_Wrapper self) -> CvRNG"},
|
|
{ (char *)"CvRNG_Wrapper_ref", _wrap_CvRNG_Wrapper_ref, METH_VARARGS, (char *)"CvRNG_Wrapper_ref(CvRNG_Wrapper self) -> CvRNG"},
|
|
{ (char *)"CvRNG_Wrapper___eq__", _wrap_CvRNG_Wrapper___eq__, METH_VARARGS, (char *)"CvRNG_Wrapper___eq__(CvRNG_Wrapper self, CvRNG_Wrapper x) -> bool"},
|
|
{ (char *)"CvRNG_Wrapper___ne__", _wrap_CvRNG_Wrapper___ne__, METH_VARARGS, (char *)"CvRNG_Wrapper___ne__(CvRNG_Wrapper self, CvRNG_Wrapper x) -> bool"},
|
|
{ (char *)"delete_CvRNG_Wrapper", _wrap_delete_CvRNG_Wrapper, METH_VARARGS, (char *)"delete_CvRNG_Wrapper(CvRNG_Wrapper self)"},
|
|
{ (char *)"CvRNG_Wrapper_swigregister", CvRNG_Wrapper_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"new_CvSubdiv2DEdge_Wrapper", _wrap_new_CvSubdiv2DEdge_Wrapper, METH_VARARGS, (char *)"new_CvSubdiv2DEdge_Wrapper(CvSubdiv2DEdge val) -> CvSubdiv2DEdge_Wrapper"},
|
|
{ (char *)"CvSubdiv2DEdge_Wrapper_ptr", _wrap_CvSubdiv2DEdge_Wrapper_ptr, METH_VARARGS, (char *)"CvSubdiv2DEdge_Wrapper_ptr(CvSubdiv2DEdge_Wrapper self) -> CvSubdiv2DEdge"},
|
|
{ (char *)"CvSubdiv2DEdge_Wrapper_ref", _wrap_CvSubdiv2DEdge_Wrapper_ref, METH_VARARGS, (char *)"CvSubdiv2DEdge_Wrapper_ref(CvSubdiv2DEdge_Wrapper self) -> CvSubdiv2DEdge"},
|
|
{ (char *)"CvSubdiv2DEdge_Wrapper___eq__", _wrap_CvSubdiv2DEdge_Wrapper___eq__, METH_VARARGS, (char *)"CvSubdiv2DEdge_Wrapper___eq__(CvSubdiv2DEdge_Wrapper self, CvSubdiv2DEdge_Wrapper x) -> bool"},
|
|
{ (char *)"CvSubdiv2DEdge_Wrapper___ne__", _wrap_CvSubdiv2DEdge_Wrapper___ne__, METH_VARARGS, (char *)"CvSubdiv2DEdge_Wrapper___ne__(CvSubdiv2DEdge_Wrapper self, CvSubdiv2DEdge_Wrapper x) -> bool"},
|
|
{ (char *)"delete_CvSubdiv2DEdge_Wrapper", _wrap_delete_CvSubdiv2DEdge_Wrapper, METH_VARARGS, (char *)"delete_CvSubdiv2DEdge_Wrapper(CvSubdiv2DEdge_Wrapper self)"},
|
|
{ (char *)"CvSubdiv2DEdge_Wrapper_swigregister", CvSubdiv2DEdge_Wrapper_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_VARARGS, (char *)"delete_SwigPyIterator(SwigPyIterator self)"},
|
|
{ (char *)"SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_VARARGS, (char *)"SwigPyIterator_value(SwigPyIterator self) -> PyObject"},
|
|
{ (char *)"SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS, (char *)"\n"
|
|
"incr(size_t n = 1) -> SwigPyIterator\n"
|
|
"SwigPyIterator_incr(SwigPyIterator self) -> SwigPyIterator\n"
|
|
""},
|
|
{ (char *)"SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS, (char *)"\n"
|
|
"decr(size_t n = 1) -> SwigPyIterator\n"
|
|
"SwigPyIterator_decr(SwigPyIterator self) -> SwigPyIterator\n"
|
|
""},
|
|
{ (char *)"SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS, (char *)"SwigPyIterator_distance(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t"},
|
|
{ (char *)"SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS, (char *)"SwigPyIterator_equal(SwigPyIterator self, SwigPyIterator x) -> bool"},
|
|
{ (char *)"SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_VARARGS, (char *)"SwigPyIterator_copy(SwigPyIterator self) -> SwigPyIterator"},
|
|
{ (char *)"SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_VARARGS, (char *)"SwigPyIterator_next(SwigPyIterator self) -> PyObject"},
|
|
{ (char *)"SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_VARARGS, (char *)"SwigPyIterator___next__(SwigPyIterator self) -> PyObject"},
|
|
{ (char *)"SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_VARARGS, (char *)"SwigPyIterator_previous(SwigPyIterator self) -> PyObject"},
|
|
{ (char *)"SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS, (char *)"SwigPyIterator_advance(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
|
|
{ (char *)"SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS, (char *)"SwigPyIterator___eq__(SwigPyIterator self, SwigPyIterator x) -> bool"},
|
|
{ (char *)"SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS, (char *)"SwigPyIterator___ne__(SwigPyIterator self, SwigPyIterator x) -> bool"},
|
|
{ (char *)"SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS, (char *)"SwigPyIterator___iadd__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
|
|
{ (char *)"SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS, (char *)"SwigPyIterator___isub__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
|
|
{ (char *)"SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS, (char *)"SwigPyIterator___add__(SwigPyIterator self, ptrdiff_t n) -> SwigPyIterator"},
|
|
{ (char *)"SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS, (char *)"\n"
|
|
"__sub__(ptrdiff_t n) -> SwigPyIterator\n"
|
|
"SwigPyIterator___sub__(SwigPyIterator self, SwigPyIterator x) -> ptrdiff_t\n"
|
|
""},
|
|
{ (char *)"SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"FloatVector_iterator", _wrap_FloatVector_iterator, METH_VARARGS, (char *)"FloatVector_iterator(FloatVector self) -> SwigPyIterator"},
|
|
{ (char *)"FloatVector___nonzero__", _wrap_FloatVector___nonzero__, METH_VARARGS, (char *)"FloatVector___nonzero__(FloatVector self) -> bool"},
|
|
{ (char *)"FloatVector___bool__", _wrap_FloatVector___bool__, METH_VARARGS, (char *)"FloatVector___bool__(FloatVector self) -> bool"},
|
|
{ (char *)"FloatVector___len__", _wrap_FloatVector___len__, METH_VARARGS, (char *)"FloatVector___len__(FloatVector self) -> size_type"},
|
|
{ (char *)"FloatVector_pop", _wrap_FloatVector_pop, METH_VARARGS, (char *)"FloatVector_pop(FloatVector self) -> value_type"},
|
|
{ (char *)"FloatVector___getslice__", _wrap_FloatVector___getslice__, METH_VARARGS, (char *)"FloatVector___getslice__(FloatVector self, difference_type i, difference_type j) -> FloatVector"},
|
|
{ (char *)"FloatVector___setslice__", _wrap_FloatVector___setslice__, METH_VARARGS, (char *)"\n"
|
|
"FloatVector___setslice__(FloatVector self, difference_type i, difference_type j, \n"
|
|
" FloatVector v)\n"
|
|
""},
|
|
{ (char *)"FloatVector___delslice__", _wrap_FloatVector___delslice__, METH_VARARGS, (char *)"FloatVector___delslice__(FloatVector self, difference_type i, difference_type j)"},
|
|
{ (char *)"FloatVector___delitem__", _wrap_FloatVector___delitem__, METH_VARARGS, (char *)"\n"
|
|
"__delitem__(difference_type i)\n"
|
|
"FloatVector___delitem__(FloatVector self, PySliceObject slice)\n"
|
|
""},
|
|
{ (char *)"FloatVector___getitem__", _wrap_FloatVector___getitem__, METH_VARARGS, (char *)"\n"
|
|
"__getitem__(PySliceObject slice) -> FloatVector\n"
|
|
"FloatVector___getitem__(FloatVector self, difference_type i) -> value_type\n"
|
|
""},
|
|
{ (char *)"FloatVector___setitem__", _wrap_FloatVector___setitem__, METH_VARARGS, (char *)"\n"
|
|
"__setitem__(PySliceObject slice, FloatVector v)\n"
|
|
"FloatVector___setitem__(FloatVector self, difference_type i, value_type x)\n"
|
|
""},
|
|
{ (char *)"FloatVector_append", _wrap_FloatVector_append, METH_VARARGS, (char *)"FloatVector_append(FloatVector self, value_type x)"},
|
|
{ (char *)"FloatVector_empty", _wrap_FloatVector_empty, METH_VARARGS, (char *)"FloatVector_empty(FloatVector self) -> bool"},
|
|
{ (char *)"FloatVector_size", _wrap_FloatVector_size, METH_VARARGS, (char *)"FloatVector_size(FloatVector self) -> size_type"},
|
|
{ (char *)"FloatVector_clear", _wrap_FloatVector_clear, METH_VARARGS, (char *)"FloatVector_clear(FloatVector self)"},
|
|
{ (char *)"FloatVector_swap", _wrap_FloatVector_swap, METH_VARARGS, (char *)"FloatVector_swap(FloatVector self, FloatVector v)"},
|
|
{ (char *)"FloatVector_get_allocator", _wrap_FloatVector_get_allocator, METH_VARARGS, (char *)"FloatVector_get_allocator(FloatVector self) -> allocator_type"},
|
|
{ (char *)"FloatVector_begin", _wrap_FloatVector_begin, METH_VARARGS, (char *)"FloatVector_begin(FloatVector self) -> const_iterator"},
|
|
{ (char *)"FloatVector_end", _wrap_FloatVector_end, METH_VARARGS, (char *)"FloatVector_end(FloatVector self) -> const_iterator"},
|
|
{ (char *)"FloatVector_rbegin", _wrap_FloatVector_rbegin, METH_VARARGS, (char *)"FloatVector_rbegin(FloatVector self) -> const_reverse_iterator"},
|
|
{ (char *)"FloatVector_rend", _wrap_FloatVector_rend, METH_VARARGS, (char *)"FloatVector_rend(FloatVector self) -> const_reverse_iterator"},
|
|
{ (char *)"FloatVector_pop_back", _wrap_FloatVector_pop_back, METH_VARARGS, (char *)"FloatVector_pop_back(FloatVector self)"},
|
|
{ (char *)"FloatVector_erase", _wrap_FloatVector_erase, METH_VARARGS, (char *)"\n"
|
|
"erase(iterator pos) -> iterator\n"
|
|
"FloatVector_erase(FloatVector self, iterator first, iterator last) -> iterator\n"
|
|
""},
|
|
{ (char *)"new_FloatVector", _wrap_new_FloatVector, METH_VARARGS, (char *)"\n"
|
|
"FloatVector()\n"
|
|
"FloatVector(FloatVector arg0)\n"
|
|
"FloatVector(size_type size)\n"
|
|
"new_FloatVector(size_type size, value_type value) -> FloatVector\n"
|
|
""},
|
|
{ (char *)"FloatVector_push_back", _wrap_FloatVector_push_back, METH_VARARGS, (char *)"FloatVector_push_back(FloatVector self, value_type x)"},
|
|
{ (char *)"FloatVector_front", _wrap_FloatVector_front, METH_VARARGS, (char *)"FloatVector_front(FloatVector self) -> value_type"},
|
|
{ (char *)"FloatVector_back", _wrap_FloatVector_back, METH_VARARGS, (char *)"FloatVector_back(FloatVector self) -> value_type"},
|
|
{ (char *)"FloatVector_assign", _wrap_FloatVector_assign, METH_VARARGS, (char *)"FloatVector_assign(FloatVector self, size_type n, value_type x)"},
|
|
{ (char *)"FloatVector_resize", _wrap_FloatVector_resize, METH_VARARGS, (char *)"\n"
|
|
"resize(size_type new_size)\n"
|
|
"FloatVector_resize(FloatVector self, size_type new_size, value_type x)\n"
|
|
""},
|
|
{ (char *)"FloatVector_insert", _wrap_FloatVector_insert, METH_VARARGS, (char *)"\n"
|
|
"insert(iterator pos, value_type x) -> iterator\n"
|
|
"FloatVector_insert(FloatVector self, iterator pos, size_type n, value_type x)\n"
|
|
""},
|
|
{ (char *)"FloatVector_reserve", _wrap_FloatVector_reserve, METH_VARARGS, (char *)"FloatVector_reserve(FloatVector self, size_type n)"},
|
|
{ (char *)"FloatVector_capacity", _wrap_FloatVector_capacity, METH_VARARGS, (char *)"FloatVector_capacity(FloatVector self) -> size_type"},
|
|
{ (char *)"delete_FloatVector", _wrap_delete_FloatVector, METH_VARARGS, (char *)"delete_FloatVector(FloatVector self)"},
|
|
{ (char *)"FloatVector_swigregister", FloatVector_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvPointVector_iterator", _wrap_CvPointVector_iterator, METH_VARARGS, (char *)"CvPointVector_iterator(CvPointVector self) -> SwigPyIterator"},
|
|
{ (char *)"CvPointVector___nonzero__", _wrap_CvPointVector___nonzero__, METH_VARARGS, (char *)"CvPointVector___nonzero__(CvPointVector self) -> bool"},
|
|
{ (char *)"CvPointVector___bool__", _wrap_CvPointVector___bool__, METH_VARARGS, (char *)"CvPointVector___bool__(CvPointVector self) -> bool"},
|
|
{ (char *)"CvPointVector___len__", _wrap_CvPointVector___len__, METH_VARARGS, (char *)"CvPointVector___len__(CvPointVector self) -> size_type"},
|
|
{ (char *)"CvPointVector_pop", _wrap_CvPointVector_pop, METH_VARARGS, (char *)"CvPointVector_pop(CvPointVector self) -> value_type"},
|
|
{ (char *)"CvPointVector___getslice__", _wrap_CvPointVector___getslice__, METH_VARARGS, (char *)"CvPointVector___getslice__(CvPointVector self, difference_type i, difference_type j) -> CvPointVector"},
|
|
{ (char *)"CvPointVector___setslice__", _wrap_CvPointVector___setslice__, METH_VARARGS, (char *)"\n"
|
|
"CvPointVector___setslice__(CvPointVector self, difference_type i, difference_type j, \n"
|
|
" CvPointVector v)\n"
|
|
""},
|
|
{ (char *)"CvPointVector___delslice__", _wrap_CvPointVector___delslice__, METH_VARARGS, (char *)"CvPointVector___delslice__(CvPointVector self, difference_type i, difference_type j)"},
|
|
{ (char *)"CvPointVector___delitem__", _wrap_CvPointVector___delitem__, METH_VARARGS, (char *)"\n"
|
|
"__delitem__(difference_type i)\n"
|
|
"CvPointVector___delitem__(CvPointVector self, PySliceObject slice)\n"
|
|
""},
|
|
{ (char *)"CvPointVector___getitem__", _wrap_CvPointVector___getitem__, METH_VARARGS, (char *)"\n"
|
|
"__getitem__(PySliceObject slice) -> CvPointVector\n"
|
|
"CvPointVector___getitem__(CvPointVector self, difference_type i) -> value_type\n"
|
|
""},
|
|
{ (char *)"CvPointVector___setitem__", _wrap_CvPointVector___setitem__, METH_VARARGS, (char *)"\n"
|
|
"__setitem__(PySliceObject slice, CvPointVector v)\n"
|
|
"CvPointVector___setitem__(CvPointVector self, difference_type i, value_type x)\n"
|
|
""},
|
|
{ (char *)"CvPointVector_append", _wrap_CvPointVector_append, METH_VARARGS, (char *)"CvPointVector_append(CvPointVector self, value_type x)"},
|
|
{ (char *)"CvPointVector_empty", _wrap_CvPointVector_empty, METH_VARARGS, (char *)"CvPointVector_empty(CvPointVector self) -> bool"},
|
|
{ (char *)"CvPointVector_size", _wrap_CvPointVector_size, METH_VARARGS, (char *)"CvPointVector_size(CvPointVector self) -> size_type"},
|
|
{ (char *)"CvPointVector_clear", _wrap_CvPointVector_clear, METH_VARARGS, (char *)"CvPointVector_clear(CvPointVector self)"},
|
|
{ (char *)"CvPointVector_swap", _wrap_CvPointVector_swap, METH_VARARGS, (char *)"CvPointVector_swap(CvPointVector self, CvPointVector v)"},
|
|
{ (char *)"CvPointVector_get_allocator", _wrap_CvPointVector_get_allocator, METH_VARARGS, (char *)"CvPointVector_get_allocator(CvPointVector self) -> allocator_type"},
|
|
{ (char *)"CvPointVector_begin", _wrap_CvPointVector_begin, METH_VARARGS, (char *)"CvPointVector_begin(CvPointVector self) -> const_iterator"},
|
|
{ (char *)"CvPointVector_end", _wrap_CvPointVector_end, METH_VARARGS, (char *)"CvPointVector_end(CvPointVector self) -> const_iterator"},
|
|
{ (char *)"CvPointVector_rbegin", _wrap_CvPointVector_rbegin, METH_VARARGS, (char *)"CvPointVector_rbegin(CvPointVector self) -> const_reverse_iterator"},
|
|
{ (char *)"CvPointVector_rend", _wrap_CvPointVector_rend, METH_VARARGS, (char *)"CvPointVector_rend(CvPointVector self) -> const_reverse_iterator"},
|
|
{ (char *)"CvPointVector_pop_back", _wrap_CvPointVector_pop_back, METH_VARARGS, (char *)"CvPointVector_pop_back(CvPointVector self)"},
|
|
{ (char *)"CvPointVector_erase", _wrap_CvPointVector_erase, METH_VARARGS, (char *)"\n"
|
|
"erase(iterator pos) -> iterator\n"
|
|
"CvPointVector_erase(CvPointVector self, iterator first, iterator last) -> iterator\n"
|
|
""},
|
|
{ (char *)"new_CvPointVector", _wrap_new_CvPointVector, METH_VARARGS, (char *)"\n"
|
|
"CvPointVector()\n"
|
|
"CvPointVector(CvPointVector arg0)\n"
|
|
"CvPointVector(size_type size)\n"
|
|
"new_CvPointVector(size_type size, value_type value) -> CvPointVector\n"
|
|
""},
|
|
{ (char *)"CvPointVector_push_back", _wrap_CvPointVector_push_back, METH_VARARGS, (char *)"CvPointVector_push_back(CvPointVector self, value_type x)"},
|
|
{ (char *)"CvPointVector_front", _wrap_CvPointVector_front, METH_VARARGS, (char *)"CvPointVector_front(CvPointVector self) -> value_type"},
|
|
{ (char *)"CvPointVector_back", _wrap_CvPointVector_back, METH_VARARGS, (char *)"CvPointVector_back(CvPointVector self) -> value_type"},
|
|
{ (char *)"CvPointVector_assign", _wrap_CvPointVector_assign, METH_VARARGS, (char *)"CvPointVector_assign(CvPointVector self, size_type n, value_type x)"},
|
|
{ (char *)"CvPointVector_resize", _wrap_CvPointVector_resize, METH_VARARGS, (char *)"\n"
|
|
"resize(size_type new_size)\n"
|
|
"CvPointVector_resize(CvPointVector self, size_type new_size, value_type x)\n"
|
|
""},
|
|
{ (char *)"CvPointVector_insert", _wrap_CvPointVector_insert, METH_VARARGS, (char *)"\n"
|
|
"insert(iterator pos, value_type x) -> iterator\n"
|
|
"CvPointVector_insert(CvPointVector self, iterator pos, size_type n, value_type x)\n"
|
|
""},
|
|
{ (char *)"CvPointVector_reserve", _wrap_CvPointVector_reserve, METH_VARARGS, (char *)"CvPointVector_reserve(CvPointVector self, size_type n)"},
|
|
{ (char *)"CvPointVector_capacity", _wrap_CvPointVector_capacity, METH_VARARGS, (char *)"CvPointVector_capacity(CvPointVector self) -> size_type"},
|
|
{ (char *)"delete_CvPointVector", _wrap_delete_CvPointVector, METH_VARARGS, (char *)"delete_CvPointVector(CvPointVector self)"},
|
|
{ (char *)"CvPointVector_swigregister", CvPointVector_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvCvtSeqToArray", _wrap_cvCvtSeqToArray, METH_VARARGS, (char *)"\n"
|
|
"cvCvtSeqToArray(CvSeq seq, CvArr elements, CvSlice slice = CV_WHOLE_SEQ) -> CvArr\n"
|
|
"cvCvtSeqToArray(CvSeq seq, CvArr elements) -> CvArr\n"
|
|
""},
|
|
{ (char *)"cvHaarDetectObjects", _wrap_cvHaarDetectObjects, METH_VARARGS, (char *)"\n"
|
|
"cvHaarDetectObjects(CvArr image, CvHaarClassifierCascade cascade, CvMemStorage storage, \n"
|
|
" double scale_factor = 1.1, int min_neighbors = 3, \n"
|
|
" int flags = 0, CvSize min_size = cvSize(0,0)) -> CvSeq_CvRect\n"
|
|
"cvHaarDetectObjects(CvArr image, CvHaarClassifierCascade cascade, CvMemStorage storage, \n"
|
|
" double scale_factor = 1.1, int min_neighbors = 3, \n"
|
|
" int flags = 0) -> CvSeq_CvRect\n"
|
|
"cvHaarDetectObjects(CvArr image, CvHaarClassifierCascade cascade, CvMemStorage storage, \n"
|
|
" double scale_factor = 1.1, int min_neighbors = 3) -> CvSeq_CvRect\n"
|
|
"cvHaarDetectObjects(CvArr image, CvHaarClassifierCascade cascade, CvMemStorage storage, \n"
|
|
" double scale_factor = 1.1) -> CvSeq_CvRect\n"
|
|
"cvHaarDetectObjects(CvArr image, CvHaarClassifierCascade cascade, CvMemStorage storage) -> CvSeq_CvRect\n"
|
|
""},
|
|
{ (char *)"cvSegmentMotion", _wrap_cvSegmentMotion, METH_VARARGS, (char *)"\n"
|
|
"cvSegmentMotion(CvArr mhi, CvArr seg_mask, CvMemStorage storage, double timestamp, \n"
|
|
" double seg_thresh) -> CvSeq_CvConnectedComp\n"
|
|
""},
|
|
{ (char *)"cvApproxPoly", _wrap_cvApproxPoly, METH_VARARGS, (char *)"\n"
|
|
"cvApproxPoly(void src_seq, int header_size, CvMemStorage storage, \n"
|
|
" int method, double parameter, int parameter2 = 0) -> CvSeq_CvPoint\n"
|
|
"cvApproxPoly(void src_seq, int header_size, CvMemStorage storage, \n"
|
|
" int method, double parameter) -> CvSeq_CvPoint\n"
|
|
""},
|
|
{ (char *)"cvConvexHull2", _wrap_cvConvexHull2, METH_VARARGS, (char *)"\n"
|
|
"cvConvexHull2(CvArr points, int orientation = CV_CLOCKWISE, int return_points = 0) -> CvMat\n"
|
|
"cvConvexHull2(CvArr points, int orientation = CV_CLOCKWISE) -> CvMat\n"
|
|
"cvConvexHull2(CvArr points) -> CvMat\n"
|
|
""},
|
|
{ (char *)"cvSnakeImage", _wrap_cvSnakeImage, METH_VARARGS, (char *)"\n"
|
|
"cvSnakeImage(CvMat image, CvPointVector points, FloatVector alpha, \n"
|
|
" FloatVector beta, FloatVector gamma, CvSize win, \n"
|
|
" CvTermCriteria criteria, int calc_gradient = 1) -> CvPointVector\n"
|
|
"cvSnakeImage(CvMat image, CvPointVector points, FloatVector alpha, \n"
|
|
" FloatVector beta, FloatVector gamma, CvSize win, \n"
|
|
" CvTermCriteria criteria) -> CvPointVector\n"
|
|
""},
|
|
{ (char *)"cvFree", _wrap_cvFree, METH_VARARGS, (char *)"cvFree(void ptr)"},
|
|
{ (char *)"CV_READ_CHAIN_POINT", _wrap_CV_READ_CHAIN_POINT, METH_VARARGS, (char *)"CV_READ_CHAIN_POINT(CvPoint _pt, CvChainPtReader reader)"},
|
|
{ (char *)"CV_MAT_ELEM_PTR", _wrap_CV_MAT_ELEM_PTR, METH_VARARGS, (char *)"CV_MAT_ELEM_PTR(CvMat mat, int row, int col) -> void"},
|
|
{ (char *)"CV_MAT_ELEM_PTR_FAST", _wrap_CV_MAT_ELEM_PTR_FAST, METH_VARARGS, (char *)"CV_MAT_ELEM_PTR_FAST(CvMat mat, int row, int col, int pix_size) -> void"},
|
|
{ (char *)"CV_NODE_VAL", _wrap_CV_NODE_VAL, METH_VARARGS, (char *)"CV_NODE_VAL(CvSparseMat mat, CvSparseNode node) -> void"},
|
|
{ (char *)"CV_NODE_IDX", _wrap_CV_NODE_IDX, METH_VARARGS, (char *)"CV_NODE_IDX(CvSparseMat mat, CvSparseNode node) -> int"},
|
|
{ (char *)"CV_SUBDIV2D_NEXT_EDGE", _wrap_CV_SUBDIV2D_NEXT_EDGE, METH_VARARGS, (char *)"CV_SUBDIV2D_NEXT_EDGE(CvSubdiv2DEdge edge) -> CvQuadEdge2D"},
|
|
{ (char *)"CV_SWAP", _wrap_CV_SWAP, METH_VARARGS, (char *)"CV_SWAP(int a, int b, int t)"},
|
|
{ (char *)"CV_IMIN", _wrap_CV_IMIN, METH_VARARGS, (char *)"CV_IMIN(int a, int b) -> int"},
|
|
{ (char *)"CV_IMAX", _wrap_CV_IMAX, METH_VARARGS, (char *)"CV_IMAX(int a, int b) -> int"},
|
|
{ (char *)"CV_IABS", _wrap_CV_IABS, METH_VARARGS, (char *)"CV_IABS(int a) -> int"},
|
|
{ (char *)"CV_CMP", _wrap_CV_CMP, METH_VARARGS, (char *)"CV_CMP(int a, int b)"},
|
|
{ (char *)"CV_SIGN", _wrap_CV_SIGN, METH_VARARGS, (char *)"CV_SIGN(int a)"},
|
|
{ (char *)"cvInvSqrt", _wrap_cvInvSqrt, METH_VARARGS, (char *)"cvInvSqrt(double value)"},
|
|
{ (char *)"cvSqrt", _wrap_cvSqrt, METH_VARARGS, (char *)"cvSqrt(double value)"},
|
|
{ (char *)"CV_IS_IMAGE_HDR", _wrap_CV_IS_IMAGE_HDR, METH_VARARGS, (char *)"CV_IS_IMAGE_HDR(CvArr img) -> int"},
|
|
{ (char *)"CV_IS_IMAGE", _wrap_CV_IS_IMAGE, METH_VARARGS, (char *)"CV_IS_IMAGE(CvArr img) -> int"},
|
|
{ (char *)"CV_MAT_DEPTH", _wrap_CV_MAT_DEPTH, METH_VARARGS, (char *)"CV_MAT_DEPTH(int flags) -> int"},
|
|
{ (char *)"CV_MAKETYPE", _wrap_CV_MAKETYPE, METH_VARARGS, (char *)"CV_MAKETYPE(int depth, int cn) -> int"},
|
|
{ (char *)"CV_8UC", _wrap_CV_8UC, METH_VARARGS, (char *)"CV_8UC(int n) -> int"},
|
|
{ (char *)"CV_8SC", _wrap_CV_8SC, METH_VARARGS, (char *)"CV_8SC(int n) -> int"},
|
|
{ (char *)"CV_16UC", _wrap_CV_16UC, METH_VARARGS, (char *)"CV_16UC(int n) -> int"},
|
|
{ (char *)"CV_16SC", _wrap_CV_16SC, METH_VARARGS, (char *)"CV_16SC(int n) -> int"},
|
|
{ (char *)"CV_32SC", _wrap_CV_32SC, METH_VARARGS, (char *)"CV_32SC(int n) -> int"},
|
|
{ (char *)"CV_32FC", _wrap_CV_32FC, METH_VARARGS, (char *)"CV_32FC(int n) -> int"},
|
|
{ (char *)"CV_64FC", _wrap_CV_64FC, METH_VARARGS, (char *)"CV_64FC(int n) -> int"},
|
|
{ (char *)"CV_MAT_CN", _wrap_CV_MAT_CN, METH_VARARGS, (char *)"CV_MAT_CN(int flags) -> int"},
|
|
{ (char *)"CV_MAT_TYPE", _wrap_CV_MAT_TYPE, METH_VARARGS, (char *)"CV_MAT_TYPE(int flags) -> int"},
|
|
{ (char *)"CV_IS_MAT_CONT", _wrap_CV_IS_MAT_CONT, METH_VARARGS, (char *)"CV_IS_MAT_CONT(int flags) -> int"},
|
|
{ (char *)"CV_IS_TEMP_MAT", _wrap_CV_IS_TEMP_MAT, METH_VARARGS, (char *)"CV_IS_TEMP_MAT(int flags) -> int"},
|
|
{ (char *)"CV_IS_MAT_HDR", _wrap_CV_IS_MAT_HDR, METH_VARARGS, (char *)"CV_IS_MAT_HDR(CvMat mat) -> int"},
|
|
{ (char *)"CV_IS_MAT", _wrap_CV_IS_MAT, METH_VARARGS, (char *)"CV_IS_MAT(CvMat mat) -> int"},
|
|
{ (char *)"CV_IS_MASK_ARR", _wrap_CV_IS_MASK_ARR, METH_VARARGS, (char *)"CV_IS_MASK_ARR(CvMat mat) -> int"},
|
|
{ (char *)"CV_ARE_TYPES_EQ", _wrap_CV_ARE_TYPES_EQ, METH_VARARGS, (char *)"CV_ARE_TYPES_EQ(CvMat mat1, CvMat mat2) -> int"},
|
|
{ (char *)"CV_ARE_CNS_EQ", _wrap_CV_ARE_CNS_EQ, METH_VARARGS, (char *)"CV_ARE_CNS_EQ(CvMat mat1, CvMat mat2) -> int"},
|
|
{ (char *)"CV_ARE_DEPTHS_EQ", _wrap_CV_ARE_DEPTHS_EQ, METH_VARARGS, (char *)"CV_ARE_DEPTHS_EQ(CvMat mat1, CvMat mat2) -> int"},
|
|
{ (char *)"CV_ARE_SIZES_EQ", _wrap_CV_ARE_SIZES_EQ, METH_VARARGS, (char *)"CV_ARE_SIZES_EQ(CvMat mat1, CvMat mat2) -> int"},
|
|
{ (char *)"CV_IS_MAT_CONST", _wrap_CV_IS_MAT_CONST, METH_VARARGS, (char *)"CV_IS_MAT_CONST(CvMat mat) -> int"},
|
|
{ (char *)"CV_ELEM_SIZE1", _wrap_CV_ELEM_SIZE1, METH_VARARGS, (char *)"CV_ELEM_SIZE1(int type) -> int"},
|
|
{ (char *)"CV_ELEM_SIZE", _wrap_CV_ELEM_SIZE, METH_VARARGS, (char *)"CV_ELEM_SIZE(int type) -> int"},
|
|
{ (char *)"CV_IS_MATND_HDR", _wrap_CV_IS_MATND_HDR, METH_VARARGS, (char *)"CV_IS_MATND_HDR(CvMat mat) -> int"},
|
|
{ (char *)"CV_IS_MATND", _wrap_CV_IS_MATND, METH_VARARGS, (char *)"CV_IS_MATND(CvMat mat) -> int"},
|
|
{ (char *)"CV_IS_SPARSE_MAT_HDR", _wrap_CV_IS_SPARSE_MAT_HDR, METH_VARARGS, (char *)"CV_IS_SPARSE_MAT_HDR(CvMat mat) -> int"},
|
|
{ (char *)"CV_IS_SPARSE_MAT", _wrap_CV_IS_SPARSE_MAT, METH_VARARGS, (char *)"CV_IS_SPARSE_MAT(CvMat mat) -> int"},
|
|
{ (char *)"CV_IS_HIST", _wrap_CV_IS_HIST, METH_VARARGS, (char *)"CV_IS_HIST(CvHistogram hist) -> int"},
|
|
{ (char *)"CV_IS_UNIFORM_HIST", _wrap_CV_IS_UNIFORM_HIST, METH_VARARGS, (char *)"CV_IS_UNIFORM_HIST(CvHistogram hist) -> int"},
|
|
{ (char *)"CV_IS_SPARSE_HIST", _wrap_CV_IS_SPARSE_HIST, METH_VARARGS, (char *)"CV_IS_SPARSE_HIST(CvHistogram hist) -> int"},
|
|
{ (char *)"CV_HIST_HAS_RANGES", _wrap_CV_HIST_HAS_RANGES, METH_VARARGS, (char *)"CV_HIST_HAS_RANGES(CvHistogram hist) -> int"},
|
|
{ (char *)"CV_IS_STORAGE", _wrap_CV_IS_STORAGE, METH_VARARGS, (char *)"CV_IS_STORAGE(CvMemStorage storage) -> int"},
|
|
{ (char *)"CV_IS_SET_ELEM", _wrap_CV_IS_SET_ELEM, METH_VARARGS, (char *)"CV_IS_SET_ELEM(void ptr) -> int"},
|
|
{ (char *)"CV_IS_SEQ", _wrap_CV_IS_SEQ, METH_VARARGS, (char *)"CV_IS_SEQ(CvSeq seq) -> int"},
|
|
{ (char *)"CV_IS_SET", _wrap_CV_IS_SET, METH_VARARGS, (char *)"CV_IS_SET(CvSet set) -> int"},
|
|
{ (char *)"CV_SEQ_ELTYPE", _wrap_CV_SEQ_ELTYPE, METH_VARARGS, (char *)"CV_SEQ_ELTYPE(CvSeq seq) -> int"},
|
|
{ (char *)"CV_SEQ_KIND", _wrap_CV_SEQ_KIND, METH_VARARGS, (char *)"CV_SEQ_KIND(CvSeq seq) -> int"},
|
|
{ (char *)"CV_IS_SEQ_INDEX", _wrap_CV_IS_SEQ_INDEX, METH_VARARGS, (char *)"CV_IS_SEQ_INDEX(CvSeq seq) -> int"},
|
|
{ (char *)"CV_IS_SEQ_CURVE", _wrap_CV_IS_SEQ_CURVE, METH_VARARGS, (char *)"CV_IS_SEQ_CURVE(CvSeq seq) -> int"},
|
|
{ (char *)"CV_IS_SEQ_CLOSED", _wrap_CV_IS_SEQ_CLOSED, METH_VARARGS, (char *)"CV_IS_SEQ_CLOSED(CvSeq seq) -> int"},
|
|
{ (char *)"CV_IS_SEQ_CONVEX", _wrap_CV_IS_SEQ_CONVEX, METH_VARARGS, (char *)"CV_IS_SEQ_CONVEX(CvSeq seq) -> int"},
|
|
{ (char *)"CV_IS_SEQ_HOLE", _wrap_CV_IS_SEQ_HOLE, METH_VARARGS, (char *)"CV_IS_SEQ_HOLE(CvSeq seq) -> int"},
|
|
{ (char *)"CV_IS_SEQ_SIMPLE", _wrap_CV_IS_SEQ_SIMPLE, METH_VARARGS, (char *)"CV_IS_SEQ_SIMPLE(CvSeq seq) -> int"},
|
|
{ (char *)"CV_IS_SEQ_POINT_SET", _wrap_CV_IS_SEQ_POINT_SET, METH_VARARGS, (char *)"CV_IS_SEQ_POINT_SET(CvSeq seq) -> int"},
|
|
{ (char *)"CV_IS_SEQ_POINT_SUBSET", _wrap_CV_IS_SEQ_POINT_SUBSET, METH_VARARGS, (char *)"CV_IS_SEQ_POINT_SUBSET(CvSeq seq) -> int"},
|
|
{ (char *)"CV_IS_SEQ_POLYLINE", _wrap_CV_IS_SEQ_POLYLINE, METH_VARARGS, (char *)"CV_IS_SEQ_POLYLINE(CvSeq seq) -> int"},
|
|
{ (char *)"CV_IS_SEQ_POLYGON", _wrap_CV_IS_SEQ_POLYGON, METH_VARARGS, (char *)"CV_IS_SEQ_POLYGON(CvSeq seq) -> int"},
|
|
{ (char *)"CV_IS_SEQ_CHAIN", _wrap_CV_IS_SEQ_CHAIN, METH_VARARGS, (char *)"CV_IS_SEQ_CHAIN(CvSeq seq) -> int"},
|
|
{ (char *)"CV_IS_SEQ_CONTOUR", _wrap_CV_IS_SEQ_CONTOUR, METH_VARARGS, (char *)"CV_IS_SEQ_CONTOUR(CvSeq seq) -> int"},
|
|
{ (char *)"CV_IS_SEQ_CHAIN_CONTOUR", _wrap_CV_IS_SEQ_CHAIN_CONTOUR, METH_VARARGS, (char *)"CV_IS_SEQ_CHAIN_CONTOUR(CvSeq seq) -> int"},
|
|
{ (char *)"CV_IS_SEQ_POLYGON_TREE", _wrap_CV_IS_SEQ_POLYGON_TREE, METH_VARARGS, (char *)"CV_IS_SEQ_POLYGON_TREE(CvSeq seq) -> int"},
|
|
{ (char *)"CV_IS_GRAPH", _wrap_CV_IS_GRAPH, METH_VARARGS, (char *)"CV_IS_GRAPH(CvSeq seq) -> int"},
|
|
{ (char *)"CV_IS_GRAPH_ORIENTED", _wrap_CV_IS_GRAPH_ORIENTED, METH_VARARGS, (char *)"CV_IS_GRAPH_ORIENTED(CvSeq seq) -> int"},
|
|
{ (char *)"CV_IS_SUBDIV2D", _wrap_CV_IS_SUBDIV2D, METH_VARARGS, (char *)"CV_IS_SUBDIV2D(CvSeq seq) -> int"},
|
|
{ (char *)"CV_WRITE_SEQ_ELEM_VAR", _wrap_CV_WRITE_SEQ_ELEM_VAR, METH_VARARGS, (char *)"CV_WRITE_SEQ_ELEM_VAR(void elem_ptr, CvSeqWriter writer)"},
|
|
{ (char *)"CV_WRITE_SEQ_ELEM", _wrap_CV_WRITE_SEQ_ELEM, METH_VARARGS, (char *)"CV_WRITE_SEQ_ELEM(CvPoint elem, CvSeqWriter writer)"},
|
|
{ (char *)"CV_NEXT_SEQ_ELEM", _wrap_CV_NEXT_SEQ_ELEM, METH_VARARGS, (char *)"CV_NEXT_SEQ_ELEM(int elem_size, CvSeqReader reader)"},
|
|
{ (char *)"CV_PREV_SEQ_ELEM", _wrap_CV_PREV_SEQ_ELEM, METH_VARARGS, (char *)"CV_PREV_SEQ_ELEM(int elem_size, CvSeqReader reader)"},
|
|
{ (char *)"CV_READ_SEQ_ELEM", _wrap_CV_READ_SEQ_ELEM, METH_VARARGS, (char *)"CV_READ_SEQ_ELEM(CvPoint elem, CvSeqReader reader)"},
|
|
{ (char *)"CV_REV_READ_SEQ_ELEM", _wrap_CV_REV_READ_SEQ_ELEM, METH_VARARGS, (char *)"CV_REV_READ_SEQ_ELEM(CvPoint elem, CvSeqReader reader)"},
|
|
{ (char *)"CV_CURRENT_POINT", _wrap_CV_CURRENT_POINT, METH_VARARGS, (char *)"CV_CURRENT_POINT(CvSeqReader reader) -> CvPoint"},
|
|
{ (char *)"CV_PREV_POINT", _wrap_CV_PREV_POINT, METH_VARARGS, (char *)"CV_PREV_POINT(CvSeqReader reader) -> CvPoint"},
|
|
{ (char *)"CV_READ_EDGE", _wrap_CV_READ_EDGE, METH_VARARGS, (char *)"CV_READ_EDGE(CvPoint pt1, CvPoint pt2, CvSeqReader reader)"},
|
|
{ (char *)"CV_NEXT_GRAPH_EDGE", _wrap_CV_NEXT_GRAPH_EDGE, METH_VARARGS, (char *)"CV_NEXT_GRAPH_EDGE(CvGraphEdge edge, CvGraphVtx vertex) -> CvGraphEdge"},
|
|
{ (char *)"CV_NODE_TYPE", _wrap_CV_NODE_TYPE, METH_VARARGS, (char *)"CV_NODE_TYPE(int flags) -> int"},
|
|
{ (char *)"CV_NODE_IS_INT", _wrap_CV_NODE_IS_INT, METH_VARARGS, (char *)"CV_NODE_IS_INT(int flags) -> int"},
|
|
{ (char *)"CV_NODE_IS_REAL", _wrap_CV_NODE_IS_REAL, METH_VARARGS, (char *)"CV_NODE_IS_REAL(int flags) -> int"},
|
|
{ (char *)"CV_NODE_IS_STRING", _wrap_CV_NODE_IS_STRING, METH_VARARGS, (char *)"CV_NODE_IS_STRING(int flags) -> int"},
|
|
{ (char *)"CV_NODE_IS_SEQ", _wrap_CV_NODE_IS_SEQ, METH_VARARGS, (char *)"CV_NODE_IS_SEQ(int flags) -> int"},
|
|
{ (char *)"CV_NODE_IS_MAP", _wrap_CV_NODE_IS_MAP, METH_VARARGS, (char *)"CV_NODE_IS_MAP(int flags) -> int"},
|
|
{ (char *)"CV_NODE_IS_COLLECTION", _wrap_CV_NODE_IS_COLLECTION, METH_VARARGS, (char *)"CV_NODE_IS_COLLECTION(int flags) -> int"},
|
|
{ (char *)"CV_NODE_IS_FLOW", _wrap_CV_NODE_IS_FLOW, METH_VARARGS, (char *)"CV_NODE_IS_FLOW(int flags) -> int"},
|
|
{ (char *)"CV_NODE_IS_EMPTY", _wrap_CV_NODE_IS_EMPTY, METH_VARARGS, (char *)"CV_NODE_IS_EMPTY(int flags) -> int"},
|
|
{ (char *)"CV_NODE_IS_USER", _wrap_CV_NODE_IS_USER, METH_VARARGS, (char *)"CV_NODE_IS_USER(int flags) -> int"},
|
|
{ (char *)"CV_NODE_HAS_NAME", _wrap_CV_NODE_HAS_NAME, METH_VARARGS, (char *)"CV_NODE_HAS_NAME(int flags) -> int"},
|
|
{ (char *)"CV_NODE_SEQ_IS_SIMPLE", _wrap_CV_NODE_SEQ_IS_SIMPLE, METH_VARARGS, (char *)"CV_NODE_SEQ_IS_SIMPLE(CvSeq seq) -> int"},
|
|
{ (char *)"cvReshapeND", _wrap_cvReshapeND, METH_VARARGS, (char *)"cvReshapeND(CvArr arr, int new_cn, int new_dims, int new_sizes)"},
|
|
{ (char *)"cvConvert", _wrap_cvConvert, METH_VARARGS, (char *)"cvConvert(CvArr src, CvArr dst)"},
|
|
{ (char *)"cvAXPY", _wrap_cvAXPY, METH_VARARGS, (char *)"cvAXPY(CvArr A, double real_scalar, CvArr B, CvArr C)"},
|
|
{ (char *)"cvAbs", _wrap_cvAbs, METH_VARARGS, (char *)"cvAbs(CvArr src, CvArr dst)"},
|
|
{ (char *)"cvMatMulAdd", _wrap_cvMatMulAdd, METH_VARARGS, (char *)"cvMatMulAdd(CvArr src1, CvArr src2, CvArr src3, CvArr dst)"},
|
|
{ (char *)"cvMatMul", _wrap_cvMatMul, METH_VARARGS, (char *)"cvMatMul(CvArr src1, CvArr src2, CvArr dst)"},
|
|
{ (char *)"cvGetGraphVtx", _wrap_cvGetGraphVtx, METH_VARARGS, (char *)"cvGetGraphVtx(CvGraph graph, int idx)"},
|
|
{ (char *)"cvGraphVtxIdx", _wrap_cvGraphVtxIdx, METH_VARARGS, (char *)"cvGraphVtxIdx(CvGraph graph, CvGraphVtx vtx) -> int"},
|
|
{ (char *)"cvGraphEdgeIdx", _wrap_cvGraphEdgeIdx, METH_VARARGS, (char *)"cvGraphEdgeIdx(CvGraph graph, CvGraphEdge edge) -> int"},
|
|
{ (char *)"cvGraphGetVtxCount", _wrap_cvGraphGetVtxCount, METH_VARARGS, (char *)"cvGraphGetVtxCount(CvGraph graph) -> int"},
|
|
{ (char *)"cvGraphGetEdgeCount", _wrap_cvGraphGetEdgeCount, METH_VARARGS, (char *)"cvGraphGetEdgeCount(CvGraph graph) -> int"},
|
|
{ (char *)"CV_IS_GRAPH_VERTEX_VISITED", _wrap_CV_IS_GRAPH_VERTEX_VISITED, METH_VARARGS, (char *)"CV_IS_GRAPH_VERTEX_VISITED(CvGraphVtx vtx) -> int"},
|
|
{ (char *)"CV_IS_GRAPH_EDGE_VISITED", _wrap_CV_IS_GRAPH_EDGE_VISITED, METH_VARARGS, (char *)"CV_IS_GRAPH_EDGE_VISITED(CvGraphEdge edge) -> int"},
|
|
{ (char *)"CV_RGB", _wrap_CV_RGB, METH_VARARGS, (char *)"CV_RGB(double r, double g, int b) -> CvScalar"},
|
|
{ (char *)"CV_NEXT_LINE_POINT", _wrap_CV_NEXT_LINE_POINT, METH_VARARGS, (char *)"CV_NEXT_LINE_POINT(CvLineIterator line_iterator)"},
|
|
{ (char *)"CV_INIT_3X3_DELTAS", _wrap_CV_INIT_3X3_DELTAS, METH_VARARGS, (char *)"CV_INIT_3X3_DELTAS(double deltas, int step, int nch)"},
|
|
{ (char *)"CV_IS_HAAR_CLASSIFIER", _wrap_CV_IS_HAAR_CLASSIFIER, METH_VARARGS, (char *)"CV_IS_HAAR_CLASSIFIER(void haar) -> int"},
|
|
{ (char *)"cvContourPerimeter", _wrap_cvContourPerimeter, METH_VARARGS, (char *)"cvContourPerimeter(CvSeq contour) -> double"},
|
|
{ (char *)"cvCalcBackProject", _wrap_cvCalcBackProject, METH_VARARGS, (char *)"cvCalcBackProject( image, CvArr dst, CvHistogram hist)"},
|
|
{ (char *)"cvCalcBackProjectPatch", _wrap_cvCalcBackProjectPatch, METH_VARARGS, (char *)"\n"
|
|
"cvCalcBackProjectPatch( image, CvArr dst, CvSize range, CvHistogram hist, \n"
|
|
" int method, double factor)\n"
|
|
""},
|
|
{ (char *)"cvCreateImage", _wrap_cvCreateImage, METH_VARARGS, (char *)"cvCreateImage(CvSize size, int depth, int channels) -> CvMat"},
|
|
{ (char *)"cvCloneImage", _wrap_cvCloneImage, METH_VARARGS, (char *)"cvCloneImage(CvMat mat) -> CvMat"},
|
|
{ (char *)"Cv32suf_i_set", _wrap_Cv32suf_i_set, METH_VARARGS, (char *)"Cv32suf_i_set(Cv32suf self, int i)"},
|
|
{ (char *)"Cv32suf_i_get", _wrap_Cv32suf_i_get, METH_VARARGS, (char *)"Cv32suf_i_get(Cv32suf self) -> int"},
|
|
{ (char *)"Cv32suf_u_set", _wrap_Cv32suf_u_set, METH_VARARGS, (char *)"Cv32suf_u_set(Cv32suf self, unsigned int u)"},
|
|
{ (char *)"Cv32suf_u_get", _wrap_Cv32suf_u_get, METH_VARARGS, (char *)"Cv32suf_u_get(Cv32suf self) -> unsigned int"},
|
|
{ (char *)"Cv32suf_f_set", _wrap_Cv32suf_f_set, METH_VARARGS, (char *)"Cv32suf_f_set(Cv32suf self, float f)"},
|
|
{ (char *)"Cv32suf_f_get", _wrap_Cv32suf_f_get, METH_VARARGS, (char *)"Cv32suf_f_get(Cv32suf self) -> float"},
|
|
{ (char *)"new_Cv32suf", _wrap_new_Cv32suf, METH_VARARGS, (char *)"new_Cv32suf() -> Cv32suf"},
|
|
{ (char *)"delete_Cv32suf", _wrap_delete_Cv32suf, METH_VARARGS, (char *)"delete_Cv32suf(Cv32suf self)"},
|
|
{ (char *)"Cv32suf_swigregister", Cv32suf_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"Cv64suf_i_set", _wrap_Cv64suf_i_set, METH_VARARGS, (char *)"Cv64suf_i_set(Cv64suf self, int64 i)"},
|
|
{ (char *)"Cv64suf_i_get", _wrap_Cv64suf_i_get, METH_VARARGS, (char *)"Cv64suf_i_get(Cv64suf self) -> int64"},
|
|
{ (char *)"Cv64suf_u_set", _wrap_Cv64suf_u_set, METH_VARARGS, (char *)"Cv64suf_u_set(Cv64suf self, uint64 u)"},
|
|
{ (char *)"Cv64suf_u_get", _wrap_Cv64suf_u_get, METH_VARARGS, (char *)"Cv64suf_u_get(Cv64suf self) -> uint64"},
|
|
{ (char *)"Cv64suf_f_set", _wrap_Cv64suf_f_set, METH_VARARGS, (char *)"Cv64suf_f_set(Cv64suf self, double f)"},
|
|
{ (char *)"Cv64suf_f_get", _wrap_Cv64suf_f_get, METH_VARARGS, (char *)"Cv64suf_f_get(Cv64suf self) -> double"},
|
|
{ (char *)"new_Cv64suf", _wrap_new_Cv64suf, METH_VARARGS, (char *)"new_Cv64suf() -> Cv64suf"},
|
|
{ (char *)"delete_Cv64suf", _wrap_delete_Cv64suf, METH_VARARGS, (char *)"delete_Cv64suf(Cv64suf self)"},
|
|
{ (char *)"Cv64suf_swigregister", Cv64suf_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvRound", _wrap_cvRound, METH_VARARGS, (char *)"cvRound(double value) -> int"},
|
|
{ (char *)"cvFloor", _wrap_cvFloor, METH_VARARGS, (char *)"cvFloor(double value) -> int"},
|
|
{ (char *)"cvCeil", _wrap_cvCeil, METH_VARARGS, (char *)"cvCeil(double value) -> int"},
|
|
{ (char *)"cvIsNaN", _wrap_cvIsNaN, METH_VARARGS, (char *)"cvIsNaN(double value) -> int"},
|
|
{ (char *)"cvIsInf", _wrap_cvIsInf, METH_VARARGS, (char *)"cvIsInf(double value) -> int"},
|
|
{ (char *)"cvRNG", _wrap_cvRNG, METH_VARARGS, (char *)"\n"
|
|
"cvRNG(int64 seed = -1) -> CvRNG\n"
|
|
"cvRNG() -> CvRNG\n"
|
|
""},
|
|
{ (char *)"cvRandInt", _wrap_cvRandInt, METH_VARARGS, (char *)"cvRandInt(CvRNG rng) -> unsigned int"},
|
|
{ (char *)"cvRandReal", _wrap_cvRandReal, METH_VARARGS, (char *)"cvRandReal(CvRNG rng) -> double"},
|
|
{ (char *)"IplImage_ID_set", _wrap_IplImage_ID_set, METH_VARARGS, (char *)"IplImage_ID_set( self, int ID)"},
|
|
{ (char *)"IplImage_ID_get", _wrap_IplImage_ID_get, METH_VARARGS, (char *)"IplImage_ID_get( self) -> int"},
|
|
{ (char *)"IplImage_nChannels_set", _wrap_IplImage_nChannels_set, METH_VARARGS, (char *)"IplImage_nChannels_set( self, int nChannels)"},
|
|
{ (char *)"IplImage_nChannels_get", _wrap_IplImage_nChannels_get, METH_VARARGS, (char *)"IplImage_nChannels_get( self) -> int"},
|
|
{ (char *)"IplImage_depth_set", _wrap_IplImage_depth_set, METH_VARARGS, (char *)"IplImage_depth_set( self, int depth)"},
|
|
{ (char *)"IplImage_depth_get", _wrap_IplImage_depth_get, METH_VARARGS, (char *)"IplImage_depth_get( self) -> int"},
|
|
{ (char *)"IplImage_dataOrder_set", _wrap_IplImage_dataOrder_set, METH_VARARGS, (char *)"IplImage_dataOrder_set( self, int dataOrder)"},
|
|
{ (char *)"IplImage_dataOrder_get", _wrap_IplImage_dataOrder_get, METH_VARARGS, (char *)"IplImage_dataOrder_get( self) -> int"},
|
|
{ (char *)"IplImage_origin_set", _wrap_IplImage_origin_set, METH_VARARGS, (char *)"IplImage_origin_set( self, int origin)"},
|
|
{ (char *)"IplImage_origin_get", _wrap_IplImage_origin_get, METH_VARARGS, (char *)"IplImage_origin_get( self) -> int"},
|
|
{ (char *)"IplImage_align_set", _wrap_IplImage_align_set, METH_VARARGS, (char *)"IplImage_align_set( self, int align)"},
|
|
{ (char *)"IplImage_align_get", _wrap_IplImage_align_get, METH_VARARGS, (char *)"IplImage_align_get( self) -> int"},
|
|
{ (char *)"IplImage_width_set", _wrap_IplImage_width_set, METH_VARARGS, (char *)"IplImage_width_set( self, int width)"},
|
|
{ (char *)"IplImage_width_get", _wrap_IplImage_width_get, METH_VARARGS, (char *)"IplImage_width_get( self) -> int"},
|
|
{ (char *)"IplImage_height_set", _wrap_IplImage_height_set, METH_VARARGS, (char *)"IplImage_height_set( self, int height)"},
|
|
{ (char *)"IplImage_height_get", _wrap_IplImage_height_get, METH_VARARGS, (char *)"IplImage_height_get( self) -> int"},
|
|
{ (char *)"IplImage_roi_set", _wrap_IplImage_roi_set, METH_VARARGS, (char *)"IplImage_roi_set( self, IplROI roi)"},
|
|
{ (char *)"IplImage_roi_get", _wrap_IplImage_roi_get, METH_VARARGS, (char *)"IplImage_roi_get( self) -> IplROI"},
|
|
{ (char *)"IplImage_imageSize_set", _wrap_IplImage_imageSize_set, METH_VARARGS, (char *)"IplImage_imageSize_set( self, int imageSize)"},
|
|
{ (char *)"IplImage_imageSize_get", _wrap_IplImage_imageSize_get, METH_VARARGS, (char *)"IplImage_imageSize_get( self) -> int"},
|
|
{ (char *)"IplImage_widthStep_set", _wrap_IplImage_widthStep_set, METH_VARARGS, (char *)"IplImage_widthStep_set( self, int widthStep)"},
|
|
{ (char *)"IplImage_widthStep_get", _wrap_IplImage_widthStep_get, METH_VARARGS, (char *)"IplImage_widthStep_get( self) -> int"},
|
|
{ (char *)"delete_IplImage", _wrap_delete_IplImage, METH_VARARGS, (char *)"delete_IplImage( self)"},
|
|
{ (char *)"IplImage___add__", _wrap_IplImage___add__, METH_VARARGS, (char *)"\n"
|
|
"__add__(CvArr src)\n"
|
|
"IplImage___add__( self, CvScalar val)\n"
|
|
""},
|
|
{ (char *)"IplImage___iadd__", _wrap_IplImage___iadd__, METH_VARARGS, (char *)"\n"
|
|
"__iadd__(CvArr src)\n"
|
|
"IplImage___iadd__( self, CvScalar val)\n"
|
|
""},
|
|
{ (char *)"IplImage___xor__", _wrap_IplImage___xor__, METH_VARARGS, (char *)"\n"
|
|
"__xor__(CvArr src)\n"
|
|
"IplImage___xor__( self, CvScalar val)\n"
|
|
""},
|
|
{ (char *)"IplImage___ixor__", _wrap_IplImage___ixor__, METH_VARARGS, (char *)"\n"
|
|
"__ixor__(CvArr src)\n"
|
|
"IplImage___ixor__( self, CvScalar val)\n"
|
|
""},
|
|
{ (char *)"IplImage___sub__", _wrap_IplImage___sub__, METH_VARARGS, (char *)"\n"
|
|
"__sub__(CvArr src)\n"
|
|
"IplImage___sub__( self, CvScalar val)\n"
|
|
""},
|
|
{ (char *)"IplImage___isub__", _wrap_IplImage___isub__, METH_VARARGS, (char *)"\n"
|
|
"__isub__(CvArr src)\n"
|
|
"IplImage___isub__( self, CvScalar val)\n"
|
|
""},
|
|
{ (char *)"IplImage___or__", _wrap_IplImage___or__, METH_VARARGS, (char *)"\n"
|
|
"__or__(CvArr src)\n"
|
|
"IplImage___or__( self, CvScalar val)\n"
|
|
""},
|
|
{ (char *)"IplImage___ior__", _wrap_IplImage___ior__, METH_VARARGS, (char *)"\n"
|
|
"__ior__(CvArr src)\n"
|
|
"IplImage___ior__( self, CvScalar val)\n"
|
|
""},
|
|
{ (char *)"IplImage___and__", _wrap_IplImage___and__, METH_VARARGS, (char *)"\n"
|
|
"__and__(CvArr src)\n"
|
|
"IplImage___and__( self, CvScalar val)\n"
|
|
""},
|
|
{ (char *)"IplImage___iand__", _wrap_IplImage___iand__, METH_VARARGS, (char *)"\n"
|
|
"__iand__(CvArr src)\n"
|
|
"IplImage___iand__( self, CvScalar val)\n"
|
|
""},
|
|
{ (char *)"IplImage___ge__", _wrap_IplImage___ge__, METH_VARARGS, (char *)"\n"
|
|
"__ge__(CvArr src)\n"
|
|
"IplImage___ge__( self, double val)\n"
|
|
""},
|
|
{ (char *)"IplImage___eq__", _wrap_IplImage___eq__, METH_VARARGS, (char *)"\n"
|
|
"__eq__(CvArr src)\n"
|
|
"IplImage___eq__( self, double val)\n"
|
|
""},
|
|
{ (char *)"IplImage___le__", _wrap_IplImage___le__, METH_VARARGS, (char *)"\n"
|
|
"__le__(CvArr src)\n"
|
|
"IplImage___le__( self, double val)\n"
|
|
""},
|
|
{ (char *)"IplImage___ne__", _wrap_IplImage___ne__, METH_VARARGS, (char *)"\n"
|
|
"__ne__(CvArr src)\n"
|
|
"IplImage___ne__( self, double val)\n"
|
|
""},
|
|
{ (char *)"IplImage___lt__", _wrap_IplImage___lt__, METH_VARARGS, (char *)"\n"
|
|
"__lt__(CvArr src)\n"
|
|
"IplImage___lt__( self, double val)\n"
|
|
""},
|
|
{ (char *)"IplImage___gt__", _wrap_IplImage___gt__, METH_VARARGS, (char *)"\n"
|
|
"__gt__(CvArr src)\n"
|
|
"IplImage___gt__( self, double val)\n"
|
|
""},
|
|
{ (char *)"IplImage___mul__", _wrap_IplImage___mul__, METH_VARARGS, (char *)"\n"
|
|
"__mul__(CvArr src)\n"
|
|
"IplImage___mul__( self, double val)\n"
|
|
""},
|
|
{ (char *)"IplImage___imul__", _wrap_IplImage___imul__, METH_VARARGS, (char *)"\n"
|
|
"__imul__(CvArr src)\n"
|
|
"IplImage___imul__( self, double val)\n"
|
|
""},
|
|
{ (char *)"IplImage___div__", _wrap_IplImage___div__, METH_VARARGS, (char *)"\n"
|
|
"__div__(CvArr src)\n"
|
|
"IplImage___div__( self, double val)\n"
|
|
""},
|
|
{ (char *)"IplImage___idiv__", _wrap_IplImage___idiv__, METH_VARARGS, (char *)"\n"
|
|
"__idiv__(CvArr src)\n"
|
|
"IplImage___idiv__( self, double val)\n"
|
|
""},
|
|
{ (char *)"IplImage___rdiv__", _wrap_IplImage___rdiv__, METH_VARARGS, (char *)"IplImage___rdiv__( self, CvArr arg)"},
|
|
{ (char *)"IplImage___radd__", _wrap_IplImage___radd__, METH_VARARGS, (char *)"\n"
|
|
"__radd__(CvArr arg)\n"
|
|
"__radd__(CvScalar arg)\n"
|
|
"IplImage___radd__( self, double arg)\n"
|
|
""},
|
|
{ (char *)"IplImage___rsub__", _wrap_IplImage___rsub__, METH_VARARGS, (char *)"\n"
|
|
"__rsub__(CvArr arg)\n"
|
|
"__rsub__(CvScalar arg)\n"
|
|
"IplImage___rsub__( self, double arg)\n"
|
|
""},
|
|
{ (char *)"IplImage___rmul__", _wrap_IplImage___rmul__, METH_VARARGS, (char *)"\n"
|
|
"__rmul__(CvArr arg)\n"
|
|
"IplImage___rmul__( self, double arg)\n"
|
|
""},
|
|
{ (char *)"IplImage___ror__", _wrap_IplImage___ror__, METH_VARARGS, (char *)"\n"
|
|
"__ror__(CvScalar arg)\n"
|
|
"IplImage___ror__( self, double arg)\n"
|
|
""},
|
|
{ (char *)"IplImage___rand__", _wrap_IplImage___rand__, METH_VARARGS, (char *)"\n"
|
|
"__rand__(CvScalar arg)\n"
|
|
"IplImage___rand__( self, double arg)\n"
|
|
""},
|
|
{ (char *)"IplImage___rxor__", _wrap_IplImage___rxor__, METH_VARARGS, (char *)"\n"
|
|
"__rxor__(CvScalar arg)\n"
|
|
"IplImage___rxor__( self, double arg)\n"
|
|
""},
|
|
{ (char *)"IplImage___req__", _wrap_IplImage___req__, METH_VARARGS, (char *)"IplImage___req__( self, double arg)"},
|
|
{ (char *)"IplImage___rgt__", _wrap_IplImage___rgt__, METH_VARARGS, (char *)"IplImage___rgt__( self, double arg)"},
|
|
{ (char *)"IplImage___rge__", _wrap_IplImage___rge__, METH_VARARGS, (char *)"IplImage___rge__( self, double arg)"},
|
|
{ (char *)"IplImage___rlt__", _wrap_IplImage___rlt__, METH_VARARGS, (char *)"IplImage___rlt__( self, double arg)"},
|
|
{ (char *)"IplImage___rle__", _wrap_IplImage___rle__, METH_VARARGS, (char *)"IplImage___rle__( self, double arg)"},
|
|
{ (char *)"IplImage___rne__", _wrap_IplImage___rne__, METH_VARARGS, (char *)"IplImage___rne__( self, double arg)"},
|
|
{ (char *)"IplImage___pow__", _wrap_IplImage___pow__, METH_VARARGS, (char *)"IplImage___pow__( self, double arg)"},
|
|
{ (char *)"IplImage___str__", _wrap_IplImage___str__, METH_VARARGS, (char *)"IplImage___str__( self) -> char"},
|
|
{ (char *)"IplImage___setitem__", _wrap_IplImage___setitem__, METH_VARARGS, (char *)"\n"
|
|
"__setitem__(PyObject object, double val)\n"
|
|
"__setitem__(PyObject object, CvPoint val)\n"
|
|
"__setitem__(PyObject object, CvPoint2D32f val)\n"
|
|
"__setitem__(PyObject object, CvScalar val)\n"
|
|
"IplImage___setitem__( self, PyObject object, CvArr arr)\n"
|
|
""},
|
|
{ (char *)"IplImage___getitem__", _wrap_IplImage___getitem__, METH_VARARGS, (char *)"IplImage___getitem__( self, PyObject object) -> PyObject"},
|
|
{ (char *)"IplImage_swigregister", IplImage_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"IplROI_coi_set", _wrap_IplROI_coi_set, METH_VARARGS, (char *)"IplROI_coi_set( self, int coi)"},
|
|
{ (char *)"IplROI_coi_get", _wrap_IplROI_coi_get, METH_VARARGS, (char *)"IplROI_coi_get( self) -> int"},
|
|
{ (char *)"IplROI_xOffset_set", _wrap_IplROI_xOffset_set, METH_VARARGS, (char *)"IplROI_xOffset_set( self, int xOffset)"},
|
|
{ (char *)"IplROI_xOffset_get", _wrap_IplROI_xOffset_get, METH_VARARGS, (char *)"IplROI_xOffset_get( self) -> int"},
|
|
{ (char *)"IplROI_yOffset_set", _wrap_IplROI_yOffset_set, METH_VARARGS, (char *)"IplROI_yOffset_set( self, int yOffset)"},
|
|
{ (char *)"IplROI_yOffset_get", _wrap_IplROI_yOffset_get, METH_VARARGS, (char *)"IplROI_yOffset_get( self) -> int"},
|
|
{ (char *)"IplROI_width_set", _wrap_IplROI_width_set, METH_VARARGS, (char *)"IplROI_width_set( self, int width)"},
|
|
{ (char *)"IplROI_width_get", _wrap_IplROI_width_get, METH_VARARGS, (char *)"IplROI_width_get( self) -> int"},
|
|
{ (char *)"IplROI_height_set", _wrap_IplROI_height_set, METH_VARARGS, (char *)"IplROI_height_set( self, int height)"},
|
|
{ (char *)"IplROI_height_get", _wrap_IplROI_height_get, METH_VARARGS, (char *)"IplROI_height_get( self) -> int"},
|
|
{ (char *)"new_IplROI", _wrap_new_IplROI, METH_VARARGS, (char *)"new_IplROI()"},
|
|
{ (char *)"delete_IplROI", _wrap_delete_IplROI, METH_VARARGS, (char *)"delete_IplROI( self)"},
|
|
{ (char *)"IplROI_swigregister", IplROI_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"IplConvKernel_nCols_set", _wrap_IplConvKernel_nCols_set, METH_VARARGS, (char *)"IplConvKernel_nCols_set( self, int nCols)"},
|
|
{ (char *)"IplConvKernel_nCols_get", _wrap_IplConvKernel_nCols_get, METH_VARARGS, (char *)"IplConvKernel_nCols_get( self) -> int"},
|
|
{ (char *)"IplConvKernel_nRows_set", _wrap_IplConvKernel_nRows_set, METH_VARARGS, (char *)"IplConvKernel_nRows_set( self, int nRows)"},
|
|
{ (char *)"IplConvKernel_nRows_get", _wrap_IplConvKernel_nRows_get, METH_VARARGS, (char *)"IplConvKernel_nRows_get( self) -> int"},
|
|
{ (char *)"IplConvKernel_anchorX_set", _wrap_IplConvKernel_anchorX_set, METH_VARARGS, (char *)"IplConvKernel_anchorX_set( self, int anchorX)"},
|
|
{ (char *)"IplConvKernel_anchorX_get", _wrap_IplConvKernel_anchorX_get, METH_VARARGS, (char *)"IplConvKernel_anchorX_get( self) -> int"},
|
|
{ (char *)"IplConvKernel_anchorY_set", _wrap_IplConvKernel_anchorY_set, METH_VARARGS, (char *)"IplConvKernel_anchorY_set( self, int anchorY)"},
|
|
{ (char *)"IplConvKernel_anchorY_get", _wrap_IplConvKernel_anchorY_get, METH_VARARGS, (char *)"IplConvKernel_anchorY_get( self) -> int"},
|
|
{ (char *)"IplConvKernel_values_set", _wrap_IplConvKernel_values_set, METH_VARARGS, (char *)"IplConvKernel_values_set( self, int values)"},
|
|
{ (char *)"IplConvKernel_values_get", _wrap_IplConvKernel_values_get, METH_VARARGS, (char *)"IplConvKernel_values_get( self) -> int"},
|
|
{ (char *)"IplConvKernel_nShiftR_set", _wrap_IplConvKernel_nShiftR_set, METH_VARARGS, (char *)"IplConvKernel_nShiftR_set( self, int nShiftR)"},
|
|
{ (char *)"IplConvKernel_nShiftR_get", _wrap_IplConvKernel_nShiftR_get, METH_VARARGS, (char *)"IplConvKernel_nShiftR_get( self) -> int"},
|
|
{ (char *)"delete_IplConvKernel", _wrap_delete_IplConvKernel, METH_VARARGS, (char *)"delete_IplConvKernel( self)"},
|
|
{ (char *)"IplConvKernel_swigregister", IplConvKernel_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"IplConvKernelFP_nCols_set", _wrap_IplConvKernelFP_nCols_set, METH_VARARGS, (char *)"IplConvKernelFP_nCols_set( self, int nCols)"},
|
|
{ (char *)"IplConvKernelFP_nCols_get", _wrap_IplConvKernelFP_nCols_get, METH_VARARGS, (char *)"IplConvKernelFP_nCols_get( self) -> int"},
|
|
{ (char *)"IplConvKernelFP_nRows_set", _wrap_IplConvKernelFP_nRows_set, METH_VARARGS, (char *)"IplConvKernelFP_nRows_set( self, int nRows)"},
|
|
{ (char *)"IplConvKernelFP_nRows_get", _wrap_IplConvKernelFP_nRows_get, METH_VARARGS, (char *)"IplConvKernelFP_nRows_get( self) -> int"},
|
|
{ (char *)"IplConvKernelFP_anchorX_set", _wrap_IplConvKernelFP_anchorX_set, METH_VARARGS, (char *)"IplConvKernelFP_anchorX_set( self, int anchorX)"},
|
|
{ (char *)"IplConvKernelFP_anchorX_get", _wrap_IplConvKernelFP_anchorX_get, METH_VARARGS, (char *)"IplConvKernelFP_anchorX_get( self) -> int"},
|
|
{ (char *)"IplConvKernelFP_anchorY_set", _wrap_IplConvKernelFP_anchorY_set, METH_VARARGS, (char *)"IplConvKernelFP_anchorY_set( self, int anchorY)"},
|
|
{ (char *)"IplConvKernelFP_anchorY_get", _wrap_IplConvKernelFP_anchorY_get, METH_VARARGS, (char *)"IplConvKernelFP_anchorY_get( self) -> int"},
|
|
{ (char *)"IplConvKernelFP_values_set", _wrap_IplConvKernelFP_values_set, METH_VARARGS, (char *)"IplConvKernelFP_values_set( self, float values)"},
|
|
{ (char *)"IplConvKernelFP_values_get", _wrap_IplConvKernelFP_values_get, METH_VARARGS, (char *)"IplConvKernelFP_values_get( self) -> float"},
|
|
{ (char *)"new_IplConvKernelFP", _wrap_new_IplConvKernelFP, METH_VARARGS, (char *)"new_IplConvKernelFP()"},
|
|
{ (char *)"delete_IplConvKernelFP", _wrap_delete_IplConvKernelFP, METH_VARARGS, (char *)"delete_IplConvKernelFP( self)"},
|
|
{ (char *)"IplConvKernelFP_swigregister", IplConvKernelFP_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvMat_type_set", _wrap_CvMat_type_set, METH_VARARGS, (char *)"CvMat_type_set(CvMat self, int type)"},
|
|
{ (char *)"CvMat_type_get", _wrap_CvMat_type_get, METH_VARARGS, (char *)"CvMat_type_get(CvMat self) -> int"},
|
|
{ (char *)"CvMat_step_set", _wrap_CvMat_step_set, METH_VARARGS, (char *)"CvMat_step_set(CvMat self, int step)"},
|
|
{ (char *)"CvMat_step_get", _wrap_CvMat_step_get, METH_VARARGS, (char *)"CvMat_step_get(CvMat self) -> int"},
|
|
{ (char *)"CvMat_refcount_set", _wrap_CvMat_refcount_set, METH_VARARGS, (char *)"CvMat_refcount_set(CvMat self, int refcount)"},
|
|
{ (char *)"CvMat_refcount_get", _wrap_CvMat_refcount_get, METH_VARARGS, (char *)"CvMat_refcount_get(CvMat self) -> int"},
|
|
{ (char *)"CvMat_hdr_refcount_set", _wrap_CvMat_hdr_refcount_set, METH_VARARGS, (char *)"CvMat_hdr_refcount_set(CvMat self, int hdr_refcount)"},
|
|
{ (char *)"CvMat_hdr_refcount_get", _wrap_CvMat_hdr_refcount_get, METH_VARARGS, (char *)"CvMat_hdr_refcount_get(CvMat self) -> int"},
|
|
{ (char *)"CvMat_data_get", _wrap_CvMat_data_get, METH_VARARGS, (char *)"CvMat_data_get(CvMat self) -> CvMat_data"},
|
|
{ (char *)"delete_CvMat", _wrap_delete_CvMat, METH_VARARGS, (char *)"delete_CvMat(CvMat self)"},
|
|
{ (char *)"CvMat_depth_set", _wrap_CvMat_depth_set, METH_VARARGS, (char *)"CvMat_depth_set(CvMat self, int depth)"},
|
|
{ (char *)"CvMat_depth_get", _wrap_CvMat_depth_get, METH_VARARGS, (char *)"CvMat_depth_get(CvMat self) -> int"},
|
|
{ (char *)"CvMat_nChannels_set", _wrap_CvMat_nChannels_set, METH_VARARGS, (char *)"CvMat_nChannels_set(CvMat self, int nChannels)"},
|
|
{ (char *)"CvMat_nChannels_get", _wrap_CvMat_nChannels_get, METH_VARARGS, (char *)"CvMat_nChannels_get(CvMat self) -> int"},
|
|
{ (char *)"CvMat_dataOrder_set", _wrap_CvMat_dataOrder_set, METH_VARARGS, (char *)"CvMat_dataOrder_set(CvMat self, int dataOrder)"},
|
|
{ (char *)"CvMat_dataOrder_get", _wrap_CvMat_dataOrder_get, METH_VARARGS, (char *)"CvMat_dataOrder_get(CvMat self) -> int"},
|
|
{ (char *)"CvMat_origin_set", _wrap_CvMat_origin_set, METH_VARARGS, (char *)"CvMat_origin_set(CvMat self, int origin)"},
|
|
{ (char *)"CvMat_origin_get", _wrap_CvMat_origin_get, METH_VARARGS, (char *)"CvMat_origin_get(CvMat self) -> int"},
|
|
{ (char *)"CvMat_width_set", _wrap_CvMat_width_set, METH_VARARGS, (char *)"CvMat_width_set(CvMat self, int width)"},
|
|
{ (char *)"CvMat_width_get", _wrap_CvMat_width_get, METH_VARARGS, (char *)"CvMat_width_get(CvMat self) -> int"},
|
|
{ (char *)"CvMat_height_set", _wrap_CvMat_height_set, METH_VARARGS, (char *)"CvMat_height_set(CvMat self, int height)"},
|
|
{ (char *)"CvMat_height_get", _wrap_CvMat_height_get, METH_VARARGS, (char *)"CvMat_height_get(CvMat self) -> int"},
|
|
{ (char *)"CvMat_imageSize_set", _wrap_CvMat_imageSize_set, METH_VARARGS, (char *)"CvMat_imageSize_set(CvMat self, int imageSize)"},
|
|
{ (char *)"CvMat_imageSize_get", _wrap_CvMat_imageSize_get, METH_VARARGS, (char *)"CvMat_imageSize_get(CvMat self) -> int"},
|
|
{ (char *)"CvMat_widthStep_set", _wrap_CvMat_widthStep_set, METH_VARARGS, (char *)"CvMat_widthStep_set(CvMat self, int widthStep)"},
|
|
{ (char *)"CvMat_widthStep_get", _wrap_CvMat_widthStep_get, METH_VARARGS, (char *)"CvMat_widthStep_get(CvMat self) -> int"},
|
|
{ (char *)"CvMat_rows_set", _wrap_CvMat_rows_set, METH_VARARGS, (char *)"CvMat_rows_set(CvMat self, int rows)"},
|
|
{ (char *)"CvMat_rows_get", _wrap_CvMat_rows_get, METH_VARARGS, (char *)"CvMat_rows_get(CvMat self) -> int"},
|
|
{ (char *)"CvMat_cols_set", _wrap_CvMat_cols_set, METH_VARARGS, (char *)"CvMat_cols_set(CvMat self, int cols)"},
|
|
{ (char *)"CvMat_cols_get", _wrap_CvMat_cols_get, METH_VARARGS, (char *)"CvMat_cols_get(CvMat self) -> int"},
|
|
{ (char *)"CvMat___add__", _wrap_CvMat___add__, METH_VARARGS, (char *)"\n"
|
|
"__add__(CvArr src) -> CvMat\n"
|
|
"CvMat___add__(CvMat self, CvScalar val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___iadd__", _wrap_CvMat___iadd__, METH_VARARGS, (char *)"\n"
|
|
"__iadd__(CvArr src) -> CvMat\n"
|
|
"CvMat___iadd__(CvMat self, CvScalar val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___xor__", _wrap_CvMat___xor__, METH_VARARGS, (char *)"\n"
|
|
"__xor__(CvArr src) -> CvMat\n"
|
|
"CvMat___xor__(CvMat self, CvScalar val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___ixor__", _wrap_CvMat___ixor__, METH_VARARGS, (char *)"\n"
|
|
"__ixor__(CvArr src) -> CvMat\n"
|
|
"CvMat___ixor__(CvMat self, CvScalar val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___sub__", _wrap_CvMat___sub__, METH_VARARGS, (char *)"\n"
|
|
"__sub__(CvArr src) -> CvMat\n"
|
|
"CvMat___sub__(CvMat self, CvScalar val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___isub__", _wrap_CvMat___isub__, METH_VARARGS, (char *)"\n"
|
|
"__isub__(CvArr src) -> CvMat\n"
|
|
"CvMat___isub__(CvMat self, CvScalar val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___or__", _wrap_CvMat___or__, METH_VARARGS, (char *)"\n"
|
|
"__or__(CvArr src) -> CvMat\n"
|
|
"CvMat___or__(CvMat self, CvScalar val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___ior__", _wrap_CvMat___ior__, METH_VARARGS, (char *)"\n"
|
|
"__ior__(CvArr src) -> CvMat\n"
|
|
"CvMat___ior__(CvMat self, CvScalar val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___and__", _wrap_CvMat___and__, METH_VARARGS, (char *)"\n"
|
|
"__and__(CvArr src) -> CvMat\n"
|
|
"CvMat___and__(CvMat self, CvScalar val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___iand__", _wrap_CvMat___iand__, METH_VARARGS, (char *)"\n"
|
|
"__iand__(CvArr src) -> CvMat\n"
|
|
"CvMat___iand__(CvMat self, CvScalar val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___ge__", _wrap_CvMat___ge__, METH_VARARGS, (char *)"\n"
|
|
"__ge__(CvArr src) -> CvMat\n"
|
|
"CvMat___ge__(CvMat self, double val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___eq__", _wrap_CvMat___eq__, METH_VARARGS, (char *)"\n"
|
|
"__eq__(CvArr src) -> CvMat\n"
|
|
"CvMat___eq__(CvMat self, double val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___le__", _wrap_CvMat___le__, METH_VARARGS, (char *)"\n"
|
|
"__le__(CvArr src) -> CvMat\n"
|
|
"CvMat___le__(CvMat self, double val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___ne__", _wrap_CvMat___ne__, METH_VARARGS, (char *)"\n"
|
|
"__ne__(CvArr src) -> CvMat\n"
|
|
"CvMat___ne__(CvMat self, double val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___lt__", _wrap_CvMat___lt__, METH_VARARGS, (char *)"\n"
|
|
"__lt__(CvArr src) -> CvMat\n"
|
|
"CvMat___lt__(CvMat self, double val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___gt__", _wrap_CvMat___gt__, METH_VARARGS, (char *)"\n"
|
|
"__gt__(CvArr src) -> CvMat\n"
|
|
"CvMat___gt__(CvMat self, double val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___mul__", _wrap_CvMat___mul__, METH_VARARGS, (char *)"\n"
|
|
"__mul__(CvArr src) -> CvMat\n"
|
|
"CvMat___mul__(CvMat self, double val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___imul__", _wrap_CvMat___imul__, METH_VARARGS, (char *)"\n"
|
|
"__imul__(CvArr src) -> CvMat\n"
|
|
"CvMat___imul__(CvMat self, double val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___div__", _wrap_CvMat___div__, METH_VARARGS, (char *)"\n"
|
|
"__div__(CvArr src) -> CvMat\n"
|
|
"CvMat___div__(CvMat self, double val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___idiv__", _wrap_CvMat___idiv__, METH_VARARGS, (char *)"\n"
|
|
"__idiv__(CvArr src) -> CvMat\n"
|
|
"CvMat___idiv__(CvMat self, double val) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___radd__", _wrap_CvMat___radd__, METH_VARARGS, (char *)"\n"
|
|
"__radd__(CvArr arg) -> CvMat\n"
|
|
"__radd__(CvScalar arg) -> CvMat\n"
|
|
"CvMat___radd__(CvMat self, double arg) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___rsub__", _wrap_CvMat___rsub__, METH_VARARGS, (char *)"\n"
|
|
"__rsub__(CvArr arg) -> CvMat\n"
|
|
"__rsub__(CvScalar arg) -> CvMat\n"
|
|
"CvMat___rsub__(CvMat self, double arg) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___rmul__", _wrap_CvMat___rmul__, METH_VARARGS, (char *)"\n"
|
|
"__rmul__(CvArr arg) -> CvMat\n"
|
|
"CvMat___rmul__(CvMat self, double arg) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___ror__", _wrap_CvMat___ror__, METH_VARARGS, (char *)"\n"
|
|
"__ror__(CvScalar arg) -> CvMat\n"
|
|
"CvMat___ror__(CvMat self, double arg) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___rand__", _wrap_CvMat___rand__, METH_VARARGS, (char *)"\n"
|
|
"__rand__(CvScalar arg) -> CvMat\n"
|
|
"CvMat___rand__(CvMat self, double arg) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___rxor__", _wrap_CvMat___rxor__, METH_VARARGS, (char *)"\n"
|
|
"__rxor__(CvScalar arg) -> CvMat\n"
|
|
"CvMat___rxor__(CvMat self, double arg) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___req__", _wrap_CvMat___req__, METH_VARARGS, (char *)"CvMat___req__(CvMat self, double arg) -> CvMat"},
|
|
{ (char *)"CvMat___rgt__", _wrap_CvMat___rgt__, METH_VARARGS, (char *)"CvMat___rgt__(CvMat self, double arg) -> CvMat"},
|
|
{ (char *)"CvMat___rge__", _wrap_CvMat___rge__, METH_VARARGS, (char *)"CvMat___rge__(CvMat self, double arg) -> CvMat"},
|
|
{ (char *)"CvMat___rlt__", _wrap_CvMat___rlt__, METH_VARARGS, (char *)"CvMat___rlt__(CvMat self, double arg) -> CvMat"},
|
|
{ (char *)"CvMat___rle__", _wrap_CvMat___rle__, METH_VARARGS, (char *)"CvMat___rle__(CvMat self, double arg) -> CvMat"},
|
|
{ (char *)"CvMat___rne__", _wrap_CvMat___rne__, METH_VARARGS, (char *)"CvMat___rne__(CvMat self, double arg) -> CvMat"},
|
|
{ (char *)"CvMat___rdiv__", _wrap_CvMat___rdiv__, METH_VARARGS, (char *)"\n"
|
|
"__rdiv__(CvArr arg) -> CvMat\n"
|
|
"CvMat___rdiv__(CvMat self, double arg) -> CvMat\n"
|
|
""},
|
|
{ (char *)"CvMat___pow__", _wrap_CvMat___pow__, METH_VARARGS, (char *)"CvMat___pow__(CvMat self, double arg) -> CvMat"},
|
|
{ (char *)"CvMat___str__", _wrap_CvMat___str__, METH_VARARGS, (char *)"CvMat___str__(CvMat self) -> char"},
|
|
{ (char *)"CvMat___setitem__", _wrap_CvMat___setitem__, METH_VARARGS, (char *)"\n"
|
|
"__setitem__(PyObject object, double val)\n"
|
|
"__setitem__(PyObject object, CvPoint val)\n"
|
|
"__setitem__(PyObject object, CvPoint2D32f val)\n"
|
|
"__setitem__(PyObject object, CvScalar val)\n"
|
|
"CvMat___setitem__(CvMat self, PyObject object, CvArr arr)\n"
|
|
""},
|
|
{ (char *)"CvMat___getitem__", _wrap_CvMat___getitem__, METH_VARARGS, (char *)"CvMat___getitem__(CvMat self, PyObject object) -> PyObject"},
|
|
{ (char *)"CvMat___invert__", _wrap_CvMat___invert__, METH_VARARGS, (char *)"CvMat___invert__(CvMat self) -> CvMat"},
|
|
{ (char *)"CvMat_imageData_set", _wrap_CvMat_imageData_set, METH_VARARGS, (char *)"CvMat_imageData_set(CvMat self, PyObject imageData)"},
|
|
{ (char *)"CvMat_imageData_get", _wrap_CvMat_imageData_get, METH_VARARGS, (char *)"CvMat_imageData_get(CvMat self) -> PyObject"},
|
|
{ (char *)"CvMat_swigregister", CvMat_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvMat_data_ptr_set", _wrap_CvMat_data_ptr_set, METH_VARARGS, (char *)"CvMat_data_ptr_set(CvMat_data self, uchar ptr)"},
|
|
{ (char *)"CvMat_data_ptr_get", _wrap_CvMat_data_ptr_get, METH_VARARGS, (char *)"CvMat_data_ptr_get(CvMat_data self) -> uchar"},
|
|
{ (char *)"CvMat_data_s_set", _wrap_CvMat_data_s_set, METH_VARARGS, (char *)"CvMat_data_s_set(CvMat_data self, short s)"},
|
|
{ (char *)"CvMat_data_s_get", _wrap_CvMat_data_s_get, METH_VARARGS, (char *)"CvMat_data_s_get(CvMat_data self) -> short"},
|
|
{ (char *)"CvMat_data_i_set", _wrap_CvMat_data_i_set, METH_VARARGS, (char *)"CvMat_data_i_set(CvMat_data self, int i)"},
|
|
{ (char *)"CvMat_data_i_get", _wrap_CvMat_data_i_get, METH_VARARGS, (char *)"CvMat_data_i_get(CvMat_data self) -> int"},
|
|
{ (char *)"CvMat_data_fl_set", _wrap_CvMat_data_fl_set, METH_VARARGS, (char *)"CvMat_data_fl_set(CvMat_data self, float fl)"},
|
|
{ (char *)"CvMat_data_fl_get", _wrap_CvMat_data_fl_get, METH_VARARGS, (char *)"CvMat_data_fl_get(CvMat_data self) -> float"},
|
|
{ (char *)"CvMat_data_db_set", _wrap_CvMat_data_db_set, METH_VARARGS, (char *)"CvMat_data_db_set(CvMat_data self, double db)"},
|
|
{ (char *)"CvMat_data_db_get", _wrap_CvMat_data_db_get, METH_VARARGS, (char *)"CvMat_data_db_get(CvMat_data self) -> double"},
|
|
{ (char *)"new_CvMat_data", _wrap_new_CvMat_data, METH_VARARGS, (char *)"new_CvMat_data() -> CvMat_data"},
|
|
{ (char *)"delete_CvMat_data", _wrap_delete_CvMat_data, METH_VARARGS, (char *)"delete_CvMat_data(CvMat_data self)"},
|
|
{ (char *)"CvMat_data_swigregister", CvMat_data_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvMat", _wrap_cvMat, METH_VARARGS, (char *)"\n"
|
|
"cvMat(int rows, int cols, int type, void data = None) -> CvMat\n"
|
|
"cvMat(int rows, int cols, int type) -> CvMat\n"
|
|
""},
|
|
{ (char *)"cvmGet", _wrap_cvmGet, METH_VARARGS, (char *)"cvmGet(CvMat mat, int row, int col) -> double"},
|
|
{ (char *)"cvmSet", _wrap_cvmSet, METH_VARARGS, (char *)"cvmSet(CvMat mat, int row, int col, double value)"},
|
|
{ (char *)"cvIplDepth", _wrap_cvIplDepth, METH_VARARGS, (char *)"cvIplDepth(int type) -> int"},
|
|
{ (char *)"CvMatND_type_set", _wrap_CvMatND_type_set, METH_VARARGS, (char *)"CvMatND_type_set(CvMatND self, int type)"},
|
|
{ (char *)"CvMatND_type_get", _wrap_CvMatND_type_get, METH_VARARGS, (char *)"CvMatND_type_get(CvMatND self) -> int"},
|
|
{ (char *)"CvMatND_dims_set", _wrap_CvMatND_dims_set, METH_VARARGS, (char *)"CvMatND_dims_set(CvMatND self, int dims)"},
|
|
{ (char *)"CvMatND_dims_get", _wrap_CvMatND_dims_get, METH_VARARGS, (char *)"CvMatND_dims_get(CvMatND self) -> int"},
|
|
{ (char *)"CvMatND_refcount_set", _wrap_CvMatND_refcount_set, METH_VARARGS, (char *)"CvMatND_refcount_set(CvMatND self, int refcount)"},
|
|
{ (char *)"CvMatND_refcount_get", _wrap_CvMatND_refcount_get, METH_VARARGS, (char *)"CvMatND_refcount_get(CvMatND self) -> int"},
|
|
{ (char *)"CvMatND_hdr_refcount_set", _wrap_CvMatND_hdr_refcount_set, METH_VARARGS, (char *)"CvMatND_hdr_refcount_set(CvMatND self, int hdr_refcount)"},
|
|
{ (char *)"CvMatND_hdr_refcount_get", _wrap_CvMatND_hdr_refcount_get, METH_VARARGS, (char *)"CvMatND_hdr_refcount_get(CvMatND self) -> int"},
|
|
{ (char *)"CvMatND_dim_get", _wrap_CvMatND_dim_get, METH_VARARGS, (char *)"CvMatND_dim_get(CvMatND self) -> CvMatND_dim"},
|
|
{ (char *)"CvMatND_data_get", _wrap_CvMatND_data_get, METH_VARARGS, (char *)"CvMatND_data_get(CvMatND self) -> CvMatND_data"},
|
|
{ (char *)"delete_CvMatND", _wrap_delete_CvMatND, METH_VARARGS, (char *)"delete_CvMatND(CvMatND self)"},
|
|
{ (char *)"CvMatND_swigregister", CvMatND_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvMatND_dim_size_set", _wrap_CvMatND_dim_size_set, METH_VARARGS, (char *)"CvMatND_dim_size_set(CvMatND_dim self, int size)"},
|
|
{ (char *)"CvMatND_dim_size_get", _wrap_CvMatND_dim_size_get, METH_VARARGS, (char *)"CvMatND_dim_size_get(CvMatND_dim self) -> int"},
|
|
{ (char *)"CvMatND_dim_step_set", _wrap_CvMatND_dim_step_set, METH_VARARGS, (char *)"CvMatND_dim_step_set(CvMatND_dim self, int step)"},
|
|
{ (char *)"CvMatND_dim_step_get", _wrap_CvMatND_dim_step_get, METH_VARARGS, (char *)"CvMatND_dim_step_get(CvMatND_dim self) -> int"},
|
|
{ (char *)"new_CvMatND_dim", _wrap_new_CvMatND_dim, METH_VARARGS, (char *)"new_CvMatND_dim() -> CvMatND_dim"},
|
|
{ (char *)"delete_CvMatND_dim", _wrap_delete_CvMatND_dim, METH_VARARGS, (char *)"delete_CvMatND_dim(CvMatND_dim self)"},
|
|
{ (char *)"CvMatND_dim_swigregister", CvMatND_dim_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvMatND_data_ptr_set", _wrap_CvMatND_data_ptr_set, METH_VARARGS, (char *)"CvMatND_data_ptr_set(CvMatND_data self, uchar ptr)"},
|
|
{ (char *)"CvMatND_data_ptr_get", _wrap_CvMatND_data_ptr_get, METH_VARARGS, (char *)"CvMatND_data_ptr_get(CvMatND_data self) -> uchar"},
|
|
{ (char *)"CvMatND_data_fl_set", _wrap_CvMatND_data_fl_set, METH_VARARGS, (char *)"CvMatND_data_fl_set(CvMatND_data self, float fl)"},
|
|
{ (char *)"CvMatND_data_fl_get", _wrap_CvMatND_data_fl_get, METH_VARARGS, (char *)"CvMatND_data_fl_get(CvMatND_data self) -> float"},
|
|
{ (char *)"CvMatND_data_db_set", _wrap_CvMatND_data_db_set, METH_VARARGS, (char *)"CvMatND_data_db_set(CvMatND_data self, double db)"},
|
|
{ (char *)"CvMatND_data_db_get", _wrap_CvMatND_data_db_get, METH_VARARGS, (char *)"CvMatND_data_db_get(CvMatND_data self) -> double"},
|
|
{ (char *)"CvMatND_data_i_set", _wrap_CvMatND_data_i_set, METH_VARARGS, (char *)"CvMatND_data_i_set(CvMatND_data self, int i)"},
|
|
{ (char *)"CvMatND_data_i_get", _wrap_CvMatND_data_i_get, METH_VARARGS, (char *)"CvMatND_data_i_get(CvMatND_data self) -> int"},
|
|
{ (char *)"CvMatND_data_s_set", _wrap_CvMatND_data_s_set, METH_VARARGS, (char *)"CvMatND_data_s_set(CvMatND_data self, short s)"},
|
|
{ (char *)"CvMatND_data_s_get", _wrap_CvMatND_data_s_get, METH_VARARGS, (char *)"CvMatND_data_s_get(CvMatND_data self) -> short"},
|
|
{ (char *)"new_CvMatND_data", _wrap_new_CvMatND_data, METH_VARARGS, (char *)"new_CvMatND_data() -> CvMatND_data"},
|
|
{ (char *)"delete_CvMatND_data", _wrap_delete_CvMatND_data, METH_VARARGS, (char *)"delete_CvMatND_data(CvMatND_data self)"},
|
|
{ (char *)"CvMatND_data_swigregister", CvMatND_data_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSparseMat_type_set", _wrap_CvSparseMat_type_set, METH_VARARGS, (char *)"CvSparseMat_type_set(CvSparseMat self, int type)"},
|
|
{ (char *)"CvSparseMat_type_get", _wrap_CvSparseMat_type_get, METH_VARARGS, (char *)"CvSparseMat_type_get(CvSparseMat self) -> int"},
|
|
{ (char *)"CvSparseMat_dims_set", _wrap_CvSparseMat_dims_set, METH_VARARGS, (char *)"CvSparseMat_dims_set(CvSparseMat self, int dims)"},
|
|
{ (char *)"CvSparseMat_dims_get", _wrap_CvSparseMat_dims_get, METH_VARARGS, (char *)"CvSparseMat_dims_get(CvSparseMat self) -> int"},
|
|
{ (char *)"CvSparseMat_refcount_set", _wrap_CvSparseMat_refcount_set, METH_VARARGS, (char *)"CvSparseMat_refcount_set(CvSparseMat self, int refcount)"},
|
|
{ (char *)"CvSparseMat_refcount_get", _wrap_CvSparseMat_refcount_get, METH_VARARGS, (char *)"CvSparseMat_refcount_get(CvSparseMat self) -> int"},
|
|
{ (char *)"CvSparseMat_hdr_refcount_set", _wrap_CvSparseMat_hdr_refcount_set, METH_VARARGS, (char *)"CvSparseMat_hdr_refcount_set(CvSparseMat self, int hdr_refcount)"},
|
|
{ (char *)"CvSparseMat_hdr_refcount_get", _wrap_CvSparseMat_hdr_refcount_get, METH_VARARGS, (char *)"CvSparseMat_hdr_refcount_get(CvSparseMat self) -> int"},
|
|
{ (char *)"CvSparseMat_heap_set", _wrap_CvSparseMat_heap_set, METH_VARARGS, (char *)"CvSparseMat_heap_set(CvSparseMat self, CvSet heap)"},
|
|
{ (char *)"CvSparseMat_heap_get", _wrap_CvSparseMat_heap_get, METH_VARARGS, (char *)"CvSparseMat_heap_get(CvSparseMat self) -> CvSet"},
|
|
{ (char *)"CvSparseMat_hashtable_set", _wrap_CvSparseMat_hashtable_set, METH_VARARGS, (char *)"CvSparseMat_hashtable_set(CvSparseMat self, void hashtable)"},
|
|
{ (char *)"CvSparseMat_hashtable_get", _wrap_CvSparseMat_hashtable_get, METH_VARARGS, (char *)"CvSparseMat_hashtable_get(CvSparseMat self) -> void"},
|
|
{ (char *)"CvSparseMat_hashsize_set", _wrap_CvSparseMat_hashsize_set, METH_VARARGS, (char *)"CvSparseMat_hashsize_set(CvSparseMat self, int hashsize)"},
|
|
{ (char *)"CvSparseMat_hashsize_get", _wrap_CvSparseMat_hashsize_get, METH_VARARGS, (char *)"CvSparseMat_hashsize_get(CvSparseMat self) -> int"},
|
|
{ (char *)"CvSparseMat_valoffset_set", _wrap_CvSparseMat_valoffset_set, METH_VARARGS, (char *)"CvSparseMat_valoffset_set(CvSparseMat self, int valoffset)"},
|
|
{ (char *)"CvSparseMat_valoffset_get", _wrap_CvSparseMat_valoffset_get, METH_VARARGS, (char *)"CvSparseMat_valoffset_get(CvSparseMat self) -> int"},
|
|
{ (char *)"CvSparseMat_idxoffset_set", _wrap_CvSparseMat_idxoffset_set, METH_VARARGS, (char *)"CvSparseMat_idxoffset_set(CvSparseMat self, int idxoffset)"},
|
|
{ (char *)"CvSparseMat_idxoffset_get", _wrap_CvSparseMat_idxoffset_get, METH_VARARGS, (char *)"CvSparseMat_idxoffset_get(CvSparseMat self) -> int"},
|
|
{ (char *)"CvSparseMat_size_set", _wrap_CvSparseMat_size_set, METH_VARARGS, (char *)"CvSparseMat_size_set(CvSparseMat self, int size)"},
|
|
{ (char *)"CvSparseMat_size_get", _wrap_CvSparseMat_size_get, METH_VARARGS, (char *)"CvSparseMat_size_get(CvSparseMat self) -> int"},
|
|
{ (char *)"delete_CvSparseMat", _wrap_delete_CvSparseMat, METH_VARARGS, (char *)"delete_CvSparseMat(CvSparseMat self)"},
|
|
{ (char *)"CvSparseMat_swigregister", CvSparseMat_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSparseNode_hashval_set", _wrap_CvSparseNode_hashval_set, METH_VARARGS, (char *)"CvSparseNode_hashval_set(CvSparseNode self, unsigned int hashval)"},
|
|
{ (char *)"CvSparseNode_hashval_get", _wrap_CvSparseNode_hashval_get, METH_VARARGS, (char *)"CvSparseNode_hashval_get(CvSparseNode self) -> unsigned int"},
|
|
{ (char *)"CvSparseNode_next_set", _wrap_CvSparseNode_next_set, METH_VARARGS, (char *)"CvSparseNode_next_set(CvSparseNode self, CvSparseNode next)"},
|
|
{ (char *)"CvSparseNode_next_get", _wrap_CvSparseNode_next_get, METH_VARARGS, (char *)"CvSparseNode_next_get(CvSparseNode self) -> CvSparseNode"},
|
|
{ (char *)"new_CvSparseNode", _wrap_new_CvSparseNode, METH_VARARGS, (char *)"new_CvSparseNode() -> CvSparseNode"},
|
|
{ (char *)"delete_CvSparseNode", _wrap_delete_CvSparseNode, METH_VARARGS, (char *)"delete_CvSparseNode(CvSparseNode self)"},
|
|
{ (char *)"CvSparseNode_swigregister", CvSparseNode_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSparseMatIterator_mat_set", _wrap_CvSparseMatIterator_mat_set, METH_VARARGS, (char *)"CvSparseMatIterator_mat_set(CvSparseMatIterator self, CvSparseMat mat)"},
|
|
{ (char *)"CvSparseMatIterator_mat_get", _wrap_CvSparseMatIterator_mat_get, METH_VARARGS, (char *)"CvSparseMatIterator_mat_get(CvSparseMatIterator self) -> CvSparseMat"},
|
|
{ (char *)"CvSparseMatIterator_node_set", _wrap_CvSparseMatIterator_node_set, METH_VARARGS, (char *)"CvSparseMatIterator_node_set(CvSparseMatIterator self, CvSparseNode node)"},
|
|
{ (char *)"CvSparseMatIterator_node_get", _wrap_CvSparseMatIterator_node_get, METH_VARARGS, (char *)"CvSparseMatIterator_node_get(CvSparseMatIterator self) -> CvSparseNode"},
|
|
{ (char *)"CvSparseMatIterator_curidx_set", _wrap_CvSparseMatIterator_curidx_set, METH_VARARGS, (char *)"CvSparseMatIterator_curidx_set(CvSparseMatIterator self, int curidx)"},
|
|
{ (char *)"CvSparseMatIterator_curidx_get", _wrap_CvSparseMatIterator_curidx_get, METH_VARARGS, (char *)"CvSparseMatIterator_curidx_get(CvSparseMatIterator self) -> int"},
|
|
{ (char *)"new_CvSparseMatIterator", _wrap_new_CvSparseMatIterator, METH_VARARGS, (char *)"new_CvSparseMatIterator() -> CvSparseMatIterator"},
|
|
{ (char *)"delete_CvSparseMatIterator", _wrap_delete_CvSparseMatIterator, METH_VARARGS, (char *)"delete_CvSparseMatIterator(CvSparseMatIterator self)"},
|
|
{ (char *)"CvSparseMatIterator_swigregister", CvSparseMatIterator_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvHistogram_type_set", _wrap_CvHistogram_type_set, METH_VARARGS, (char *)"CvHistogram_type_set(CvHistogram self, int type)"},
|
|
{ (char *)"CvHistogram_type_get", _wrap_CvHistogram_type_get, METH_VARARGS, (char *)"CvHistogram_type_get(CvHistogram self) -> int"},
|
|
{ (char *)"CvHistogram_bins_set", _wrap_CvHistogram_bins_set, METH_VARARGS, (char *)"CvHistogram_bins_set(CvHistogram self, CvArr bins)"},
|
|
{ (char *)"CvHistogram_bins_get", _wrap_CvHistogram_bins_get, METH_VARARGS, (char *)"CvHistogram_bins_get(CvHistogram self) -> CvArr"},
|
|
{ (char *)"CvHistogram_thresh_set", _wrap_CvHistogram_thresh_set, METH_VARARGS, (char *)"CvHistogram_thresh_set(CvHistogram self, float thresh)"},
|
|
{ (char *)"CvHistogram_thresh_get", _wrap_CvHistogram_thresh_get, METH_VARARGS, (char *)"CvHistogram_thresh_get(CvHistogram self) -> float"},
|
|
{ (char *)"CvHistogram_thresh2_set", _wrap_CvHistogram_thresh2_set, METH_VARARGS, (char *)"CvHistogram_thresh2_set(CvHistogram self, float thresh2)"},
|
|
{ (char *)"CvHistogram_thresh2_get", _wrap_CvHistogram_thresh2_get, METH_VARARGS, (char *)"CvHistogram_thresh2_get(CvHistogram self) -> float"},
|
|
{ (char *)"CvHistogram_mat_set", _wrap_CvHistogram_mat_set, METH_VARARGS, (char *)"CvHistogram_mat_set(CvHistogram self, CvMatND mat)"},
|
|
{ (char *)"CvHistogram_mat_get", _wrap_CvHistogram_mat_get, METH_VARARGS, (char *)"CvHistogram_mat_get(CvHistogram self) -> CvMatND"},
|
|
{ (char *)"delete_CvHistogram", _wrap_delete_CvHistogram, METH_VARARGS, (char *)"delete_CvHistogram(CvHistogram self)"},
|
|
{ (char *)"CvHistogram_swigregister", CvHistogram_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvRect_x_set", _wrap_CvRect_x_set, METH_VARARGS, (char *)"CvRect_x_set(CvRect self, int x)"},
|
|
{ (char *)"CvRect_x_get", _wrap_CvRect_x_get, METH_VARARGS, (char *)"CvRect_x_get(CvRect self) -> int"},
|
|
{ (char *)"CvRect_y_set", _wrap_CvRect_y_set, METH_VARARGS, (char *)"CvRect_y_set(CvRect self, int y)"},
|
|
{ (char *)"CvRect_y_get", _wrap_CvRect_y_get, METH_VARARGS, (char *)"CvRect_y_get(CvRect self) -> int"},
|
|
{ (char *)"CvRect_width_set", _wrap_CvRect_width_set, METH_VARARGS, (char *)"CvRect_width_set(CvRect self, int width)"},
|
|
{ (char *)"CvRect_width_get", _wrap_CvRect_width_get, METH_VARARGS, (char *)"CvRect_width_get(CvRect self) -> int"},
|
|
{ (char *)"CvRect_height_set", _wrap_CvRect_height_set, METH_VARARGS, (char *)"CvRect_height_set(CvRect self, int height)"},
|
|
{ (char *)"CvRect_height_get", _wrap_CvRect_height_get, METH_VARARGS, (char *)"CvRect_height_get(CvRect self) -> int"},
|
|
{ (char *)"new_CvRect", _wrap_new_CvRect, METH_VARARGS, (char *)"new_CvRect() -> CvRect"},
|
|
{ (char *)"delete_CvRect", _wrap_delete_CvRect, METH_VARARGS, (char *)"delete_CvRect(CvRect self)"},
|
|
{ (char *)"CvRect_swigregister", CvRect_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvRect", _wrap_cvRect, METH_VARARGS, (char *)"cvRect(int x, int y, int width, int height) -> CvRect"},
|
|
{ (char *)"cvRectToROI", _wrap_cvRectToROI, METH_VARARGS, (char *)"cvRectToROI(CvRect rect, int coi)"},
|
|
{ (char *)"cvROIToRect", _wrap_cvROIToRect, METH_VARARGS, (char *)"cvROIToRect( roi) -> CvRect"},
|
|
{ (char *)"CvTermCriteria_type_set", _wrap_CvTermCriteria_type_set, METH_VARARGS, (char *)"CvTermCriteria_type_set(CvTermCriteria self, int type)"},
|
|
{ (char *)"CvTermCriteria_type_get", _wrap_CvTermCriteria_type_get, METH_VARARGS, (char *)"CvTermCriteria_type_get(CvTermCriteria self) -> int"},
|
|
{ (char *)"CvTermCriteria_max_iter_set", _wrap_CvTermCriteria_max_iter_set, METH_VARARGS, (char *)"CvTermCriteria_max_iter_set(CvTermCriteria self, int max_iter)"},
|
|
{ (char *)"CvTermCriteria_max_iter_get", _wrap_CvTermCriteria_max_iter_get, METH_VARARGS, (char *)"CvTermCriteria_max_iter_get(CvTermCriteria self) -> int"},
|
|
{ (char *)"CvTermCriteria_epsilon_set", _wrap_CvTermCriteria_epsilon_set, METH_VARARGS, (char *)"CvTermCriteria_epsilon_set(CvTermCriteria self, double epsilon)"},
|
|
{ (char *)"CvTermCriteria_epsilon_get", _wrap_CvTermCriteria_epsilon_get, METH_VARARGS, (char *)"CvTermCriteria_epsilon_get(CvTermCriteria self) -> double"},
|
|
{ (char *)"new_CvTermCriteria", _wrap_new_CvTermCriteria, METH_VARARGS, (char *)"new_CvTermCriteria() -> CvTermCriteria"},
|
|
{ (char *)"delete_CvTermCriteria", _wrap_delete_CvTermCriteria, METH_VARARGS, (char *)"delete_CvTermCriteria(CvTermCriteria self)"},
|
|
{ (char *)"CvTermCriteria_swigregister", CvTermCriteria_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvTermCriteria", _wrap_cvTermCriteria, METH_VARARGS, (char *)"cvTermCriteria(int type, int max_iter, double epsilon) -> CvTermCriteria"},
|
|
{ (char *)"CvPoint_x_set", _wrap_CvPoint_x_set, METH_VARARGS, (char *)"CvPoint_x_set(CvPoint self, int x)"},
|
|
{ (char *)"CvPoint_x_get", _wrap_CvPoint_x_get, METH_VARARGS, (char *)"CvPoint_x_get(CvPoint self) -> int"},
|
|
{ (char *)"CvPoint_y_set", _wrap_CvPoint_y_set, METH_VARARGS, (char *)"CvPoint_y_set(CvPoint self, int y)"},
|
|
{ (char *)"CvPoint_y_get", _wrap_CvPoint_y_get, METH_VARARGS, (char *)"CvPoint_y_get(CvPoint self) -> int"},
|
|
{ (char *)"CvPoint___str__", _wrap_CvPoint___str__, METH_VARARGS, (char *)"CvPoint___str__(CvPoint self) -> char"},
|
|
{ (char *)"CvPoint___repr__", _wrap_CvPoint___repr__, METH_VARARGS, (char *)"CvPoint___repr__(CvPoint self) -> char"},
|
|
{ (char *)"new_CvPoint", _wrap_new_CvPoint, METH_VARARGS, (char *)"new_CvPoint() -> CvPoint"},
|
|
{ (char *)"delete_CvPoint", _wrap_delete_CvPoint, METH_VARARGS, (char *)"delete_CvPoint(CvPoint self)"},
|
|
{ (char *)"CvPoint_swigregister", CvPoint_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvPoint", _wrap_cvPoint, METH_VARARGS, (char *)"cvPoint(int x, int y) -> CvPoint"},
|
|
{ (char *)"CvPoint2D32f_x_set", _wrap_CvPoint2D32f_x_set, METH_VARARGS, (char *)"CvPoint2D32f_x_set(CvPoint2D32f self, float x)"},
|
|
{ (char *)"CvPoint2D32f_x_get", _wrap_CvPoint2D32f_x_get, METH_VARARGS, (char *)"CvPoint2D32f_x_get(CvPoint2D32f self) -> float"},
|
|
{ (char *)"CvPoint2D32f_y_set", _wrap_CvPoint2D32f_y_set, METH_VARARGS, (char *)"CvPoint2D32f_y_set(CvPoint2D32f self, float y)"},
|
|
{ (char *)"CvPoint2D32f_y_get", _wrap_CvPoint2D32f_y_get, METH_VARARGS, (char *)"CvPoint2D32f_y_get(CvPoint2D32f self) -> float"},
|
|
{ (char *)"CvPoint2D32f___str__", _wrap_CvPoint2D32f___str__, METH_VARARGS, (char *)"CvPoint2D32f___str__(CvPoint2D32f self) -> char"},
|
|
{ (char *)"CvPoint2D32f___repr__", _wrap_CvPoint2D32f___repr__, METH_VARARGS, (char *)"CvPoint2D32f___repr__(CvPoint2D32f self) -> char"},
|
|
{ (char *)"new_CvPoint2D32f", _wrap_new_CvPoint2D32f, METH_VARARGS, (char *)"new_CvPoint2D32f() -> CvPoint2D32f"},
|
|
{ (char *)"delete_CvPoint2D32f", _wrap_delete_CvPoint2D32f, METH_VARARGS, (char *)"delete_CvPoint2D32f(CvPoint2D32f self)"},
|
|
{ (char *)"CvPoint2D32f_swigregister", CvPoint2D32f_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvPoint2D32f", _wrap_cvPoint2D32f, METH_VARARGS, (char *)"cvPoint2D32f(double x, double y) -> CvPoint2D32f"},
|
|
{ (char *)"cvPointTo32f", _wrap_cvPointTo32f, METH_VARARGS, (char *)"cvPointTo32f(CvPoint point) -> CvPoint2D32f"},
|
|
{ (char *)"cvPointFrom32f", _wrap_cvPointFrom32f, METH_VARARGS, (char *)"cvPointFrom32f(CvPoint2D32f point) -> CvPoint"},
|
|
{ (char *)"CvPoint3D32f_x_set", _wrap_CvPoint3D32f_x_set, METH_VARARGS, (char *)"CvPoint3D32f_x_set(CvPoint3D32f self, float x)"},
|
|
{ (char *)"CvPoint3D32f_x_get", _wrap_CvPoint3D32f_x_get, METH_VARARGS, (char *)"CvPoint3D32f_x_get(CvPoint3D32f self) -> float"},
|
|
{ (char *)"CvPoint3D32f_y_set", _wrap_CvPoint3D32f_y_set, METH_VARARGS, (char *)"CvPoint3D32f_y_set(CvPoint3D32f self, float y)"},
|
|
{ (char *)"CvPoint3D32f_y_get", _wrap_CvPoint3D32f_y_get, METH_VARARGS, (char *)"CvPoint3D32f_y_get(CvPoint3D32f self) -> float"},
|
|
{ (char *)"CvPoint3D32f_z_set", _wrap_CvPoint3D32f_z_set, METH_VARARGS, (char *)"CvPoint3D32f_z_set(CvPoint3D32f self, float z)"},
|
|
{ (char *)"CvPoint3D32f_z_get", _wrap_CvPoint3D32f_z_get, METH_VARARGS, (char *)"CvPoint3D32f_z_get(CvPoint3D32f self) -> float"},
|
|
{ (char *)"new_CvPoint3D32f", _wrap_new_CvPoint3D32f, METH_VARARGS, (char *)"new_CvPoint3D32f() -> CvPoint3D32f"},
|
|
{ (char *)"delete_CvPoint3D32f", _wrap_delete_CvPoint3D32f, METH_VARARGS, (char *)"delete_CvPoint3D32f(CvPoint3D32f self)"},
|
|
{ (char *)"CvPoint3D32f_swigregister", CvPoint3D32f_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvPoint3D32f", _wrap_cvPoint3D32f, METH_VARARGS, (char *)"cvPoint3D32f(double x, double y, double z) -> CvPoint3D32f"},
|
|
{ (char *)"CvPoint2D64f_x_set", _wrap_CvPoint2D64f_x_set, METH_VARARGS, (char *)"CvPoint2D64f_x_set(CvPoint2D64f self, double x)"},
|
|
{ (char *)"CvPoint2D64f_x_get", _wrap_CvPoint2D64f_x_get, METH_VARARGS, (char *)"CvPoint2D64f_x_get(CvPoint2D64f self) -> double"},
|
|
{ (char *)"CvPoint2D64f_y_set", _wrap_CvPoint2D64f_y_set, METH_VARARGS, (char *)"CvPoint2D64f_y_set(CvPoint2D64f self, double y)"},
|
|
{ (char *)"CvPoint2D64f_y_get", _wrap_CvPoint2D64f_y_get, METH_VARARGS, (char *)"CvPoint2D64f_y_get(CvPoint2D64f self) -> double"},
|
|
{ (char *)"new_CvPoint2D64f", _wrap_new_CvPoint2D64f, METH_VARARGS, (char *)"new_CvPoint2D64f() -> CvPoint2D64f"},
|
|
{ (char *)"delete_CvPoint2D64f", _wrap_delete_CvPoint2D64f, METH_VARARGS, (char *)"delete_CvPoint2D64f(CvPoint2D64f self)"},
|
|
{ (char *)"CvPoint2D64f_swigregister", CvPoint2D64f_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvPoint2D64f", _wrap_cvPoint2D64f, METH_VARARGS, (char *)"cvPoint2D64f(double x, double y) -> CvPoint2D64f"},
|
|
{ (char *)"CvPoint3D64f_x_set", _wrap_CvPoint3D64f_x_set, METH_VARARGS, (char *)"CvPoint3D64f_x_set(CvPoint3D64f self, double x)"},
|
|
{ (char *)"CvPoint3D64f_x_get", _wrap_CvPoint3D64f_x_get, METH_VARARGS, (char *)"CvPoint3D64f_x_get(CvPoint3D64f self) -> double"},
|
|
{ (char *)"CvPoint3D64f_y_set", _wrap_CvPoint3D64f_y_set, METH_VARARGS, (char *)"CvPoint3D64f_y_set(CvPoint3D64f self, double y)"},
|
|
{ (char *)"CvPoint3D64f_y_get", _wrap_CvPoint3D64f_y_get, METH_VARARGS, (char *)"CvPoint3D64f_y_get(CvPoint3D64f self) -> double"},
|
|
{ (char *)"CvPoint3D64f_z_set", _wrap_CvPoint3D64f_z_set, METH_VARARGS, (char *)"CvPoint3D64f_z_set(CvPoint3D64f self, double z)"},
|
|
{ (char *)"CvPoint3D64f_z_get", _wrap_CvPoint3D64f_z_get, METH_VARARGS, (char *)"CvPoint3D64f_z_get(CvPoint3D64f self) -> double"},
|
|
{ (char *)"new_CvPoint3D64f", _wrap_new_CvPoint3D64f, METH_VARARGS, (char *)"new_CvPoint3D64f() -> CvPoint3D64f"},
|
|
{ (char *)"delete_CvPoint3D64f", _wrap_delete_CvPoint3D64f, METH_VARARGS, (char *)"delete_CvPoint3D64f(CvPoint3D64f self)"},
|
|
{ (char *)"CvPoint3D64f_swigregister", CvPoint3D64f_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvPoint3D64f", _wrap_cvPoint3D64f, METH_VARARGS, (char *)"cvPoint3D64f(double x, double y, double z) -> CvPoint3D64f"},
|
|
{ (char *)"CvSize_width_set", _wrap_CvSize_width_set, METH_VARARGS, (char *)"CvSize_width_set(CvSize self, int width)"},
|
|
{ (char *)"CvSize_width_get", _wrap_CvSize_width_get, METH_VARARGS, (char *)"CvSize_width_get(CvSize self) -> int"},
|
|
{ (char *)"CvSize_height_set", _wrap_CvSize_height_set, METH_VARARGS, (char *)"CvSize_height_set(CvSize self, int height)"},
|
|
{ (char *)"CvSize_height_get", _wrap_CvSize_height_get, METH_VARARGS, (char *)"CvSize_height_get(CvSize self) -> int"},
|
|
{ (char *)"new_CvSize", _wrap_new_CvSize, METH_VARARGS, (char *)"new_CvSize() -> CvSize"},
|
|
{ (char *)"delete_CvSize", _wrap_delete_CvSize, METH_VARARGS, (char *)"delete_CvSize(CvSize self)"},
|
|
{ (char *)"CvSize_swigregister", CvSize_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvSize", _wrap_cvSize, METH_VARARGS, (char *)"cvSize(int width, int height) -> CvSize"},
|
|
{ (char *)"CvSize2D32f_width_set", _wrap_CvSize2D32f_width_set, METH_VARARGS, (char *)"CvSize2D32f_width_set(CvSize2D32f self, float width)"},
|
|
{ (char *)"CvSize2D32f_width_get", _wrap_CvSize2D32f_width_get, METH_VARARGS, (char *)"CvSize2D32f_width_get(CvSize2D32f self) -> float"},
|
|
{ (char *)"CvSize2D32f_height_set", _wrap_CvSize2D32f_height_set, METH_VARARGS, (char *)"CvSize2D32f_height_set(CvSize2D32f self, float height)"},
|
|
{ (char *)"CvSize2D32f_height_get", _wrap_CvSize2D32f_height_get, METH_VARARGS, (char *)"CvSize2D32f_height_get(CvSize2D32f self) -> float"},
|
|
{ (char *)"new_CvSize2D32f", _wrap_new_CvSize2D32f, METH_VARARGS, (char *)"new_CvSize2D32f() -> CvSize2D32f"},
|
|
{ (char *)"delete_CvSize2D32f", _wrap_delete_CvSize2D32f, METH_VARARGS, (char *)"delete_CvSize2D32f(CvSize2D32f self)"},
|
|
{ (char *)"CvSize2D32f_swigregister", CvSize2D32f_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvSize2D32f", _wrap_cvSize2D32f, METH_VARARGS, (char *)"cvSize2D32f(double width, double height) -> CvSize2D32f"},
|
|
{ (char *)"CvBox2D_center_set", _wrap_CvBox2D_center_set, METH_VARARGS, (char *)"CvBox2D_center_set(CvBox2D self, CvPoint2D32f center)"},
|
|
{ (char *)"CvBox2D_center_get", _wrap_CvBox2D_center_get, METH_VARARGS, (char *)"CvBox2D_center_get(CvBox2D self) -> CvPoint2D32f"},
|
|
{ (char *)"CvBox2D_size_set", _wrap_CvBox2D_size_set, METH_VARARGS, (char *)"CvBox2D_size_set(CvBox2D self, CvSize2D32f size)"},
|
|
{ (char *)"CvBox2D_size_get", _wrap_CvBox2D_size_get, METH_VARARGS, (char *)"CvBox2D_size_get(CvBox2D self) -> CvSize2D32f"},
|
|
{ (char *)"CvBox2D_angle_set", _wrap_CvBox2D_angle_set, METH_VARARGS, (char *)"CvBox2D_angle_set(CvBox2D self, float angle)"},
|
|
{ (char *)"CvBox2D_angle_get", _wrap_CvBox2D_angle_get, METH_VARARGS, (char *)"CvBox2D_angle_get(CvBox2D self) -> float"},
|
|
{ (char *)"new_CvBox2D", _wrap_new_CvBox2D, METH_VARARGS, (char *)"new_CvBox2D() -> CvBox2D"},
|
|
{ (char *)"delete_CvBox2D", _wrap_delete_CvBox2D, METH_VARARGS, (char *)"delete_CvBox2D(CvBox2D self)"},
|
|
{ (char *)"CvBox2D_swigregister", CvBox2D_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvLineIterator_ptr_set", _wrap_CvLineIterator_ptr_set, METH_VARARGS, (char *)"CvLineIterator_ptr_set(CvLineIterator self, uchar ptr)"},
|
|
{ (char *)"CvLineIterator_ptr_get", _wrap_CvLineIterator_ptr_get, METH_VARARGS, (char *)"CvLineIterator_ptr_get(CvLineIterator self) -> uchar"},
|
|
{ (char *)"CvLineIterator_err_set", _wrap_CvLineIterator_err_set, METH_VARARGS, (char *)"CvLineIterator_err_set(CvLineIterator self, int err)"},
|
|
{ (char *)"CvLineIterator_err_get", _wrap_CvLineIterator_err_get, METH_VARARGS, (char *)"CvLineIterator_err_get(CvLineIterator self) -> int"},
|
|
{ (char *)"CvLineIterator_plus_delta_set", _wrap_CvLineIterator_plus_delta_set, METH_VARARGS, (char *)"CvLineIterator_plus_delta_set(CvLineIterator self, int plus_delta)"},
|
|
{ (char *)"CvLineIterator_plus_delta_get", _wrap_CvLineIterator_plus_delta_get, METH_VARARGS, (char *)"CvLineIterator_plus_delta_get(CvLineIterator self) -> int"},
|
|
{ (char *)"CvLineIterator_minus_delta_set", _wrap_CvLineIterator_minus_delta_set, METH_VARARGS, (char *)"CvLineIterator_minus_delta_set(CvLineIterator self, int minus_delta)"},
|
|
{ (char *)"CvLineIterator_minus_delta_get", _wrap_CvLineIterator_minus_delta_get, METH_VARARGS, (char *)"CvLineIterator_minus_delta_get(CvLineIterator self) -> int"},
|
|
{ (char *)"CvLineIterator_plus_step_set", _wrap_CvLineIterator_plus_step_set, METH_VARARGS, (char *)"CvLineIterator_plus_step_set(CvLineIterator self, int plus_step)"},
|
|
{ (char *)"CvLineIterator_plus_step_get", _wrap_CvLineIterator_plus_step_get, METH_VARARGS, (char *)"CvLineIterator_plus_step_get(CvLineIterator self) -> int"},
|
|
{ (char *)"CvLineIterator_minus_step_set", _wrap_CvLineIterator_minus_step_set, METH_VARARGS, (char *)"CvLineIterator_minus_step_set(CvLineIterator self, int minus_step)"},
|
|
{ (char *)"CvLineIterator_minus_step_get", _wrap_CvLineIterator_minus_step_get, METH_VARARGS, (char *)"CvLineIterator_minus_step_get(CvLineIterator self) -> int"},
|
|
{ (char *)"new_CvLineIterator", _wrap_new_CvLineIterator, METH_VARARGS, (char *)"new_CvLineIterator() -> CvLineIterator"},
|
|
{ (char *)"delete_CvLineIterator", _wrap_delete_CvLineIterator, METH_VARARGS, (char *)"delete_CvLineIterator(CvLineIterator self)"},
|
|
{ (char *)"CvLineIterator_swigregister", CvLineIterator_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSlice_start_index_set", _wrap_CvSlice_start_index_set, METH_VARARGS, (char *)"CvSlice_start_index_set(CvSlice self, int start_index)"},
|
|
{ (char *)"CvSlice_start_index_get", _wrap_CvSlice_start_index_get, METH_VARARGS, (char *)"CvSlice_start_index_get(CvSlice self) -> int"},
|
|
{ (char *)"CvSlice_end_index_set", _wrap_CvSlice_end_index_set, METH_VARARGS, (char *)"CvSlice_end_index_set(CvSlice self, int end_index)"},
|
|
{ (char *)"CvSlice_end_index_get", _wrap_CvSlice_end_index_get, METH_VARARGS, (char *)"CvSlice_end_index_get(CvSlice self) -> int"},
|
|
{ (char *)"new_CvSlice", _wrap_new_CvSlice, METH_VARARGS, (char *)"new_CvSlice() -> CvSlice"},
|
|
{ (char *)"delete_CvSlice", _wrap_delete_CvSlice, METH_VARARGS, (char *)"delete_CvSlice(CvSlice self)"},
|
|
{ (char *)"CvSlice_swigregister", CvSlice_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvSlice", _wrap_cvSlice, METH_VARARGS, (char *)"cvSlice(int start, int end) -> CvSlice"},
|
|
{ (char *)"CvScalar_val_set", _wrap_CvScalar_val_set, METH_VARARGS, (char *)"CvScalar_val_set(CvScalar self, double val)"},
|
|
{ (char *)"CvScalar_val_get", _wrap_CvScalar_val_get, METH_VARARGS, (char *)"CvScalar_val_get(CvScalar self) -> double"},
|
|
{ (char *)"CvScalar___str__", _wrap_CvScalar___str__, METH_VARARGS, (char *)"CvScalar___str__(CvScalar self) -> char"},
|
|
{ (char *)"CvScalar___repr__", _wrap_CvScalar___repr__, METH_VARARGS, (char *)"CvScalar___repr__(CvScalar self) -> char"},
|
|
{ (char *)"CvScalar___getitem__", _wrap_CvScalar___getitem__, METH_VARARGS, (char *)"CvScalar___getitem__(CvScalar self, int index) -> double"},
|
|
{ (char *)"CvScalar___setitem__", _wrap_CvScalar___setitem__, METH_VARARGS, (char *)"CvScalar___setitem__(CvScalar self, int index, double value)"},
|
|
{ (char *)"new_CvScalar", _wrap_new_CvScalar, METH_VARARGS, (char *)"new_CvScalar() -> CvScalar"},
|
|
{ (char *)"delete_CvScalar", _wrap_delete_CvScalar, METH_VARARGS, (char *)"delete_CvScalar(CvScalar self)"},
|
|
{ (char *)"CvScalar_swigregister", CvScalar_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvScalar", _wrap_cvScalar, METH_VARARGS, (char *)"\n"
|
|
"cvScalar(double val0, double val1 = 0, double val2 = 0, double val3 = 0) -> CvScalar\n"
|
|
"cvScalar(double val0, double val1 = 0, double val2 = 0) -> CvScalar\n"
|
|
"cvScalar(double val0, double val1 = 0) -> CvScalar\n"
|
|
"cvScalar(double val0) -> CvScalar\n"
|
|
""},
|
|
{ (char *)"cvRealScalar", _wrap_cvRealScalar, METH_VARARGS, (char *)"cvRealScalar(double val0) -> CvScalar"},
|
|
{ (char *)"cvScalarAll", _wrap_cvScalarAll, METH_VARARGS, (char *)"cvScalarAll(double val0123) -> CvScalar"},
|
|
{ (char *)"CvMemBlock_prev_set", _wrap_CvMemBlock_prev_set, METH_VARARGS, (char *)"CvMemBlock_prev_set(CvMemBlock self, CvMemBlock prev)"},
|
|
{ (char *)"CvMemBlock_prev_get", _wrap_CvMemBlock_prev_get, METH_VARARGS, (char *)"CvMemBlock_prev_get(CvMemBlock self) -> CvMemBlock"},
|
|
{ (char *)"CvMemBlock_next_set", _wrap_CvMemBlock_next_set, METH_VARARGS, (char *)"CvMemBlock_next_set(CvMemBlock self, CvMemBlock next)"},
|
|
{ (char *)"CvMemBlock_next_get", _wrap_CvMemBlock_next_get, METH_VARARGS, (char *)"CvMemBlock_next_get(CvMemBlock self) -> CvMemBlock"},
|
|
{ (char *)"new_CvMemBlock", _wrap_new_CvMemBlock, METH_VARARGS, (char *)"new_CvMemBlock() -> CvMemBlock"},
|
|
{ (char *)"delete_CvMemBlock", _wrap_delete_CvMemBlock, METH_VARARGS, (char *)"delete_CvMemBlock(CvMemBlock self)"},
|
|
{ (char *)"CvMemBlock_swigregister", CvMemBlock_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvMemStorage_signature_set", _wrap_CvMemStorage_signature_set, METH_VARARGS, (char *)"CvMemStorage_signature_set(CvMemStorage self, int signature)"},
|
|
{ (char *)"CvMemStorage_signature_get", _wrap_CvMemStorage_signature_get, METH_VARARGS, (char *)"CvMemStorage_signature_get(CvMemStorage self) -> int"},
|
|
{ (char *)"CvMemStorage_bottom_set", _wrap_CvMemStorage_bottom_set, METH_VARARGS, (char *)"CvMemStorage_bottom_set(CvMemStorage self, CvMemBlock bottom)"},
|
|
{ (char *)"CvMemStorage_bottom_get", _wrap_CvMemStorage_bottom_get, METH_VARARGS, (char *)"CvMemStorage_bottom_get(CvMemStorage self) -> CvMemBlock"},
|
|
{ (char *)"CvMemStorage_top_set", _wrap_CvMemStorage_top_set, METH_VARARGS, (char *)"CvMemStorage_top_set(CvMemStorage self, CvMemBlock top)"},
|
|
{ (char *)"CvMemStorage_top_get", _wrap_CvMemStorage_top_get, METH_VARARGS, (char *)"CvMemStorage_top_get(CvMemStorage self) -> CvMemBlock"},
|
|
{ (char *)"CvMemStorage_parent_set", _wrap_CvMemStorage_parent_set, METH_VARARGS, (char *)"CvMemStorage_parent_set(CvMemStorage self, CvMemStorage parent)"},
|
|
{ (char *)"CvMemStorage_parent_get", _wrap_CvMemStorage_parent_get, METH_VARARGS, (char *)"CvMemStorage_parent_get(CvMemStorage self) -> CvMemStorage"},
|
|
{ (char *)"CvMemStorage_block_size_set", _wrap_CvMemStorage_block_size_set, METH_VARARGS, (char *)"CvMemStorage_block_size_set(CvMemStorage self, int block_size)"},
|
|
{ (char *)"CvMemStorage_block_size_get", _wrap_CvMemStorage_block_size_get, METH_VARARGS, (char *)"CvMemStorage_block_size_get(CvMemStorage self) -> int"},
|
|
{ (char *)"CvMemStorage_free_space_set", _wrap_CvMemStorage_free_space_set, METH_VARARGS, (char *)"CvMemStorage_free_space_set(CvMemStorage self, int free_space)"},
|
|
{ (char *)"CvMemStorage_free_space_get", _wrap_CvMemStorage_free_space_get, METH_VARARGS, (char *)"CvMemStorage_free_space_get(CvMemStorage self) -> int"},
|
|
{ (char *)"delete_CvMemStorage", _wrap_delete_CvMemStorage, METH_VARARGS, (char *)"delete_CvMemStorage(CvMemStorage self)"},
|
|
{ (char *)"CvMemStorage_swigregister", CvMemStorage_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvMemStoragePos_top_set", _wrap_CvMemStoragePos_top_set, METH_VARARGS, (char *)"CvMemStoragePos_top_set(CvMemStoragePos self, CvMemBlock top)"},
|
|
{ (char *)"CvMemStoragePos_top_get", _wrap_CvMemStoragePos_top_get, METH_VARARGS, (char *)"CvMemStoragePos_top_get(CvMemStoragePos self) -> CvMemBlock"},
|
|
{ (char *)"CvMemStoragePos_free_space_set", _wrap_CvMemStoragePos_free_space_set, METH_VARARGS, (char *)"CvMemStoragePos_free_space_set(CvMemStoragePos self, int free_space)"},
|
|
{ (char *)"CvMemStoragePos_free_space_get", _wrap_CvMemStoragePos_free_space_get, METH_VARARGS, (char *)"CvMemStoragePos_free_space_get(CvMemStoragePos self) -> int"},
|
|
{ (char *)"new_CvMemStoragePos", _wrap_new_CvMemStoragePos, METH_VARARGS, (char *)"new_CvMemStoragePos() -> CvMemStoragePos"},
|
|
{ (char *)"delete_CvMemStoragePos", _wrap_delete_CvMemStoragePos, METH_VARARGS, (char *)"delete_CvMemStoragePos(CvMemStoragePos self)"},
|
|
{ (char *)"CvMemStoragePos_swigregister", CvMemStoragePos_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSeqBlock_prev_set", _wrap_CvSeqBlock_prev_set, METH_VARARGS, (char *)"CvSeqBlock_prev_set(CvSeqBlock self, CvSeqBlock prev)"},
|
|
{ (char *)"CvSeqBlock_prev_get", _wrap_CvSeqBlock_prev_get, METH_VARARGS, (char *)"CvSeqBlock_prev_get(CvSeqBlock self) -> CvSeqBlock"},
|
|
{ (char *)"CvSeqBlock_next_set", _wrap_CvSeqBlock_next_set, METH_VARARGS, (char *)"CvSeqBlock_next_set(CvSeqBlock self, CvSeqBlock next)"},
|
|
{ (char *)"CvSeqBlock_next_get", _wrap_CvSeqBlock_next_get, METH_VARARGS, (char *)"CvSeqBlock_next_get(CvSeqBlock self) -> CvSeqBlock"},
|
|
{ (char *)"CvSeqBlock_start_index_set", _wrap_CvSeqBlock_start_index_set, METH_VARARGS, (char *)"CvSeqBlock_start_index_set(CvSeqBlock self, int start_index)"},
|
|
{ (char *)"CvSeqBlock_start_index_get", _wrap_CvSeqBlock_start_index_get, METH_VARARGS, (char *)"CvSeqBlock_start_index_get(CvSeqBlock self) -> int"},
|
|
{ (char *)"CvSeqBlock_count_set", _wrap_CvSeqBlock_count_set, METH_VARARGS, (char *)"CvSeqBlock_count_set(CvSeqBlock self, int count)"},
|
|
{ (char *)"CvSeqBlock_count_get", _wrap_CvSeqBlock_count_get, METH_VARARGS, (char *)"CvSeqBlock_count_get(CvSeqBlock self) -> int"},
|
|
{ (char *)"CvSeqBlock_data_set", _wrap_CvSeqBlock_data_set, METH_VARARGS, (char *)"CvSeqBlock_data_set(CvSeqBlock self, schar data)"},
|
|
{ (char *)"CvSeqBlock_data_get", _wrap_CvSeqBlock_data_get, METH_VARARGS, (char *)"CvSeqBlock_data_get(CvSeqBlock self) -> schar"},
|
|
{ (char *)"new_CvSeqBlock", _wrap_new_CvSeqBlock, METH_VARARGS, (char *)"new_CvSeqBlock() -> CvSeqBlock"},
|
|
{ (char *)"delete_CvSeqBlock", _wrap_delete_CvSeqBlock, METH_VARARGS, (char *)"delete_CvSeqBlock(CvSeqBlock self)"},
|
|
{ (char *)"CvSeqBlock_swigregister", CvSeqBlock_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSeq_flags_set", _wrap_CvSeq_flags_set, METH_VARARGS, (char *)"CvSeq_flags_set(CvSeq self, int flags)"},
|
|
{ (char *)"CvSeq_flags_get", _wrap_CvSeq_flags_get, METH_VARARGS, (char *)"CvSeq_flags_get(CvSeq self) -> int"},
|
|
{ (char *)"CvSeq_header_size_set", _wrap_CvSeq_header_size_set, METH_VARARGS, (char *)"CvSeq_header_size_set(CvSeq self, int header_size)"},
|
|
{ (char *)"CvSeq_header_size_get", _wrap_CvSeq_header_size_get, METH_VARARGS, (char *)"CvSeq_header_size_get(CvSeq self) -> int"},
|
|
{ (char *)"CvSeq_h_prev_set", _wrap_CvSeq_h_prev_set, METH_VARARGS, (char *)"CvSeq_h_prev_set(CvSeq self, CvSeq h_prev)"},
|
|
{ (char *)"CvSeq_h_prev_get", _wrap_CvSeq_h_prev_get, METH_VARARGS, (char *)"CvSeq_h_prev_get(CvSeq self) -> CvSeq"},
|
|
{ (char *)"CvSeq_h_next_set", _wrap_CvSeq_h_next_set, METH_VARARGS, (char *)"CvSeq_h_next_set(CvSeq self, CvSeq h_next)"},
|
|
{ (char *)"CvSeq_h_next_get", _wrap_CvSeq_h_next_get, METH_VARARGS, (char *)"CvSeq_h_next_get(CvSeq self) -> CvSeq"},
|
|
{ (char *)"CvSeq_v_prev_set", _wrap_CvSeq_v_prev_set, METH_VARARGS, (char *)"CvSeq_v_prev_set(CvSeq self, CvSeq v_prev)"},
|
|
{ (char *)"CvSeq_v_prev_get", _wrap_CvSeq_v_prev_get, METH_VARARGS, (char *)"CvSeq_v_prev_get(CvSeq self) -> CvSeq"},
|
|
{ (char *)"CvSeq_v_next_set", _wrap_CvSeq_v_next_set, METH_VARARGS, (char *)"CvSeq_v_next_set(CvSeq self, CvSeq v_next)"},
|
|
{ (char *)"CvSeq_v_next_get", _wrap_CvSeq_v_next_get, METH_VARARGS, (char *)"CvSeq_v_next_get(CvSeq self) -> CvSeq"},
|
|
{ (char *)"CvSeq_total_set", _wrap_CvSeq_total_set, METH_VARARGS, (char *)"CvSeq_total_set(CvSeq self, int total)"},
|
|
{ (char *)"CvSeq_total_get", _wrap_CvSeq_total_get, METH_VARARGS, (char *)"CvSeq_total_get(CvSeq self) -> int"},
|
|
{ (char *)"CvSeq_elem_size_set", _wrap_CvSeq_elem_size_set, METH_VARARGS, (char *)"CvSeq_elem_size_set(CvSeq self, int elem_size)"},
|
|
{ (char *)"CvSeq_elem_size_get", _wrap_CvSeq_elem_size_get, METH_VARARGS, (char *)"CvSeq_elem_size_get(CvSeq self) -> int"},
|
|
{ (char *)"CvSeq_block_max_set", _wrap_CvSeq_block_max_set, METH_VARARGS, (char *)"CvSeq_block_max_set(CvSeq self, schar block_max)"},
|
|
{ (char *)"CvSeq_block_max_get", _wrap_CvSeq_block_max_get, METH_VARARGS, (char *)"CvSeq_block_max_get(CvSeq self) -> schar"},
|
|
{ (char *)"CvSeq_ptr_set", _wrap_CvSeq_ptr_set, METH_VARARGS, (char *)"CvSeq_ptr_set(CvSeq self, schar ptr)"},
|
|
{ (char *)"CvSeq_ptr_get", _wrap_CvSeq_ptr_get, METH_VARARGS, (char *)"CvSeq_ptr_get(CvSeq self) -> schar"},
|
|
{ (char *)"CvSeq_delta_elems_set", _wrap_CvSeq_delta_elems_set, METH_VARARGS, (char *)"CvSeq_delta_elems_set(CvSeq self, int delta_elems)"},
|
|
{ (char *)"CvSeq_delta_elems_get", _wrap_CvSeq_delta_elems_get, METH_VARARGS, (char *)"CvSeq_delta_elems_get(CvSeq self) -> int"},
|
|
{ (char *)"CvSeq_storage_set", _wrap_CvSeq_storage_set, METH_VARARGS, (char *)"CvSeq_storage_set(CvSeq self, CvMemStorage storage)"},
|
|
{ (char *)"CvSeq_storage_get", _wrap_CvSeq_storage_get, METH_VARARGS, (char *)"CvSeq_storage_get(CvSeq self) -> CvMemStorage"},
|
|
{ (char *)"CvSeq_free_blocks_set", _wrap_CvSeq_free_blocks_set, METH_VARARGS, (char *)"CvSeq_free_blocks_set(CvSeq self, CvSeqBlock free_blocks)"},
|
|
{ (char *)"CvSeq_free_blocks_get", _wrap_CvSeq_free_blocks_get, METH_VARARGS, (char *)"CvSeq_free_blocks_get(CvSeq self) -> CvSeqBlock"},
|
|
{ (char *)"CvSeq_first_set", _wrap_CvSeq_first_set, METH_VARARGS, (char *)"CvSeq_first_set(CvSeq self, CvSeqBlock first)"},
|
|
{ (char *)"CvSeq_first_get", _wrap_CvSeq_first_get, METH_VARARGS, (char *)"CvSeq_first_get(CvSeq self) -> CvSeqBlock"},
|
|
{ (char *)"new_CvSeq", _wrap_new_CvSeq, METH_VARARGS, (char *)"new_CvSeq() -> CvSeq"},
|
|
{ (char *)"delete_CvSeq", _wrap_delete_CvSeq, METH_VARARGS, (char *)"delete_CvSeq(CvSeq self)"},
|
|
{ (char *)"CvSeq_swigregister", CvSeq_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSetElem_flags_set", _wrap_CvSetElem_flags_set, METH_VARARGS, (char *)"CvSetElem_flags_set(CvSetElem self, int flags)"},
|
|
{ (char *)"CvSetElem_flags_get", _wrap_CvSetElem_flags_get, METH_VARARGS, (char *)"CvSetElem_flags_get(CvSetElem self) -> int"},
|
|
{ (char *)"CvSetElem_next_free_set", _wrap_CvSetElem_next_free_set, METH_VARARGS, (char *)"CvSetElem_next_free_set(CvSetElem self, CvSetElem next_free)"},
|
|
{ (char *)"CvSetElem_next_free_get", _wrap_CvSetElem_next_free_get, METH_VARARGS, (char *)"CvSetElem_next_free_get(CvSetElem self) -> CvSetElem"},
|
|
{ (char *)"new_CvSetElem", _wrap_new_CvSetElem, METH_VARARGS, (char *)"new_CvSetElem() -> CvSetElem"},
|
|
{ (char *)"delete_CvSetElem", _wrap_delete_CvSetElem, METH_VARARGS, (char *)"delete_CvSetElem(CvSetElem self)"},
|
|
{ (char *)"CvSetElem_swigregister", CvSetElem_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSet_flags_set", _wrap_CvSet_flags_set, METH_VARARGS, (char *)"CvSet_flags_set(CvSet self, int flags)"},
|
|
{ (char *)"CvSet_flags_get", _wrap_CvSet_flags_get, METH_VARARGS, (char *)"CvSet_flags_get(CvSet self) -> int"},
|
|
{ (char *)"CvSet_header_size_set", _wrap_CvSet_header_size_set, METH_VARARGS, (char *)"CvSet_header_size_set(CvSet self, int header_size)"},
|
|
{ (char *)"CvSet_header_size_get", _wrap_CvSet_header_size_get, METH_VARARGS, (char *)"CvSet_header_size_get(CvSet self) -> int"},
|
|
{ (char *)"CvSet_h_prev_set", _wrap_CvSet_h_prev_set, METH_VARARGS, (char *)"CvSet_h_prev_set(CvSet self, CvSeq h_prev)"},
|
|
{ (char *)"CvSet_h_prev_get", _wrap_CvSet_h_prev_get, METH_VARARGS, (char *)"CvSet_h_prev_get(CvSet self) -> CvSeq"},
|
|
{ (char *)"CvSet_h_next_set", _wrap_CvSet_h_next_set, METH_VARARGS, (char *)"CvSet_h_next_set(CvSet self, CvSeq h_next)"},
|
|
{ (char *)"CvSet_h_next_get", _wrap_CvSet_h_next_get, METH_VARARGS, (char *)"CvSet_h_next_get(CvSet self) -> CvSeq"},
|
|
{ (char *)"CvSet_v_prev_set", _wrap_CvSet_v_prev_set, METH_VARARGS, (char *)"CvSet_v_prev_set(CvSet self, CvSeq v_prev)"},
|
|
{ (char *)"CvSet_v_prev_get", _wrap_CvSet_v_prev_get, METH_VARARGS, (char *)"CvSet_v_prev_get(CvSet self) -> CvSeq"},
|
|
{ (char *)"CvSet_v_next_set", _wrap_CvSet_v_next_set, METH_VARARGS, (char *)"CvSet_v_next_set(CvSet self, CvSeq v_next)"},
|
|
{ (char *)"CvSet_v_next_get", _wrap_CvSet_v_next_get, METH_VARARGS, (char *)"CvSet_v_next_get(CvSet self) -> CvSeq"},
|
|
{ (char *)"CvSet_total_set", _wrap_CvSet_total_set, METH_VARARGS, (char *)"CvSet_total_set(CvSet self, int total)"},
|
|
{ (char *)"CvSet_total_get", _wrap_CvSet_total_get, METH_VARARGS, (char *)"CvSet_total_get(CvSet self) -> int"},
|
|
{ (char *)"CvSet_elem_size_set", _wrap_CvSet_elem_size_set, METH_VARARGS, (char *)"CvSet_elem_size_set(CvSet self, int elem_size)"},
|
|
{ (char *)"CvSet_elem_size_get", _wrap_CvSet_elem_size_get, METH_VARARGS, (char *)"CvSet_elem_size_get(CvSet self) -> int"},
|
|
{ (char *)"CvSet_block_max_set", _wrap_CvSet_block_max_set, METH_VARARGS, (char *)"CvSet_block_max_set(CvSet self, schar block_max)"},
|
|
{ (char *)"CvSet_block_max_get", _wrap_CvSet_block_max_get, METH_VARARGS, (char *)"CvSet_block_max_get(CvSet self) -> schar"},
|
|
{ (char *)"CvSet_ptr_set", _wrap_CvSet_ptr_set, METH_VARARGS, (char *)"CvSet_ptr_set(CvSet self, schar ptr)"},
|
|
{ (char *)"CvSet_ptr_get", _wrap_CvSet_ptr_get, METH_VARARGS, (char *)"CvSet_ptr_get(CvSet self) -> schar"},
|
|
{ (char *)"CvSet_delta_elems_set", _wrap_CvSet_delta_elems_set, METH_VARARGS, (char *)"CvSet_delta_elems_set(CvSet self, int delta_elems)"},
|
|
{ (char *)"CvSet_delta_elems_get", _wrap_CvSet_delta_elems_get, METH_VARARGS, (char *)"CvSet_delta_elems_get(CvSet self) -> int"},
|
|
{ (char *)"CvSet_storage_set", _wrap_CvSet_storage_set, METH_VARARGS, (char *)"CvSet_storage_set(CvSet self, CvMemStorage storage)"},
|
|
{ (char *)"CvSet_storage_get", _wrap_CvSet_storage_get, METH_VARARGS, (char *)"CvSet_storage_get(CvSet self) -> CvMemStorage"},
|
|
{ (char *)"CvSet_free_blocks_set", _wrap_CvSet_free_blocks_set, METH_VARARGS, (char *)"CvSet_free_blocks_set(CvSet self, CvSeqBlock free_blocks)"},
|
|
{ (char *)"CvSet_free_blocks_get", _wrap_CvSet_free_blocks_get, METH_VARARGS, (char *)"CvSet_free_blocks_get(CvSet self) -> CvSeqBlock"},
|
|
{ (char *)"CvSet_first_set", _wrap_CvSet_first_set, METH_VARARGS, (char *)"CvSet_first_set(CvSet self, CvSeqBlock first)"},
|
|
{ (char *)"CvSet_first_get", _wrap_CvSet_first_get, METH_VARARGS, (char *)"CvSet_first_get(CvSet self) -> CvSeqBlock"},
|
|
{ (char *)"CvSet_free_elems_set", _wrap_CvSet_free_elems_set, METH_VARARGS, (char *)"CvSet_free_elems_set(CvSet self, CvSetElem free_elems)"},
|
|
{ (char *)"CvSet_free_elems_get", _wrap_CvSet_free_elems_get, METH_VARARGS, (char *)"CvSet_free_elems_get(CvSet self) -> CvSetElem"},
|
|
{ (char *)"CvSet_active_count_set", _wrap_CvSet_active_count_set, METH_VARARGS, (char *)"CvSet_active_count_set(CvSet self, int active_count)"},
|
|
{ (char *)"CvSet_active_count_get", _wrap_CvSet_active_count_get, METH_VARARGS, (char *)"CvSet_active_count_get(CvSet self) -> int"},
|
|
{ (char *)"new_CvSet", _wrap_new_CvSet, METH_VARARGS, (char *)"new_CvSet() -> CvSet"},
|
|
{ (char *)"delete_CvSet", _wrap_delete_CvSet, METH_VARARGS, (char *)"delete_CvSet(CvSet self)"},
|
|
{ (char *)"CvSet_swigregister", CvSet_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvGraphEdge_flags_set", _wrap_CvGraphEdge_flags_set, METH_VARARGS, (char *)"CvGraphEdge_flags_set(CvGraphEdge self, int flags)"},
|
|
{ (char *)"CvGraphEdge_flags_get", _wrap_CvGraphEdge_flags_get, METH_VARARGS, (char *)"CvGraphEdge_flags_get(CvGraphEdge self) -> int"},
|
|
{ (char *)"CvGraphEdge_weight_set", _wrap_CvGraphEdge_weight_set, METH_VARARGS, (char *)"CvGraphEdge_weight_set(CvGraphEdge self, float weight)"},
|
|
{ (char *)"CvGraphEdge_weight_get", _wrap_CvGraphEdge_weight_get, METH_VARARGS, (char *)"CvGraphEdge_weight_get(CvGraphEdge self) -> float"},
|
|
{ (char *)"CvGraphEdge_next_set", _wrap_CvGraphEdge_next_set, METH_VARARGS, (char *)"CvGraphEdge_next_set(CvGraphEdge self, CvGraphEdge next)"},
|
|
{ (char *)"CvGraphEdge_next_get", _wrap_CvGraphEdge_next_get, METH_VARARGS, (char *)"CvGraphEdge_next_get(CvGraphEdge self) -> CvGraphEdge"},
|
|
{ (char *)"CvGraphEdge_vtx_set", _wrap_CvGraphEdge_vtx_set, METH_VARARGS, (char *)"CvGraphEdge_vtx_set(CvGraphEdge self, CvGraphVtx vtx)"},
|
|
{ (char *)"CvGraphEdge_vtx_get", _wrap_CvGraphEdge_vtx_get, METH_VARARGS, (char *)"CvGraphEdge_vtx_get(CvGraphEdge self) -> CvGraphVtx"},
|
|
{ (char *)"new_CvGraphEdge", _wrap_new_CvGraphEdge, METH_VARARGS, (char *)"new_CvGraphEdge() -> CvGraphEdge"},
|
|
{ (char *)"delete_CvGraphEdge", _wrap_delete_CvGraphEdge, METH_VARARGS, (char *)"delete_CvGraphEdge(CvGraphEdge self)"},
|
|
{ (char *)"CvGraphEdge_swigregister", CvGraphEdge_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvGraphVtx_flags_set", _wrap_CvGraphVtx_flags_set, METH_VARARGS, (char *)"CvGraphVtx_flags_set(CvGraphVtx self, int flags)"},
|
|
{ (char *)"CvGraphVtx_flags_get", _wrap_CvGraphVtx_flags_get, METH_VARARGS, (char *)"CvGraphVtx_flags_get(CvGraphVtx self) -> int"},
|
|
{ (char *)"CvGraphVtx_first_set", _wrap_CvGraphVtx_first_set, METH_VARARGS, (char *)"CvGraphVtx_first_set(CvGraphVtx self, CvGraphEdge first)"},
|
|
{ (char *)"CvGraphVtx_first_get", _wrap_CvGraphVtx_first_get, METH_VARARGS, (char *)"CvGraphVtx_first_get(CvGraphVtx self) -> CvGraphEdge"},
|
|
{ (char *)"new_CvGraphVtx", _wrap_new_CvGraphVtx, METH_VARARGS, (char *)"new_CvGraphVtx() -> CvGraphVtx"},
|
|
{ (char *)"delete_CvGraphVtx", _wrap_delete_CvGraphVtx, METH_VARARGS, (char *)"delete_CvGraphVtx(CvGraphVtx self)"},
|
|
{ (char *)"CvGraphVtx_swigregister", CvGraphVtx_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvGraphVtx2D_flags_set", _wrap_CvGraphVtx2D_flags_set, METH_VARARGS, (char *)"CvGraphVtx2D_flags_set(CvGraphVtx2D self, int flags)"},
|
|
{ (char *)"CvGraphVtx2D_flags_get", _wrap_CvGraphVtx2D_flags_get, METH_VARARGS, (char *)"CvGraphVtx2D_flags_get(CvGraphVtx2D self) -> int"},
|
|
{ (char *)"CvGraphVtx2D_first_set", _wrap_CvGraphVtx2D_first_set, METH_VARARGS, (char *)"CvGraphVtx2D_first_set(CvGraphVtx2D self, CvGraphEdge first)"},
|
|
{ (char *)"CvGraphVtx2D_first_get", _wrap_CvGraphVtx2D_first_get, METH_VARARGS, (char *)"CvGraphVtx2D_first_get(CvGraphVtx2D self) -> CvGraphEdge"},
|
|
{ (char *)"CvGraphVtx2D_ptr_set", _wrap_CvGraphVtx2D_ptr_set, METH_VARARGS, (char *)"CvGraphVtx2D_ptr_set(CvGraphVtx2D self, CvPoint2D32f ptr)"},
|
|
{ (char *)"CvGraphVtx2D_ptr_get", _wrap_CvGraphVtx2D_ptr_get, METH_VARARGS, (char *)"CvGraphVtx2D_ptr_get(CvGraphVtx2D self) -> CvPoint2D32f"},
|
|
{ (char *)"new_CvGraphVtx2D", _wrap_new_CvGraphVtx2D, METH_VARARGS, (char *)"new_CvGraphVtx2D() -> CvGraphVtx2D"},
|
|
{ (char *)"delete_CvGraphVtx2D", _wrap_delete_CvGraphVtx2D, METH_VARARGS, (char *)"delete_CvGraphVtx2D(CvGraphVtx2D self)"},
|
|
{ (char *)"CvGraphVtx2D_swigregister", CvGraphVtx2D_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvGraph_flags_set", _wrap_CvGraph_flags_set, METH_VARARGS, (char *)"CvGraph_flags_set(CvGraph self, int flags)"},
|
|
{ (char *)"CvGraph_flags_get", _wrap_CvGraph_flags_get, METH_VARARGS, (char *)"CvGraph_flags_get(CvGraph self) -> int"},
|
|
{ (char *)"CvGraph_header_size_set", _wrap_CvGraph_header_size_set, METH_VARARGS, (char *)"CvGraph_header_size_set(CvGraph self, int header_size)"},
|
|
{ (char *)"CvGraph_header_size_get", _wrap_CvGraph_header_size_get, METH_VARARGS, (char *)"CvGraph_header_size_get(CvGraph self) -> int"},
|
|
{ (char *)"CvGraph_h_prev_set", _wrap_CvGraph_h_prev_set, METH_VARARGS, (char *)"CvGraph_h_prev_set(CvGraph self, CvSeq h_prev)"},
|
|
{ (char *)"CvGraph_h_prev_get", _wrap_CvGraph_h_prev_get, METH_VARARGS, (char *)"CvGraph_h_prev_get(CvGraph self) -> CvSeq"},
|
|
{ (char *)"CvGraph_h_next_set", _wrap_CvGraph_h_next_set, METH_VARARGS, (char *)"CvGraph_h_next_set(CvGraph self, CvSeq h_next)"},
|
|
{ (char *)"CvGraph_h_next_get", _wrap_CvGraph_h_next_get, METH_VARARGS, (char *)"CvGraph_h_next_get(CvGraph self) -> CvSeq"},
|
|
{ (char *)"CvGraph_v_prev_set", _wrap_CvGraph_v_prev_set, METH_VARARGS, (char *)"CvGraph_v_prev_set(CvGraph self, CvSeq v_prev)"},
|
|
{ (char *)"CvGraph_v_prev_get", _wrap_CvGraph_v_prev_get, METH_VARARGS, (char *)"CvGraph_v_prev_get(CvGraph self) -> CvSeq"},
|
|
{ (char *)"CvGraph_v_next_set", _wrap_CvGraph_v_next_set, METH_VARARGS, (char *)"CvGraph_v_next_set(CvGraph self, CvSeq v_next)"},
|
|
{ (char *)"CvGraph_v_next_get", _wrap_CvGraph_v_next_get, METH_VARARGS, (char *)"CvGraph_v_next_get(CvGraph self) -> CvSeq"},
|
|
{ (char *)"CvGraph_total_set", _wrap_CvGraph_total_set, METH_VARARGS, (char *)"CvGraph_total_set(CvGraph self, int total)"},
|
|
{ (char *)"CvGraph_total_get", _wrap_CvGraph_total_get, METH_VARARGS, (char *)"CvGraph_total_get(CvGraph self) -> int"},
|
|
{ (char *)"CvGraph_elem_size_set", _wrap_CvGraph_elem_size_set, METH_VARARGS, (char *)"CvGraph_elem_size_set(CvGraph self, int elem_size)"},
|
|
{ (char *)"CvGraph_elem_size_get", _wrap_CvGraph_elem_size_get, METH_VARARGS, (char *)"CvGraph_elem_size_get(CvGraph self) -> int"},
|
|
{ (char *)"CvGraph_block_max_set", _wrap_CvGraph_block_max_set, METH_VARARGS, (char *)"CvGraph_block_max_set(CvGraph self, schar block_max)"},
|
|
{ (char *)"CvGraph_block_max_get", _wrap_CvGraph_block_max_get, METH_VARARGS, (char *)"CvGraph_block_max_get(CvGraph self) -> schar"},
|
|
{ (char *)"CvGraph_ptr_set", _wrap_CvGraph_ptr_set, METH_VARARGS, (char *)"CvGraph_ptr_set(CvGraph self, schar ptr)"},
|
|
{ (char *)"CvGraph_ptr_get", _wrap_CvGraph_ptr_get, METH_VARARGS, (char *)"CvGraph_ptr_get(CvGraph self) -> schar"},
|
|
{ (char *)"CvGraph_delta_elems_set", _wrap_CvGraph_delta_elems_set, METH_VARARGS, (char *)"CvGraph_delta_elems_set(CvGraph self, int delta_elems)"},
|
|
{ (char *)"CvGraph_delta_elems_get", _wrap_CvGraph_delta_elems_get, METH_VARARGS, (char *)"CvGraph_delta_elems_get(CvGraph self) -> int"},
|
|
{ (char *)"CvGraph_storage_set", _wrap_CvGraph_storage_set, METH_VARARGS, (char *)"CvGraph_storage_set(CvGraph self, CvMemStorage storage)"},
|
|
{ (char *)"CvGraph_storage_get", _wrap_CvGraph_storage_get, METH_VARARGS, (char *)"CvGraph_storage_get(CvGraph self) -> CvMemStorage"},
|
|
{ (char *)"CvGraph_free_blocks_set", _wrap_CvGraph_free_blocks_set, METH_VARARGS, (char *)"CvGraph_free_blocks_set(CvGraph self, CvSeqBlock free_blocks)"},
|
|
{ (char *)"CvGraph_free_blocks_get", _wrap_CvGraph_free_blocks_get, METH_VARARGS, (char *)"CvGraph_free_blocks_get(CvGraph self) -> CvSeqBlock"},
|
|
{ (char *)"CvGraph_first_set", _wrap_CvGraph_first_set, METH_VARARGS, (char *)"CvGraph_first_set(CvGraph self, CvSeqBlock first)"},
|
|
{ (char *)"CvGraph_first_get", _wrap_CvGraph_first_get, METH_VARARGS, (char *)"CvGraph_first_get(CvGraph self) -> CvSeqBlock"},
|
|
{ (char *)"CvGraph_free_elems_set", _wrap_CvGraph_free_elems_set, METH_VARARGS, (char *)"CvGraph_free_elems_set(CvGraph self, CvSetElem free_elems)"},
|
|
{ (char *)"CvGraph_free_elems_get", _wrap_CvGraph_free_elems_get, METH_VARARGS, (char *)"CvGraph_free_elems_get(CvGraph self) -> CvSetElem"},
|
|
{ (char *)"CvGraph_active_count_set", _wrap_CvGraph_active_count_set, METH_VARARGS, (char *)"CvGraph_active_count_set(CvGraph self, int active_count)"},
|
|
{ (char *)"CvGraph_active_count_get", _wrap_CvGraph_active_count_get, METH_VARARGS, (char *)"CvGraph_active_count_get(CvGraph self) -> int"},
|
|
{ (char *)"CvGraph_edges_set", _wrap_CvGraph_edges_set, METH_VARARGS, (char *)"CvGraph_edges_set(CvGraph self, CvSet edges)"},
|
|
{ (char *)"CvGraph_edges_get", _wrap_CvGraph_edges_get, METH_VARARGS, (char *)"CvGraph_edges_get(CvGraph self) -> CvSet"},
|
|
{ (char *)"new_CvGraph", _wrap_new_CvGraph, METH_VARARGS, (char *)"new_CvGraph() -> CvGraph"},
|
|
{ (char *)"delete_CvGraph", _wrap_delete_CvGraph, METH_VARARGS, (char *)"delete_CvGraph(CvGraph self)"},
|
|
{ (char *)"CvGraph_swigregister", CvGraph_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvChain_flags_set", _wrap_CvChain_flags_set, METH_VARARGS, (char *)"CvChain_flags_set(CvChain self, int flags)"},
|
|
{ (char *)"CvChain_flags_get", _wrap_CvChain_flags_get, METH_VARARGS, (char *)"CvChain_flags_get(CvChain self) -> int"},
|
|
{ (char *)"CvChain_header_size_set", _wrap_CvChain_header_size_set, METH_VARARGS, (char *)"CvChain_header_size_set(CvChain self, int header_size)"},
|
|
{ (char *)"CvChain_header_size_get", _wrap_CvChain_header_size_get, METH_VARARGS, (char *)"CvChain_header_size_get(CvChain self) -> int"},
|
|
{ (char *)"CvChain_h_prev_set", _wrap_CvChain_h_prev_set, METH_VARARGS, (char *)"CvChain_h_prev_set(CvChain self, CvSeq h_prev)"},
|
|
{ (char *)"CvChain_h_prev_get", _wrap_CvChain_h_prev_get, METH_VARARGS, (char *)"CvChain_h_prev_get(CvChain self) -> CvSeq"},
|
|
{ (char *)"CvChain_h_next_set", _wrap_CvChain_h_next_set, METH_VARARGS, (char *)"CvChain_h_next_set(CvChain self, CvSeq h_next)"},
|
|
{ (char *)"CvChain_h_next_get", _wrap_CvChain_h_next_get, METH_VARARGS, (char *)"CvChain_h_next_get(CvChain self) -> CvSeq"},
|
|
{ (char *)"CvChain_v_prev_set", _wrap_CvChain_v_prev_set, METH_VARARGS, (char *)"CvChain_v_prev_set(CvChain self, CvSeq v_prev)"},
|
|
{ (char *)"CvChain_v_prev_get", _wrap_CvChain_v_prev_get, METH_VARARGS, (char *)"CvChain_v_prev_get(CvChain self) -> CvSeq"},
|
|
{ (char *)"CvChain_v_next_set", _wrap_CvChain_v_next_set, METH_VARARGS, (char *)"CvChain_v_next_set(CvChain self, CvSeq v_next)"},
|
|
{ (char *)"CvChain_v_next_get", _wrap_CvChain_v_next_get, METH_VARARGS, (char *)"CvChain_v_next_get(CvChain self) -> CvSeq"},
|
|
{ (char *)"CvChain_total_set", _wrap_CvChain_total_set, METH_VARARGS, (char *)"CvChain_total_set(CvChain self, int total)"},
|
|
{ (char *)"CvChain_total_get", _wrap_CvChain_total_get, METH_VARARGS, (char *)"CvChain_total_get(CvChain self) -> int"},
|
|
{ (char *)"CvChain_elem_size_set", _wrap_CvChain_elem_size_set, METH_VARARGS, (char *)"CvChain_elem_size_set(CvChain self, int elem_size)"},
|
|
{ (char *)"CvChain_elem_size_get", _wrap_CvChain_elem_size_get, METH_VARARGS, (char *)"CvChain_elem_size_get(CvChain self) -> int"},
|
|
{ (char *)"CvChain_block_max_set", _wrap_CvChain_block_max_set, METH_VARARGS, (char *)"CvChain_block_max_set(CvChain self, schar block_max)"},
|
|
{ (char *)"CvChain_block_max_get", _wrap_CvChain_block_max_get, METH_VARARGS, (char *)"CvChain_block_max_get(CvChain self) -> schar"},
|
|
{ (char *)"CvChain_ptr_set", _wrap_CvChain_ptr_set, METH_VARARGS, (char *)"CvChain_ptr_set(CvChain self, schar ptr)"},
|
|
{ (char *)"CvChain_ptr_get", _wrap_CvChain_ptr_get, METH_VARARGS, (char *)"CvChain_ptr_get(CvChain self) -> schar"},
|
|
{ (char *)"CvChain_delta_elems_set", _wrap_CvChain_delta_elems_set, METH_VARARGS, (char *)"CvChain_delta_elems_set(CvChain self, int delta_elems)"},
|
|
{ (char *)"CvChain_delta_elems_get", _wrap_CvChain_delta_elems_get, METH_VARARGS, (char *)"CvChain_delta_elems_get(CvChain self) -> int"},
|
|
{ (char *)"CvChain_storage_set", _wrap_CvChain_storage_set, METH_VARARGS, (char *)"CvChain_storage_set(CvChain self, CvMemStorage storage)"},
|
|
{ (char *)"CvChain_storage_get", _wrap_CvChain_storage_get, METH_VARARGS, (char *)"CvChain_storage_get(CvChain self) -> CvMemStorage"},
|
|
{ (char *)"CvChain_free_blocks_set", _wrap_CvChain_free_blocks_set, METH_VARARGS, (char *)"CvChain_free_blocks_set(CvChain self, CvSeqBlock free_blocks)"},
|
|
{ (char *)"CvChain_free_blocks_get", _wrap_CvChain_free_blocks_get, METH_VARARGS, (char *)"CvChain_free_blocks_get(CvChain self) -> CvSeqBlock"},
|
|
{ (char *)"CvChain_first_set", _wrap_CvChain_first_set, METH_VARARGS, (char *)"CvChain_first_set(CvChain self, CvSeqBlock first)"},
|
|
{ (char *)"CvChain_first_get", _wrap_CvChain_first_get, METH_VARARGS, (char *)"CvChain_first_get(CvChain self) -> CvSeqBlock"},
|
|
{ (char *)"CvChain_origin_set", _wrap_CvChain_origin_set, METH_VARARGS, (char *)"CvChain_origin_set(CvChain self, CvPoint origin)"},
|
|
{ (char *)"CvChain_origin_get", _wrap_CvChain_origin_get, METH_VARARGS, (char *)"CvChain_origin_get(CvChain self) -> CvPoint"},
|
|
{ (char *)"new_CvChain", _wrap_new_CvChain, METH_VARARGS, (char *)"new_CvChain() -> CvChain"},
|
|
{ (char *)"delete_CvChain", _wrap_delete_CvChain, METH_VARARGS, (char *)"delete_CvChain(CvChain self)"},
|
|
{ (char *)"CvChain_swigregister", CvChain_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvContour_flags_set", _wrap_CvContour_flags_set, METH_VARARGS, (char *)"CvContour_flags_set(CvContour self, int flags)"},
|
|
{ (char *)"CvContour_flags_get", _wrap_CvContour_flags_get, METH_VARARGS, (char *)"CvContour_flags_get(CvContour self) -> int"},
|
|
{ (char *)"CvContour_header_size_set", _wrap_CvContour_header_size_set, METH_VARARGS, (char *)"CvContour_header_size_set(CvContour self, int header_size)"},
|
|
{ (char *)"CvContour_header_size_get", _wrap_CvContour_header_size_get, METH_VARARGS, (char *)"CvContour_header_size_get(CvContour self) -> int"},
|
|
{ (char *)"CvContour_h_prev_set", _wrap_CvContour_h_prev_set, METH_VARARGS, (char *)"CvContour_h_prev_set(CvContour self, CvSeq h_prev)"},
|
|
{ (char *)"CvContour_h_prev_get", _wrap_CvContour_h_prev_get, METH_VARARGS, (char *)"CvContour_h_prev_get(CvContour self) -> CvSeq"},
|
|
{ (char *)"CvContour_h_next_set", _wrap_CvContour_h_next_set, METH_VARARGS, (char *)"CvContour_h_next_set(CvContour self, CvSeq h_next)"},
|
|
{ (char *)"CvContour_h_next_get", _wrap_CvContour_h_next_get, METH_VARARGS, (char *)"CvContour_h_next_get(CvContour self) -> CvSeq"},
|
|
{ (char *)"CvContour_v_prev_set", _wrap_CvContour_v_prev_set, METH_VARARGS, (char *)"CvContour_v_prev_set(CvContour self, CvSeq v_prev)"},
|
|
{ (char *)"CvContour_v_prev_get", _wrap_CvContour_v_prev_get, METH_VARARGS, (char *)"CvContour_v_prev_get(CvContour self) -> CvSeq"},
|
|
{ (char *)"CvContour_v_next_set", _wrap_CvContour_v_next_set, METH_VARARGS, (char *)"CvContour_v_next_set(CvContour self, CvSeq v_next)"},
|
|
{ (char *)"CvContour_v_next_get", _wrap_CvContour_v_next_get, METH_VARARGS, (char *)"CvContour_v_next_get(CvContour self) -> CvSeq"},
|
|
{ (char *)"CvContour_total_set", _wrap_CvContour_total_set, METH_VARARGS, (char *)"CvContour_total_set(CvContour self, int total)"},
|
|
{ (char *)"CvContour_total_get", _wrap_CvContour_total_get, METH_VARARGS, (char *)"CvContour_total_get(CvContour self) -> int"},
|
|
{ (char *)"CvContour_elem_size_set", _wrap_CvContour_elem_size_set, METH_VARARGS, (char *)"CvContour_elem_size_set(CvContour self, int elem_size)"},
|
|
{ (char *)"CvContour_elem_size_get", _wrap_CvContour_elem_size_get, METH_VARARGS, (char *)"CvContour_elem_size_get(CvContour self) -> int"},
|
|
{ (char *)"CvContour_block_max_set", _wrap_CvContour_block_max_set, METH_VARARGS, (char *)"CvContour_block_max_set(CvContour self, schar block_max)"},
|
|
{ (char *)"CvContour_block_max_get", _wrap_CvContour_block_max_get, METH_VARARGS, (char *)"CvContour_block_max_get(CvContour self) -> schar"},
|
|
{ (char *)"CvContour_ptr_set", _wrap_CvContour_ptr_set, METH_VARARGS, (char *)"CvContour_ptr_set(CvContour self, schar ptr)"},
|
|
{ (char *)"CvContour_ptr_get", _wrap_CvContour_ptr_get, METH_VARARGS, (char *)"CvContour_ptr_get(CvContour self) -> schar"},
|
|
{ (char *)"CvContour_delta_elems_set", _wrap_CvContour_delta_elems_set, METH_VARARGS, (char *)"CvContour_delta_elems_set(CvContour self, int delta_elems)"},
|
|
{ (char *)"CvContour_delta_elems_get", _wrap_CvContour_delta_elems_get, METH_VARARGS, (char *)"CvContour_delta_elems_get(CvContour self) -> int"},
|
|
{ (char *)"CvContour_storage_set", _wrap_CvContour_storage_set, METH_VARARGS, (char *)"CvContour_storage_set(CvContour self, CvMemStorage storage)"},
|
|
{ (char *)"CvContour_storage_get", _wrap_CvContour_storage_get, METH_VARARGS, (char *)"CvContour_storage_get(CvContour self) -> CvMemStorage"},
|
|
{ (char *)"CvContour_free_blocks_set", _wrap_CvContour_free_blocks_set, METH_VARARGS, (char *)"CvContour_free_blocks_set(CvContour self, CvSeqBlock free_blocks)"},
|
|
{ (char *)"CvContour_free_blocks_get", _wrap_CvContour_free_blocks_get, METH_VARARGS, (char *)"CvContour_free_blocks_get(CvContour self) -> CvSeqBlock"},
|
|
{ (char *)"CvContour_first_set", _wrap_CvContour_first_set, METH_VARARGS, (char *)"CvContour_first_set(CvContour self, CvSeqBlock first)"},
|
|
{ (char *)"CvContour_first_get", _wrap_CvContour_first_get, METH_VARARGS, (char *)"CvContour_first_get(CvContour self) -> CvSeqBlock"},
|
|
{ (char *)"CvContour_rect_set", _wrap_CvContour_rect_set, METH_VARARGS, (char *)"CvContour_rect_set(CvContour self, CvRect rect)"},
|
|
{ (char *)"CvContour_rect_get", _wrap_CvContour_rect_get, METH_VARARGS, (char *)"CvContour_rect_get(CvContour self) -> CvRect"},
|
|
{ (char *)"CvContour_color_set", _wrap_CvContour_color_set, METH_VARARGS, (char *)"CvContour_color_set(CvContour self, int color)"},
|
|
{ (char *)"CvContour_color_get", _wrap_CvContour_color_get, METH_VARARGS, (char *)"CvContour_color_get(CvContour self) -> int"},
|
|
{ (char *)"CvContour_reserved_set", _wrap_CvContour_reserved_set, METH_VARARGS, (char *)"CvContour_reserved_set(CvContour self, int reserved)"},
|
|
{ (char *)"CvContour_reserved_get", _wrap_CvContour_reserved_get, METH_VARARGS, (char *)"CvContour_reserved_get(CvContour self) -> int"},
|
|
{ (char *)"new_CvContour", _wrap_new_CvContour, METH_VARARGS, (char *)"new_CvContour() -> CvContour"},
|
|
{ (char *)"delete_CvContour", _wrap_delete_CvContour, METH_VARARGS, (char *)"delete_CvContour(CvContour self)"},
|
|
{ (char *)"CvContour_swigregister", CvContour_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSeqWriter_header_size_set", _wrap_CvSeqWriter_header_size_set, METH_VARARGS, (char *)"CvSeqWriter_header_size_set(CvSeqWriter self, int header_size)"},
|
|
{ (char *)"CvSeqWriter_header_size_get", _wrap_CvSeqWriter_header_size_get, METH_VARARGS, (char *)"CvSeqWriter_header_size_get(CvSeqWriter self) -> int"},
|
|
{ (char *)"CvSeqWriter_seq_set", _wrap_CvSeqWriter_seq_set, METH_VARARGS, (char *)"CvSeqWriter_seq_set(CvSeqWriter self, CvSeq seq)"},
|
|
{ (char *)"CvSeqWriter_seq_get", _wrap_CvSeqWriter_seq_get, METH_VARARGS, (char *)"CvSeqWriter_seq_get(CvSeqWriter self) -> CvSeq"},
|
|
{ (char *)"CvSeqWriter_block_set", _wrap_CvSeqWriter_block_set, METH_VARARGS, (char *)"CvSeqWriter_block_set(CvSeqWriter self, CvSeqBlock block)"},
|
|
{ (char *)"CvSeqWriter_block_get", _wrap_CvSeqWriter_block_get, METH_VARARGS, (char *)"CvSeqWriter_block_get(CvSeqWriter self) -> CvSeqBlock"},
|
|
{ (char *)"CvSeqWriter_ptr_set", _wrap_CvSeqWriter_ptr_set, METH_VARARGS, (char *)"CvSeqWriter_ptr_set(CvSeqWriter self, schar ptr)"},
|
|
{ (char *)"CvSeqWriter_ptr_get", _wrap_CvSeqWriter_ptr_get, METH_VARARGS, (char *)"CvSeqWriter_ptr_get(CvSeqWriter self) -> schar"},
|
|
{ (char *)"CvSeqWriter_block_min_set", _wrap_CvSeqWriter_block_min_set, METH_VARARGS, (char *)"CvSeqWriter_block_min_set(CvSeqWriter self, schar block_min)"},
|
|
{ (char *)"CvSeqWriter_block_min_get", _wrap_CvSeqWriter_block_min_get, METH_VARARGS, (char *)"CvSeqWriter_block_min_get(CvSeqWriter self) -> schar"},
|
|
{ (char *)"CvSeqWriter_block_max_set", _wrap_CvSeqWriter_block_max_set, METH_VARARGS, (char *)"CvSeqWriter_block_max_set(CvSeqWriter self, schar block_max)"},
|
|
{ (char *)"CvSeqWriter_block_max_get", _wrap_CvSeqWriter_block_max_get, METH_VARARGS, (char *)"CvSeqWriter_block_max_get(CvSeqWriter self) -> schar"},
|
|
{ (char *)"new_CvSeqWriter", _wrap_new_CvSeqWriter, METH_VARARGS, (char *)"new_CvSeqWriter() -> CvSeqWriter"},
|
|
{ (char *)"delete_CvSeqWriter", _wrap_delete_CvSeqWriter, METH_VARARGS, (char *)"delete_CvSeqWriter(CvSeqWriter self)"},
|
|
{ (char *)"CvSeqWriter_swigregister", CvSeqWriter_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSeqReader_header_size_set", _wrap_CvSeqReader_header_size_set, METH_VARARGS, (char *)"CvSeqReader_header_size_set(CvSeqReader self, int header_size)"},
|
|
{ (char *)"CvSeqReader_header_size_get", _wrap_CvSeqReader_header_size_get, METH_VARARGS, (char *)"CvSeqReader_header_size_get(CvSeqReader self) -> int"},
|
|
{ (char *)"CvSeqReader_seq_set", _wrap_CvSeqReader_seq_set, METH_VARARGS, (char *)"CvSeqReader_seq_set(CvSeqReader self, CvSeq seq)"},
|
|
{ (char *)"CvSeqReader_seq_get", _wrap_CvSeqReader_seq_get, METH_VARARGS, (char *)"CvSeqReader_seq_get(CvSeqReader self) -> CvSeq"},
|
|
{ (char *)"CvSeqReader_block_set", _wrap_CvSeqReader_block_set, METH_VARARGS, (char *)"CvSeqReader_block_set(CvSeqReader self, CvSeqBlock block)"},
|
|
{ (char *)"CvSeqReader_block_get", _wrap_CvSeqReader_block_get, METH_VARARGS, (char *)"CvSeqReader_block_get(CvSeqReader self) -> CvSeqBlock"},
|
|
{ (char *)"CvSeqReader_ptr_set", _wrap_CvSeqReader_ptr_set, METH_VARARGS, (char *)"CvSeqReader_ptr_set(CvSeqReader self, schar ptr)"},
|
|
{ (char *)"CvSeqReader_ptr_get", _wrap_CvSeqReader_ptr_get, METH_VARARGS, (char *)"CvSeqReader_ptr_get(CvSeqReader self) -> schar"},
|
|
{ (char *)"CvSeqReader_block_min_set", _wrap_CvSeqReader_block_min_set, METH_VARARGS, (char *)"CvSeqReader_block_min_set(CvSeqReader self, schar block_min)"},
|
|
{ (char *)"CvSeqReader_block_min_get", _wrap_CvSeqReader_block_min_get, METH_VARARGS, (char *)"CvSeqReader_block_min_get(CvSeqReader self) -> schar"},
|
|
{ (char *)"CvSeqReader_block_max_set", _wrap_CvSeqReader_block_max_set, METH_VARARGS, (char *)"CvSeqReader_block_max_set(CvSeqReader self, schar block_max)"},
|
|
{ (char *)"CvSeqReader_block_max_get", _wrap_CvSeqReader_block_max_get, METH_VARARGS, (char *)"CvSeqReader_block_max_get(CvSeqReader self) -> schar"},
|
|
{ (char *)"CvSeqReader_delta_index_set", _wrap_CvSeqReader_delta_index_set, METH_VARARGS, (char *)"CvSeqReader_delta_index_set(CvSeqReader self, int delta_index)"},
|
|
{ (char *)"CvSeqReader_delta_index_get", _wrap_CvSeqReader_delta_index_get, METH_VARARGS, (char *)"CvSeqReader_delta_index_get(CvSeqReader self) -> int"},
|
|
{ (char *)"CvSeqReader_prev_elem_set", _wrap_CvSeqReader_prev_elem_set, METH_VARARGS, (char *)"CvSeqReader_prev_elem_set(CvSeqReader self, schar prev_elem)"},
|
|
{ (char *)"CvSeqReader_prev_elem_get", _wrap_CvSeqReader_prev_elem_get, METH_VARARGS, (char *)"CvSeqReader_prev_elem_get(CvSeqReader self) -> schar"},
|
|
{ (char *)"new_CvSeqReader", _wrap_new_CvSeqReader, METH_VARARGS, (char *)"new_CvSeqReader() -> CvSeqReader"},
|
|
{ (char *)"delete_CvSeqReader", _wrap_delete_CvSeqReader, METH_VARARGS, (char *)"delete_CvSeqReader(CvSeqReader self)"},
|
|
{ (char *)"CvSeqReader_swigregister", CvSeqReader_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvAttrList_attr_set", _wrap_CvAttrList_attr_set, METH_VARARGS, (char *)"CvAttrList_attr_set(CvAttrList self, char attr)"},
|
|
{ (char *)"CvAttrList_attr_get", _wrap_CvAttrList_attr_get, METH_VARARGS, (char *)"CvAttrList_attr_get(CvAttrList self) -> char"},
|
|
{ (char *)"CvAttrList_next_set", _wrap_CvAttrList_next_set, METH_VARARGS, (char *)"CvAttrList_next_set(CvAttrList self, CvAttrList next)"},
|
|
{ (char *)"CvAttrList_next_get", _wrap_CvAttrList_next_get, METH_VARARGS, (char *)"CvAttrList_next_get(CvAttrList self) -> CvAttrList"},
|
|
{ (char *)"new_CvAttrList", _wrap_new_CvAttrList, METH_VARARGS, (char *)"new_CvAttrList() -> CvAttrList"},
|
|
{ (char *)"delete_CvAttrList", _wrap_delete_CvAttrList, METH_VARARGS, (char *)"delete_CvAttrList(CvAttrList self)"},
|
|
{ (char *)"CvAttrList_swigregister", CvAttrList_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvAttrList", _wrap_cvAttrList, METH_VARARGS, (char *)"\n"
|
|
"cvAttrList(char attr = None, CvAttrList next = None) -> CvAttrList\n"
|
|
"cvAttrList(char attr = None) -> CvAttrList\n"
|
|
"cvAttrList() -> CvAttrList\n"
|
|
""},
|
|
{ (char *)"CvString_len_set", _wrap_CvString_len_set, METH_VARARGS, (char *)"CvString_len_set(CvString self, int len)"},
|
|
{ (char *)"CvString_len_get", _wrap_CvString_len_get, METH_VARARGS, (char *)"CvString_len_get(CvString self) -> int"},
|
|
{ (char *)"CvString_ptr_set", _wrap_CvString_ptr_set, METH_VARARGS, (char *)"CvString_ptr_set(CvString self, char ptr)"},
|
|
{ (char *)"CvString_ptr_get", _wrap_CvString_ptr_get, METH_VARARGS, (char *)"CvString_ptr_get(CvString self) -> char"},
|
|
{ (char *)"new_CvString", _wrap_new_CvString, METH_VARARGS, (char *)"new_CvString() -> CvString"},
|
|
{ (char *)"delete_CvString", _wrap_delete_CvString, METH_VARARGS, (char *)"delete_CvString(CvString self)"},
|
|
{ (char *)"CvString_swigregister", CvString_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvStringHashNode_hashval_set", _wrap_CvStringHashNode_hashval_set, METH_VARARGS, (char *)"CvStringHashNode_hashval_set(CvStringHashNode self, unsigned int hashval)"},
|
|
{ (char *)"CvStringHashNode_hashval_get", _wrap_CvStringHashNode_hashval_get, METH_VARARGS, (char *)"CvStringHashNode_hashval_get(CvStringHashNode self) -> unsigned int"},
|
|
{ (char *)"CvStringHashNode_str_set", _wrap_CvStringHashNode_str_set, METH_VARARGS, (char *)"CvStringHashNode_str_set(CvStringHashNode self, CvString str)"},
|
|
{ (char *)"CvStringHashNode_str_get", _wrap_CvStringHashNode_str_get, METH_VARARGS, (char *)"CvStringHashNode_str_get(CvStringHashNode self) -> CvString"},
|
|
{ (char *)"CvStringHashNode_next_set", _wrap_CvStringHashNode_next_set, METH_VARARGS, (char *)"CvStringHashNode_next_set(CvStringHashNode self, CvStringHashNode next)"},
|
|
{ (char *)"CvStringHashNode_next_get", _wrap_CvStringHashNode_next_get, METH_VARARGS, (char *)"CvStringHashNode_next_get(CvStringHashNode self) -> CvStringHashNode"},
|
|
{ (char *)"new_CvStringHashNode", _wrap_new_CvStringHashNode, METH_VARARGS, (char *)"new_CvStringHashNode() -> CvStringHashNode"},
|
|
{ (char *)"delete_CvStringHashNode", _wrap_delete_CvStringHashNode, METH_VARARGS, (char *)"delete_CvStringHashNode(CvStringHashNode self)"},
|
|
{ (char *)"CvStringHashNode_swigregister", CvStringHashNode_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvFileNode_tag_set", _wrap_CvFileNode_tag_set, METH_VARARGS, (char *)"CvFileNode_tag_set(CvFileNode self, int tag)"},
|
|
{ (char *)"CvFileNode_tag_get", _wrap_CvFileNode_tag_get, METH_VARARGS, (char *)"CvFileNode_tag_get(CvFileNode self) -> int"},
|
|
{ (char *)"CvFileNode_info_set", _wrap_CvFileNode_info_set, METH_VARARGS, (char *)"CvFileNode_info_set(CvFileNode self, CvTypeInfo info)"},
|
|
{ (char *)"CvFileNode_info_get", _wrap_CvFileNode_info_get, METH_VARARGS, (char *)"CvFileNode_info_get(CvFileNode self) -> CvTypeInfo"},
|
|
{ (char *)"CvFileNode_data_get", _wrap_CvFileNode_data_get, METH_VARARGS, (char *)"CvFileNode_data_get(CvFileNode self) -> CvFileNode_data"},
|
|
{ (char *)"new_CvFileNode", _wrap_new_CvFileNode, METH_VARARGS, (char *)"new_CvFileNode() -> CvFileNode"},
|
|
{ (char *)"delete_CvFileNode", _wrap_delete_CvFileNode, METH_VARARGS, (char *)"delete_CvFileNode(CvFileNode self)"},
|
|
{ (char *)"CvFileNode_swigregister", CvFileNode_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvFileNode_data_f_set", _wrap_CvFileNode_data_f_set, METH_VARARGS, (char *)"CvFileNode_data_f_set(CvFileNode_data self, double f)"},
|
|
{ (char *)"CvFileNode_data_f_get", _wrap_CvFileNode_data_f_get, METH_VARARGS, (char *)"CvFileNode_data_f_get(CvFileNode_data self) -> double"},
|
|
{ (char *)"CvFileNode_data_i_set", _wrap_CvFileNode_data_i_set, METH_VARARGS, (char *)"CvFileNode_data_i_set(CvFileNode_data self, int i)"},
|
|
{ (char *)"CvFileNode_data_i_get", _wrap_CvFileNode_data_i_get, METH_VARARGS, (char *)"CvFileNode_data_i_get(CvFileNode_data self) -> int"},
|
|
{ (char *)"CvFileNode_data_str_set", _wrap_CvFileNode_data_str_set, METH_VARARGS, (char *)"CvFileNode_data_str_set(CvFileNode_data self, CvString str)"},
|
|
{ (char *)"CvFileNode_data_str_get", _wrap_CvFileNode_data_str_get, METH_VARARGS, (char *)"CvFileNode_data_str_get(CvFileNode_data self) -> CvString"},
|
|
{ (char *)"CvFileNode_data_seq_set", _wrap_CvFileNode_data_seq_set, METH_VARARGS, (char *)"CvFileNode_data_seq_set(CvFileNode_data self, CvSeq seq)"},
|
|
{ (char *)"CvFileNode_data_seq_get", _wrap_CvFileNode_data_seq_get, METH_VARARGS, (char *)"CvFileNode_data_seq_get(CvFileNode_data self) -> CvSeq"},
|
|
{ (char *)"CvFileNode_data_map_set", _wrap_CvFileNode_data_map_set, METH_VARARGS, (char *)"CvFileNode_data_map_set(CvFileNode_data self, CvFileNodeHash map)"},
|
|
{ (char *)"CvFileNode_data_map_get", _wrap_CvFileNode_data_map_get, METH_VARARGS, (char *)"CvFileNode_data_map_get(CvFileNode_data self) -> CvFileNodeHash"},
|
|
{ (char *)"new_CvFileNode_data", _wrap_new_CvFileNode_data, METH_VARARGS, (char *)"new_CvFileNode_data() -> CvFileNode_data"},
|
|
{ (char *)"delete_CvFileNode_data", _wrap_delete_CvFileNode_data, METH_VARARGS, (char *)"delete_CvFileNode_data(CvFileNode_data self)"},
|
|
{ (char *)"CvFileNode_data_swigregister", CvFileNode_data_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvTypeInfo_flags_set", _wrap_CvTypeInfo_flags_set, METH_VARARGS, (char *)"CvTypeInfo_flags_set(CvTypeInfo self, int flags)"},
|
|
{ (char *)"CvTypeInfo_flags_get", _wrap_CvTypeInfo_flags_get, METH_VARARGS, (char *)"CvTypeInfo_flags_get(CvTypeInfo self) -> int"},
|
|
{ (char *)"CvTypeInfo_header_size_set", _wrap_CvTypeInfo_header_size_set, METH_VARARGS, (char *)"CvTypeInfo_header_size_set(CvTypeInfo self, int header_size)"},
|
|
{ (char *)"CvTypeInfo_header_size_get", _wrap_CvTypeInfo_header_size_get, METH_VARARGS, (char *)"CvTypeInfo_header_size_get(CvTypeInfo self) -> int"},
|
|
{ (char *)"CvTypeInfo_prev_set", _wrap_CvTypeInfo_prev_set, METH_VARARGS, (char *)"CvTypeInfo_prev_set(CvTypeInfo self, CvTypeInfo prev)"},
|
|
{ (char *)"CvTypeInfo_prev_get", _wrap_CvTypeInfo_prev_get, METH_VARARGS, (char *)"CvTypeInfo_prev_get(CvTypeInfo self) -> CvTypeInfo"},
|
|
{ (char *)"CvTypeInfo_next_set", _wrap_CvTypeInfo_next_set, METH_VARARGS, (char *)"CvTypeInfo_next_set(CvTypeInfo self, CvTypeInfo next)"},
|
|
{ (char *)"CvTypeInfo_next_get", _wrap_CvTypeInfo_next_get, METH_VARARGS, (char *)"CvTypeInfo_next_get(CvTypeInfo self) -> CvTypeInfo"},
|
|
{ (char *)"CvTypeInfo_type_name_set", _wrap_CvTypeInfo_type_name_set, METH_VARARGS, (char *)"CvTypeInfo_type_name_set(CvTypeInfo self, char type_name)"},
|
|
{ (char *)"CvTypeInfo_type_name_get", _wrap_CvTypeInfo_type_name_get, METH_VARARGS, (char *)"CvTypeInfo_type_name_get(CvTypeInfo self) -> char"},
|
|
{ (char *)"CvTypeInfo_is_instance_set", _wrap_CvTypeInfo_is_instance_set, METH_VARARGS, (char *)"CvTypeInfo_is_instance_set(CvTypeInfo self, CvIsInstanceFunc is_instance)"},
|
|
{ (char *)"CvTypeInfo_is_instance_get", _wrap_CvTypeInfo_is_instance_get, METH_VARARGS, (char *)"CvTypeInfo_is_instance_get(CvTypeInfo self) -> CvIsInstanceFunc"},
|
|
{ (char *)"CvTypeInfo_release_set", _wrap_CvTypeInfo_release_set, METH_VARARGS, (char *)"CvTypeInfo_release_set(CvTypeInfo self, CvReleaseFunc release)"},
|
|
{ (char *)"CvTypeInfo_release_get", _wrap_CvTypeInfo_release_get, METH_VARARGS, (char *)"CvTypeInfo_release_get(CvTypeInfo self) -> CvReleaseFunc"},
|
|
{ (char *)"CvTypeInfo_read_set", _wrap_CvTypeInfo_read_set, METH_VARARGS, (char *)"CvTypeInfo_read_set(CvTypeInfo self, CvReadFunc read)"},
|
|
{ (char *)"CvTypeInfo_read_get", _wrap_CvTypeInfo_read_get, METH_VARARGS, (char *)"CvTypeInfo_read_get(CvTypeInfo self) -> CvReadFunc"},
|
|
{ (char *)"CvTypeInfo_write_set", _wrap_CvTypeInfo_write_set, METH_VARARGS, (char *)"CvTypeInfo_write_set(CvTypeInfo self, CvWriteFunc write)"},
|
|
{ (char *)"CvTypeInfo_write_get", _wrap_CvTypeInfo_write_get, METH_VARARGS, (char *)"CvTypeInfo_write_get(CvTypeInfo self) -> CvWriteFunc"},
|
|
{ (char *)"CvTypeInfo_clone_set", _wrap_CvTypeInfo_clone_set, METH_VARARGS, (char *)"CvTypeInfo_clone_set(CvTypeInfo self, CvCloneFunc clone)"},
|
|
{ (char *)"CvTypeInfo_clone_get", _wrap_CvTypeInfo_clone_get, METH_VARARGS, (char *)"CvTypeInfo_clone_get(CvTypeInfo self) -> CvCloneFunc"},
|
|
{ (char *)"new_CvTypeInfo", _wrap_new_CvTypeInfo, METH_VARARGS, (char *)"new_CvTypeInfo() -> CvTypeInfo"},
|
|
{ (char *)"delete_CvTypeInfo", _wrap_delete_CvTypeInfo, METH_VARARGS, (char *)"delete_CvTypeInfo(CvTypeInfo self)"},
|
|
{ (char *)"CvTypeInfo_swigregister", CvTypeInfo_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvPluginFuncInfo_func_addr_set", _wrap_CvPluginFuncInfo_func_addr_set, METH_VARARGS, (char *)"CvPluginFuncInfo_func_addr_set(CvPluginFuncInfo self, void func_addr)"},
|
|
{ (char *)"CvPluginFuncInfo_func_addr_get", _wrap_CvPluginFuncInfo_func_addr_get, METH_VARARGS, (char *)"CvPluginFuncInfo_func_addr_get(CvPluginFuncInfo self) -> void"},
|
|
{ (char *)"CvPluginFuncInfo_default_func_addr_set", _wrap_CvPluginFuncInfo_default_func_addr_set, METH_VARARGS, (char *)"CvPluginFuncInfo_default_func_addr_set(CvPluginFuncInfo self, void default_func_addr)"},
|
|
{ (char *)"CvPluginFuncInfo_default_func_addr_get", _wrap_CvPluginFuncInfo_default_func_addr_get, METH_VARARGS, (char *)"CvPluginFuncInfo_default_func_addr_get(CvPluginFuncInfo self) -> void"},
|
|
{ (char *)"CvPluginFuncInfo_func_names_set", _wrap_CvPluginFuncInfo_func_names_set, METH_VARARGS, (char *)"CvPluginFuncInfo_func_names_set(CvPluginFuncInfo self, char func_names)"},
|
|
{ (char *)"CvPluginFuncInfo_func_names_get", _wrap_CvPluginFuncInfo_func_names_get, METH_VARARGS, (char *)"CvPluginFuncInfo_func_names_get(CvPluginFuncInfo self) -> char"},
|
|
{ (char *)"CvPluginFuncInfo_search_modules_set", _wrap_CvPluginFuncInfo_search_modules_set, METH_VARARGS, (char *)"CvPluginFuncInfo_search_modules_set(CvPluginFuncInfo self, int search_modules)"},
|
|
{ (char *)"CvPluginFuncInfo_search_modules_get", _wrap_CvPluginFuncInfo_search_modules_get, METH_VARARGS, (char *)"CvPluginFuncInfo_search_modules_get(CvPluginFuncInfo self) -> int"},
|
|
{ (char *)"CvPluginFuncInfo_loaded_from_set", _wrap_CvPluginFuncInfo_loaded_from_set, METH_VARARGS, (char *)"CvPluginFuncInfo_loaded_from_set(CvPluginFuncInfo self, int loaded_from)"},
|
|
{ (char *)"CvPluginFuncInfo_loaded_from_get", _wrap_CvPluginFuncInfo_loaded_from_get, METH_VARARGS, (char *)"CvPluginFuncInfo_loaded_from_get(CvPluginFuncInfo self) -> int"},
|
|
{ (char *)"new_CvPluginFuncInfo", _wrap_new_CvPluginFuncInfo, METH_VARARGS, (char *)"new_CvPluginFuncInfo() -> CvPluginFuncInfo"},
|
|
{ (char *)"delete_CvPluginFuncInfo", _wrap_delete_CvPluginFuncInfo, METH_VARARGS, (char *)"delete_CvPluginFuncInfo(CvPluginFuncInfo self)"},
|
|
{ (char *)"CvPluginFuncInfo_swigregister", CvPluginFuncInfo_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvModuleInfo_next_set", _wrap_CvModuleInfo_next_set, METH_VARARGS, (char *)"CvModuleInfo_next_set(CvModuleInfo self, CvModuleInfo next)"},
|
|
{ (char *)"CvModuleInfo_next_get", _wrap_CvModuleInfo_next_get, METH_VARARGS, (char *)"CvModuleInfo_next_get(CvModuleInfo self) -> CvModuleInfo"},
|
|
{ (char *)"CvModuleInfo_name_set", _wrap_CvModuleInfo_name_set, METH_VARARGS, (char *)"CvModuleInfo_name_set(CvModuleInfo self, char name)"},
|
|
{ (char *)"CvModuleInfo_name_get", _wrap_CvModuleInfo_name_get, METH_VARARGS, (char *)"CvModuleInfo_name_get(CvModuleInfo self) -> char"},
|
|
{ (char *)"CvModuleInfo_version_set", _wrap_CvModuleInfo_version_set, METH_VARARGS, (char *)"CvModuleInfo_version_set(CvModuleInfo self, char version)"},
|
|
{ (char *)"CvModuleInfo_version_get", _wrap_CvModuleInfo_version_get, METH_VARARGS, (char *)"CvModuleInfo_version_get(CvModuleInfo self) -> char"},
|
|
{ (char *)"CvModuleInfo_func_tab_set", _wrap_CvModuleInfo_func_tab_set, METH_VARARGS, (char *)"CvModuleInfo_func_tab_set(CvModuleInfo self, CvPluginFuncInfo func_tab)"},
|
|
{ (char *)"CvModuleInfo_func_tab_get", _wrap_CvModuleInfo_func_tab_get, METH_VARARGS, (char *)"CvModuleInfo_func_tab_get(CvModuleInfo self) -> CvPluginFuncInfo"},
|
|
{ (char *)"new_CvModuleInfo", _wrap_new_CvModuleInfo, METH_VARARGS, (char *)"new_CvModuleInfo() -> CvModuleInfo"},
|
|
{ (char *)"delete_CvModuleInfo", _wrap_delete_CvModuleInfo, METH_VARARGS, (char *)"delete_CvModuleInfo(CvModuleInfo self)"},
|
|
{ (char *)"CvModuleInfo_swigregister", CvModuleInfo_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvAlloc", _wrap_cvAlloc, METH_VARARGS, (char *)"cvAlloc(size_t size) -> void"},
|
|
{ (char *)"cvFree_", _wrap_cvFree_, METH_VARARGS, (char *)"cvFree_(void ptr)"},
|
|
{ (char *)"cvResetImageROI", _wrap_cvResetImageROI, METH_VARARGS, (char *)"cvResetImageROI( image)"},
|
|
{ (char *)"cvCreateMatHeader", _wrap_cvCreateMatHeader, METH_VARARGS, (char *)"cvCreateMatHeader(int rows, int cols, int type) -> CvMat"},
|
|
{ (char *)"cvInitMatHeader", _wrap_cvInitMatHeader, METH_VARARGS, (char *)"\n"
|
|
"cvInitMatHeader(CvMat mat, int rows, int cols, int type, void data = None, \n"
|
|
" int step = 0x7fffffff) -> CvMat\n"
|
|
""},
|
|
{ (char *)"cvCreateMat", _wrap_cvCreateMat, METH_VARARGS, (char *)"cvCreateMat(int rows, int cols, int type) -> CvMat"},
|
|
{ (char *)"cvDecRefData", _wrap_cvDecRefData, METH_VARARGS, (char *)"cvDecRefData(CvArr arr)"},
|
|
{ (char *)"cvIncRefData", _wrap_cvIncRefData, METH_VARARGS, (char *)"cvIncRefData(CvArr arr) -> int"},
|
|
{ (char *)"cvCloneMat", _wrap_cvCloneMat, METH_VARARGS, (char *)"cvCloneMat(CvMat mat) -> CvMat"},
|
|
{ (char *)"cvGetSubRect", _wrap_cvGetSubRect, METH_VARARGS, (char *)"cvGetSubRect(CvArr arr, CvRect rect) -> CvMat"},
|
|
{ (char *)"cvGetRows", _wrap_cvGetRows, METH_VARARGS, (char *)"cvGetRows(CvArr arr, int start_row, int end_row, int delta_row = 1) -> CvMat"},
|
|
{ (char *)"cvGetRow", _wrap_cvGetRow, METH_VARARGS, (char *)"cvGetRow(CvArr arr, int row) -> CvMat"},
|
|
{ (char *)"cvGetCols", _wrap_cvGetCols, METH_VARARGS, (char *)"cvGetCols(CvArr arr, int start_col, int end_col) -> CvMat"},
|
|
{ (char *)"cvGetCol", _wrap_cvGetCol, METH_VARARGS, (char *)"cvGetCol(CvArr arr, int col) -> CvMat"},
|
|
{ (char *)"cvGetDiag", _wrap_cvGetDiag, METH_VARARGS, (char *)"cvGetDiag(CvArr arr, int diag = 0) -> CvMat"},
|
|
{ (char *)"cvScalarToRawData", _wrap_cvScalarToRawData, METH_VARARGS, (char *)"cvScalarToRawData(CvScalar scalar, void data, int type, int extend_to_12 = 0)"},
|
|
{ (char *)"cvRawDataToScalar", _wrap_cvRawDataToScalar, METH_VARARGS, (char *)"cvRawDataToScalar(void data, int type, CvScalar scalar)"},
|
|
{ (char *)"cvCreateMatNDHeader", _wrap_cvCreateMatNDHeader, METH_VARARGS, (char *)"cvCreateMatNDHeader(int dims, int type) -> CvMatND"},
|
|
{ (char *)"cvCreateMatND", _wrap_cvCreateMatND, METH_VARARGS, (char *)"cvCreateMatND(int dims, int type) -> CvMatND"},
|
|
{ (char *)"cvInitMatNDHeader", _wrap_cvInitMatNDHeader, METH_VARARGS, (char *)"cvInitMatNDHeader(CvMatND mat, int dims, int type, void data = None) -> CvMatND"},
|
|
{ (char *)"cvCloneMatND", _wrap_cvCloneMatND, METH_VARARGS, (char *)"cvCloneMatND(CvMatND mat) -> CvMatND"},
|
|
{ (char *)"cvCreateSparseMat", _wrap_cvCreateSparseMat, METH_VARARGS, (char *)"cvCreateSparseMat(int dims, int type) -> CvSparseMat"},
|
|
{ (char *)"cvCloneSparseMat", _wrap_cvCloneSparseMat, METH_VARARGS, (char *)"cvCloneSparseMat(CvSparseMat mat) -> CvSparseMat"},
|
|
{ (char *)"cvInitSparseMatIterator", _wrap_cvInitSparseMatIterator, METH_VARARGS, (char *)"cvInitSparseMatIterator(CvSparseMat mat, CvSparseMatIterator mat_iterator) -> CvSparseNode"},
|
|
{ (char *)"cvGetNextSparseNode", _wrap_cvGetNextSparseNode, METH_VARARGS, (char *)"cvGetNextSparseNode(CvSparseMatIterator mat_iterator) -> CvSparseNode"},
|
|
{ (char *)"CvNArrayIterator_count_set", _wrap_CvNArrayIterator_count_set, METH_VARARGS, (char *)"CvNArrayIterator_count_set(CvNArrayIterator self, int count)"},
|
|
{ (char *)"CvNArrayIterator_count_get", _wrap_CvNArrayIterator_count_get, METH_VARARGS, (char *)"CvNArrayIterator_count_get(CvNArrayIterator self) -> int"},
|
|
{ (char *)"CvNArrayIterator_dims_set", _wrap_CvNArrayIterator_dims_set, METH_VARARGS, (char *)"CvNArrayIterator_dims_set(CvNArrayIterator self, int dims)"},
|
|
{ (char *)"CvNArrayIterator_dims_get", _wrap_CvNArrayIterator_dims_get, METH_VARARGS, (char *)"CvNArrayIterator_dims_get(CvNArrayIterator self) -> int"},
|
|
{ (char *)"CvNArrayIterator_size_set", _wrap_CvNArrayIterator_size_set, METH_VARARGS, (char *)"CvNArrayIterator_size_set(CvNArrayIterator self, CvSize size)"},
|
|
{ (char *)"CvNArrayIterator_size_get", _wrap_CvNArrayIterator_size_get, METH_VARARGS, (char *)"CvNArrayIterator_size_get(CvNArrayIterator self) -> CvSize"},
|
|
{ (char *)"CvNArrayIterator_ptr_set", _wrap_CvNArrayIterator_ptr_set, METH_VARARGS, (char *)"CvNArrayIterator_ptr_set(CvNArrayIterator self, uchar ptr)"},
|
|
{ (char *)"CvNArrayIterator_ptr_get", _wrap_CvNArrayIterator_ptr_get, METH_VARARGS, (char *)"CvNArrayIterator_ptr_get(CvNArrayIterator self) -> uchar"},
|
|
{ (char *)"CvNArrayIterator_stack_set", _wrap_CvNArrayIterator_stack_set, METH_VARARGS, (char *)"CvNArrayIterator_stack_set(CvNArrayIterator self, int stack)"},
|
|
{ (char *)"CvNArrayIterator_stack_get", _wrap_CvNArrayIterator_stack_get, METH_VARARGS, (char *)"CvNArrayIterator_stack_get(CvNArrayIterator self) -> int"},
|
|
{ (char *)"CvNArrayIterator_hdr_set", _wrap_CvNArrayIterator_hdr_set, METH_VARARGS, (char *)"CvNArrayIterator_hdr_set(CvNArrayIterator self, CvMatND hdr)"},
|
|
{ (char *)"CvNArrayIterator_hdr_get", _wrap_CvNArrayIterator_hdr_get, METH_VARARGS, (char *)"CvNArrayIterator_hdr_get(CvNArrayIterator self) -> CvMatND"},
|
|
{ (char *)"new_CvNArrayIterator", _wrap_new_CvNArrayIterator, METH_VARARGS, (char *)"new_CvNArrayIterator() -> CvNArrayIterator"},
|
|
{ (char *)"delete_CvNArrayIterator", _wrap_delete_CvNArrayIterator, METH_VARARGS, (char *)"delete_CvNArrayIterator(CvNArrayIterator self)"},
|
|
{ (char *)"CvNArrayIterator_swigregister", CvNArrayIterator_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvInitNArrayIterator", _wrap_cvInitNArrayIterator, METH_VARARGS, (char *)"\n"
|
|
"cvInitNArrayIterator(int count, CvArr arrs, CvArr mask, CvMatND stubs, CvNArrayIterator array_iterator, \n"
|
|
" int flags = 0) -> int\n"
|
|
""},
|
|
{ (char *)"cvNextNArraySlice", _wrap_cvNextNArraySlice, METH_VARARGS, (char *)"cvNextNArraySlice(CvNArrayIterator array_iterator) -> int"},
|
|
{ (char *)"cvGetElemType", _wrap_cvGetElemType, METH_VARARGS, (char *)"cvGetElemType(CvArr arr) -> int"},
|
|
{ (char *)"cvGetDims", _wrap_cvGetDims, METH_VARARGS, (char *)"cvGetDims(CvArr arr) -> int"},
|
|
{ (char *)"cvGetDimSize", _wrap_cvGetDimSize, METH_VARARGS, (char *)"cvGetDimSize(CvArr arr, int index) -> int"},
|
|
{ (char *)"cvPtr1D", _wrap_cvPtr1D, METH_VARARGS, (char *)"cvPtr1D(CvArr arr, int idx0, int type = None) -> uchar"},
|
|
{ (char *)"cvPtr2D", _wrap_cvPtr2D, METH_VARARGS, (char *)"cvPtr2D(CvArr arr, int idx0, int idx1, int type = None) -> uchar"},
|
|
{ (char *)"cvPtr3D", _wrap_cvPtr3D, METH_VARARGS, (char *)"cvPtr3D(CvArr arr, int idx0, int idx1, int idx2, int type = None) -> uchar"},
|
|
{ (char *)"cvPtrND", _wrap_cvPtrND, METH_VARARGS, (char *)"\n"
|
|
"cvPtrND(CvArr arr, int idx, int type = None, int create_node = 1, \n"
|
|
" unsigned int precalc_hashval = None) -> uchar\n"
|
|
""},
|
|
{ (char *)"cvGet1D", _wrap_cvGet1D, METH_VARARGS, (char *)"cvGet1D(CvArr arr, int idx0) -> CvScalar"},
|
|
{ (char *)"cvGet2D", _wrap_cvGet2D, METH_VARARGS, (char *)"cvGet2D(CvArr arr, int idx0, int idx1) -> CvScalar"},
|
|
{ (char *)"cvGet3D", _wrap_cvGet3D, METH_VARARGS, (char *)"cvGet3D(CvArr arr, int idx0, int idx1, int idx2) -> CvScalar"},
|
|
{ (char *)"cvGetND", _wrap_cvGetND, METH_VARARGS, (char *)"cvGetND(CvArr arr, int idx) -> CvScalar"},
|
|
{ (char *)"cvGetReal1D", _wrap_cvGetReal1D, METH_VARARGS, (char *)"cvGetReal1D(CvArr arr, int idx0) -> double"},
|
|
{ (char *)"cvGetReal2D", _wrap_cvGetReal2D, METH_VARARGS, (char *)"cvGetReal2D(CvArr arr, int idx0, int idx1) -> double"},
|
|
{ (char *)"cvGetReal3D", _wrap_cvGetReal3D, METH_VARARGS, (char *)"cvGetReal3D(CvArr arr, int idx0, int idx1, int idx2) -> double"},
|
|
{ (char *)"cvGetRealND", _wrap_cvGetRealND, METH_VARARGS, (char *)"cvGetRealND(CvArr arr, int idx) -> double"},
|
|
{ (char *)"cvSet1D", _wrap_cvSet1D, METH_VARARGS, (char *)"cvSet1D(CvArr arr, int idx0, CvScalar value)"},
|
|
{ (char *)"cvSet2D", _wrap_cvSet2D, METH_VARARGS, (char *)"cvSet2D(CvArr arr, int idx0, int idx1, CvScalar value)"},
|
|
{ (char *)"cvSet3D", _wrap_cvSet3D, METH_VARARGS, (char *)"cvSet3D(CvArr arr, int idx0, int idx1, int idx2, CvScalar value)"},
|
|
{ (char *)"cvSetND", _wrap_cvSetND, METH_VARARGS, (char *)"cvSetND(CvArr arr, int idx, CvScalar value)"},
|
|
{ (char *)"cvSetReal1D", _wrap_cvSetReal1D, METH_VARARGS, (char *)"cvSetReal1D(CvArr arr, int idx0, double value)"},
|
|
{ (char *)"cvSetReal2D", _wrap_cvSetReal2D, METH_VARARGS, (char *)"cvSetReal2D(CvArr arr, int idx0, int idx1, double value)"},
|
|
{ (char *)"cvSetReal3D", _wrap_cvSetReal3D, METH_VARARGS, (char *)"cvSetReal3D(CvArr arr, int idx0, int idx1, int idx2, double value)"},
|
|
{ (char *)"cvSetRealND", _wrap_cvSetRealND, METH_VARARGS, (char *)"cvSetRealND(CvArr arr, int idx, double value)"},
|
|
{ (char *)"cvClearND", _wrap_cvClearND, METH_VARARGS, (char *)"cvClearND(CvArr arr, int idx)"},
|
|
{ (char *)"cvGetMat", _wrap_cvGetMat, METH_VARARGS, (char *)"cvGetMat(CvArr arr, int coi = None, int allowND = 0) -> CvMat"},
|
|
{ (char *)"cvReshapeMatND", _wrap_cvReshapeMatND, METH_VARARGS, (char *)"\n"
|
|
"cvReshapeMatND(CvArr arr, int sizeof_header, CvArr header, int new_cn, \n"
|
|
" int new_dims, int new_sizes) -> CvArr\n"
|
|
""},
|
|
{ (char *)"cvReshape", _wrap_cvReshape, METH_VARARGS, (char *)"cvReshape(CvArr arr, int new_cn, int new_rows = 0) -> CvMat"},
|
|
{ (char *)"cvRepeat", _wrap_cvRepeat, METH_VARARGS, (char *)"cvRepeat(CvArr src, CvArr dst)"},
|
|
{ (char *)"cvCreateData", _wrap_cvCreateData, METH_VARARGS, (char *)"cvCreateData(CvArr arr)"},
|
|
{ (char *)"cvReleaseData", _wrap_cvReleaseData, METH_VARARGS, (char *)"cvReleaseData(CvArr arr)"},
|
|
{ (char *)"cvSetData", _wrap_cvSetData, METH_VARARGS, (char *)"cvSetData(CvArr arr, void data, int step)"},
|
|
{ (char *)"cvGetRawData", _wrap_cvGetRawData, METH_VARARGS, (char *)"cvGetRawData(CvArr arr, uchar data, int step = None, CvSize roi_size = None)"},
|
|
{ (char *)"cvGetSize", _wrap_cvGetSize, METH_VARARGS, (char *)"cvGetSize(CvArr arr) -> CvSize"},
|
|
{ (char *)"cvCopy", _wrap_cvCopy, METH_VARARGS, (char *)"cvCopy(CvArr src, CvArr dst, CvArr mask = None)"},
|
|
{ (char *)"cvSet", _wrap_cvSet, METH_VARARGS, (char *)"cvSet(CvArr arr, CvScalar value, CvArr mask = None)"},
|
|
{ (char *)"cvSetZero", _wrap_cvSetZero, METH_VARARGS, (char *)"cvSetZero(CvArr arr)"},
|
|
{ (char *)"cvSplit", _wrap_cvSplit, METH_VARARGS, (char *)"cvSplit(CvArr src, CvArr dst0, CvArr dst1, CvArr dst2, CvArr dst3)"},
|
|
{ (char *)"cvMerge", _wrap_cvMerge, METH_VARARGS, (char *)"cvMerge(CvArr src0, CvArr src1, CvArr src2, CvArr src3, CvArr dst)"},
|
|
{ (char *)"cvMixChannels", _wrap_cvMixChannels, METH_VARARGS, (char *)"\n"
|
|
"cvMixChannels(CvArr src, int src_count, CvArr dst, int dst_count, \n"
|
|
" int from_to, int pair_count)\n"
|
|
""},
|
|
{ (char *)"cvConvertScale", _wrap_cvConvertScale, METH_VARARGS, (char *)"cvConvertScale(CvArr src, CvArr dst, double scale = 1, double shift = 0)"},
|
|
{ (char *)"cvConvertScaleAbs", _wrap_cvConvertScaleAbs, METH_VARARGS, (char *)"cvConvertScaleAbs(CvArr src, CvArr dst, double scale = 1, double shift = 0)"},
|
|
{ (char *)"cvCheckTermCriteria", _wrap_cvCheckTermCriteria, METH_VARARGS, (char *)"cvCheckTermCriteria(CvTermCriteria criteria, double default_eps, int default_max_iters) -> CvTermCriteria"},
|
|
{ (char *)"cvAdd", _wrap_cvAdd, METH_VARARGS, (char *)"cvAdd(CvArr src1, CvArr src2, CvArr dst, CvArr mask = None)"},
|
|
{ (char *)"cvAddS", _wrap_cvAddS, METH_VARARGS, (char *)"cvAddS(CvArr src, CvScalar value, CvArr dst, CvArr mask = None)"},
|
|
{ (char *)"cvSub", _wrap_cvSub, METH_VARARGS, (char *)"cvSub(CvArr src1, CvArr src2, CvArr dst, CvArr mask = None)"},
|
|
{ (char *)"cvSubS", _wrap_cvSubS, METH_VARARGS, (char *)"cvSubS(CvArr src, CvScalar value, CvArr dst, CvArr mask = None)"},
|
|
{ (char *)"cvSubRS", _wrap_cvSubRS, METH_VARARGS, (char *)"cvSubRS(CvArr src, CvScalar value, CvArr dst, CvArr mask = None)"},
|
|
{ (char *)"cvMul", _wrap_cvMul, METH_VARARGS, (char *)"cvMul(CvArr src1, CvArr src2, CvArr dst, double scale = 1)"},
|
|
{ (char *)"cvDiv", _wrap_cvDiv, METH_VARARGS, (char *)"cvDiv(CvArr src1, CvArr src2, CvArr dst, double scale = 1)"},
|
|
{ (char *)"cvScaleAdd", _wrap_cvScaleAdd, METH_VARARGS, (char *)"cvScaleAdd(CvArr src1, CvScalar scale, CvArr src2, CvArr dst)"},
|
|
{ (char *)"cvAddWeighted", _wrap_cvAddWeighted, METH_VARARGS, (char *)"\n"
|
|
"cvAddWeighted(CvArr src1, double alpha, CvArr src2, double beta, \n"
|
|
" double gamma, CvArr dst)\n"
|
|
""},
|
|
{ (char *)"cvDotProduct", _wrap_cvDotProduct, METH_VARARGS, (char *)"cvDotProduct(CvArr src1, CvArr src2) -> double"},
|
|
{ (char *)"cvAnd", _wrap_cvAnd, METH_VARARGS, (char *)"cvAnd(CvArr src1, CvArr src2, CvArr dst, CvArr mask = None)"},
|
|
{ (char *)"cvAndS", _wrap_cvAndS, METH_VARARGS, (char *)"cvAndS(CvArr src, CvScalar value, CvArr dst, CvArr mask = None)"},
|
|
{ (char *)"cvOr", _wrap_cvOr, METH_VARARGS, (char *)"cvOr(CvArr src1, CvArr src2, CvArr dst, CvArr mask = None)"},
|
|
{ (char *)"cvOrS", _wrap_cvOrS, METH_VARARGS, (char *)"cvOrS(CvArr src, CvScalar value, CvArr dst, CvArr mask = None)"},
|
|
{ (char *)"cvXor", _wrap_cvXor, METH_VARARGS, (char *)"cvXor(CvArr src1, CvArr src2, CvArr dst, CvArr mask = None)"},
|
|
{ (char *)"cvXorS", _wrap_cvXorS, METH_VARARGS, (char *)"cvXorS(CvArr src, CvScalar value, CvArr dst, CvArr mask = None)"},
|
|
{ (char *)"cvNot", _wrap_cvNot, METH_VARARGS, (char *)"cvNot(CvArr src, CvArr dst)"},
|
|
{ (char *)"cvInRange", _wrap_cvInRange, METH_VARARGS, (char *)"cvInRange(CvArr src, CvArr lower, CvArr upper, CvArr dst)"},
|
|
{ (char *)"cvInRangeS", _wrap_cvInRangeS, METH_VARARGS, (char *)"cvInRangeS(CvArr src, CvScalar lower, CvScalar upper, CvArr dst)"},
|
|
{ (char *)"cvCmp", _wrap_cvCmp, METH_VARARGS, (char *)"cvCmp(CvArr src1, CvArr src2, CvArr dst, int cmp_op)"},
|
|
{ (char *)"cvCmpS", _wrap_cvCmpS, METH_VARARGS, (char *)"cvCmpS(CvArr src, double value, CvArr dst, int cmp_op)"},
|
|
{ (char *)"cvMin", _wrap_cvMin, METH_VARARGS, (char *)"cvMin(CvArr src1, CvArr src2, CvArr dst)"},
|
|
{ (char *)"cvMax", _wrap_cvMax, METH_VARARGS, (char *)"cvMax(CvArr src1, CvArr src2, CvArr dst)"},
|
|
{ (char *)"cvMinS", _wrap_cvMinS, METH_VARARGS, (char *)"cvMinS(CvArr src, double value, CvArr dst)"},
|
|
{ (char *)"cvMaxS", _wrap_cvMaxS, METH_VARARGS, (char *)"cvMaxS(CvArr src, double value, CvArr dst)"},
|
|
{ (char *)"cvAbsDiff", _wrap_cvAbsDiff, METH_VARARGS, (char *)"cvAbsDiff(CvArr src1, CvArr src2, CvArr dst)"},
|
|
{ (char *)"cvAbsDiffS", _wrap_cvAbsDiffS, METH_VARARGS, (char *)"cvAbsDiffS(CvArr src, CvArr dst, CvScalar value)"},
|
|
{ (char *)"cvCartToPolar", _wrap_cvCartToPolar, METH_VARARGS, (char *)"\n"
|
|
"cvCartToPolar(CvArr x, CvArr y, CvArr magnitude, CvArr angle = None, \n"
|
|
" int angle_in_degrees = 0)\n"
|
|
""},
|
|
{ (char *)"cvPolarToCart", _wrap_cvPolarToCart, METH_VARARGS, (char *)"cvPolarToCart(CvArr magnitude, CvArr angle, CvArr x, CvArr y, int angle_in_degrees = 0)"},
|
|
{ (char *)"cvPow", _wrap_cvPow, METH_VARARGS, (char *)"cvPow(CvArr src, CvArr dst, double power)"},
|
|
{ (char *)"cvExp", _wrap_cvExp, METH_VARARGS, (char *)"cvExp(CvArr src, CvArr dst)"},
|
|
{ (char *)"cvLog", _wrap_cvLog, METH_VARARGS, (char *)"cvLog(CvArr src, CvArr dst)"},
|
|
{ (char *)"cvFastArctan", _wrap_cvFastArctan, METH_VARARGS, (char *)"cvFastArctan(float y, float x) -> float"},
|
|
{ (char *)"cvCbrt", _wrap_cvCbrt, METH_VARARGS, (char *)"cvCbrt(float value) -> float"},
|
|
{ (char *)"cvCheckArr", _wrap_cvCheckArr, METH_VARARGS, (char *)"cvCheckArr(CvArr arr, int flags = 0, double min_val = 0, double max_val = 0) -> int"},
|
|
{ (char *)"cvRandArr", _wrap_cvRandArr, METH_VARARGS, (char *)"\n"
|
|
"cvRandArr(CvRNG rng, CvArr arr, int dist_type, CvScalar param1, \n"
|
|
" CvScalar param2)\n"
|
|
""},
|
|
{ (char *)"cvRandShuffle", _wrap_cvRandShuffle, METH_VARARGS, (char *)"cvRandShuffle(CvArr mat, CvRNG rng, double iter_factor = 1.)"},
|
|
{ (char *)"cvSort", _wrap_cvSort, METH_VARARGS, (char *)"cvSort(CvArr src, CvArr dst = None, CvArr idxmat = None, int flags = 0)"},
|
|
{ (char *)"cvSolveCubic", _wrap_cvSolveCubic, METH_VARARGS, (char *)"cvSolveCubic(CvMat coeffs) -> int"},
|
|
{ (char *)"cvSolvePoly", _wrap_cvSolvePoly, METH_VARARGS, (char *)"cvSolvePoly(CvMat coeffs, int maxiter = 20, int fig = 100)"},
|
|
{ (char *)"cvCrossProduct", _wrap_cvCrossProduct, METH_VARARGS, (char *)"cvCrossProduct(CvArr src1, CvArr src2, CvArr dst)"},
|
|
{ (char *)"cvGEMM", _wrap_cvGEMM, METH_VARARGS, (char *)"\n"
|
|
"cvGEMM(CvArr src1, CvArr src2, double alpha, CvArr src3, double beta, \n"
|
|
" CvArr dst, int tABC = 0)\n"
|
|
""},
|
|
{ (char *)"cvTransform", _wrap_cvTransform, METH_VARARGS, (char *)"cvTransform(CvArr src, CvArr dst, CvMat transmat, CvMat shiftvec = None)"},
|
|
{ (char *)"cvPerspectiveTransform", _wrap_cvPerspectiveTransform, METH_VARARGS, (char *)"cvPerspectiveTransform(CvArr src, CvArr dst, CvMat mat)"},
|
|
{ (char *)"cvMulTransposed", _wrap_cvMulTransposed, METH_VARARGS, (char *)"\n"
|
|
"cvMulTransposed(CvArr src, CvArr dst, int order, CvArr delta = None, \n"
|
|
" double scale = 1.)\n"
|
|
""},
|
|
{ (char *)"cvTranspose", _wrap_cvTranspose, METH_VARARGS, (char *)"cvTranspose(CvArr src, CvArr dst)"},
|
|
{ (char *)"cvCompleteSymm", _wrap_cvCompleteSymm, METH_VARARGS, (char *)"cvCompleteSymm(CvMat matrix, int LtoR = 0)"},
|
|
{ (char *)"cvFlip", _wrap_cvFlip, METH_VARARGS, (char *)"cvFlip(CvArr src, CvArr dst = None, int flip_mode = 0)"},
|
|
{ (char *)"cvSVD", _wrap_cvSVD, METH_VARARGS, (char *)"cvSVD(CvArr A, CvArr W, CvArr U = None, CvArr V = None, int flags = 0)"},
|
|
{ (char *)"cvSVBkSb", _wrap_cvSVBkSb, METH_VARARGS, (char *)"cvSVBkSb(CvArr W, CvArr U, CvArr V, CvArr B, CvArr X, int flags)"},
|
|
{ (char *)"cvInvert", _wrap_cvInvert, METH_VARARGS, (char *)"cvInvert(CvArr src, CvArr dst, int method = 0) -> double"},
|
|
{ (char *)"cvSolve", _wrap_cvSolve, METH_VARARGS, (char *)"cvSolve(CvArr src1, CvArr src2, CvArr dst, int method = 0) -> int"},
|
|
{ (char *)"cvDet", _wrap_cvDet, METH_VARARGS, (char *)"cvDet(CvArr mat) -> double"},
|
|
{ (char *)"cvTrace", _wrap_cvTrace, METH_VARARGS, (char *)"cvTrace(CvArr mat) -> CvScalar"},
|
|
{ (char *)"cvEigenVV", _wrap_cvEigenVV, METH_VARARGS, (char *)"\n"
|
|
"cvEigenVV(CvArr mat, CvArr evects, CvArr evals, double eps = 0, \n"
|
|
" int lowindex = -1, int highindex = -1)\n"
|
|
""},
|
|
{ (char *)"cvSetIdentity", _wrap_cvSetIdentity, METH_VARARGS, (char *)"cvSetIdentity(CvArr mat, CvScalar value = cvRealScalar(1))"},
|
|
{ (char *)"cvRange", _wrap_cvRange, METH_VARARGS, (char *)"cvRange(CvArr mat, double start, double end) -> CvArr"},
|
|
{ (char *)"cvCalcCovarMatrix", _wrap_cvCalcCovarMatrix, METH_VARARGS, (char *)"cvCalcCovarMatrix(CvArr vects, int count, CvArr cov_mat, CvArr avg, int flags)"},
|
|
{ (char *)"cvCalcPCA", _wrap_cvCalcPCA, METH_VARARGS, (char *)"\n"
|
|
"cvCalcPCA(CvArr data, CvArr mean, CvArr eigenvals, CvArr eigenvects, \n"
|
|
" int flags)\n"
|
|
""},
|
|
{ (char *)"cvProjectPCA", _wrap_cvProjectPCA, METH_VARARGS, (char *)"cvProjectPCA(CvArr data, CvArr mean, CvArr eigenvects, CvArr result)"},
|
|
{ (char *)"cvBackProjectPCA", _wrap_cvBackProjectPCA, METH_VARARGS, (char *)"cvBackProjectPCA(CvArr proj, CvArr mean, CvArr eigenvects, CvArr result)"},
|
|
{ (char *)"cvMahalanobis", _wrap_cvMahalanobis, METH_VARARGS, (char *)"cvMahalanobis(CvArr vec1, CvArr vec2, CvArr mat) -> double"},
|
|
{ (char *)"cvSum", _wrap_cvSum, METH_VARARGS, (char *)"cvSum(CvArr arr) -> CvScalar"},
|
|
{ (char *)"cvCountNonZero", _wrap_cvCountNonZero, METH_VARARGS, (char *)"cvCountNonZero(CvArr arr) -> int"},
|
|
{ (char *)"cvAvg", _wrap_cvAvg, METH_VARARGS, (char *)"cvAvg(CvArr arr, CvArr mask = None) -> CvScalar"},
|
|
{ (char *)"cvAvgSdv", _wrap_cvAvgSdv, METH_VARARGS, (char *)"cvAvgSdv(CvArr arr, CvScalar mean, CvScalar std_dev, CvArr mask = None)"},
|
|
{ (char *)"cvMinMaxLoc", _wrap_cvMinMaxLoc, METH_VARARGS, (char *)"cvMinMaxLoc(CvArr arr, CvArr mask = None)"},
|
|
{ (char *)"cvNorm", _wrap_cvNorm, METH_VARARGS, (char *)"cvNorm(CvArr arr1, CvArr arr2 = None, int norm_type = 4, CvArr mask = None) -> double"},
|
|
{ (char *)"cvNormalize", _wrap_cvNormalize, METH_VARARGS, (char *)"\n"
|
|
"cvNormalize(CvArr src, CvArr dst, double a = 1., double b = 0., \n"
|
|
" int norm_type = 4, CvArr mask = None)\n"
|
|
""},
|
|
{ (char *)"cvReduce", _wrap_cvReduce, METH_VARARGS, (char *)"cvReduce(CvArr src, CvArr dst, int dim = -1, int op = 0)"},
|
|
{ (char *)"cvDFT", _wrap_cvDFT, METH_VARARGS, (char *)"cvDFT(CvArr src, CvArr dst, int flags, int nonzero_rows = 0)"},
|
|
{ (char *)"cvMulSpectrums", _wrap_cvMulSpectrums, METH_VARARGS, (char *)"cvMulSpectrums(CvArr src1, CvArr src2, CvArr dst, int flags)"},
|
|
{ (char *)"cvGetOptimalDFTSize", _wrap_cvGetOptimalDFTSize, METH_VARARGS, (char *)"cvGetOptimalDFTSize(int size0) -> int"},
|
|
{ (char *)"cvDCT", _wrap_cvDCT, METH_VARARGS, (char *)"cvDCT(CvArr src, CvArr dst, int flags)"},
|
|
{ (char *)"cvSliceLength", _wrap_cvSliceLength, METH_VARARGS, (char *)"cvSliceLength(CvSlice slice, CvSeq seq) -> int"},
|
|
{ (char *)"cvCreateMemStorage", _wrap_cvCreateMemStorage, METH_VARARGS, (char *)"cvCreateMemStorage(int block_size = 0) -> CvMemStorage"},
|
|
{ (char *)"cvCreateChildMemStorage", _wrap_cvCreateChildMemStorage, METH_VARARGS, (char *)"cvCreateChildMemStorage(CvMemStorage parent) -> CvMemStorage"},
|
|
{ (char *)"cvClearMemStorage", _wrap_cvClearMemStorage, METH_VARARGS, (char *)"cvClearMemStorage(CvMemStorage storage)"},
|
|
{ (char *)"cvSaveMemStoragePos", _wrap_cvSaveMemStoragePos, METH_VARARGS, (char *)"cvSaveMemStoragePos(CvMemStorage storage, CvMemStoragePos pos)"},
|
|
{ (char *)"cvRestoreMemStoragePos", _wrap_cvRestoreMemStoragePos, METH_VARARGS, (char *)"cvRestoreMemStoragePos(CvMemStorage storage, CvMemStoragePos pos)"},
|
|
{ (char *)"cvMemStorageAlloc", _wrap_cvMemStorageAlloc, METH_VARARGS, (char *)"cvMemStorageAlloc(CvMemStorage storage, size_t size) -> void"},
|
|
{ (char *)"cvMemStorageAllocString", _wrap_cvMemStorageAllocString, METH_VARARGS, (char *)"cvMemStorageAllocString(CvMemStorage storage, char ptr, int len = -1) -> CvString"},
|
|
{ (char *)"cvCreateSeq", _wrap_cvCreateSeq, METH_VARARGS, (char *)"cvCreateSeq(int seq_flags, int header_size, int elem_size, CvMemStorage storage) -> CvSeq"},
|
|
{ (char *)"cvSetSeqBlockSize", _wrap_cvSetSeqBlockSize, METH_VARARGS, (char *)"cvSetSeqBlockSize(CvSeq seq, int delta_elems)"},
|
|
{ (char *)"cvSeqPush", _wrap_cvSeqPush, METH_VARARGS, (char *)"cvSeqPush(CvSeq seq, void element = None) -> schar"},
|
|
{ (char *)"cvSeqPushFront", _wrap_cvSeqPushFront, METH_VARARGS, (char *)"cvSeqPushFront(CvSeq seq, void element = None) -> schar"},
|
|
{ (char *)"cvSeqPop", _wrap_cvSeqPop, METH_VARARGS, (char *)"cvSeqPop(CvSeq seq, void element = None)"},
|
|
{ (char *)"cvSeqPopFront", _wrap_cvSeqPopFront, METH_VARARGS, (char *)"cvSeqPopFront(CvSeq seq, void element = None)"},
|
|
{ (char *)"cvSeqPushMulti", _wrap_cvSeqPushMulti, METH_VARARGS, (char *)"cvSeqPushMulti(CvSeq seq, void elements, int count, int in_front = 0)"},
|
|
{ (char *)"cvSeqPopMulti", _wrap_cvSeqPopMulti, METH_VARARGS, (char *)"cvSeqPopMulti(CvSeq seq, void elements, int count, int in_front = 0)"},
|
|
{ (char *)"cvSeqInsert", _wrap_cvSeqInsert, METH_VARARGS, (char *)"cvSeqInsert(CvSeq seq, int before_index, void element = None) -> schar"},
|
|
{ (char *)"cvSeqRemove", _wrap_cvSeqRemove, METH_VARARGS, (char *)"cvSeqRemove(CvSeq seq, int index)"},
|
|
{ (char *)"cvClearSeq", _wrap_cvClearSeq, METH_VARARGS, (char *)"cvClearSeq(CvSeq seq)"},
|
|
{ (char *)"cvGetSeqElem", _wrap_cvGetSeqElem, METH_VARARGS, (char *)"cvGetSeqElem(CvSeq seq, int index) -> schar"},
|
|
{ (char *)"cvSeqElemIdx", _wrap_cvSeqElemIdx, METH_VARARGS, (char *)"cvSeqElemIdx(CvSeq seq, void element, CvSeqBlock block = None) -> int"},
|
|
{ (char *)"cvStartAppendToSeq", _wrap_cvStartAppendToSeq, METH_VARARGS, (char *)"cvStartAppendToSeq(CvSeq seq, CvSeqWriter writer)"},
|
|
{ (char *)"cvStartWriteSeq", _wrap_cvStartWriteSeq, METH_VARARGS, (char *)"\n"
|
|
"cvStartWriteSeq(int seq_flags, int header_size, int elem_size, CvMemStorage storage, \n"
|
|
" CvSeqWriter writer)\n"
|
|
""},
|
|
{ (char *)"cvEndWriteSeq", _wrap_cvEndWriteSeq, METH_VARARGS, (char *)"cvEndWriteSeq(CvSeqWriter writer) -> CvSeq"},
|
|
{ (char *)"cvFlushSeqWriter", _wrap_cvFlushSeqWriter, METH_VARARGS, (char *)"cvFlushSeqWriter(CvSeqWriter writer)"},
|
|
{ (char *)"cvStartReadSeq", _wrap_cvStartReadSeq, METH_VARARGS, (char *)"cvStartReadSeq(CvSeq seq, CvSeqReader reader, int reverse = 0)"},
|
|
{ (char *)"cvGetSeqReaderPos", _wrap_cvGetSeqReaderPos, METH_VARARGS, (char *)"cvGetSeqReaderPos(CvSeqReader reader) -> int"},
|
|
{ (char *)"cvSetSeqReaderPos", _wrap_cvSetSeqReaderPos, METH_VARARGS, (char *)"cvSetSeqReaderPos(CvSeqReader reader, int index, int is_relative = 0)"},
|
|
{ (char *)"cvMakeSeqHeaderForArray", _wrap_cvMakeSeqHeaderForArray, METH_VARARGS, (char *)"\n"
|
|
"cvMakeSeqHeaderForArray(int seq_type, int header_size, int elem_size, void elements, \n"
|
|
" int total, CvSeq seq, CvSeqBlock block) -> CvSeq\n"
|
|
""},
|
|
{ (char *)"cvSeqSlice", _wrap_cvSeqSlice, METH_VARARGS, (char *)"\n"
|
|
"cvSeqSlice(CvSeq seq, CvSlice slice, CvMemStorage storage = None, \n"
|
|
" int copy_data = 0) -> CvSeq\n"
|
|
""},
|
|
{ (char *)"cvCloneSeq", _wrap_cvCloneSeq, METH_VARARGS, (char *)"cvCloneSeq(CvSeq seq, CvMemStorage storage = None) -> CvSeq"},
|
|
{ (char *)"cvSeqRemoveSlice", _wrap_cvSeqRemoveSlice, METH_VARARGS, (char *)"cvSeqRemoveSlice(CvSeq seq, CvSlice slice)"},
|
|
{ (char *)"cvSeqInsertSlice", _wrap_cvSeqInsertSlice, METH_VARARGS, (char *)"cvSeqInsertSlice(CvSeq seq, int before_index, CvArr from_arr)"},
|
|
{ (char *)"cvSeqSort", _wrap_cvSeqSort, METH_VARARGS, (char *)"cvSeqSort(CvSeq seq, CvCmpFunc func, void userdata = None)"},
|
|
{ (char *)"cvSeqSearch", _wrap_cvSeqSearch, METH_VARARGS, (char *)"\n"
|
|
"cvSeqSearch(CvSeq seq, void elem, CvCmpFunc func, int is_sorted, \n"
|
|
" int elem_idx, void userdata = None) -> schar\n"
|
|
""},
|
|
{ (char *)"cvSeqInvert", _wrap_cvSeqInvert, METH_VARARGS, (char *)"cvSeqInvert(CvSeq seq)"},
|
|
{ (char *)"cvSeqPartition", _wrap_cvSeqPartition, METH_VARARGS, (char *)"\n"
|
|
"cvSeqPartition(CvSeq seq, CvMemStorage storage, CvSeq labels, CvCmpFunc is_equal, \n"
|
|
" void userdata) -> int\n"
|
|
""},
|
|
{ (char *)"cvChangeSeqBlock", _wrap_cvChangeSeqBlock, METH_VARARGS, (char *)"cvChangeSeqBlock(void reader, int direction)"},
|
|
{ (char *)"cvCreateSeqBlock", _wrap_cvCreateSeqBlock, METH_VARARGS, (char *)"cvCreateSeqBlock(CvSeqWriter writer)"},
|
|
{ (char *)"cvCreateSet", _wrap_cvCreateSet, METH_VARARGS, (char *)"cvCreateSet(int set_flags, int header_size, int elem_size, CvMemStorage storage) -> CvSet"},
|
|
{ (char *)"cvSetAdd", _wrap_cvSetAdd, METH_VARARGS, (char *)"cvSetAdd(CvSet set_header, CvSetElem elem = None, CvSetElem inserted_elem = None) -> int"},
|
|
{ (char *)"cvSetNew", _wrap_cvSetNew, METH_VARARGS, (char *)"cvSetNew(CvSet set_header) -> CvSetElem"},
|
|
{ (char *)"cvSetRemoveByPtr", _wrap_cvSetRemoveByPtr, METH_VARARGS, (char *)"cvSetRemoveByPtr(CvSet set_header, void elem)"},
|
|
{ (char *)"cvSetRemove", _wrap_cvSetRemove, METH_VARARGS, (char *)"cvSetRemove(CvSet set_header, int index)"},
|
|
{ (char *)"cvGetSetElem", _wrap_cvGetSetElem, METH_VARARGS, (char *)"cvGetSetElem(CvSet set_header, int index) -> CvSetElem"},
|
|
{ (char *)"cvClearSet", _wrap_cvClearSet, METH_VARARGS, (char *)"cvClearSet(CvSet set_header)"},
|
|
{ (char *)"cvCreateGraph", _wrap_cvCreateGraph, METH_VARARGS, (char *)"\n"
|
|
"cvCreateGraph(int graph_flags, int header_size, int vtx_size, int edge_size, \n"
|
|
" CvMemStorage storage) -> CvGraph\n"
|
|
""},
|
|
{ (char *)"cvGraphAddVtx", _wrap_cvGraphAddVtx, METH_VARARGS, (char *)"cvGraphAddVtx(CvGraph graph, CvGraphVtx vtx = None, CvGraphVtx inserted_vtx = None) -> int"},
|
|
{ (char *)"cvGraphRemoveVtx", _wrap_cvGraphRemoveVtx, METH_VARARGS, (char *)"cvGraphRemoveVtx(CvGraph graph, int index) -> int"},
|
|
{ (char *)"cvGraphRemoveVtxByPtr", _wrap_cvGraphRemoveVtxByPtr, METH_VARARGS, (char *)"cvGraphRemoveVtxByPtr(CvGraph graph, CvGraphVtx vtx) -> int"},
|
|
{ (char *)"cvGraphAddEdge", _wrap_cvGraphAddEdge, METH_VARARGS, (char *)"\n"
|
|
"cvGraphAddEdge(CvGraph graph, int start_idx, int end_idx, CvGraphEdge edge = None, \n"
|
|
" CvGraphEdge inserted_edge = None) -> int\n"
|
|
""},
|
|
{ (char *)"cvGraphAddEdgeByPtr", _wrap_cvGraphAddEdgeByPtr, METH_VARARGS, (char *)"\n"
|
|
"cvGraphAddEdgeByPtr(CvGraph graph, CvGraphVtx start_vtx, CvGraphVtx end_vtx, \n"
|
|
" CvGraphEdge edge = None, CvGraphEdge inserted_edge = None) -> int\n"
|
|
""},
|
|
{ (char *)"cvGraphRemoveEdge", _wrap_cvGraphRemoveEdge, METH_VARARGS, (char *)"cvGraphRemoveEdge(CvGraph graph, int start_idx, int end_idx)"},
|
|
{ (char *)"cvGraphRemoveEdgeByPtr", _wrap_cvGraphRemoveEdgeByPtr, METH_VARARGS, (char *)"cvGraphRemoveEdgeByPtr(CvGraph graph, CvGraphVtx start_vtx, CvGraphVtx end_vtx)"},
|
|
{ (char *)"cvFindGraphEdge", _wrap_cvFindGraphEdge, METH_VARARGS, (char *)"cvFindGraphEdge(CvGraph graph, int start_idx, int end_idx) -> CvGraphEdge"},
|
|
{ (char *)"cvFindGraphEdgeByPtr", _wrap_cvFindGraphEdgeByPtr, METH_VARARGS, (char *)"cvFindGraphEdgeByPtr(CvGraph graph, CvGraphVtx start_vtx, CvGraphVtx end_vtx) -> CvGraphEdge"},
|
|
{ (char *)"cvClearGraph", _wrap_cvClearGraph, METH_VARARGS, (char *)"cvClearGraph(CvGraph graph)"},
|
|
{ (char *)"cvGraphVtxDegree", _wrap_cvGraphVtxDegree, METH_VARARGS, (char *)"cvGraphVtxDegree(CvGraph graph, int vtx_idx) -> int"},
|
|
{ (char *)"cvGraphVtxDegreeByPtr", _wrap_cvGraphVtxDegreeByPtr, METH_VARARGS, (char *)"cvGraphVtxDegreeByPtr(CvGraph graph, CvGraphVtx vtx) -> int"},
|
|
{ (char *)"CvGraphScanner_vtx_set", _wrap_CvGraphScanner_vtx_set, METH_VARARGS, (char *)"CvGraphScanner_vtx_set(CvGraphScanner self, CvGraphVtx vtx)"},
|
|
{ (char *)"CvGraphScanner_vtx_get", _wrap_CvGraphScanner_vtx_get, METH_VARARGS, (char *)"CvGraphScanner_vtx_get(CvGraphScanner self) -> CvGraphVtx"},
|
|
{ (char *)"CvGraphScanner_dst_set", _wrap_CvGraphScanner_dst_set, METH_VARARGS, (char *)"CvGraphScanner_dst_set(CvGraphScanner self, CvGraphVtx dst)"},
|
|
{ (char *)"CvGraphScanner_dst_get", _wrap_CvGraphScanner_dst_get, METH_VARARGS, (char *)"CvGraphScanner_dst_get(CvGraphScanner self) -> CvGraphVtx"},
|
|
{ (char *)"CvGraphScanner_edge_set", _wrap_CvGraphScanner_edge_set, METH_VARARGS, (char *)"CvGraphScanner_edge_set(CvGraphScanner self, CvGraphEdge edge)"},
|
|
{ (char *)"CvGraphScanner_edge_get", _wrap_CvGraphScanner_edge_get, METH_VARARGS, (char *)"CvGraphScanner_edge_get(CvGraphScanner self) -> CvGraphEdge"},
|
|
{ (char *)"CvGraphScanner_graph_set", _wrap_CvGraphScanner_graph_set, METH_VARARGS, (char *)"CvGraphScanner_graph_set(CvGraphScanner self, CvGraph graph)"},
|
|
{ (char *)"CvGraphScanner_graph_get", _wrap_CvGraphScanner_graph_get, METH_VARARGS, (char *)"CvGraphScanner_graph_get(CvGraphScanner self) -> CvGraph"},
|
|
{ (char *)"CvGraphScanner_stack_set", _wrap_CvGraphScanner_stack_set, METH_VARARGS, (char *)"CvGraphScanner_stack_set(CvGraphScanner self, CvSeq stack)"},
|
|
{ (char *)"CvGraphScanner_stack_get", _wrap_CvGraphScanner_stack_get, METH_VARARGS, (char *)"CvGraphScanner_stack_get(CvGraphScanner self) -> CvSeq"},
|
|
{ (char *)"CvGraphScanner_index_set", _wrap_CvGraphScanner_index_set, METH_VARARGS, (char *)"CvGraphScanner_index_set(CvGraphScanner self, int index)"},
|
|
{ (char *)"CvGraphScanner_index_get", _wrap_CvGraphScanner_index_get, METH_VARARGS, (char *)"CvGraphScanner_index_get(CvGraphScanner self) -> int"},
|
|
{ (char *)"CvGraphScanner_mask_set", _wrap_CvGraphScanner_mask_set, METH_VARARGS, (char *)"CvGraphScanner_mask_set(CvGraphScanner self, int mask)"},
|
|
{ (char *)"CvGraphScanner_mask_get", _wrap_CvGraphScanner_mask_get, METH_VARARGS, (char *)"CvGraphScanner_mask_get(CvGraphScanner self) -> int"},
|
|
{ (char *)"delete_CvGraphScanner", _wrap_delete_CvGraphScanner, METH_VARARGS, (char *)"delete_CvGraphScanner(CvGraphScanner self)"},
|
|
{ (char *)"CvGraphScanner_swigregister", CvGraphScanner_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvCreateGraphScanner", _wrap_cvCreateGraphScanner, METH_VARARGS, (char *)"cvCreateGraphScanner(CvGraph graph, CvGraphVtx vtx = None, int mask = -1) -> CvGraphScanner"},
|
|
{ (char *)"cvNextGraphItem", _wrap_cvNextGraphItem, METH_VARARGS, (char *)"cvNextGraphItem(CvGraphScanner scanner) -> int"},
|
|
{ (char *)"cvCloneGraph", _wrap_cvCloneGraph, METH_VARARGS, (char *)"cvCloneGraph(CvGraph graph, CvMemStorage storage) -> CvGraph"},
|
|
{ (char *)"cvLine", _wrap_cvLine, METH_VARARGS, (char *)"\n"
|
|
"cvLine(CvArr img, CvPoint pt1, CvPoint pt2, CvScalar color, \n"
|
|
" int thickness = 1, int line_type = 8, int shift = 0)\n"
|
|
""},
|
|
{ (char *)"cvRectangle", _wrap_cvRectangle, METH_VARARGS, (char *)"\n"
|
|
"cvRectangle(CvArr img, CvPoint pt1, CvPoint pt2, CvScalar color, \n"
|
|
" int thickness = 1, int line_type = 8, int shift = 0)\n"
|
|
""},
|
|
{ (char *)"cvCircle", _wrap_cvCircle, METH_VARARGS, (char *)"\n"
|
|
"cvCircle(CvArr img, CvPoint center, int radius, CvScalar color, \n"
|
|
" int thickness = 1, int line_type = 8, int shift = 0)\n"
|
|
""},
|
|
{ (char *)"cvEllipse", _wrap_cvEllipse, METH_VARARGS, (char *)"\n"
|
|
"cvEllipse(CvArr img, CvPoint center, CvSize axes, double angle, \n"
|
|
" double start_angle, double end_angle, CvScalar color, \n"
|
|
" int thickness = 1, int line_type = 8, \n"
|
|
" int shift = 0)\n"
|
|
""},
|
|
{ (char *)"cvEllipseBox", _wrap_cvEllipseBox, METH_VARARGS, (char *)"\n"
|
|
"cvEllipseBox(CvArr img, CvBox2D box, CvScalar color, int thickness = 1, \n"
|
|
" int line_type = 8, int shift = 0)\n"
|
|
""},
|
|
{ (char *)"cvFillConvexPoly", _wrap_cvFillConvexPoly, METH_VARARGS, (char *)"\n"
|
|
"cvFillConvexPoly(CvArr img, CvPoint pts, int npts, CvScalar color, int line_type = 8, \n"
|
|
" int shift = 0)\n"
|
|
""},
|
|
{ (char *)"cvFillPoly", _wrap_cvFillPoly, METH_VARARGS, (char *)"\n"
|
|
"cvFillPoly(CvArr img, CvPoint pts, int npts, int contours, CvScalar color, \n"
|
|
" int line_type = 8, int shift = 0)\n"
|
|
""},
|
|
{ (char *)"cvPolyLine", _wrap_cvPolyLine, METH_VARARGS, (char *)"\n"
|
|
"cvPolyLine(CvArr img, CvPoint pts, int npts, int contours, int is_closed, \n"
|
|
" CvScalar color, int thickness = 1, \n"
|
|
" int line_type = 8, int shift = 0)\n"
|
|
""},
|
|
{ (char *)"cvClipLine", _wrap_cvClipLine, METH_VARARGS, (char *)"cvClipLine(CvSize img_size, CvPoint pt1, CvPoint pt2) -> int"},
|
|
{ (char *)"cvInitLineIterator", _wrap_cvInitLineIterator, METH_VARARGS, (char *)"\n"
|
|
"cvInitLineIterator(CvArr image, CvPoint pt1, CvPoint pt2, CvLineIterator line_iterator, \n"
|
|
" int connectivity = 8, int left_to_right = 0) -> int\n"
|
|
""},
|
|
{ (char *)"CvFont_font_face_set", _wrap_CvFont_font_face_set, METH_VARARGS, (char *)"CvFont_font_face_set(CvFont self, int font_face)"},
|
|
{ (char *)"CvFont_font_face_get", _wrap_CvFont_font_face_get, METH_VARARGS, (char *)"CvFont_font_face_get(CvFont self) -> int"},
|
|
{ (char *)"CvFont_ascii_set", _wrap_CvFont_ascii_set, METH_VARARGS, (char *)"CvFont_ascii_set(CvFont self, int ascii)"},
|
|
{ (char *)"CvFont_ascii_get", _wrap_CvFont_ascii_get, METH_VARARGS, (char *)"CvFont_ascii_get(CvFont self) -> int"},
|
|
{ (char *)"CvFont_greek_set", _wrap_CvFont_greek_set, METH_VARARGS, (char *)"CvFont_greek_set(CvFont self, int greek)"},
|
|
{ (char *)"CvFont_greek_get", _wrap_CvFont_greek_get, METH_VARARGS, (char *)"CvFont_greek_get(CvFont self) -> int"},
|
|
{ (char *)"CvFont_cyrillic_set", _wrap_CvFont_cyrillic_set, METH_VARARGS, (char *)"CvFont_cyrillic_set(CvFont self, int cyrillic)"},
|
|
{ (char *)"CvFont_cyrillic_get", _wrap_CvFont_cyrillic_get, METH_VARARGS, (char *)"CvFont_cyrillic_get(CvFont self) -> int"},
|
|
{ (char *)"CvFont_hscale_set", _wrap_CvFont_hscale_set, METH_VARARGS, (char *)"CvFont_hscale_set(CvFont self, float hscale)"},
|
|
{ (char *)"CvFont_hscale_get", _wrap_CvFont_hscale_get, METH_VARARGS, (char *)"CvFont_hscale_get(CvFont self) -> float"},
|
|
{ (char *)"CvFont_vscale_set", _wrap_CvFont_vscale_set, METH_VARARGS, (char *)"CvFont_vscale_set(CvFont self, float vscale)"},
|
|
{ (char *)"CvFont_vscale_get", _wrap_CvFont_vscale_get, METH_VARARGS, (char *)"CvFont_vscale_get(CvFont self) -> float"},
|
|
{ (char *)"CvFont_shear_set", _wrap_CvFont_shear_set, METH_VARARGS, (char *)"CvFont_shear_set(CvFont self, float shear)"},
|
|
{ (char *)"CvFont_shear_get", _wrap_CvFont_shear_get, METH_VARARGS, (char *)"CvFont_shear_get(CvFont self) -> float"},
|
|
{ (char *)"CvFont_thickness_set", _wrap_CvFont_thickness_set, METH_VARARGS, (char *)"CvFont_thickness_set(CvFont self, int thickness)"},
|
|
{ (char *)"CvFont_thickness_get", _wrap_CvFont_thickness_get, METH_VARARGS, (char *)"CvFont_thickness_get(CvFont self) -> int"},
|
|
{ (char *)"CvFont_dx_set", _wrap_CvFont_dx_set, METH_VARARGS, (char *)"CvFont_dx_set(CvFont self, float dx)"},
|
|
{ (char *)"CvFont_dx_get", _wrap_CvFont_dx_get, METH_VARARGS, (char *)"CvFont_dx_get(CvFont self) -> float"},
|
|
{ (char *)"CvFont_line_type_set", _wrap_CvFont_line_type_set, METH_VARARGS, (char *)"CvFont_line_type_set(CvFont self, int line_type)"},
|
|
{ (char *)"CvFont_line_type_get", _wrap_CvFont_line_type_get, METH_VARARGS, (char *)"CvFont_line_type_get(CvFont self) -> int"},
|
|
{ (char *)"new_CvFont", _wrap_new_CvFont, METH_VARARGS, (char *)"new_CvFont() -> CvFont"},
|
|
{ (char *)"delete_CvFont", _wrap_delete_CvFont, METH_VARARGS, (char *)"delete_CvFont(CvFont self)"},
|
|
{ (char *)"CvFont_swigregister", CvFont_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvInitFont", _wrap_cvInitFont, METH_VARARGS, (char *)"\n"
|
|
"cvInitFont(CvFont font, double hscale, double vscale, double shear = 0, \n"
|
|
" int thickness = 1, int line_type = 8)\n"
|
|
""},
|
|
{ (char *)"cvFont", _wrap_cvFont, METH_VARARGS, (char *)"cvFont(double scale, int thickness = 1) -> CvFont"},
|
|
{ (char *)"cvPutText", _wrap_cvPutText, METH_VARARGS, (char *)"cvPutText(CvArr img, char text, CvPoint org, CvFont font, CvScalar color)"},
|
|
{ (char *)"cvGetTextSize", _wrap_cvGetTextSize, METH_VARARGS, (char *)"cvGetTextSize(char text_string, CvFont font)"},
|
|
{ (char *)"cvColorToScalar", _wrap_cvColorToScalar, METH_VARARGS, (char *)"cvColorToScalar(double packed_color, int arrtype) -> CvScalar"},
|
|
{ (char *)"cvEllipse2Poly", _wrap_cvEllipse2Poly, METH_VARARGS, (char *)"\n"
|
|
"cvEllipse2Poly(CvPoint center, CvSize axes, int angle, int arc_start, \n"
|
|
" int arc_end, CvPoint pts, int delta) -> int\n"
|
|
""},
|
|
{ (char *)"cvDrawContours", _wrap_cvDrawContours, METH_VARARGS, (char *)"\n"
|
|
"cvDrawContours(CvArr img, CvSeq contour, CvScalar external_color, \n"
|
|
" CvScalar hole_color, int max_level, int thickness = 1, \n"
|
|
" int line_type = 8, CvPoint offset = cvPoint(0,0))\n"
|
|
""},
|
|
{ (char *)"cvLUT", _wrap_cvLUT, METH_VARARGS, (char *)"cvLUT(CvArr src, CvArr dst, CvArr lut)"},
|
|
{ (char *)"CvTreeNodeIterator_node_set", _wrap_CvTreeNodeIterator_node_set, METH_VARARGS, (char *)"CvTreeNodeIterator_node_set(CvTreeNodeIterator self, void node)"},
|
|
{ (char *)"CvTreeNodeIterator_node_get", _wrap_CvTreeNodeIterator_node_get, METH_VARARGS, (char *)"CvTreeNodeIterator_node_get(CvTreeNodeIterator self) -> void"},
|
|
{ (char *)"CvTreeNodeIterator_level_set", _wrap_CvTreeNodeIterator_level_set, METH_VARARGS, (char *)"CvTreeNodeIterator_level_set(CvTreeNodeIterator self, int level)"},
|
|
{ (char *)"CvTreeNodeIterator_level_get", _wrap_CvTreeNodeIterator_level_get, METH_VARARGS, (char *)"CvTreeNodeIterator_level_get(CvTreeNodeIterator self) -> int"},
|
|
{ (char *)"CvTreeNodeIterator_max_level_set", _wrap_CvTreeNodeIterator_max_level_set, METH_VARARGS, (char *)"CvTreeNodeIterator_max_level_set(CvTreeNodeIterator self, int max_level)"},
|
|
{ (char *)"CvTreeNodeIterator_max_level_get", _wrap_CvTreeNodeIterator_max_level_get, METH_VARARGS, (char *)"CvTreeNodeIterator_max_level_get(CvTreeNodeIterator self) -> int"},
|
|
{ (char *)"new_CvTreeNodeIterator", _wrap_new_CvTreeNodeIterator, METH_VARARGS, (char *)"new_CvTreeNodeIterator() -> CvTreeNodeIterator"},
|
|
{ (char *)"delete_CvTreeNodeIterator", _wrap_delete_CvTreeNodeIterator, METH_VARARGS, (char *)"delete_CvTreeNodeIterator(CvTreeNodeIterator self)"},
|
|
{ (char *)"CvTreeNodeIterator_swigregister", CvTreeNodeIterator_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvInitTreeNodeIterator", _wrap_cvInitTreeNodeIterator, METH_VARARGS, (char *)"cvInitTreeNodeIterator(CvTreeNodeIterator tree_iterator, void first, int max_level)"},
|
|
{ (char *)"cvNextTreeNode", _wrap_cvNextTreeNode, METH_VARARGS, (char *)"cvNextTreeNode(CvTreeNodeIterator tree_iterator) -> void"},
|
|
{ (char *)"cvPrevTreeNode", _wrap_cvPrevTreeNode, METH_VARARGS, (char *)"cvPrevTreeNode(CvTreeNodeIterator tree_iterator) -> void"},
|
|
{ (char *)"cvInsertNodeIntoTree", _wrap_cvInsertNodeIntoTree, METH_VARARGS, (char *)"cvInsertNodeIntoTree(void node, void parent, void frame)"},
|
|
{ (char *)"cvRemoveNodeFromTree", _wrap_cvRemoveNodeFromTree, METH_VARARGS, (char *)"cvRemoveNodeFromTree(void node, void frame)"},
|
|
{ (char *)"cvTreeToNodeSeq", _wrap_cvTreeToNodeSeq, METH_VARARGS, (char *)"cvTreeToNodeSeq(void first, int header_size, CvMemStorage storage) -> CvSeq"},
|
|
{ (char *)"cvKMeans2", _wrap_cvKMeans2, METH_VARARGS, (char *)"\n"
|
|
"cvKMeans2(CvArr samples, int cluster_count, CvArr labels, CvTermCriteria termcrit, \n"
|
|
" int attempts = 1, CvRNG rng = None, \n"
|
|
" int flags = 0, CvArr _centers = None, \n"
|
|
" double compactness = None) -> int\n"
|
|
""},
|
|
{ (char *)"cvRegisterModule", _wrap_cvRegisterModule, METH_VARARGS, (char *)"cvRegisterModule(CvModuleInfo module_info) -> int"},
|
|
{ (char *)"cvUseOptimized", _wrap_cvUseOptimized, METH_VARARGS, (char *)"cvUseOptimized(int on_off) -> int"},
|
|
{ (char *)"cvGetModuleInfo", _wrap_cvGetModuleInfo, METH_VARARGS, (char *)"cvGetModuleInfo(char module_name, char version, char loaded_addon_plugins)"},
|
|
{ (char *)"cvGetErrStatus", _wrap_cvGetErrStatus, METH_VARARGS, (char *)"cvGetErrStatus() -> int"},
|
|
{ (char *)"cvSetErrStatus", _wrap_cvSetErrStatus, METH_VARARGS, (char *)"cvSetErrStatus(int status)"},
|
|
{ (char *)"cvGetErrMode", _wrap_cvGetErrMode, METH_VARARGS, (char *)"cvGetErrMode() -> int"},
|
|
{ (char *)"cvSetErrMode", _wrap_cvSetErrMode, METH_VARARGS, (char *)"cvSetErrMode(int mode) -> int"},
|
|
{ (char *)"cvError", _wrap_cvError, METH_VARARGS, (char *)"\n"
|
|
"cvError(int status, char func_name, char err_msg, char file_name, \n"
|
|
" int line)\n"
|
|
""},
|
|
{ (char *)"cvErrorStr", _wrap_cvErrorStr, METH_VARARGS, (char *)"cvErrorStr(int status) -> char"},
|
|
{ (char *)"cvGetErrInfo", _wrap_cvGetErrInfo, METH_VARARGS, (char *)"\n"
|
|
"cvGetErrInfo(char errcode_desc, char description, char filename, \n"
|
|
" int line) -> int\n"
|
|
""},
|
|
{ (char *)"cvErrorFromIppStatus", _wrap_cvErrorFromIppStatus, METH_VARARGS, (char *)"cvErrorFromIppStatus(int ipp_status) -> int"},
|
|
{ (char *)"cvRedirectError", _wrap_cvRedirectError, METH_VARARGS, (char *)"\n"
|
|
"cvRedirectError(CvErrorCallback error_handler, void userdata = None, \n"
|
|
" void prev_userdata = None) -> CvErrorCallback\n"
|
|
""},
|
|
{ (char *)"cvNulDevReport", _wrap_cvNulDevReport, METH_VARARGS, (char *)"\n"
|
|
"cvNulDevReport(int status, char func_name, char err_msg, char file_name, \n"
|
|
" int line, void userdata) -> int\n"
|
|
""},
|
|
{ (char *)"cvStdErrReport", _wrap_cvStdErrReport, METH_VARARGS, (char *)"\n"
|
|
"cvStdErrReport(int status, char func_name, char err_msg, char file_name, \n"
|
|
" int line, void userdata) -> int\n"
|
|
""},
|
|
{ (char *)"cvGuiBoxReport", _wrap_cvGuiBoxReport, METH_VARARGS, (char *)"\n"
|
|
"cvGuiBoxReport(int status, char func_name, char err_msg, char file_name, \n"
|
|
" int line, void userdata) -> int\n"
|
|
""},
|
|
{ (char *)"cvSetMemoryManager", _wrap_cvSetMemoryManager, METH_VARARGS, (char *)"\n"
|
|
"cvSetMemoryManager(CvAllocFunc alloc_func = None, CvFreeFunc free_func = None, \n"
|
|
" void userdata = None)\n"
|
|
""},
|
|
{ (char *)"cvSetIPLAllocators", _wrap_cvSetIPLAllocators, METH_VARARGS, (char *)"\n"
|
|
"cvSetIPLAllocators(Cv_iplCreateImageHeader create_header, Cv_iplAllocateImageData allocate_data, \n"
|
|
" Cv_iplDeallocate deallocate, \n"
|
|
" Cv_iplCreateROI create_roi, Cv_iplCloneImage clone_image)\n"
|
|
""},
|
|
{ (char *)"cvOpenFileStorage", _wrap_cvOpenFileStorage, METH_VARARGS, (char *)"cvOpenFileStorage(char filename, CvMemStorage memstorage, int flags) -> CvFileStorage"},
|
|
{ (char *)"cvReleaseFileStorage", _wrap_cvReleaseFileStorage, METH_VARARGS, (char *)"cvReleaseFileStorage(CvFileStorage fs)"},
|
|
{ (char *)"cvAttrValue", _wrap_cvAttrValue, METH_VARARGS, (char *)"cvAttrValue(CvAttrList attr, char attr_name) -> char"},
|
|
{ (char *)"cvStartWriteStruct", _wrap_cvStartWriteStruct, METH_VARARGS, (char *)"\n"
|
|
"cvStartWriteStruct(CvFileStorage fs, char name, int struct_flags, char type_name = None, \n"
|
|
" CvAttrList attributes = cvAttrList())\n"
|
|
""},
|
|
{ (char *)"cvEndWriteStruct", _wrap_cvEndWriteStruct, METH_VARARGS, (char *)"cvEndWriteStruct(CvFileStorage fs)"},
|
|
{ (char *)"cvWriteInt", _wrap_cvWriteInt, METH_VARARGS, (char *)"cvWriteInt(CvFileStorage fs, char name, int value)"},
|
|
{ (char *)"cvWriteReal", _wrap_cvWriteReal, METH_VARARGS, (char *)"cvWriteReal(CvFileStorage fs, char name, double value)"},
|
|
{ (char *)"cvWriteString", _wrap_cvWriteString, METH_VARARGS, (char *)"cvWriteString(CvFileStorage fs, char name, char str, int quote = 0)"},
|
|
{ (char *)"cvWriteComment", _wrap_cvWriteComment, METH_VARARGS, (char *)"cvWriteComment(CvFileStorage fs, char comment, int eol_comment)"},
|
|
{ (char *)"cvWrite", _wrap_cvWrite, METH_VARARGS, (char *)"cvWrite(CvFileStorage fs, char name, void ptr, CvAttrList attributes = cvAttrList())"},
|
|
{ (char *)"cvStartNextStream", _wrap_cvStartNextStream, METH_VARARGS, (char *)"cvStartNextStream(CvFileStorage fs)"},
|
|
{ (char *)"cvWriteRawData", _wrap_cvWriteRawData, METH_VARARGS, (char *)"cvWriteRawData(CvFileStorage fs, void src, int len, char dt)"},
|
|
{ (char *)"cvGetHashedKey", _wrap_cvGetHashedKey, METH_VARARGS, (char *)"cvGetHashedKey(CvFileStorage fs, char name, int len = -1, int create_missing = 0) -> CvStringHashNode"},
|
|
{ (char *)"cvGetRootFileNode", _wrap_cvGetRootFileNode, METH_VARARGS, (char *)"cvGetRootFileNode(CvFileStorage fs, int stream_index = 0) -> CvFileNode"},
|
|
{ (char *)"cvGetFileNode", _wrap_cvGetFileNode, METH_VARARGS, (char *)"\n"
|
|
"cvGetFileNode(CvFileStorage fs, CvFileNode map, CvStringHashNode key, \n"
|
|
" int create_missing = 0) -> CvFileNode\n"
|
|
""},
|
|
{ (char *)"cvGetFileNodeByName", _wrap_cvGetFileNodeByName, METH_VARARGS, (char *)"cvGetFileNodeByName(CvFileStorage fs, CvFileNode map, char name) -> CvFileNode"},
|
|
{ (char *)"cvReadInt", _wrap_cvReadInt, METH_VARARGS, (char *)"cvReadInt(CvFileNode node, int default_value = 0) -> int"},
|
|
{ (char *)"cvReadIntByName", _wrap_cvReadIntByName, METH_VARARGS, (char *)"cvReadIntByName(CvFileStorage fs, CvFileNode map, char name, int default_value = 0) -> int"},
|
|
{ (char *)"cvReadReal", _wrap_cvReadReal, METH_VARARGS, (char *)"cvReadReal(CvFileNode node, double default_value = 0.) -> double"},
|
|
{ (char *)"cvReadRealByName", _wrap_cvReadRealByName, METH_VARARGS, (char *)"cvReadRealByName(CvFileStorage fs, CvFileNode map, char name, double default_value = 0.) -> double"},
|
|
{ (char *)"cvReadString", _wrap_cvReadString, METH_VARARGS, (char *)"cvReadString(CvFileNode node, char default_value = None) -> char"},
|
|
{ (char *)"cvReadStringByName", _wrap_cvReadStringByName, METH_VARARGS, (char *)"cvReadStringByName(CvFileStorage fs, CvFileNode map, char name, char default_value = None) -> char"},
|
|
{ (char *)"cvRead", _wrap_cvRead, METH_VARARGS, (char *)"cvRead(CvFileStorage fs, CvFileNode node, CvAttrList attributes = None) -> void"},
|
|
{ (char *)"cvReadByName", _wrap_cvReadByName, METH_VARARGS, (char *)"cvReadByName(CvFileStorage fs, CvFileNode map, char name, CvAttrList attributes = None) -> void"},
|
|
{ (char *)"cvStartReadRawData", _wrap_cvStartReadRawData, METH_VARARGS, (char *)"cvStartReadRawData(CvFileStorage fs, CvFileNode src, CvSeqReader reader)"},
|
|
{ (char *)"cvReadRawDataSlice", _wrap_cvReadRawDataSlice, METH_VARARGS, (char *)"\n"
|
|
"cvReadRawDataSlice(CvFileStorage fs, CvSeqReader reader, int count, void dst, \n"
|
|
" char dt)\n"
|
|
""},
|
|
{ (char *)"cvReadRawData", _wrap_cvReadRawData, METH_VARARGS, (char *)"cvReadRawData(CvFileStorage fs, CvFileNode src, void dst, char dt)"},
|
|
{ (char *)"cvWriteFileNode", _wrap_cvWriteFileNode, METH_VARARGS, (char *)"\n"
|
|
"cvWriteFileNode(CvFileStorage fs, char new_node_name, CvFileNode node, \n"
|
|
" int embed)\n"
|
|
""},
|
|
{ (char *)"cvGetFileNodeName", _wrap_cvGetFileNodeName, METH_VARARGS, (char *)"cvGetFileNodeName(CvFileNode node) -> char"},
|
|
{ (char *)"cvRegisterType", _wrap_cvRegisterType, METH_VARARGS, (char *)"cvRegisterType(CvTypeInfo info)"},
|
|
{ (char *)"cvUnregisterType", _wrap_cvUnregisterType, METH_VARARGS, (char *)"cvUnregisterType(char type_name)"},
|
|
{ (char *)"cvFirstType", _wrap_cvFirstType, METH_VARARGS, (char *)"cvFirstType() -> CvTypeInfo"},
|
|
{ (char *)"cvFindType", _wrap_cvFindType, METH_VARARGS, (char *)"cvFindType(char type_name) -> CvTypeInfo"},
|
|
{ (char *)"cvTypeOf", _wrap_cvTypeOf, METH_VARARGS, (char *)"cvTypeOf(void struct_ptr) -> CvTypeInfo"},
|
|
{ (char *)"cvClone", _wrap_cvClone, METH_VARARGS, (char *)"cvClone(void struct_ptr) -> void"},
|
|
{ (char *)"cvSave", _wrap_cvSave, METH_VARARGS, (char *)"\n"
|
|
"cvSave(char filename, void struct_ptr, char name = None, char comment = None, \n"
|
|
" CvAttrList attributes = cvAttrList())\n"
|
|
""},
|
|
{ (char *)"cvLoad", _wrap_cvLoad, METH_VARARGS, (char *)"\n"
|
|
"cvLoad(char filename, CvMemStorage memstorage = None, char name = None, \n"
|
|
" char real_name = None) -> void\n"
|
|
""},
|
|
{ (char *)"cvGetTickCount", _wrap_cvGetTickCount, METH_VARARGS, (char *)"cvGetTickCount() -> int64"},
|
|
{ (char *)"cvGetTickFrequency", _wrap_cvGetTickFrequency, METH_VARARGS, (char *)"cvGetTickFrequency() -> double"},
|
|
{ (char *)"cvGetNumThreads", _wrap_cvGetNumThreads, METH_VARARGS, (char *)"cvGetNumThreads() -> int"},
|
|
{ (char *)"cvSetNumThreads", _wrap_cvSetNumThreads, METH_VARARGS, (char *)"cvSetNumThreads(int threads = 0)"},
|
|
{ (char *)"cvGetThreadNum", _wrap_cvGetThreadNum, METH_VARARGS, (char *)"cvGetThreadNum() -> int"},
|
|
{ (char *)"cvSetImageIOFunctions", _wrap_cvSetImageIOFunctions, METH_VARARGS, (char *)"\n"
|
|
"cvSetImageIOFunctions(CvLoadImageFunc _load_image, CvLoadImageMFunc _load_image_m, \n"
|
|
" CvSaveImageFunc _save_image, CvShowImageFunc _show_image) -> int\n"
|
|
""},
|
|
{ (char *)"new_CvImage", _wrap_new_CvImage, METH_VARARGS, (char *)"\n"
|
|
"CvImage()\n"
|
|
"CvImage(CvSize size, int depth, int channels)\n"
|
|
"CvImage( img)\n"
|
|
"CvImage(CvImage img)\n"
|
|
"CvImage(char filename, char imgname = None, int color = -1)\n"
|
|
"CvImage(char filename, char imgname = None)\n"
|
|
"CvImage(char filename)\n"
|
|
"CvImage(CvFileStorage fs, char mapname, char imgname)\n"
|
|
"new_CvImage(CvFileStorage fs, char seqname, int idx) -> CvImage\n"
|
|
""},
|
|
{ (char *)"delete_CvImage", _wrap_delete_CvImage, METH_VARARGS, (char *)"delete_CvImage(CvImage self)"},
|
|
{ (char *)"CvImage_clone", _wrap_CvImage_clone, METH_VARARGS, (char *)"CvImage_clone(CvImage self) -> CvImage"},
|
|
{ (char *)"CvImage_create", _wrap_CvImage_create, METH_VARARGS, (char *)"CvImage_create(CvImage self, CvSize size, int depth, int channels)"},
|
|
{ (char *)"CvImage_release", _wrap_CvImage_release, METH_VARARGS, (char *)"CvImage_release(CvImage self)"},
|
|
{ (char *)"CvImage_clear", _wrap_CvImage_clear, METH_VARARGS, (char *)"CvImage_clear(CvImage self)"},
|
|
{ (char *)"CvImage_attach", _wrap_CvImage_attach, METH_VARARGS, (char *)"\n"
|
|
"attach( img, bool use_refcount = True)\n"
|
|
"CvImage_attach(CvImage self, img)\n"
|
|
""},
|
|
{ (char *)"CvImage_detach", _wrap_CvImage_detach, METH_VARARGS, (char *)"CvImage_detach(CvImage self)"},
|
|
{ (char *)"CvImage_load", _wrap_CvImage_load, METH_VARARGS, (char *)"\n"
|
|
"load(char filename, char imgname = None, int color = -1) -> bool\n"
|
|
"load(char filename, char imgname = None) -> bool\n"
|
|
"CvImage_load(CvImage self, char filename) -> bool\n"
|
|
""},
|
|
{ (char *)"CvImage_read", _wrap_CvImage_read, METH_VARARGS, (char *)"\n"
|
|
"read(CvFileStorage fs, char mapname, char imgname) -> bool\n"
|
|
"CvImage_read(CvImage self, CvFileStorage fs, char seqname, int idx) -> bool\n"
|
|
""},
|
|
{ (char *)"CvImage_save", _wrap_CvImage_save, METH_VARARGS, (char *)"\n"
|
|
"save(char filename, char imgname, int params = None)\n"
|
|
"CvImage_save(CvImage self, char filename, char imgname)\n"
|
|
""},
|
|
{ (char *)"CvImage_write", _wrap_CvImage_write, METH_VARARGS, (char *)"CvImage_write(CvImage self, CvFileStorage fs, char imgname)"},
|
|
{ (char *)"CvImage_show", _wrap_CvImage_show, METH_VARARGS, (char *)"CvImage_show(CvImage self, char window_name)"},
|
|
{ (char *)"CvImage_is_valid", _wrap_CvImage_is_valid, METH_VARARGS, (char *)"CvImage_is_valid(CvImage self) -> bool"},
|
|
{ (char *)"CvImage_width", _wrap_CvImage_width, METH_VARARGS, (char *)"CvImage_width(CvImage self) -> int"},
|
|
{ (char *)"CvImage_height", _wrap_CvImage_height, METH_VARARGS, (char *)"CvImage_height(CvImage self) -> int"},
|
|
{ (char *)"CvImage_size", _wrap_CvImage_size, METH_VARARGS, (char *)"CvImage_size(CvImage self) -> CvSize"},
|
|
{ (char *)"CvImage_roi_size", _wrap_CvImage_roi_size, METH_VARARGS, (char *)"CvImage_roi_size(CvImage self) -> CvSize"},
|
|
{ (char *)"CvImage_roi", _wrap_CvImage_roi, METH_VARARGS, (char *)"CvImage_roi(CvImage self) -> CvRect"},
|
|
{ (char *)"CvImage_coi", _wrap_CvImage_coi, METH_VARARGS, (char *)"CvImage_coi(CvImage self) -> int"},
|
|
{ (char *)"CvImage_set_roi", _wrap_CvImage_set_roi, METH_VARARGS, (char *)"CvImage_set_roi(CvImage self, CvRect roi)"},
|
|
{ (char *)"CvImage_reset_roi", _wrap_CvImage_reset_roi, METH_VARARGS, (char *)"CvImage_reset_roi(CvImage self)"},
|
|
{ (char *)"CvImage_set_coi", _wrap_CvImage_set_coi, METH_VARARGS, (char *)"CvImage_set_coi(CvImage self, int coi)"},
|
|
{ (char *)"CvImage_depth", _wrap_CvImage_depth, METH_VARARGS, (char *)"CvImage_depth(CvImage self) -> int"},
|
|
{ (char *)"CvImage_channels", _wrap_CvImage_channels, METH_VARARGS, (char *)"CvImage_channels(CvImage self) -> int"},
|
|
{ (char *)"CvImage_pix_size", _wrap_CvImage_pix_size, METH_VARARGS, (char *)"CvImage_pix_size(CvImage self) -> int"},
|
|
{ (char *)"CvImage_data", _wrap_CvImage_data, METH_VARARGS, (char *)"\n"
|
|
"data() -> uchar\n"
|
|
"CvImage_data(CvImage self) -> uchar\n"
|
|
""},
|
|
{ (char *)"CvImage_step", _wrap_CvImage_step, METH_VARARGS, (char *)"CvImage_step(CvImage self) -> int"},
|
|
{ (char *)"CvImage_origin", _wrap_CvImage_origin, METH_VARARGS, (char *)"CvImage_origin(CvImage self) -> int"},
|
|
{ (char *)"CvImage_roi_row", _wrap_CvImage_roi_row, METH_VARARGS, (char *)"\n"
|
|
"roi_row(int y) -> uchar\n"
|
|
"CvImage_roi_row(CvImage self, int y) -> uchar\n"
|
|
""},
|
|
{ (char *)"CvImage_asIplImage", _wrap_CvImage_asIplImage, METH_VARARGS, (char *)"CvImage_asIplImage(CvImage self)"},
|
|
{ (char *)"CvImage_swigregister", CvImage_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"new_CvMatrix", _wrap_new_CvMatrix, METH_VARARGS, (char *)"\n"
|
|
"CvMatrix()\n"
|
|
"CvMatrix(int rows, int cols, int type)\n"
|
|
"CvMatrix(int rows, int cols, int type, CvMat hdr, void data = None, \n"
|
|
" int step = 0x7fffffff)\n"
|
|
"CvMatrix(int rows, int cols, int type, CvMat hdr, void data = None)\n"
|
|
"CvMatrix(int rows, int cols, int type, CvMat hdr)\n"
|
|
"CvMatrix(int rows, int cols, int type, CvMemStorage storage, \n"
|
|
" bool alloc_data = True)\n"
|
|
"CvMatrix(int rows, int cols, int type, CvMemStorage storage)\n"
|
|
"CvMatrix(int rows, int cols, int type, void data, int step = 0x7fffffff)\n"
|
|
"CvMatrix(int rows, int cols, int type, void data)\n"
|
|
"CvMatrix(CvMat m)\n"
|
|
"CvMatrix(CvMatrix m)\n"
|
|
"CvMatrix(char filename, char matname = None, int color = -1)\n"
|
|
"CvMatrix(char filename, char matname = None)\n"
|
|
"CvMatrix(char filename)\n"
|
|
"CvMatrix(CvFileStorage fs, char mapname, char matname)\n"
|
|
"new_CvMatrix(CvFileStorage fs, char seqname, int idx) -> CvMatrix\n"
|
|
""},
|
|
{ (char *)"delete_CvMatrix", _wrap_delete_CvMatrix, METH_VARARGS, (char *)"delete_CvMatrix(CvMatrix self)"},
|
|
{ (char *)"CvMatrix_clone", _wrap_CvMatrix_clone, METH_VARARGS, (char *)"CvMatrix_clone(CvMatrix self) -> CvMatrix"},
|
|
{ (char *)"CvMatrix_set", _wrap_CvMatrix_set, METH_VARARGS, (char *)"CvMatrix_set(CvMatrix self, CvMat m, bool add_ref)"},
|
|
{ (char *)"CvMatrix_create", _wrap_CvMatrix_create, METH_VARARGS, (char *)"CvMatrix_create(CvMatrix self, int rows, int cols, int type)"},
|
|
{ (char *)"CvMatrix_addref", _wrap_CvMatrix_addref, METH_VARARGS, (char *)"CvMatrix_addref(CvMatrix self)"},
|
|
{ (char *)"CvMatrix_release", _wrap_CvMatrix_release, METH_VARARGS, (char *)"CvMatrix_release(CvMatrix self)"},
|
|
{ (char *)"CvMatrix_clear", _wrap_CvMatrix_clear, METH_VARARGS, (char *)"CvMatrix_clear(CvMatrix self)"},
|
|
{ (char *)"CvMatrix_load", _wrap_CvMatrix_load, METH_VARARGS, (char *)"\n"
|
|
"load(char filename, char matname = None, int color = -1) -> bool\n"
|
|
"load(char filename, char matname = None) -> bool\n"
|
|
"CvMatrix_load(CvMatrix self, char filename) -> bool\n"
|
|
""},
|
|
{ (char *)"CvMatrix_read", _wrap_CvMatrix_read, METH_VARARGS, (char *)"\n"
|
|
"read(CvFileStorage fs, char mapname, char matname) -> bool\n"
|
|
"CvMatrix_read(CvMatrix self, CvFileStorage fs, char seqname, int idx) -> bool\n"
|
|
""},
|
|
{ (char *)"CvMatrix_save", _wrap_CvMatrix_save, METH_VARARGS, (char *)"\n"
|
|
"save(char filename, char matname, int params = None)\n"
|
|
"CvMatrix_save(CvMatrix self, char filename, char matname)\n"
|
|
""},
|
|
{ (char *)"CvMatrix_write", _wrap_CvMatrix_write, METH_VARARGS, (char *)"CvMatrix_write(CvMatrix self, CvFileStorage fs, char matname)"},
|
|
{ (char *)"CvMatrix_show", _wrap_CvMatrix_show, METH_VARARGS, (char *)"CvMatrix_show(CvMatrix self, char window_name)"},
|
|
{ (char *)"CvMatrix_is_valid", _wrap_CvMatrix_is_valid, METH_VARARGS, (char *)"CvMatrix_is_valid(CvMatrix self) -> bool"},
|
|
{ (char *)"CvMatrix_rows", _wrap_CvMatrix_rows, METH_VARARGS, (char *)"CvMatrix_rows(CvMatrix self) -> int"},
|
|
{ (char *)"CvMatrix_cols", _wrap_CvMatrix_cols, METH_VARARGS, (char *)"CvMatrix_cols(CvMatrix self) -> int"},
|
|
{ (char *)"CvMatrix_size", _wrap_CvMatrix_size, METH_VARARGS, (char *)"CvMatrix_size(CvMatrix self) -> CvSize"},
|
|
{ (char *)"CvMatrix_type", _wrap_CvMatrix_type, METH_VARARGS, (char *)"CvMatrix_type(CvMatrix self) -> int"},
|
|
{ (char *)"CvMatrix_depth", _wrap_CvMatrix_depth, METH_VARARGS, (char *)"CvMatrix_depth(CvMatrix self) -> int"},
|
|
{ (char *)"CvMatrix_channels", _wrap_CvMatrix_channels, METH_VARARGS, (char *)"CvMatrix_channels(CvMatrix self) -> int"},
|
|
{ (char *)"CvMatrix_pix_size", _wrap_CvMatrix_pix_size, METH_VARARGS, (char *)"CvMatrix_pix_size(CvMatrix self) -> int"},
|
|
{ (char *)"CvMatrix_data", _wrap_CvMatrix_data, METH_VARARGS, (char *)"\n"
|
|
"data() -> uchar\n"
|
|
"CvMatrix_data(CvMatrix self) -> uchar\n"
|
|
""},
|
|
{ (char *)"CvMatrix_step", _wrap_CvMatrix_step, METH_VARARGS, (char *)"CvMatrix_step(CvMatrix self) -> int"},
|
|
{ (char *)"CvMatrix_set_data", _wrap_CvMatrix_set_data, METH_VARARGS, (char *)"\n"
|
|
"set_data(void data, int step = 0x7fffffff)\n"
|
|
"CvMatrix_set_data(CvMatrix self, void data)\n"
|
|
""},
|
|
{ (char *)"CvMatrix_row", _wrap_CvMatrix_row, METH_VARARGS, (char *)"\n"
|
|
"row(int i) -> uchar\n"
|
|
"CvMatrix_row(CvMatrix self, int i) -> uchar\n"
|
|
""},
|
|
{ (char *)"CvMatrix_asCvMat", _wrap_CvMatrix_asCvMat, METH_VARARGS, (char *)"CvMatrix_asCvMat(CvMatrix self) -> CvMat"},
|
|
{ (char *)"CvMatrix_swigregister", CvMatrix_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"new_CvModule", _wrap_new_CvModule, METH_VARARGS, (char *)"new_CvModule(CvModuleInfo _info) -> CvModule"},
|
|
{ (char *)"delete_CvModule", _wrap_delete_CvModule, METH_VARARGS, (char *)"delete_CvModule(CvModule self)"},
|
|
{ (char *)"CvModule_info_set", _wrap_CvModule_info_set, METH_VARARGS, (char *)"CvModule_info_set(CvModule self, CvModuleInfo info)"},
|
|
{ (char *)"CvModule_info_get", _wrap_CvModule_info_get, METH_VARARGS, (char *)"CvModule_info_get(CvModule self) -> CvModuleInfo"},
|
|
{ (char *)"CvModule_first_get", _wrap_CvModule_first_get, METH_VARARGS, NULL},
|
|
{ (char *)"CvModule_first_set", _wrap_CvModule_first_set, METH_VARARGS, NULL},
|
|
{ (char *)"CvModule_last_get", _wrap_CvModule_last_get, METH_VARARGS, NULL},
|
|
{ (char *)"CvModule_last_set", _wrap_CvModule_last_set, METH_VARARGS, NULL},
|
|
{ (char *)"CvModule_swigregister", CvModule_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"new_CvType", _wrap_new_CvType, METH_VARARGS, (char *)"\n"
|
|
"CvType(char type_name, CvIsInstanceFunc is_instance, CvReleaseFunc release = 0, \n"
|
|
" CvReadFunc read = 0, CvWriteFunc write = 0, \n"
|
|
" CvCloneFunc clone = 0)\n"
|
|
"CvType(char type_name, CvIsInstanceFunc is_instance, CvReleaseFunc release = 0, \n"
|
|
" CvReadFunc read = 0, CvWriteFunc write = 0)\n"
|
|
"CvType(char type_name, CvIsInstanceFunc is_instance, CvReleaseFunc release = 0, \n"
|
|
" CvReadFunc read = 0)\n"
|
|
"CvType(char type_name, CvIsInstanceFunc is_instance, CvReleaseFunc release = 0)\n"
|
|
"new_CvType(char type_name, CvIsInstanceFunc is_instance) -> CvType\n"
|
|
""},
|
|
{ (char *)"delete_CvType", _wrap_delete_CvType, METH_VARARGS, (char *)"delete_CvType(CvType self)"},
|
|
{ (char *)"CvType_info_set", _wrap_CvType_info_set, METH_VARARGS, (char *)"CvType_info_set(CvType self, CvTypeInfo info)"},
|
|
{ (char *)"CvType_info_get", _wrap_CvType_info_get, METH_VARARGS, (char *)"CvType_info_get(CvType self) -> CvTypeInfo"},
|
|
{ (char *)"CvType_first_get", _wrap_CvType_first_get, METH_VARARGS, NULL},
|
|
{ (char *)"CvType_first_set", _wrap_CvType_first_set, METH_VARARGS, NULL},
|
|
{ (char *)"CvType_last_get", _wrap_CvType_last_get, METH_VARARGS, NULL},
|
|
{ (char *)"CvType_last_set", _wrap_CvType_last_set, METH_VARARGS, NULL},
|
|
{ (char *)"CvType_swigregister", CvType_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvMoments_m00_set", _wrap_CvMoments_m00_set, METH_VARARGS, (char *)"CvMoments_m00_set(CvMoments self, double m00)"},
|
|
{ (char *)"CvMoments_m00_get", _wrap_CvMoments_m00_get, METH_VARARGS, (char *)"CvMoments_m00_get(CvMoments self) -> double"},
|
|
{ (char *)"CvMoments_m10_set", _wrap_CvMoments_m10_set, METH_VARARGS, (char *)"CvMoments_m10_set(CvMoments self, double m10)"},
|
|
{ (char *)"CvMoments_m10_get", _wrap_CvMoments_m10_get, METH_VARARGS, (char *)"CvMoments_m10_get(CvMoments self) -> double"},
|
|
{ (char *)"CvMoments_m01_set", _wrap_CvMoments_m01_set, METH_VARARGS, (char *)"CvMoments_m01_set(CvMoments self, double m01)"},
|
|
{ (char *)"CvMoments_m01_get", _wrap_CvMoments_m01_get, METH_VARARGS, (char *)"CvMoments_m01_get(CvMoments self) -> double"},
|
|
{ (char *)"CvMoments_m20_set", _wrap_CvMoments_m20_set, METH_VARARGS, (char *)"CvMoments_m20_set(CvMoments self, double m20)"},
|
|
{ (char *)"CvMoments_m20_get", _wrap_CvMoments_m20_get, METH_VARARGS, (char *)"CvMoments_m20_get(CvMoments self) -> double"},
|
|
{ (char *)"CvMoments_m11_set", _wrap_CvMoments_m11_set, METH_VARARGS, (char *)"CvMoments_m11_set(CvMoments self, double m11)"},
|
|
{ (char *)"CvMoments_m11_get", _wrap_CvMoments_m11_get, METH_VARARGS, (char *)"CvMoments_m11_get(CvMoments self) -> double"},
|
|
{ (char *)"CvMoments_m02_set", _wrap_CvMoments_m02_set, METH_VARARGS, (char *)"CvMoments_m02_set(CvMoments self, double m02)"},
|
|
{ (char *)"CvMoments_m02_get", _wrap_CvMoments_m02_get, METH_VARARGS, (char *)"CvMoments_m02_get(CvMoments self) -> double"},
|
|
{ (char *)"CvMoments_m30_set", _wrap_CvMoments_m30_set, METH_VARARGS, (char *)"CvMoments_m30_set(CvMoments self, double m30)"},
|
|
{ (char *)"CvMoments_m30_get", _wrap_CvMoments_m30_get, METH_VARARGS, (char *)"CvMoments_m30_get(CvMoments self) -> double"},
|
|
{ (char *)"CvMoments_m21_set", _wrap_CvMoments_m21_set, METH_VARARGS, (char *)"CvMoments_m21_set(CvMoments self, double m21)"},
|
|
{ (char *)"CvMoments_m21_get", _wrap_CvMoments_m21_get, METH_VARARGS, (char *)"CvMoments_m21_get(CvMoments self) -> double"},
|
|
{ (char *)"CvMoments_m12_set", _wrap_CvMoments_m12_set, METH_VARARGS, (char *)"CvMoments_m12_set(CvMoments self, double m12)"},
|
|
{ (char *)"CvMoments_m12_get", _wrap_CvMoments_m12_get, METH_VARARGS, (char *)"CvMoments_m12_get(CvMoments self) -> double"},
|
|
{ (char *)"CvMoments_m03_set", _wrap_CvMoments_m03_set, METH_VARARGS, (char *)"CvMoments_m03_set(CvMoments self, double m03)"},
|
|
{ (char *)"CvMoments_m03_get", _wrap_CvMoments_m03_get, METH_VARARGS, (char *)"CvMoments_m03_get(CvMoments self) -> double"},
|
|
{ (char *)"CvMoments_mu20_set", _wrap_CvMoments_mu20_set, METH_VARARGS, (char *)"CvMoments_mu20_set(CvMoments self, double mu20)"},
|
|
{ (char *)"CvMoments_mu20_get", _wrap_CvMoments_mu20_get, METH_VARARGS, (char *)"CvMoments_mu20_get(CvMoments self) -> double"},
|
|
{ (char *)"CvMoments_mu11_set", _wrap_CvMoments_mu11_set, METH_VARARGS, (char *)"CvMoments_mu11_set(CvMoments self, double mu11)"},
|
|
{ (char *)"CvMoments_mu11_get", _wrap_CvMoments_mu11_get, METH_VARARGS, (char *)"CvMoments_mu11_get(CvMoments self) -> double"},
|
|
{ (char *)"CvMoments_mu02_set", _wrap_CvMoments_mu02_set, METH_VARARGS, (char *)"CvMoments_mu02_set(CvMoments self, double mu02)"},
|
|
{ (char *)"CvMoments_mu02_get", _wrap_CvMoments_mu02_get, METH_VARARGS, (char *)"CvMoments_mu02_get(CvMoments self) -> double"},
|
|
{ (char *)"CvMoments_mu30_set", _wrap_CvMoments_mu30_set, METH_VARARGS, (char *)"CvMoments_mu30_set(CvMoments self, double mu30)"},
|
|
{ (char *)"CvMoments_mu30_get", _wrap_CvMoments_mu30_get, METH_VARARGS, (char *)"CvMoments_mu30_get(CvMoments self) -> double"},
|
|
{ (char *)"CvMoments_mu21_set", _wrap_CvMoments_mu21_set, METH_VARARGS, (char *)"CvMoments_mu21_set(CvMoments self, double mu21)"},
|
|
{ (char *)"CvMoments_mu21_get", _wrap_CvMoments_mu21_get, METH_VARARGS, (char *)"CvMoments_mu21_get(CvMoments self) -> double"},
|
|
{ (char *)"CvMoments_mu12_set", _wrap_CvMoments_mu12_set, METH_VARARGS, (char *)"CvMoments_mu12_set(CvMoments self, double mu12)"},
|
|
{ (char *)"CvMoments_mu12_get", _wrap_CvMoments_mu12_get, METH_VARARGS, (char *)"CvMoments_mu12_get(CvMoments self) -> double"},
|
|
{ (char *)"CvMoments_mu03_set", _wrap_CvMoments_mu03_set, METH_VARARGS, (char *)"CvMoments_mu03_set(CvMoments self, double mu03)"},
|
|
{ (char *)"CvMoments_mu03_get", _wrap_CvMoments_mu03_get, METH_VARARGS, (char *)"CvMoments_mu03_get(CvMoments self) -> double"},
|
|
{ (char *)"CvMoments_inv_sqrt_m00_set", _wrap_CvMoments_inv_sqrt_m00_set, METH_VARARGS, (char *)"CvMoments_inv_sqrt_m00_set(CvMoments self, double inv_sqrt_m00)"},
|
|
{ (char *)"CvMoments_inv_sqrt_m00_get", _wrap_CvMoments_inv_sqrt_m00_get, METH_VARARGS, (char *)"CvMoments_inv_sqrt_m00_get(CvMoments self) -> double"},
|
|
{ (char *)"new_CvMoments", _wrap_new_CvMoments, METH_VARARGS, (char *)"new_CvMoments() -> CvMoments"},
|
|
{ (char *)"delete_CvMoments", _wrap_delete_CvMoments, METH_VARARGS, (char *)"delete_CvMoments(CvMoments self)"},
|
|
{ (char *)"CvMoments_swigregister", CvMoments_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvHuMoments_hu1_set", _wrap_CvHuMoments_hu1_set, METH_VARARGS, (char *)"CvHuMoments_hu1_set(CvHuMoments self, double hu1)"},
|
|
{ (char *)"CvHuMoments_hu1_get", _wrap_CvHuMoments_hu1_get, METH_VARARGS, (char *)"CvHuMoments_hu1_get(CvHuMoments self) -> double"},
|
|
{ (char *)"CvHuMoments_hu2_set", _wrap_CvHuMoments_hu2_set, METH_VARARGS, (char *)"CvHuMoments_hu2_set(CvHuMoments self, double hu2)"},
|
|
{ (char *)"CvHuMoments_hu2_get", _wrap_CvHuMoments_hu2_get, METH_VARARGS, (char *)"CvHuMoments_hu2_get(CvHuMoments self) -> double"},
|
|
{ (char *)"CvHuMoments_hu3_set", _wrap_CvHuMoments_hu3_set, METH_VARARGS, (char *)"CvHuMoments_hu3_set(CvHuMoments self, double hu3)"},
|
|
{ (char *)"CvHuMoments_hu3_get", _wrap_CvHuMoments_hu3_get, METH_VARARGS, (char *)"CvHuMoments_hu3_get(CvHuMoments self) -> double"},
|
|
{ (char *)"CvHuMoments_hu4_set", _wrap_CvHuMoments_hu4_set, METH_VARARGS, (char *)"CvHuMoments_hu4_set(CvHuMoments self, double hu4)"},
|
|
{ (char *)"CvHuMoments_hu4_get", _wrap_CvHuMoments_hu4_get, METH_VARARGS, (char *)"CvHuMoments_hu4_get(CvHuMoments self) -> double"},
|
|
{ (char *)"CvHuMoments_hu5_set", _wrap_CvHuMoments_hu5_set, METH_VARARGS, (char *)"CvHuMoments_hu5_set(CvHuMoments self, double hu5)"},
|
|
{ (char *)"CvHuMoments_hu5_get", _wrap_CvHuMoments_hu5_get, METH_VARARGS, (char *)"CvHuMoments_hu5_get(CvHuMoments self) -> double"},
|
|
{ (char *)"CvHuMoments_hu6_set", _wrap_CvHuMoments_hu6_set, METH_VARARGS, (char *)"CvHuMoments_hu6_set(CvHuMoments self, double hu6)"},
|
|
{ (char *)"CvHuMoments_hu6_get", _wrap_CvHuMoments_hu6_get, METH_VARARGS, (char *)"CvHuMoments_hu6_get(CvHuMoments self) -> double"},
|
|
{ (char *)"CvHuMoments_hu7_set", _wrap_CvHuMoments_hu7_set, METH_VARARGS, (char *)"CvHuMoments_hu7_set(CvHuMoments self, double hu7)"},
|
|
{ (char *)"CvHuMoments_hu7_get", _wrap_CvHuMoments_hu7_get, METH_VARARGS, (char *)"CvHuMoments_hu7_get(CvHuMoments self) -> double"},
|
|
{ (char *)"new_CvHuMoments", _wrap_new_CvHuMoments, METH_VARARGS, (char *)"new_CvHuMoments() -> CvHuMoments"},
|
|
{ (char *)"delete_CvHuMoments", _wrap_delete_CvHuMoments, METH_VARARGS, (char *)"delete_CvHuMoments(CvHuMoments self)"},
|
|
{ (char *)"CvHuMoments_swigregister", CvHuMoments_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvConnectedComp_area_set", _wrap_CvConnectedComp_area_set, METH_VARARGS, (char *)"CvConnectedComp_area_set(CvConnectedComp self, double area)"},
|
|
{ (char *)"CvConnectedComp_area_get", _wrap_CvConnectedComp_area_get, METH_VARARGS, (char *)"CvConnectedComp_area_get(CvConnectedComp self) -> double"},
|
|
{ (char *)"CvConnectedComp_value_set", _wrap_CvConnectedComp_value_set, METH_VARARGS, (char *)"CvConnectedComp_value_set(CvConnectedComp self, CvScalar value)"},
|
|
{ (char *)"CvConnectedComp_value_get", _wrap_CvConnectedComp_value_get, METH_VARARGS, (char *)"CvConnectedComp_value_get(CvConnectedComp self) -> CvScalar"},
|
|
{ (char *)"CvConnectedComp_rect_set", _wrap_CvConnectedComp_rect_set, METH_VARARGS, (char *)"CvConnectedComp_rect_set(CvConnectedComp self, CvRect rect)"},
|
|
{ (char *)"CvConnectedComp_rect_get", _wrap_CvConnectedComp_rect_get, METH_VARARGS, (char *)"CvConnectedComp_rect_get(CvConnectedComp self) -> CvRect"},
|
|
{ (char *)"CvConnectedComp_contour_set", _wrap_CvConnectedComp_contour_set, METH_VARARGS, (char *)"CvConnectedComp_contour_set(CvConnectedComp self, CvSeq contour)"},
|
|
{ (char *)"CvConnectedComp_contour_get", _wrap_CvConnectedComp_contour_get, METH_VARARGS, (char *)"CvConnectedComp_contour_get(CvConnectedComp self) -> CvSeq"},
|
|
{ (char *)"new_CvConnectedComp", _wrap_new_CvConnectedComp, METH_VARARGS, (char *)"new_CvConnectedComp() -> CvConnectedComp"},
|
|
{ (char *)"delete_CvConnectedComp", _wrap_delete_CvConnectedComp, METH_VARARGS, (char *)"delete_CvConnectedComp(CvConnectedComp self)"},
|
|
{ (char *)"CvConnectedComp_swigregister", CvConnectedComp_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvChainPtReader_header_size_set", _wrap_CvChainPtReader_header_size_set, METH_VARARGS, (char *)"CvChainPtReader_header_size_set(CvChainPtReader self, int header_size)"},
|
|
{ (char *)"CvChainPtReader_header_size_get", _wrap_CvChainPtReader_header_size_get, METH_VARARGS, (char *)"CvChainPtReader_header_size_get(CvChainPtReader self) -> int"},
|
|
{ (char *)"CvChainPtReader_seq_set", _wrap_CvChainPtReader_seq_set, METH_VARARGS, (char *)"CvChainPtReader_seq_set(CvChainPtReader self, CvSeq seq)"},
|
|
{ (char *)"CvChainPtReader_seq_get", _wrap_CvChainPtReader_seq_get, METH_VARARGS, (char *)"CvChainPtReader_seq_get(CvChainPtReader self) -> CvSeq"},
|
|
{ (char *)"CvChainPtReader_block_set", _wrap_CvChainPtReader_block_set, METH_VARARGS, (char *)"CvChainPtReader_block_set(CvChainPtReader self, CvSeqBlock block)"},
|
|
{ (char *)"CvChainPtReader_block_get", _wrap_CvChainPtReader_block_get, METH_VARARGS, (char *)"CvChainPtReader_block_get(CvChainPtReader self) -> CvSeqBlock"},
|
|
{ (char *)"CvChainPtReader_ptr_set", _wrap_CvChainPtReader_ptr_set, METH_VARARGS, (char *)"CvChainPtReader_ptr_set(CvChainPtReader self, schar ptr)"},
|
|
{ (char *)"CvChainPtReader_ptr_get", _wrap_CvChainPtReader_ptr_get, METH_VARARGS, (char *)"CvChainPtReader_ptr_get(CvChainPtReader self) -> schar"},
|
|
{ (char *)"CvChainPtReader_block_min_set", _wrap_CvChainPtReader_block_min_set, METH_VARARGS, (char *)"CvChainPtReader_block_min_set(CvChainPtReader self, schar block_min)"},
|
|
{ (char *)"CvChainPtReader_block_min_get", _wrap_CvChainPtReader_block_min_get, METH_VARARGS, (char *)"CvChainPtReader_block_min_get(CvChainPtReader self) -> schar"},
|
|
{ (char *)"CvChainPtReader_block_max_set", _wrap_CvChainPtReader_block_max_set, METH_VARARGS, (char *)"CvChainPtReader_block_max_set(CvChainPtReader self, schar block_max)"},
|
|
{ (char *)"CvChainPtReader_block_max_get", _wrap_CvChainPtReader_block_max_get, METH_VARARGS, (char *)"CvChainPtReader_block_max_get(CvChainPtReader self) -> schar"},
|
|
{ (char *)"CvChainPtReader_delta_index_set", _wrap_CvChainPtReader_delta_index_set, METH_VARARGS, (char *)"CvChainPtReader_delta_index_set(CvChainPtReader self, int delta_index)"},
|
|
{ (char *)"CvChainPtReader_delta_index_get", _wrap_CvChainPtReader_delta_index_get, METH_VARARGS, (char *)"CvChainPtReader_delta_index_get(CvChainPtReader self) -> int"},
|
|
{ (char *)"CvChainPtReader_prev_elem_set", _wrap_CvChainPtReader_prev_elem_set, METH_VARARGS, (char *)"CvChainPtReader_prev_elem_set(CvChainPtReader self, schar prev_elem)"},
|
|
{ (char *)"CvChainPtReader_prev_elem_get", _wrap_CvChainPtReader_prev_elem_get, METH_VARARGS, (char *)"CvChainPtReader_prev_elem_get(CvChainPtReader self) -> schar"},
|
|
{ (char *)"CvChainPtReader_code_set", _wrap_CvChainPtReader_code_set, METH_VARARGS, (char *)"CvChainPtReader_code_set(CvChainPtReader self, char code)"},
|
|
{ (char *)"CvChainPtReader_code_get", _wrap_CvChainPtReader_code_get, METH_VARARGS, (char *)"CvChainPtReader_code_get(CvChainPtReader self) -> char"},
|
|
{ (char *)"CvChainPtReader_pt_set", _wrap_CvChainPtReader_pt_set, METH_VARARGS, (char *)"CvChainPtReader_pt_set(CvChainPtReader self, CvPoint pt)"},
|
|
{ (char *)"CvChainPtReader_pt_get", _wrap_CvChainPtReader_pt_get, METH_VARARGS, (char *)"CvChainPtReader_pt_get(CvChainPtReader self) -> CvPoint"},
|
|
{ (char *)"CvChainPtReader_deltas_set", _wrap_CvChainPtReader_deltas_set, METH_VARARGS, (char *)"CvChainPtReader_deltas_set(CvChainPtReader self, schar deltas)"},
|
|
{ (char *)"CvChainPtReader_deltas_get", _wrap_CvChainPtReader_deltas_get, METH_VARARGS, (char *)"CvChainPtReader_deltas_get(CvChainPtReader self) -> schar"},
|
|
{ (char *)"new_CvChainPtReader", _wrap_new_CvChainPtReader, METH_VARARGS, (char *)"new_CvChainPtReader() -> CvChainPtReader"},
|
|
{ (char *)"delete_CvChainPtReader", _wrap_delete_CvChainPtReader, METH_VARARGS, (char *)"delete_CvChainPtReader(CvChainPtReader self)"},
|
|
{ (char *)"CvChainPtReader_swigregister", CvChainPtReader_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvContourTree_flags_set", _wrap_CvContourTree_flags_set, METH_VARARGS, (char *)"CvContourTree_flags_set(CvContourTree self, int flags)"},
|
|
{ (char *)"CvContourTree_flags_get", _wrap_CvContourTree_flags_get, METH_VARARGS, (char *)"CvContourTree_flags_get(CvContourTree self) -> int"},
|
|
{ (char *)"CvContourTree_header_size_set", _wrap_CvContourTree_header_size_set, METH_VARARGS, (char *)"CvContourTree_header_size_set(CvContourTree self, int header_size)"},
|
|
{ (char *)"CvContourTree_header_size_get", _wrap_CvContourTree_header_size_get, METH_VARARGS, (char *)"CvContourTree_header_size_get(CvContourTree self) -> int"},
|
|
{ (char *)"CvContourTree_h_prev_set", _wrap_CvContourTree_h_prev_set, METH_VARARGS, (char *)"CvContourTree_h_prev_set(CvContourTree self, CvSeq h_prev)"},
|
|
{ (char *)"CvContourTree_h_prev_get", _wrap_CvContourTree_h_prev_get, METH_VARARGS, (char *)"CvContourTree_h_prev_get(CvContourTree self) -> CvSeq"},
|
|
{ (char *)"CvContourTree_h_next_set", _wrap_CvContourTree_h_next_set, METH_VARARGS, (char *)"CvContourTree_h_next_set(CvContourTree self, CvSeq h_next)"},
|
|
{ (char *)"CvContourTree_h_next_get", _wrap_CvContourTree_h_next_get, METH_VARARGS, (char *)"CvContourTree_h_next_get(CvContourTree self) -> CvSeq"},
|
|
{ (char *)"CvContourTree_v_prev_set", _wrap_CvContourTree_v_prev_set, METH_VARARGS, (char *)"CvContourTree_v_prev_set(CvContourTree self, CvSeq v_prev)"},
|
|
{ (char *)"CvContourTree_v_prev_get", _wrap_CvContourTree_v_prev_get, METH_VARARGS, (char *)"CvContourTree_v_prev_get(CvContourTree self) -> CvSeq"},
|
|
{ (char *)"CvContourTree_v_next_set", _wrap_CvContourTree_v_next_set, METH_VARARGS, (char *)"CvContourTree_v_next_set(CvContourTree self, CvSeq v_next)"},
|
|
{ (char *)"CvContourTree_v_next_get", _wrap_CvContourTree_v_next_get, METH_VARARGS, (char *)"CvContourTree_v_next_get(CvContourTree self) -> CvSeq"},
|
|
{ (char *)"CvContourTree_total_set", _wrap_CvContourTree_total_set, METH_VARARGS, (char *)"CvContourTree_total_set(CvContourTree self, int total)"},
|
|
{ (char *)"CvContourTree_total_get", _wrap_CvContourTree_total_get, METH_VARARGS, (char *)"CvContourTree_total_get(CvContourTree self) -> int"},
|
|
{ (char *)"CvContourTree_elem_size_set", _wrap_CvContourTree_elem_size_set, METH_VARARGS, (char *)"CvContourTree_elem_size_set(CvContourTree self, int elem_size)"},
|
|
{ (char *)"CvContourTree_elem_size_get", _wrap_CvContourTree_elem_size_get, METH_VARARGS, (char *)"CvContourTree_elem_size_get(CvContourTree self) -> int"},
|
|
{ (char *)"CvContourTree_block_max_set", _wrap_CvContourTree_block_max_set, METH_VARARGS, (char *)"CvContourTree_block_max_set(CvContourTree self, schar block_max)"},
|
|
{ (char *)"CvContourTree_block_max_get", _wrap_CvContourTree_block_max_get, METH_VARARGS, (char *)"CvContourTree_block_max_get(CvContourTree self) -> schar"},
|
|
{ (char *)"CvContourTree_ptr_set", _wrap_CvContourTree_ptr_set, METH_VARARGS, (char *)"CvContourTree_ptr_set(CvContourTree self, schar ptr)"},
|
|
{ (char *)"CvContourTree_ptr_get", _wrap_CvContourTree_ptr_get, METH_VARARGS, (char *)"CvContourTree_ptr_get(CvContourTree self) -> schar"},
|
|
{ (char *)"CvContourTree_delta_elems_set", _wrap_CvContourTree_delta_elems_set, METH_VARARGS, (char *)"CvContourTree_delta_elems_set(CvContourTree self, int delta_elems)"},
|
|
{ (char *)"CvContourTree_delta_elems_get", _wrap_CvContourTree_delta_elems_get, METH_VARARGS, (char *)"CvContourTree_delta_elems_get(CvContourTree self) -> int"},
|
|
{ (char *)"CvContourTree_storage_set", _wrap_CvContourTree_storage_set, METH_VARARGS, (char *)"CvContourTree_storage_set(CvContourTree self, CvMemStorage storage)"},
|
|
{ (char *)"CvContourTree_storage_get", _wrap_CvContourTree_storage_get, METH_VARARGS, (char *)"CvContourTree_storage_get(CvContourTree self) -> CvMemStorage"},
|
|
{ (char *)"CvContourTree_free_blocks_set", _wrap_CvContourTree_free_blocks_set, METH_VARARGS, (char *)"CvContourTree_free_blocks_set(CvContourTree self, CvSeqBlock free_blocks)"},
|
|
{ (char *)"CvContourTree_free_blocks_get", _wrap_CvContourTree_free_blocks_get, METH_VARARGS, (char *)"CvContourTree_free_blocks_get(CvContourTree self) -> CvSeqBlock"},
|
|
{ (char *)"CvContourTree_first_set", _wrap_CvContourTree_first_set, METH_VARARGS, (char *)"CvContourTree_first_set(CvContourTree self, CvSeqBlock first)"},
|
|
{ (char *)"CvContourTree_first_get", _wrap_CvContourTree_first_get, METH_VARARGS, (char *)"CvContourTree_first_get(CvContourTree self) -> CvSeqBlock"},
|
|
{ (char *)"CvContourTree_p1_set", _wrap_CvContourTree_p1_set, METH_VARARGS, (char *)"CvContourTree_p1_set(CvContourTree self, CvPoint p1)"},
|
|
{ (char *)"CvContourTree_p1_get", _wrap_CvContourTree_p1_get, METH_VARARGS, (char *)"CvContourTree_p1_get(CvContourTree self) -> CvPoint"},
|
|
{ (char *)"CvContourTree_p2_set", _wrap_CvContourTree_p2_set, METH_VARARGS, (char *)"CvContourTree_p2_set(CvContourTree self, CvPoint p2)"},
|
|
{ (char *)"CvContourTree_p2_get", _wrap_CvContourTree_p2_get, METH_VARARGS, (char *)"CvContourTree_p2_get(CvContourTree self) -> CvPoint"},
|
|
{ (char *)"new_CvContourTree", _wrap_new_CvContourTree, METH_VARARGS, (char *)"new_CvContourTree() -> CvContourTree"},
|
|
{ (char *)"delete_CvContourTree", _wrap_delete_CvContourTree, METH_VARARGS, (char *)"delete_CvContourTree(CvContourTree self)"},
|
|
{ (char *)"CvContourTree_swigregister", CvContourTree_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvConvexityDefect_start_set", _wrap_CvConvexityDefect_start_set, METH_VARARGS, (char *)"CvConvexityDefect_start_set(CvConvexityDefect self, CvPoint start)"},
|
|
{ (char *)"CvConvexityDefect_start_get", _wrap_CvConvexityDefect_start_get, METH_VARARGS, (char *)"CvConvexityDefect_start_get(CvConvexityDefect self) -> CvPoint"},
|
|
{ (char *)"CvConvexityDefect_end_set", _wrap_CvConvexityDefect_end_set, METH_VARARGS, (char *)"CvConvexityDefect_end_set(CvConvexityDefect self, CvPoint end)"},
|
|
{ (char *)"CvConvexityDefect_end_get", _wrap_CvConvexityDefect_end_get, METH_VARARGS, (char *)"CvConvexityDefect_end_get(CvConvexityDefect self) -> CvPoint"},
|
|
{ (char *)"CvConvexityDefect_depth_point_set", _wrap_CvConvexityDefect_depth_point_set, METH_VARARGS, (char *)"CvConvexityDefect_depth_point_set(CvConvexityDefect self, CvPoint depth_point)"},
|
|
{ (char *)"CvConvexityDefect_depth_point_get", _wrap_CvConvexityDefect_depth_point_get, METH_VARARGS, (char *)"CvConvexityDefect_depth_point_get(CvConvexityDefect self) -> CvPoint"},
|
|
{ (char *)"CvConvexityDefect_depth_set", _wrap_CvConvexityDefect_depth_set, METH_VARARGS, (char *)"CvConvexityDefect_depth_set(CvConvexityDefect self, float depth)"},
|
|
{ (char *)"CvConvexityDefect_depth_get", _wrap_CvConvexityDefect_depth_get, METH_VARARGS, (char *)"CvConvexityDefect_depth_get(CvConvexityDefect self) -> float"},
|
|
{ (char *)"new_CvConvexityDefect", _wrap_new_CvConvexityDefect, METH_VARARGS, (char *)"new_CvConvexityDefect() -> CvConvexityDefect"},
|
|
{ (char *)"delete_CvConvexityDefect", _wrap_delete_CvConvexityDefect, METH_VARARGS, (char *)"delete_CvConvexityDefect(CvConvexityDefect self)"},
|
|
{ (char *)"CvConvexityDefect_swigregister", CvConvexityDefect_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvQuadEdge2D_flags_set", _wrap_CvQuadEdge2D_flags_set, METH_VARARGS, (char *)"CvQuadEdge2D_flags_set(CvQuadEdge2D self, int flags)"},
|
|
{ (char *)"CvQuadEdge2D_flags_get", _wrap_CvQuadEdge2D_flags_get, METH_VARARGS, (char *)"CvQuadEdge2D_flags_get(CvQuadEdge2D self) -> int"},
|
|
{ (char *)"CvQuadEdge2D_pt_set", _wrap_CvQuadEdge2D_pt_set, METH_VARARGS, (char *)"CvQuadEdge2D_pt_set(CvQuadEdge2D self, CvSubdiv2DPoint pt)"},
|
|
{ (char *)"CvQuadEdge2D_pt_get", _wrap_CvQuadEdge2D_pt_get, METH_VARARGS, (char *)"CvQuadEdge2D_pt_get(CvQuadEdge2D self) -> CvSubdiv2DPoint"},
|
|
{ (char *)"CvQuadEdge2D_next_set", _wrap_CvQuadEdge2D_next_set, METH_VARARGS, (char *)"CvQuadEdge2D_next_set(CvQuadEdge2D self, CvSubdiv2DEdge next)"},
|
|
{ (char *)"CvQuadEdge2D_next_get", _wrap_CvQuadEdge2D_next_get, METH_VARARGS, (char *)"CvQuadEdge2D_next_get(CvQuadEdge2D self) -> CvSubdiv2DEdge"},
|
|
{ (char *)"new_CvQuadEdge2D", _wrap_new_CvQuadEdge2D, METH_VARARGS, (char *)"new_CvQuadEdge2D() -> CvQuadEdge2D"},
|
|
{ (char *)"delete_CvQuadEdge2D", _wrap_delete_CvQuadEdge2D, METH_VARARGS, (char *)"delete_CvQuadEdge2D(CvQuadEdge2D self)"},
|
|
{ (char *)"CvQuadEdge2D_swigregister", CvQuadEdge2D_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSubdiv2DPoint_flags_set", _wrap_CvSubdiv2DPoint_flags_set, METH_VARARGS, (char *)"CvSubdiv2DPoint_flags_set(CvSubdiv2DPoint self, int flags)"},
|
|
{ (char *)"CvSubdiv2DPoint_flags_get", _wrap_CvSubdiv2DPoint_flags_get, METH_VARARGS, (char *)"CvSubdiv2DPoint_flags_get(CvSubdiv2DPoint self) -> int"},
|
|
{ (char *)"CvSubdiv2DPoint_first_set", _wrap_CvSubdiv2DPoint_first_set, METH_VARARGS, (char *)"CvSubdiv2DPoint_first_set(CvSubdiv2DPoint self, CvSubdiv2DEdge first)"},
|
|
{ (char *)"CvSubdiv2DPoint_first_get", _wrap_CvSubdiv2DPoint_first_get, METH_VARARGS, (char *)"CvSubdiv2DPoint_first_get(CvSubdiv2DPoint self) -> CvSubdiv2DEdge"},
|
|
{ (char *)"CvSubdiv2DPoint_pt_set", _wrap_CvSubdiv2DPoint_pt_set, METH_VARARGS, (char *)"CvSubdiv2DPoint_pt_set(CvSubdiv2DPoint self, CvPoint2D32f pt)"},
|
|
{ (char *)"CvSubdiv2DPoint_pt_get", _wrap_CvSubdiv2DPoint_pt_get, METH_VARARGS, (char *)"CvSubdiv2DPoint_pt_get(CvSubdiv2DPoint self) -> CvPoint2D32f"},
|
|
{ (char *)"new_CvSubdiv2DPoint", _wrap_new_CvSubdiv2DPoint, METH_VARARGS, (char *)"new_CvSubdiv2DPoint() -> CvSubdiv2DPoint"},
|
|
{ (char *)"delete_CvSubdiv2DPoint", _wrap_delete_CvSubdiv2DPoint, METH_VARARGS, (char *)"delete_CvSubdiv2DPoint(CvSubdiv2DPoint self)"},
|
|
{ (char *)"CvSubdiv2DPoint_swigregister", CvSubdiv2DPoint_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSubdiv2D_flags_set", _wrap_CvSubdiv2D_flags_set, METH_VARARGS, (char *)"CvSubdiv2D_flags_set(CvSubdiv2D self, int flags)"},
|
|
{ (char *)"CvSubdiv2D_flags_get", _wrap_CvSubdiv2D_flags_get, METH_VARARGS, (char *)"CvSubdiv2D_flags_get(CvSubdiv2D self) -> int"},
|
|
{ (char *)"CvSubdiv2D_header_size_set", _wrap_CvSubdiv2D_header_size_set, METH_VARARGS, (char *)"CvSubdiv2D_header_size_set(CvSubdiv2D self, int header_size)"},
|
|
{ (char *)"CvSubdiv2D_header_size_get", _wrap_CvSubdiv2D_header_size_get, METH_VARARGS, (char *)"CvSubdiv2D_header_size_get(CvSubdiv2D self) -> int"},
|
|
{ (char *)"CvSubdiv2D_h_prev_set", _wrap_CvSubdiv2D_h_prev_set, METH_VARARGS, (char *)"CvSubdiv2D_h_prev_set(CvSubdiv2D self, CvSeq h_prev)"},
|
|
{ (char *)"CvSubdiv2D_h_prev_get", _wrap_CvSubdiv2D_h_prev_get, METH_VARARGS, (char *)"CvSubdiv2D_h_prev_get(CvSubdiv2D self) -> CvSeq"},
|
|
{ (char *)"CvSubdiv2D_h_next_set", _wrap_CvSubdiv2D_h_next_set, METH_VARARGS, (char *)"CvSubdiv2D_h_next_set(CvSubdiv2D self, CvSeq h_next)"},
|
|
{ (char *)"CvSubdiv2D_h_next_get", _wrap_CvSubdiv2D_h_next_get, METH_VARARGS, (char *)"CvSubdiv2D_h_next_get(CvSubdiv2D self) -> CvSeq"},
|
|
{ (char *)"CvSubdiv2D_v_prev_set", _wrap_CvSubdiv2D_v_prev_set, METH_VARARGS, (char *)"CvSubdiv2D_v_prev_set(CvSubdiv2D self, CvSeq v_prev)"},
|
|
{ (char *)"CvSubdiv2D_v_prev_get", _wrap_CvSubdiv2D_v_prev_get, METH_VARARGS, (char *)"CvSubdiv2D_v_prev_get(CvSubdiv2D self) -> CvSeq"},
|
|
{ (char *)"CvSubdiv2D_v_next_set", _wrap_CvSubdiv2D_v_next_set, METH_VARARGS, (char *)"CvSubdiv2D_v_next_set(CvSubdiv2D self, CvSeq v_next)"},
|
|
{ (char *)"CvSubdiv2D_v_next_get", _wrap_CvSubdiv2D_v_next_get, METH_VARARGS, (char *)"CvSubdiv2D_v_next_get(CvSubdiv2D self) -> CvSeq"},
|
|
{ (char *)"CvSubdiv2D_total_set", _wrap_CvSubdiv2D_total_set, METH_VARARGS, (char *)"CvSubdiv2D_total_set(CvSubdiv2D self, int total)"},
|
|
{ (char *)"CvSubdiv2D_total_get", _wrap_CvSubdiv2D_total_get, METH_VARARGS, (char *)"CvSubdiv2D_total_get(CvSubdiv2D self) -> int"},
|
|
{ (char *)"CvSubdiv2D_elem_size_set", _wrap_CvSubdiv2D_elem_size_set, METH_VARARGS, (char *)"CvSubdiv2D_elem_size_set(CvSubdiv2D self, int elem_size)"},
|
|
{ (char *)"CvSubdiv2D_elem_size_get", _wrap_CvSubdiv2D_elem_size_get, METH_VARARGS, (char *)"CvSubdiv2D_elem_size_get(CvSubdiv2D self) -> int"},
|
|
{ (char *)"CvSubdiv2D_block_max_set", _wrap_CvSubdiv2D_block_max_set, METH_VARARGS, (char *)"CvSubdiv2D_block_max_set(CvSubdiv2D self, schar block_max)"},
|
|
{ (char *)"CvSubdiv2D_block_max_get", _wrap_CvSubdiv2D_block_max_get, METH_VARARGS, (char *)"CvSubdiv2D_block_max_get(CvSubdiv2D self) -> schar"},
|
|
{ (char *)"CvSubdiv2D_ptr_set", _wrap_CvSubdiv2D_ptr_set, METH_VARARGS, (char *)"CvSubdiv2D_ptr_set(CvSubdiv2D self, schar ptr)"},
|
|
{ (char *)"CvSubdiv2D_ptr_get", _wrap_CvSubdiv2D_ptr_get, METH_VARARGS, (char *)"CvSubdiv2D_ptr_get(CvSubdiv2D self) -> schar"},
|
|
{ (char *)"CvSubdiv2D_delta_elems_set", _wrap_CvSubdiv2D_delta_elems_set, METH_VARARGS, (char *)"CvSubdiv2D_delta_elems_set(CvSubdiv2D self, int delta_elems)"},
|
|
{ (char *)"CvSubdiv2D_delta_elems_get", _wrap_CvSubdiv2D_delta_elems_get, METH_VARARGS, (char *)"CvSubdiv2D_delta_elems_get(CvSubdiv2D self) -> int"},
|
|
{ (char *)"CvSubdiv2D_storage_set", _wrap_CvSubdiv2D_storage_set, METH_VARARGS, (char *)"CvSubdiv2D_storage_set(CvSubdiv2D self, CvMemStorage storage)"},
|
|
{ (char *)"CvSubdiv2D_storage_get", _wrap_CvSubdiv2D_storage_get, METH_VARARGS, (char *)"CvSubdiv2D_storage_get(CvSubdiv2D self) -> CvMemStorage"},
|
|
{ (char *)"CvSubdiv2D_free_blocks_set", _wrap_CvSubdiv2D_free_blocks_set, METH_VARARGS, (char *)"CvSubdiv2D_free_blocks_set(CvSubdiv2D self, CvSeqBlock free_blocks)"},
|
|
{ (char *)"CvSubdiv2D_free_blocks_get", _wrap_CvSubdiv2D_free_blocks_get, METH_VARARGS, (char *)"CvSubdiv2D_free_blocks_get(CvSubdiv2D self) -> CvSeqBlock"},
|
|
{ (char *)"CvSubdiv2D_first_set", _wrap_CvSubdiv2D_first_set, METH_VARARGS, (char *)"CvSubdiv2D_first_set(CvSubdiv2D self, CvSeqBlock first)"},
|
|
{ (char *)"CvSubdiv2D_first_get", _wrap_CvSubdiv2D_first_get, METH_VARARGS, (char *)"CvSubdiv2D_first_get(CvSubdiv2D self) -> CvSeqBlock"},
|
|
{ (char *)"CvSubdiv2D_free_elems_set", _wrap_CvSubdiv2D_free_elems_set, METH_VARARGS, (char *)"CvSubdiv2D_free_elems_set(CvSubdiv2D self, CvSetElem free_elems)"},
|
|
{ (char *)"CvSubdiv2D_free_elems_get", _wrap_CvSubdiv2D_free_elems_get, METH_VARARGS, (char *)"CvSubdiv2D_free_elems_get(CvSubdiv2D self) -> CvSetElem"},
|
|
{ (char *)"CvSubdiv2D_active_count_set", _wrap_CvSubdiv2D_active_count_set, METH_VARARGS, (char *)"CvSubdiv2D_active_count_set(CvSubdiv2D self, int active_count)"},
|
|
{ (char *)"CvSubdiv2D_active_count_get", _wrap_CvSubdiv2D_active_count_get, METH_VARARGS, (char *)"CvSubdiv2D_active_count_get(CvSubdiv2D self) -> int"},
|
|
{ (char *)"CvSubdiv2D_quad_edges_set", _wrap_CvSubdiv2D_quad_edges_set, METH_VARARGS, (char *)"CvSubdiv2D_quad_edges_set(CvSubdiv2D self, int quad_edges)"},
|
|
{ (char *)"CvSubdiv2D_quad_edges_get", _wrap_CvSubdiv2D_quad_edges_get, METH_VARARGS, (char *)"CvSubdiv2D_quad_edges_get(CvSubdiv2D self) -> int"},
|
|
{ (char *)"CvSubdiv2D_is_geometry_valid_set", _wrap_CvSubdiv2D_is_geometry_valid_set, METH_VARARGS, (char *)"CvSubdiv2D_is_geometry_valid_set(CvSubdiv2D self, int is_geometry_valid)"},
|
|
{ (char *)"CvSubdiv2D_is_geometry_valid_get", _wrap_CvSubdiv2D_is_geometry_valid_get, METH_VARARGS, (char *)"CvSubdiv2D_is_geometry_valid_get(CvSubdiv2D self) -> int"},
|
|
{ (char *)"CvSubdiv2D_recent_edge_set", _wrap_CvSubdiv2D_recent_edge_set, METH_VARARGS, (char *)"CvSubdiv2D_recent_edge_set(CvSubdiv2D self, CvSubdiv2DEdge recent_edge)"},
|
|
{ (char *)"CvSubdiv2D_recent_edge_get", _wrap_CvSubdiv2D_recent_edge_get, METH_VARARGS, (char *)"CvSubdiv2D_recent_edge_get(CvSubdiv2D self) -> CvSubdiv2DEdge"},
|
|
{ (char *)"CvSubdiv2D_topleft_set", _wrap_CvSubdiv2D_topleft_set, METH_VARARGS, (char *)"CvSubdiv2D_topleft_set(CvSubdiv2D self, CvPoint2D32f topleft)"},
|
|
{ (char *)"CvSubdiv2D_topleft_get", _wrap_CvSubdiv2D_topleft_get, METH_VARARGS, (char *)"CvSubdiv2D_topleft_get(CvSubdiv2D self) -> CvPoint2D32f"},
|
|
{ (char *)"CvSubdiv2D_bottomright_set", _wrap_CvSubdiv2D_bottomright_set, METH_VARARGS, (char *)"CvSubdiv2D_bottomright_set(CvSubdiv2D self, CvPoint2D32f bottomright)"},
|
|
{ (char *)"CvSubdiv2D_bottomright_get", _wrap_CvSubdiv2D_bottomright_get, METH_VARARGS, (char *)"CvSubdiv2D_bottomright_get(CvSubdiv2D self) -> CvPoint2D32f"},
|
|
{ (char *)"CvSubdiv2D_edges_set", _wrap_CvSubdiv2D_edges_set, METH_VARARGS, (char *)"CvSubdiv2D_edges_set(CvSubdiv2D self, CvSeq_CvQuadEdge2D typed_edges)"},
|
|
{ (char *)"CvSubdiv2D_edges_get", _wrap_CvSubdiv2D_edges_get, METH_VARARGS, (char *)"CvSubdiv2D_edges_get(CvSubdiv2D self) -> CvSeq_CvQuadEdge2D"},
|
|
{ (char *)"CvSubdiv2D_typed_edges_get", _wrap_CvSubdiv2D_typed_edges_get, METH_VARARGS, (char *)"CvSubdiv2D_typed_edges_get(CvSubdiv2D self) -> CvSeq_CvQuadEdge2D"},
|
|
{ (char *)"CvSubdiv2D_typed_edges_set", _wrap_CvSubdiv2D_typed_edges_set, METH_VARARGS, (char *)"CvSubdiv2D_typed_edges_set(CvSubdiv2D self, CvSeq_CvQuadEdge2D arg1)"},
|
|
{ (char *)"new_CvSubdiv2D", _wrap_new_CvSubdiv2D, METH_VARARGS, (char *)"new_CvSubdiv2D() -> CvSubdiv2D"},
|
|
{ (char *)"delete_CvSubdiv2D", _wrap_delete_CvSubdiv2D, METH_VARARGS, (char *)"delete_CvSubdiv2D(CvSubdiv2D self)"},
|
|
{ (char *)"CvSubdiv2D_swigregister", CvSubdiv2D_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvMatrix3_m_set", _wrap_CvMatrix3_m_set, METH_VARARGS, (char *)"CvMatrix3_m_set(CvMatrix3 self, float m)"},
|
|
{ (char *)"CvMatrix3_m_get", _wrap_CvMatrix3_m_get, METH_VARARGS, (char *)"CvMatrix3_m_get(CvMatrix3 self) -> float"},
|
|
{ (char *)"new_CvMatrix3", _wrap_new_CvMatrix3, METH_VARARGS, (char *)"new_CvMatrix3() -> CvMatrix3"},
|
|
{ (char *)"delete_CvMatrix3", _wrap_delete_CvMatrix3, METH_VARARGS, (char *)"delete_CvMatrix3(CvMatrix3 self)"},
|
|
{ (char *)"CvMatrix3_swigregister", CvMatrix3_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvConDensation_MP_set", _wrap_CvConDensation_MP_set, METH_VARARGS, (char *)"CvConDensation_MP_set(CvConDensation self, int MP)"},
|
|
{ (char *)"CvConDensation_MP_get", _wrap_CvConDensation_MP_get, METH_VARARGS, (char *)"CvConDensation_MP_get(CvConDensation self) -> int"},
|
|
{ (char *)"CvConDensation_DP_set", _wrap_CvConDensation_DP_set, METH_VARARGS, (char *)"CvConDensation_DP_set(CvConDensation self, int DP)"},
|
|
{ (char *)"CvConDensation_DP_get", _wrap_CvConDensation_DP_get, METH_VARARGS, (char *)"CvConDensation_DP_get(CvConDensation self) -> int"},
|
|
{ (char *)"CvConDensation_DynamMatr_set", _wrap_CvConDensation_DynamMatr_set, METH_VARARGS, (char *)"CvConDensation_DynamMatr_set(CvConDensation self, float DynamMatr)"},
|
|
{ (char *)"CvConDensation_DynamMatr_get", _wrap_CvConDensation_DynamMatr_get, METH_VARARGS, (char *)"CvConDensation_DynamMatr_get(CvConDensation self) -> float"},
|
|
{ (char *)"CvConDensation_State_set", _wrap_CvConDensation_State_set, METH_VARARGS, (char *)"CvConDensation_State_set(CvConDensation self, float State)"},
|
|
{ (char *)"CvConDensation_State_get", _wrap_CvConDensation_State_get, METH_VARARGS, (char *)"CvConDensation_State_get(CvConDensation self) -> float"},
|
|
{ (char *)"CvConDensation_SamplesNum_set", _wrap_CvConDensation_SamplesNum_set, METH_VARARGS, (char *)"CvConDensation_SamplesNum_set(CvConDensation self, int SamplesNum)"},
|
|
{ (char *)"CvConDensation_SamplesNum_get", _wrap_CvConDensation_SamplesNum_get, METH_VARARGS, (char *)"CvConDensation_SamplesNum_get(CvConDensation self) -> int"},
|
|
{ (char *)"CvConDensation_flSamples_set", _wrap_CvConDensation_flSamples_set, METH_VARARGS, (char *)"CvConDensation_flSamples_set(CvConDensation self, float flSamples)"},
|
|
{ (char *)"CvConDensation_flSamples_get", _wrap_CvConDensation_flSamples_get, METH_VARARGS, (char *)"CvConDensation_flSamples_get(CvConDensation self) -> float"},
|
|
{ (char *)"CvConDensation_flNewSamples_set", _wrap_CvConDensation_flNewSamples_set, METH_VARARGS, (char *)"CvConDensation_flNewSamples_set(CvConDensation self, float flNewSamples)"},
|
|
{ (char *)"CvConDensation_flNewSamples_get", _wrap_CvConDensation_flNewSamples_get, METH_VARARGS, (char *)"CvConDensation_flNewSamples_get(CvConDensation self) -> float"},
|
|
{ (char *)"CvConDensation_flConfidence_set", _wrap_CvConDensation_flConfidence_set, METH_VARARGS, (char *)"CvConDensation_flConfidence_set(CvConDensation self, float flConfidence)"},
|
|
{ (char *)"CvConDensation_flConfidence_get", _wrap_CvConDensation_flConfidence_get, METH_VARARGS, (char *)"CvConDensation_flConfidence_get(CvConDensation self) -> float"},
|
|
{ (char *)"CvConDensation_flCumulative_set", _wrap_CvConDensation_flCumulative_set, METH_VARARGS, (char *)"CvConDensation_flCumulative_set(CvConDensation self, float flCumulative)"},
|
|
{ (char *)"CvConDensation_flCumulative_get", _wrap_CvConDensation_flCumulative_get, METH_VARARGS, (char *)"CvConDensation_flCumulative_get(CvConDensation self) -> float"},
|
|
{ (char *)"CvConDensation_Temp_set", _wrap_CvConDensation_Temp_set, METH_VARARGS, (char *)"CvConDensation_Temp_set(CvConDensation self, float Temp)"},
|
|
{ (char *)"CvConDensation_Temp_get", _wrap_CvConDensation_Temp_get, METH_VARARGS, (char *)"CvConDensation_Temp_get(CvConDensation self) -> float"},
|
|
{ (char *)"CvConDensation_RandomSample_set", _wrap_CvConDensation_RandomSample_set, METH_VARARGS, (char *)"CvConDensation_RandomSample_set(CvConDensation self, float RandomSample)"},
|
|
{ (char *)"CvConDensation_RandomSample_get", _wrap_CvConDensation_RandomSample_get, METH_VARARGS, (char *)"CvConDensation_RandomSample_get(CvConDensation self) -> float"},
|
|
{ (char *)"CvConDensation_RandS_set", _wrap_CvConDensation_RandS_set, METH_VARARGS, (char *)"CvConDensation_RandS_set(CvConDensation self, CvRandState RandS)"},
|
|
{ (char *)"CvConDensation_RandS_get", _wrap_CvConDensation_RandS_get, METH_VARARGS, (char *)"CvConDensation_RandS_get(CvConDensation self) -> CvRandState"},
|
|
{ (char *)"delete_CvConDensation", _wrap_delete_CvConDensation, METH_VARARGS, (char *)"delete_CvConDensation(CvConDensation self)"},
|
|
{ (char *)"CvConDensation_swigregister", CvConDensation_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvKalman_MP_set", _wrap_CvKalman_MP_set, METH_VARARGS, (char *)"CvKalman_MP_set(CvKalman self, int MP)"},
|
|
{ (char *)"CvKalman_MP_get", _wrap_CvKalman_MP_get, METH_VARARGS, (char *)"CvKalman_MP_get(CvKalman self) -> int"},
|
|
{ (char *)"CvKalman_DP_set", _wrap_CvKalman_DP_set, METH_VARARGS, (char *)"CvKalman_DP_set(CvKalman self, int DP)"},
|
|
{ (char *)"CvKalman_DP_get", _wrap_CvKalman_DP_get, METH_VARARGS, (char *)"CvKalman_DP_get(CvKalman self) -> int"},
|
|
{ (char *)"CvKalman_CP_set", _wrap_CvKalman_CP_set, METH_VARARGS, (char *)"CvKalman_CP_set(CvKalman self, int CP)"},
|
|
{ (char *)"CvKalman_CP_get", _wrap_CvKalman_CP_get, METH_VARARGS, (char *)"CvKalman_CP_get(CvKalman self) -> int"},
|
|
{ (char *)"CvKalman_PosterState_set", _wrap_CvKalman_PosterState_set, METH_VARARGS, (char *)"CvKalman_PosterState_set(CvKalman self, float PosterState)"},
|
|
{ (char *)"CvKalman_PosterState_get", _wrap_CvKalman_PosterState_get, METH_VARARGS, (char *)"CvKalman_PosterState_get(CvKalman self) -> float"},
|
|
{ (char *)"CvKalman_PriorState_set", _wrap_CvKalman_PriorState_set, METH_VARARGS, (char *)"CvKalman_PriorState_set(CvKalman self, float PriorState)"},
|
|
{ (char *)"CvKalman_PriorState_get", _wrap_CvKalman_PriorState_get, METH_VARARGS, (char *)"CvKalman_PriorState_get(CvKalman self) -> float"},
|
|
{ (char *)"CvKalman_DynamMatr_set", _wrap_CvKalman_DynamMatr_set, METH_VARARGS, (char *)"CvKalman_DynamMatr_set(CvKalman self, float DynamMatr)"},
|
|
{ (char *)"CvKalman_DynamMatr_get", _wrap_CvKalman_DynamMatr_get, METH_VARARGS, (char *)"CvKalman_DynamMatr_get(CvKalman self) -> float"},
|
|
{ (char *)"CvKalman_MeasurementMatr_set", _wrap_CvKalman_MeasurementMatr_set, METH_VARARGS, (char *)"CvKalman_MeasurementMatr_set(CvKalman self, float MeasurementMatr)"},
|
|
{ (char *)"CvKalman_MeasurementMatr_get", _wrap_CvKalman_MeasurementMatr_get, METH_VARARGS, (char *)"CvKalman_MeasurementMatr_get(CvKalman self) -> float"},
|
|
{ (char *)"CvKalman_MNCovariance_set", _wrap_CvKalman_MNCovariance_set, METH_VARARGS, (char *)"CvKalman_MNCovariance_set(CvKalman self, float MNCovariance)"},
|
|
{ (char *)"CvKalman_MNCovariance_get", _wrap_CvKalman_MNCovariance_get, METH_VARARGS, (char *)"CvKalman_MNCovariance_get(CvKalman self) -> float"},
|
|
{ (char *)"CvKalman_PNCovariance_set", _wrap_CvKalman_PNCovariance_set, METH_VARARGS, (char *)"CvKalman_PNCovariance_set(CvKalman self, float PNCovariance)"},
|
|
{ (char *)"CvKalman_PNCovariance_get", _wrap_CvKalman_PNCovariance_get, METH_VARARGS, (char *)"CvKalman_PNCovariance_get(CvKalman self) -> float"},
|
|
{ (char *)"CvKalman_KalmGainMatr_set", _wrap_CvKalman_KalmGainMatr_set, METH_VARARGS, (char *)"CvKalman_KalmGainMatr_set(CvKalman self, float KalmGainMatr)"},
|
|
{ (char *)"CvKalman_KalmGainMatr_get", _wrap_CvKalman_KalmGainMatr_get, METH_VARARGS, (char *)"CvKalman_KalmGainMatr_get(CvKalman self) -> float"},
|
|
{ (char *)"CvKalman_PriorErrorCovariance_set", _wrap_CvKalman_PriorErrorCovariance_set, METH_VARARGS, (char *)"CvKalman_PriorErrorCovariance_set(CvKalman self, float PriorErrorCovariance)"},
|
|
{ (char *)"CvKalman_PriorErrorCovariance_get", _wrap_CvKalman_PriorErrorCovariance_get, METH_VARARGS, (char *)"CvKalman_PriorErrorCovariance_get(CvKalman self) -> float"},
|
|
{ (char *)"CvKalman_PosterErrorCovariance_set", _wrap_CvKalman_PosterErrorCovariance_set, METH_VARARGS, (char *)"CvKalman_PosterErrorCovariance_set(CvKalman self, float PosterErrorCovariance)"},
|
|
{ (char *)"CvKalman_PosterErrorCovariance_get", _wrap_CvKalman_PosterErrorCovariance_get, METH_VARARGS, (char *)"CvKalman_PosterErrorCovariance_get(CvKalman self) -> float"},
|
|
{ (char *)"CvKalman_Temp1_set", _wrap_CvKalman_Temp1_set, METH_VARARGS, (char *)"CvKalman_Temp1_set(CvKalman self, float Temp1)"},
|
|
{ (char *)"CvKalman_Temp1_get", _wrap_CvKalman_Temp1_get, METH_VARARGS, (char *)"CvKalman_Temp1_get(CvKalman self) -> float"},
|
|
{ (char *)"CvKalman_Temp2_set", _wrap_CvKalman_Temp2_set, METH_VARARGS, (char *)"CvKalman_Temp2_set(CvKalman self, float Temp2)"},
|
|
{ (char *)"CvKalman_Temp2_get", _wrap_CvKalman_Temp2_get, METH_VARARGS, (char *)"CvKalman_Temp2_get(CvKalman self) -> float"},
|
|
{ (char *)"CvKalman_state_pre_set", _wrap_CvKalman_state_pre_set, METH_VARARGS, (char *)"CvKalman_state_pre_set(CvKalman self, CvMat state_pre)"},
|
|
{ (char *)"CvKalman_state_pre_get", _wrap_CvKalman_state_pre_get, METH_VARARGS, (char *)"CvKalman_state_pre_get(CvKalman self) -> CvMat"},
|
|
{ (char *)"CvKalman_state_post_set", _wrap_CvKalman_state_post_set, METH_VARARGS, (char *)"CvKalman_state_post_set(CvKalman self, CvMat state_post)"},
|
|
{ (char *)"CvKalman_state_post_get", _wrap_CvKalman_state_post_get, METH_VARARGS, (char *)"CvKalman_state_post_get(CvKalman self) -> CvMat"},
|
|
{ (char *)"CvKalman_transition_matrix_set", _wrap_CvKalman_transition_matrix_set, METH_VARARGS, (char *)"CvKalman_transition_matrix_set(CvKalman self, CvMat transition_matrix)"},
|
|
{ (char *)"CvKalman_transition_matrix_get", _wrap_CvKalman_transition_matrix_get, METH_VARARGS, (char *)"CvKalman_transition_matrix_get(CvKalman self) -> CvMat"},
|
|
{ (char *)"CvKalman_control_matrix_set", _wrap_CvKalman_control_matrix_set, METH_VARARGS, (char *)"CvKalman_control_matrix_set(CvKalman self, CvMat control_matrix)"},
|
|
{ (char *)"CvKalman_control_matrix_get", _wrap_CvKalman_control_matrix_get, METH_VARARGS, (char *)"CvKalman_control_matrix_get(CvKalman self) -> CvMat"},
|
|
{ (char *)"CvKalman_measurement_matrix_set", _wrap_CvKalman_measurement_matrix_set, METH_VARARGS, (char *)"CvKalman_measurement_matrix_set(CvKalman self, CvMat measurement_matrix)"},
|
|
{ (char *)"CvKalman_measurement_matrix_get", _wrap_CvKalman_measurement_matrix_get, METH_VARARGS, (char *)"CvKalman_measurement_matrix_get(CvKalman self) -> CvMat"},
|
|
{ (char *)"CvKalman_process_noise_cov_set", _wrap_CvKalman_process_noise_cov_set, METH_VARARGS, (char *)"CvKalman_process_noise_cov_set(CvKalman self, CvMat process_noise_cov)"},
|
|
{ (char *)"CvKalman_process_noise_cov_get", _wrap_CvKalman_process_noise_cov_get, METH_VARARGS, (char *)"CvKalman_process_noise_cov_get(CvKalman self) -> CvMat"},
|
|
{ (char *)"CvKalman_measurement_noise_cov_set", _wrap_CvKalman_measurement_noise_cov_set, METH_VARARGS, (char *)"CvKalman_measurement_noise_cov_set(CvKalman self, CvMat measurement_noise_cov)"},
|
|
{ (char *)"CvKalman_measurement_noise_cov_get", _wrap_CvKalman_measurement_noise_cov_get, METH_VARARGS, (char *)"CvKalman_measurement_noise_cov_get(CvKalman self) -> CvMat"},
|
|
{ (char *)"CvKalman_error_cov_pre_set", _wrap_CvKalman_error_cov_pre_set, METH_VARARGS, (char *)"CvKalman_error_cov_pre_set(CvKalman self, CvMat error_cov_pre)"},
|
|
{ (char *)"CvKalman_error_cov_pre_get", _wrap_CvKalman_error_cov_pre_get, METH_VARARGS, (char *)"CvKalman_error_cov_pre_get(CvKalman self) -> CvMat"},
|
|
{ (char *)"CvKalman_gain_set", _wrap_CvKalman_gain_set, METH_VARARGS, (char *)"CvKalman_gain_set(CvKalman self, CvMat gain)"},
|
|
{ (char *)"CvKalman_gain_get", _wrap_CvKalman_gain_get, METH_VARARGS, (char *)"CvKalman_gain_get(CvKalman self) -> CvMat"},
|
|
{ (char *)"CvKalman_error_cov_post_set", _wrap_CvKalman_error_cov_post_set, METH_VARARGS, (char *)"CvKalman_error_cov_post_set(CvKalman self, CvMat error_cov_post)"},
|
|
{ (char *)"CvKalman_error_cov_post_get", _wrap_CvKalman_error_cov_post_get, METH_VARARGS, (char *)"CvKalman_error_cov_post_get(CvKalman self) -> CvMat"},
|
|
{ (char *)"CvKalman_temp1_set", _wrap_CvKalman_temp1_set, METH_VARARGS, (char *)"CvKalman_temp1_set(CvKalman self, CvMat temp1)"},
|
|
{ (char *)"CvKalman_temp1_get", _wrap_CvKalman_temp1_get, METH_VARARGS, (char *)"CvKalman_temp1_get(CvKalman self) -> CvMat"},
|
|
{ (char *)"CvKalman_temp2_set", _wrap_CvKalman_temp2_set, METH_VARARGS, (char *)"CvKalman_temp2_set(CvKalman self, CvMat temp2)"},
|
|
{ (char *)"CvKalman_temp2_get", _wrap_CvKalman_temp2_get, METH_VARARGS, (char *)"CvKalman_temp2_get(CvKalman self) -> CvMat"},
|
|
{ (char *)"CvKalman_temp3_set", _wrap_CvKalman_temp3_set, METH_VARARGS, (char *)"CvKalman_temp3_set(CvKalman self, CvMat temp3)"},
|
|
{ (char *)"CvKalman_temp3_get", _wrap_CvKalman_temp3_get, METH_VARARGS, (char *)"CvKalman_temp3_get(CvKalman self) -> CvMat"},
|
|
{ (char *)"CvKalman_temp4_set", _wrap_CvKalman_temp4_set, METH_VARARGS, (char *)"CvKalman_temp4_set(CvKalman self, CvMat temp4)"},
|
|
{ (char *)"CvKalman_temp4_get", _wrap_CvKalman_temp4_get, METH_VARARGS, (char *)"CvKalman_temp4_get(CvKalman self) -> CvMat"},
|
|
{ (char *)"CvKalman_temp5_set", _wrap_CvKalman_temp5_set, METH_VARARGS, (char *)"CvKalman_temp5_set(CvKalman self, CvMat temp5)"},
|
|
{ (char *)"CvKalman_temp5_get", _wrap_CvKalman_temp5_get, METH_VARARGS, (char *)"CvKalman_temp5_get(CvKalman self) -> CvMat"},
|
|
{ (char *)"delete_CvKalman", _wrap_delete_CvKalman, METH_VARARGS, (char *)"delete_CvKalman(CvKalman self)"},
|
|
{ (char *)"CvKalman_swigregister", CvKalman_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvHaarFeature_tilted_set", _wrap_CvHaarFeature_tilted_set, METH_VARARGS, (char *)"CvHaarFeature_tilted_set(CvHaarFeature self, int tilted)"},
|
|
{ (char *)"CvHaarFeature_tilted_get", _wrap_CvHaarFeature_tilted_get, METH_VARARGS, (char *)"CvHaarFeature_tilted_get(CvHaarFeature self) -> int"},
|
|
{ (char *)"CvHaarFeature_rect_get", _wrap_CvHaarFeature_rect_get, METH_VARARGS, (char *)"CvHaarFeature_rect_get(CvHaarFeature self) -> CvHaarFeature_rect"},
|
|
{ (char *)"new_CvHaarFeature", _wrap_new_CvHaarFeature, METH_VARARGS, (char *)"new_CvHaarFeature() -> CvHaarFeature"},
|
|
{ (char *)"delete_CvHaarFeature", _wrap_delete_CvHaarFeature, METH_VARARGS, (char *)"delete_CvHaarFeature(CvHaarFeature self)"},
|
|
{ (char *)"CvHaarFeature_swigregister", CvHaarFeature_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvHaarFeature_rect_r_set", _wrap_CvHaarFeature_rect_r_set, METH_VARARGS, (char *)"CvHaarFeature_rect_r_set(CvHaarFeature_rect self, CvRect r)"},
|
|
{ (char *)"CvHaarFeature_rect_r_get", _wrap_CvHaarFeature_rect_r_get, METH_VARARGS, (char *)"CvHaarFeature_rect_r_get(CvHaarFeature_rect self) -> CvRect"},
|
|
{ (char *)"CvHaarFeature_rect_weight_set", _wrap_CvHaarFeature_rect_weight_set, METH_VARARGS, (char *)"CvHaarFeature_rect_weight_set(CvHaarFeature_rect self, float weight)"},
|
|
{ (char *)"CvHaarFeature_rect_weight_get", _wrap_CvHaarFeature_rect_weight_get, METH_VARARGS, (char *)"CvHaarFeature_rect_weight_get(CvHaarFeature_rect self) -> float"},
|
|
{ (char *)"new_CvHaarFeature_rect", _wrap_new_CvHaarFeature_rect, METH_VARARGS, (char *)"new_CvHaarFeature_rect() -> CvHaarFeature_rect"},
|
|
{ (char *)"delete_CvHaarFeature_rect", _wrap_delete_CvHaarFeature_rect, METH_VARARGS, (char *)"delete_CvHaarFeature_rect(CvHaarFeature_rect self)"},
|
|
{ (char *)"CvHaarFeature_rect_swigregister", CvHaarFeature_rect_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvHaarClassifier_count_set", _wrap_CvHaarClassifier_count_set, METH_VARARGS, (char *)"CvHaarClassifier_count_set(CvHaarClassifier self, int count)"},
|
|
{ (char *)"CvHaarClassifier_count_get", _wrap_CvHaarClassifier_count_get, METH_VARARGS, (char *)"CvHaarClassifier_count_get(CvHaarClassifier self) -> int"},
|
|
{ (char *)"CvHaarClassifier_haar_feature_set", _wrap_CvHaarClassifier_haar_feature_set, METH_VARARGS, (char *)"CvHaarClassifier_haar_feature_set(CvHaarClassifier self, CvHaarFeature haar_feature)"},
|
|
{ (char *)"CvHaarClassifier_haar_feature_get", _wrap_CvHaarClassifier_haar_feature_get, METH_VARARGS, (char *)"CvHaarClassifier_haar_feature_get(CvHaarClassifier self) -> CvHaarFeature"},
|
|
{ (char *)"CvHaarClassifier_threshold_set", _wrap_CvHaarClassifier_threshold_set, METH_VARARGS, (char *)"CvHaarClassifier_threshold_set(CvHaarClassifier self, float threshold)"},
|
|
{ (char *)"CvHaarClassifier_threshold_get", _wrap_CvHaarClassifier_threshold_get, METH_VARARGS, (char *)"CvHaarClassifier_threshold_get(CvHaarClassifier self) -> float"},
|
|
{ (char *)"CvHaarClassifier_left_set", _wrap_CvHaarClassifier_left_set, METH_VARARGS, (char *)"CvHaarClassifier_left_set(CvHaarClassifier self, int left)"},
|
|
{ (char *)"CvHaarClassifier_left_get", _wrap_CvHaarClassifier_left_get, METH_VARARGS, (char *)"CvHaarClassifier_left_get(CvHaarClassifier self) -> int"},
|
|
{ (char *)"CvHaarClassifier_right_set", _wrap_CvHaarClassifier_right_set, METH_VARARGS, (char *)"CvHaarClassifier_right_set(CvHaarClassifier self, int right)"},
|
|
{ (char *)"CvHaarClassifier_right_get", _wrap_CvHaarClassifier_right_get, METH_VARARGS, (char *)"CvHaarClassifier_right_get(CvHaarClassifier self) -> int"},
|
|
{ (char *)"CvHaarClassifier_alpha_set", _wrap_CvHaarClassifier_alpha_set, METH_VARARGS, (char *)"CvHaarClassifier_alpha_set(CvHaarClassifier self, float alpha)"},
|
|
{ (char *)"CvHaarClassifier_alpha_get", _wrap_CvHaarClassifier_alpha_get, METH_VARARGS, (char *)"CvHaarClassifier_alpha_get(CvHaarClassifier self) -> float"},
|
|
{ (char *)"new_CvHaarClassifier", _wrap_new_CvHaarClassifier, METH_VARARGS, (char *)"new_CvHaarClassifier() -> CvHaarClassifier"},
|
|
{ (char *)"delete_CvHaarClassifier", _wrap_delete_CvHaarClassifier, METH_VARARGS, (char *)"delete_CvHaarClassifier(CvHaarClassifier self)"},
|
|
{ (char *)"CvHaarClassifier_swigregister", CvHaarClassifier_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvHaarStageClassifier_count_set", _wrap_CvHaarStageClassifier_count_set, METH_VARARGS, (char *)"CvHaarStageClassifier_count_set(CvHaarStageClassifier self, int count)"},
|
|
{ (char *)"CvHaarStageClassifier_count_get", _wrap_CvHaarStageClassifier_count_get, METH_VARARGS, (char *)"CvHaarStageClassifier_count_get(CvHaarStageClassifier self) -> int"},
|
|
{ (char *)"CvHaarStageClassifier_threshold_set", _wrap_CvHaarStageClassifier_threshold_set, METH_VARARGS, (char *)"CvHaarStageClassifier_threshold_set(CvHaarStageClassifier self, float threshold)"},
|
|
{ (char *)"CvHaarStageClassifier_threshold_get", _wrap_CvHaarStageClassifier_threshold_get, METH_VARARGS, (char *)"CvHaarStageClassifier_threshold_get(CvHaarStageClassifier self) -> float"},
|
|
{ (char *)"CvHaarStageClassifier_classifier_set", _wrap_CvHaarStageClassifier_classifier_set, METH_VARARGS, (char *)"CvHaarStageClassifier_classifier_set(CvHaarStageClassifier self, CvHaarClassifier classifier)"},
|
|
{ (char *)"CvHaarStageClassifier_classifier_get", _wrap_CvHaarStageClassifier_classifier_get, METH_VARARGS, (char *)"CvHaarStageClassifier_classifier_get(CvHaarStageClassifier self) -> CvHaarClassifier"},
|
|
{ (char *)"CvHaarStageClassifier_next_set", _wrap_CvHaarStageClassifier_next_set, METH_VARARGS, (char *)"CvHaarStageClassifier_next_set(CvHaarStageClassifier self, int next)"},
|
|
{ (char *)"CvHaarStageClassifier_next_get", _wrap_CvHaarStageClassifier_next_get, METH_VARARGS, (char *)"CvHaarStageClassifier_next_get(CvHaarStageClassifier self) -> int"},
|
|
{ (char *)"CvHaarStageClassifier_child_set", _wrap_CvHaarStageClassifier_child_set, METH_VARARGS, (char *)"CvHaarStageClassifier_child_set(CvHaarStageClassifier self, int child)"},
|
|
{ (char *)"CvHaarStageClassifier_child_get", _wrap_CvHaarStageClassifier_child_get, METH_VARARGS, (char *)"CvHaarStageClassifier_child_get(CvHaarStageClassifier self) -> int"},
|
|
{ (char *)"CvHaarStageClassifier_parent_set", _wrap_CvHaarStageClassifier_parent_set, METH_VARARGS, (char *)"CvHaarStageClassifier_parent_set(CvHaarStageClassifier self, int parent)"},
|
|
{ (char *)"CvHaarStageClassifier_parent_get", _wrap_CvHaarStageClassifier_parent_get, METH_VARARGS, (char *)"CvHaarStageClassifier_parent_get(CvHaarStageClassifier self) -> int"},
|
|
{ (char *)"new_CvHaarStageClassifier", _wrap_new_CvHaarStageClassifier, METH_VARARGS, (char *)"new_CvHaarStageClassifier() -> CvHaarStageClassifier"},
|
|
{ (char *)"delete_CvHaarStageClassifier", _wrap_delete_CvHaarStageClassifier, METH_VARARGS, (char *)"delete_CvHaarStageClassifier(CvHaarStageClassifier self)"},
|
|
{ (char *)"CvHaarStageClassifier_swigregister", CvHaarStageClassifier_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvHaarClassifierCascade_flags_set", _wrap_CvHaarClassifierCascade_flags_set, METH_VARARGS, (char *)"CvHaarClassifierCascade_flags_set(CvHaarClassifierCascade self, int flags)"},
|
|
{ (char *)"CvHaarClassifierCascade_flags_get", _wrap_CvHaarClassifierCascade_flags_get, METH_VARARGS, (char *)"CvHaarClassifierCascade_flags_get(CvHaarClassifierCascade self) -> int"},
|
|
{ (char *)"CvHaarClassifierCascade_count_set", _wrap_CvHaarClassifierCascade_count_set, METH_VARARGS, (char *)"CvHaarClassifierCascade_count_set(CvHaarClassifierCascade self, int count)"},
|
|
{ (char *)"CvHaarClassifierCascade_count_get", _wrap_CvHaarClassifierCascade_count_get, METH_VARARGS, (char *)"CvHaarClassifierCascade_count_get(CvHaarClassifierCascade self) -> int"},
|
|
{ (char *)"CvHaarClassifierCascade_orig_window_size_set", _wrap_CvHaarClassifierCascade_orig_window_size_set, METH_VARARGS, (char *)"CvHaarClassifierCascade_orig_window_size_set(CvHaarClassifierCascade self, CvSize orig_window_size)"},
|
|
{ (char *)"CvHaarClassifierCascade_orig_window_size_get", _wrap_CvHaarClassifierCascade_orig_window_size_get, METH_VARARGS, (char *)"CvHaarClassifierCascade_orig_window_size_get(CvHaarClassifierCascade self) -> CvSize"},
|
|
{ (char *)"CvHaarClassifierCascade_real_window_size_set", _wrap_CvHaarClassifierCascade_real_window_size_set, METH_VARARGS, (char *)"CvHaarClassifierCascade_real_window_size_set(CvHaarClassifierCascade self, CvSize real_window_size)"},
|
|
{ (char *)"CvHaarClassifierCascade_real_window_size_get", _wrap_CvHaarClassifierCascade_real_window_size_get, METH_VARARGS, (char *)"CvHaarClassifierCascade_real_window_size_get(CvHaarClassifierCascade self) -> CvSize"},
|
|
{ (char *)"CvHaarClassifierCascade_scale_set", _wrap_CvHaarClassifierCascade_scale_set, METH_VARARGS, (char *)"CvHaarClassifierCascade_scale_set(CvHaarClassifierCascade self, double scale)"},
|
|
{ (char *)"CvHaarClassifierCascade_scale_get", _wrap_CvHaarClassifierCascade_scale_get, METH_VARARGS, (char *)"CvHaarClassifierCascade_scale_get(CvHaarClassifierCascade self) -> double"},
|
|
{ (char *)"CvHaarClassifierCascade_stage_classifier_set", _wrap_CvHaarClassifierCascade_stage_classifier_set, METH_VARARGS, (char *)"CvHaarClassifierCascade_stage_classifier_set(CvHaarClassifierCascade self, CvHaarStageClassifier stage_classifier)"},
|
|
{ (char *)"CvHaarClassifierCascade_stage_classifier_get", _wrap_CvHaarClassifierCascade_stage_classifier_get, METH_VARARGS, (char *)"CvHaarClassifierCascade_stage_classifier_get(CvHaarClassifierCascade self) -> CvHaarStageClassifier"},
|
|
{ (char *)"CvHaarClassifierCascade_hid_cascade_set", _wrap_CvHaarClassifierCascade_hid_cascade_set, METH_VARARGS, (char *)"CvHaarClassifierCascade_hid_cascade_set(CvHaarClassifierCascade self, CvHidHaarClassifierCascade hid_cascade)"},
|
|
{ (char *)"CvHaarClassifierCascade_hid_cascade_get", _wrap_CvHaarClassifierCascade_hid_cascade_get, METH_VARARGS, (char *)"CvHaarClassifierCascade_hid_cascade_get(CvHaarClassifierCascade self) -> CvHidHaarClassifierCascade"},
|
|
{ (char *)"delete_CvHaarClassifierCascade", _wrap_delete_CvHaarClassifierCascade, METH_VARARGS, (char *)"delete_CvHaarClassifierCascade(CvHaarClassifierCascade self)"},
|
|
{ (char *)"CvHaarClassifierCascade_swigregister", CvHaarClassifierCascade_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvAvgComp_rect_set", _wrap_CvAvgComp_rect_set, METH_VARARGS, (char *)"CvAvgComp_rect_set(CvAvgComp self, CvRect rect)"},
|
|
{ (char *)"CvAvgComp_rect_get", _wrap_CvAvgComp_rect_get, METH_VARARGS, (char *)"CvAvgComp_rect_get(CvAvgComp self) -> CvRect"},
|
|
{ (char *)"CvAvgComp_neighbors_set", _wrap_CvAvgComp_neighbors_set, METH_VARARGS, (char *)"CvAvgComp_neighbors_set(CvAvgComp self, int neighbors)"},
|
|
{ (char *)"CvAvgComp_neighbors_get", _wrap_CvAvgComp_neighbors_get, METH_VARARGS, (char *)"CvAvgComp_neighbors_get(CvAvgComp self) -> int"},
|
|
{ (char *)"new_CvAvgComp", _wrap_new_CvAvgComp, METH_VARARGS, (char *)"new_CvAvgComp() -> CvAvgComp"},
|
|
{ (char *)"delete_CvAvgComp", _wrap_delete_CvAvgComp, METH_VARARGS, (char *)"delete_CvAvgComp(CvAvgComp self)"},
|
|
{ (char *)"CvAvgComp_swigregister", CvAvgComp_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvCopyMakeBorder", _wrap_cvCopyMakeBorder, METH_VARARGS, (char *)"\n"
|
|
"cvCopyMakeBorder(CvArr src, CvArr dst, CvPoint offset, int bordertype, \n"
|
|
" CvScalar value = cvScalarAll(0))\n"
|
|
""},
|
|
{ (char *)"cvSmooth", _wrap_cvSmooth, METH_VARARGS, (char *)"\n"
|
|
"cvSmooth(CvArr src, CvArr dst, int smoothtype = 2, int size1 = 3, \n"
|
|
" int size2 = 0, double sigma1 = 0, double sigma2 = 0)\n"
|
|
""},
|
|
{ (char *)"cvFilter2D", _wrap_cvFilter2D, METH_VARARGS, (char *)"cvFilter2D(CvArr src, CvArr dst, CvMat kernel, CvPoint anchor = cvPoint(-1,-1))"},
|
|
{ (char *)"cvIntegral", _wrap_cvIntegral, METH_VARARGS, (char *)"cvIntegral(CvArr image, CvArr sum, CvArr sqsum = None, CvArr tilted_sum = None)"},
|
|
{ (char *)"cvPyrDown", _wrap_cvPyrDown, METH_VARARGS, (char *)"cvPyrDown(CvArr src, CvArr dst, int filter = CV_GAUSSIAN_5x5)"},
|
|
{ (char *)"cvPyrUp", _wrap_cvPyrUp, METH_VARARGS, (char *)"cvPyrUp(CvArr src, CvArr dst, int filter = CV_GAUSSIAN_5x5)"},
|
|
{ (char *)"cvCreatePyramid", _wrap_cvCreatePyramid, METH_VARARGS, (char *)"\n"
|
|
"cvCreatePyramid(CvArr img, int extra_layers, double rate, CvSize layer_sizes = None, \n"
|
|
" CvArr bufarr = None, int calc = 1, \n"
|
|
" int filter = CV_GAUSSIAN_5x5) -> CvMat\n"
|
|
""},
|
|
{ (char *)"cvReleasePyramid", _wrap_cvReleasePyramid, METH_VARARGS, (char *)"cvReleasePyramid(CvMat pyramid, int extra_layers)"},
|
|
{ (char *)"cvPyrSegmentationUntyped", _wrap_cvPyrSegmentationUntyped, METH_VARARGS, (char *)"\n"
|
|
"cvPyrSegmentationUntyped( src, dst, CvMemStorage storage, int level, double threshold1, \n"
|
|
" double threshold2)\n"
|
|
""},
|
|
{ (char *)"cvPyrMeanShiftFiltering", _wrap_cvPyrMeanShiftFiltering, METH_VARARGS, (char *)"\n"
|
|
"cvPyrMeanShiftFiltering(CvArr src, CvArr dst, double sp, double sr, int max_level = 1, \n"
|
|
" CvTermCriteria termcrit = cvTermCriteria(1 +2,5,1))\n"
|
|
""},
|
|
{ (char *)"cvWatershed", _wrap_cvWatershed, METH_VARARGS, (char *)"cvWatershed(CvArr image, CvArr markers)"},
|
|
{ (char *)"cvInpaint", _wrap_cvInpaint, METH_VARARGS, (char *)"\n"
|
|
"cvInpaint(CvArr src, CvArr inpaint_mask, CvArr dst, double inpaintRange, \n"
|
|
" int flags)\n"
|
|
""},
|
|
{ (char *)"cvSobel", _wrap_cvSobel, METH_VARARGS, (char *)"cvSobel(CvArr src, CvArr dst, int xorder, int yorder, int aperture_size = 3)"},
|
|
{ (char *)"cvLaplace", _wrap_cvLaplace, METH_VARARGS, (char *)"cvLaplace(CvArr src, CvArr dst, int aperture_size = 3)"},
|
|
{ (char *)"cvCvtColor", _wrap_cvCvtColor, METH_VARARGS, (char *)"cvCvtColor(CvArr src, CvArr dst, int code)"},
|
|
{ (char *)"cvResize", _wrap_cvResize, METH_VARARGS, (char *)"cvResize(CvArr src, CvArr dst, int interpolation = 1)"},
|
|
{ (char *)"cvWarpAffine", _wrap_cvWarpAffine, METH_VARARGS, (char *)"\n"
|
|
"cvWarpAffine(CvArr src, CvArr dst, CvMat map_matrix, int flags = 1+8, \n"
|
|
" CvScalar fillval = cvScalarAll(0))\n"
|
|
""},
|
|
{ (char *)"cvGetAffineTransform", _wrap_cvGetAffineTransform, METH_VARARGS, (char *)"cvGetAffineTransform(CvPoint2D32f src, CvPoint2D32f dst, CvMat map_matrix) -> CvMat"},
|
|
{ (char *)"cv2DRotationMatrix", _wrap_cv2DRotationMatrix, METH_VARARGS, (char *)"cv2DRotationMatrix(CvPoint2D32f center, double angle, double scale, CvMat map_matrix) -> CvMat"},
|
|
{ (char *)"cvWarpPerspective", _wrap_cvWarpPerspective, METH_VARARGS, (char *)"\n"
|
|
"cvWarpPerspective(CvArr src, CvArr dst, CvMat map_matrix, int flags = 1+8, \n"
|
|
" CvScalar fillval = cvScalarAll(0))\n"
|
|
""},
|
|
{ (char *)"cvGetPerspectiveTransform", _wrap_cvGetPerspectiveTransform, METH_VARARGS, (char *)"cvGetPerspectiveTransform(CvPoint2D32f src, CvPoint2D32f dst, CvMat map_matrix) -> CvMat"},
|
|
{ (char *)"cvRemap", _wrap_cvRemap, METH_VARARGS, (char *)"\n"
|
|
"cvRemap(CvArr src, CvArr dst, CvArr mapx, CvArr mapy, int flags = 1+8, \n"
|
|
" CvScalar fillval = cvScalarAll(0))\n"
|
|
""},
|
|
{ (char *)"cvConvertMaps", _wrap_cvConvertMaps, METH_VARARGS, (char *)"cvConvertMaps(CvArr mapx, CvArr mapy, CvArr mapxy, CvArr mapalpha)"},
|
|
{ (char *)"cvLogPolar", _wrap_cvLogPolar, METH_VARARGS, (char *)"\n"
|
|
"cvLogPolar(CvArr src, CvArr dst, CvPoint2D32f center, double M, \n"
|
|
" int flags = 1+8)\n"
|
|
""},
|
|
{ (char *)"cvLinearPolar", _wrap_cvLinearPolar, METH_VARARGS, (char *)"\n"
|
|
"cvLinearPolar(CvArr src, CvArr dst, CvPoint2D32f center, double maxRadius, \n"
|
|
" int flags = 1+8)\n"
|
|
""},
|
|
{ (char *)"cvCreateStructuringElementEx", _wrap_cvCreateStructuringElementEx, METH_VARARGS, (char *)"\n"
|
|
"cvCreateStructuringElementEx(int cols, int rows, int anchor_x, int anchor_y, int shape, \n"
|
|
" int values = None)\n"
|
|
""},
|
|
{ (char *)"cvErode", _wrap_cvErode, METH_VARARGS, (char *)"cvErode(CvArr src, CvArr dst, element = None, int iterations = 1)"},
|
|
{ (char *)"cvDilate", _wrap_cvDilate, METH_VARARGS, (char *)"cvDilate(CvArr src, CvArr dst, element = None, int iterations = 1)"},
|
|
{ (char *)"cvMorphologyEx", _wrap_cvMorphologyEx, METH_VARARGS, (char *)"\n"
|
|
"cvMorphologyEx(CvArr src, CvArr dst, CvArr temp, element, int operation, \n"
|
|
" int iterations = 1)\n"
|
|
""},
|
|
{ (char *)"cvMoments", _wrap_cvMoments, METH_VARARGS, (char *)"cvMoments(CvArr arr, CvMoments moments, int binary = 0)"},
|
|
{ (char *)"cvGetSpatialMoment", _wrap_cvGetSpatialMoment, METH_VARARGS, (char *)"cvGetSpatialMoment(CvMoments moments, int x_order, int y_order) -> double"},
|
|
{ (char *)"cvGetCentralMoment", _wrap_cvGetCentralMoment, METH_VARARGS, (char *)"cvGetCentralMoment(CvMoments moments, int x_order, int y_order) -> double"},
|
|
{ (char *)"cvGetNormalizedCentralMoment", _wrap_cvGetNormalizedCentralMoment, METH_VARARGS, (char *)"cvGetNormalizedCentralMoment(CvMoments moments, int x_order, int y_order) -> double"},
|
|
{ (char *)"cvGetHuMoments", _wrap_cvGetHuMoments, METH_VARARGS, (char *)"cvGetHuMoments(CvMoments moments, CvHuMoments hu_moments)"},
|
|
{ (char *)"cvSampleLine", _wrap_cvSampleLine, METH_VARARGS, (char *)"\n"
|
|
"cvSampleLine(CvArr image, CvPoint pt1, CvPoint pt2, void buffer, \n"
|
|
" int connectivity = 8) -> int\n"
|
|
""},
|
|
{ (char *)"cvGetRectSubPix", _wrap_cvGetRectSubPix, METH_VARARGS, (char *)"cvGetRectSubPix(CvArr src, CvArr dst, CvPoint2D32f center)"},
|
|
{ (char *)"cvGetQuadrangleSubPix", _wrap_cvGetQuadrangleSubPix, METH_VARARGS, (char *)"cvGetQuadrangleSubPix(CvArr src, CvArr dst, CvMat map_matrix)"},
|
|
{ (char *)"cvMatchTemplate", _wrap_cvMatchTemplate, METH_VARARGS, (char *)"cvMatchTemplate(CvArr image, CvArr templ, CvArr result, int method)"},
|
|
{ (char *)"cvCalcEMD2", _wrap_cvCalcEMD2, METH_VARARGS, (char *)"\n"
|
|
"cvCalcEMD2(CvArr signature1, CvArr signature2, int distance_type, \n"
|
|
" CvDistanceFunction distance_func = None, \n"
|
|
" CvArr cost_matrix = None, CvArr flow = None, \n"
|
|
" float lower_bound = None, void userdata = None) -> float\n"
|
|
""},
|
|
{ (char *)"cvFindContoursUntyped", _wrap_cvFindContoursUntyped, METH_VARARGS, (char *)"\n"
|
|
"cvFindContoursUntyped(CvArr image, CvMemStorage storage, int header_size = sizeof(CvContour), \n"
|
|
" int mode = 1, int method = 2, \n"
|
|
" CvPoint offset = cvPoint(0,0)) -> int\n"
|
|
""},
|
|
{ (char *)"cvStartFindContours", _wrap_cvStartFindContours, METH_VARARGS, (char *)"\n"
|
|
"cvStartFindContours(CvArr image, CvMemStorage storage, int header_size = sizeof(CvContour), \n"
|
|
" int mode = 1, int method = 2, \n"
|
|
" CvPoint offset = cvPoint(0,0)) -> CvContourScanner\n"
|
|
""},
|
|
{ (char *)"cvFindNextContour", _wrap_cvFindNextContour, METH_VARARGS, (char *)"cvFindNextContour(CvContourScanner scanner) -> CvSeq"},
|
|
{ (char *)"cvSubstituteContour", _wrap_cvSubstituteContour, METH_VARARGS, (char *)"cvSubstituteContour(CvContourScanner scanner, CvSeq new_contour)"},
|
|
{ (char *)"cvEndFindContours", _wrap_cvEndFindContours, METH_VARARGS, (char *)"cvEndFindContours(CvContourScanner scanner) -> CvSeq"},
|
|
{ (char *)"cvApproxChainsUntyped", _wrap_cvApproxChainsUntyped, METH_VARARGS, (char *)"\n"
|
|
"cvApproxChainsUntyped(CvSeq src_seq, CvMemStorage storage, int method = 2, \n"
|
|
" double parameter = 0, int minimal_perimeter = 0, \n"
|
|
" int recursive = 0) -> CvSeq\n"
|
|
""},
|
|
{ (char *)"cvStartReadChainPoints", _wrap_cvStartReadChainPoints, METH_VARARGS, (char *)"cvStartReadChainPoints(CvChain chain, CvChainPtReader reader)"},
|
|
{ (char *)"cvReadChainPoint", _wrap_cvReadChainPoint, METH_VARARGS, (char *)"cvReadChainPoint(CvChainPtReader reader) -> CvPoint"},
|
|
{ (char *)"cvCalcOpticalFlowLK", _wrap_cvCalcOpticalFlowLK, METH_VARARGS, (char *)"\n"
|
|
"cvCalcOpticalFlowLK(CvArr prev, CvArr curr, CvSize win_size, CvArr velx, \n"
|
|
" CvArr vely)\n"
|
|
""},
|
|
{ (char *)"cvCalcOpticalFlowBM", _wrap_cvCalcOpticalFlowBM, METH_VARARGS, (char *)"\n"
|
|
"cvCalcOpticalFlowBM(CvArr prev, CvArr curr, CvSize block_size, CvSize shift_size, \n"
|
|
" CvSize max_range, int use_previous, \n"
|
|
" CvArr velx, CvArr vely)\n"
|
|
""},
|
|
{ (char *)"cvCalcOpticalFlowHS", _wrap_cvCalcOpticalFlowHS, METH_VARARGS, (char *)"\n"
|
|
"cvCalcOpticalFlowHS(CvArr prev, CvArr curr, int use_previous, CvArr velx, \n"
|
|
" CvArr vely, double _lambda, CvTermCriteria criteria)\n"
|
|
""},
|
|
{ (char *)"cvCalcOpticalFlowPyrLK", _wrap_cvCalcOpticalFlowPyrLK, METH_VARARGS, (char *)"\n"
|
|
"cvCalcOpticalFlowPyrLK(CvArr prev, CvArr curr, CvArr prev_pyr, CvArr curr_pyr, \n"
|
|
" CvPoint2D32f prev_features, CvPoint2D32f curr_features, \n"
|
|
" CvSize win_size, int level, char status, \n"
|
|
" float track_error, CvTermCriteria criteria, \n"
|
|
" int flags)\n"
|
|
""},
|
|
{ (char *)"cvCalcAffineFlowPyrLK", _wrap_cvCalcAffineFlowPyrLK, METH_VARARGS, (char *)"\n"
|
|
"cvCalcAffineFlowPyrLK(CvArr prev, CvArr curr, CvArr prev_pyr, CvArr curr_pyr, \n"
|
|
" CvPoint2D32f prev_features, CvPoint2D32f curr_features, \n"
|
|
" float matrices, int count, CvSize win_size, \n"
|
|
" int level, char status, float track_error, \n"
|
|
" CvTermCriteria criteria, int flags)\n"
|
|
""},
|
|
{ (char *)"cvEstimateRigidTransform", _wrap_cvEstimateRigidTransform, METH_VARARGS, (char *)"cvEstimateRigidTransform(CvArr A, CvArr B, CvMat M, int full_affine) -> int"},
|
|
{ (char *)"cvUpdateMotionHistory", _wrap_cvUpdateMotionHistory, METH_VARARGS, (char *)"cvUpdateMotionHistory(CvArr silhouette, CvArr mhi, double timestamp, double duration)"},
|
|
{ (char *)"cvCalcMotionGradient", _wrap_cvCalcMotionGradient, METH_VARARGS, (char *)"\n"
|
|
"cvCalcMotionGradient(CvArr mhi, CvArr mask, CvArr orientation, double delta1, \n"
|
|
" double delta2, int aperture_size = 3)\n"
|
|
""},
|
|
{ (char *)"cvCalcGlobalOrientation", _wrap_cvCalcGlobalOrientation, METH_VARARGS, (char *)"\n"
|
|
"cvCalcGlobalOrientation(CvArr orientation, CvArr mask, CvArr mhi, double timestamp, \n"
|
|
" double duration) -> double\n"
|
|
""},
|
|
{ (char *)"cvAcc", _wrap_cvAcc, METH_VARARGS, (char *)"cvAcc(CvArr image, CvArr sum, CvArr mask = None)"},
|
|
{ (char *)"cvSquareAcc", _wrap_cvSquareAcc, METH_VARARGS, (char *)"cvSquareAcc(CvArr image, CvArr sqsum, CvArr mask = None)"},
|
|
{ (char *)"cvMultiplyAcc", _wrap_cvMultiplyAcc, METH_VARARGS, (char *)"cvMultiplyAcc(CvArr image1, CvArr image2, CvArr acc, CvArr mask = None)"},
|
|
{ (char *)"cvRunningAvg", _wrap_cvRunningAvg, METH_VARARGS, (char *)"cvRunningAvg(CvArr image, CvArr acc, double alpha, CvArr mask = None)"},
|
|
{ (char *)"cvCamShift", _wrap_cvCamShift, METH_VARARGS, (char *)"\n"
|
|
"cvCamShift(CvArr prob_image, CvRect window, CvTermCriteria criteria, \n"
|
|
" CvConnectedComp comp, CvBox2D box = None) -> int\n"
|
|
""},
|
|
{ (char *)"cvMeanShift", _wrap_cvMeanShift, METH_VARARGS, (char *)"\n"
|
|
"cvMeanShift(CvArr prob_image, CvRect window, CvTermCriteria criteria, \n"
|
|
" CvConnectedComp comp) -> int\n"
|
|
""},
|
|
{ (char *)"cvCreateConDensation", _wrap_cvCreateConDensation, METH_VARARGS, (char *)"cvCreateConDensation(int dynam_params, int measure_params, int sample_count) -> CvConDensation"},
|
|
{ (char *)"cvConDensUpdateByTime", _wrap_cvConDensUpdateByTime, METH_VARARGS, (char *)"cvConDensUpdateByTime(CvConDensation condens)"},
|
|
{ (char *)"cvConDensInitSampleSet", _wrap_cvConDensInitSampleSet, METH_VARARGS, (char *)"cvConDensInitSampleSet(CvConDensation condens, CvMat lower_bound, CvMat upper_bound)"},
|
|
{ (char *)"cvCreateKalman", _wrap_cvCreateKalman, METH_VARARGS, (char *)"cvCreateKalman(int dynam_params, int measure_params, int control_params = 0) -> CvKalman"},
|
|
{ (char *)"cvKalmanPredict", _wrap_cvKalmanPredict, METH_VARARGS, (char *)"cvKalmanPredict(CvKalman kalman, CvMat control = None) -> CvMat"},
|
|
{ (char *)"cvKalmanCorrect", _wrap_cvKalmanCorrect, METH_VARARGS, (char *)"cvKalmanCorrect(CvKalman kalman, CvMat measurement) -> CvMat"},
|
|
{ (char *)"cvInitSubdivDelaunay2D", _wrap_cvInitSubdivDelaunay2D, METH_VARARGS, (char *)"cvInitSubdivDelaunay2D(CvSubdiv2D subdiv, CvRect rect)"},
|
|
{ (char *)"cvCreateSubdiv2D", _wrap_cvCreateSubdiv2D, METH_VARARGS, (char *)"\n"
|
|
"cvCreateSubdiv2D(int subdiv_type, int header_size, int vtx_size, int quadedge_size, \n"
|
|
" CvMemStorage storage) -> CvSubdiv2D\n"
|
|
""},
|
|
{ (char *)"cvCreateSubdivDelaunay2D", _wrap_cvCreateSubdivDelaunay2D, METH_VARARGS, (char *)"cvCreateSubdivDelaunay2D(CvRect rect, CvMemStorage storage) -> CvSubdiv2D"},
|
|
{ (char *)"cvSubdivDelaunay2DInsert", _wrap_cvSubdivDelaunay2DInsert, METH_VARARGS, (char *)"cvSubdivDelaunay2DInsert(CvSubdiv2D subdiv, CvPoint2D32f pt) -> CvSubdiv2DPoint"},
|
|
{ (char *)"cvSubdiv2DLocate", _wrap_cvSubdiv2DLocate, METH_VARARGS, (char *)"cvSubdiv2DLocate(CvSubdiv2D subdiv, CvPoint2D32f pt) -> CvSubdiv2DPointLocation"},
|
|
{ (char *)"cvCalcSubdivVoronoi2D", _wrap_cvCalcSubdivVoronoi2D, METH_VARARGS, (char *)"cvCalcSubdivVoronoi2D(CvSubdiv2D subdiv)"},
|
|
{ (char *)"cvClearSubdivVoronoi2D", _wrap_cvClearSubdivVoronoi2D, METH_VARARGS, (char *)"cvClearSubdivVoronoi2D(CvSubdiv2D subdiv)"},
|
|
{ (char *)"cvFindNearestPoint2D", _wrap_cvFindNearestPoint2D, METH_VARARGS, (char *)"cvFindNearestPoint2D(CvSubdiv2D subdiv, CvPoint2D32f pt) -> CvSubdiv2DPoint"},
|
|
{ (char *)"cvSubdiv2DNextEdge", _wrap_cvSubdiv2DNextEdge, METH_VARARGS, (char *)"cvSubdiv2DNextEdge(CvSubdiv2DEdge edge) -> CvSubdiv2DEdge"},
|
|
{ (char *)"cvSubdiv2DRotateEdge", _wrap_cvSubdiv2DRotateEdge, METH_VARARGS, (char *)"cvSubdiv2DRotateEdge(CvSubdiv2DEdge edge, int rotate) -> CvSubdiv2DEdge"},
|
|
{ (char *)"cvSubdiv2DSymEdge", _wrap_cvSubdiv2DSymEdge, METH_VARARGS, (char *)"cvSubdiv2DSymEdge(CvSubdiv2DEdge edge) -> CvSubdiv2DEdge"},
|
|
{ (char *)"cvSubdiv2DGetEdge", _wrap_cvSubdiv2DGetEdge, METH_VARARGS, (char *)"cvSubdiv2DGetEdge(CvSubdiv2DEdge edge, CvNextEdgeType type) -> CvSubdiv2DEdge"},
|
|
{ (char *)"cvSubdiv2DEdgeOrg", _wrap_cvSubdiv2DEdgeOrg, METH_VARARGS, (char *)"cvSubdiv2DEdgeOrg(CvSubdiv2DEdge edge) -> CvSubdiv2DPoint"},
|
|
{ (char *)"cvSubdiv2DEdgeDst", _wrap_cvSubdiv2DEdgeDst, METH_VARARGS, (char *)"cvSubdiv2DEdgeDst(CvSubdiv2DEdge edge) -> CvSubdiv2DPoint"},
|
|
{ (char *)"cvTriangleArea", _wrap_cvTriangleArea, METH_VARARGS, (char *)"cvTriangleArea(CvPoint2D32f a, CvPoint2D32f b, CvPoint2D32f c) -> double"},
|
|
{ (char *)"cvFindDominantPoints", _wrap_cvFindDominantPoints, METH_VARARGS, (char *)"\n"
|
|
"cvFindDominantPoints(CvSeq contour, CvMemStorage storage, int method = 1, \n"
|
|
" double parameter1 = 0, double parameter2 = 0, \n"
|
|
" double parameter3 = 0, double parameter4 = 0) -> CvSeq\n"
|
|
""},
|
|
{ (char *)"cvArcLength", _wrap_cvArcLength, METH_VARARGS, (char *)"\n"
|
|
"cvArcLength(void curve, CvSlice slice = cvSlice(0, 0x3fffffff), \n"
|
|
" int is_closed = -1) -> double\n"
|
|
""},
|
|
{ (char *)"cvBoundingRect", _wrap_cvBoundingRect, METH_VARARGS, (char *)"cvBoundingRect(CvArr points, int update = 0) -> CvRect"},
|
|
{ (char *)"cvContourArea", _wrap_cvContourArea, METH_VARARGS, (char *)"cvContourArea(CvArr contour, CvSlice slice = cvSlice(0, 0x3fffffff)) -> double"},
|
|
{ (char *)"cvMinAreaRect2", _wrap_cvMinAreaRect2, METH_VARARGS, (char *)"cvMinAreaRect2(CvArr points, CvMemStorage storage = None) -> CvBox2D"},
|
|
{ (char *)"cvMinEnclosingCircle", _wrap_cvMinEnclosingCircle, METH_VARARGS, (char *)"cvMinEnclosingCircle(CvArr points) -> int"},
|
|
{ (char *)"cvMatchShapes", _wrap_cvMatchShapes, METH_VARARGS, (char *)"cvMatchShapes(void object1, void object2, int method, double parameter = 0) -> double"},
|
|
{ (char *)"cvCreateContourTree", _wrap_cvCreateContourTree, METH_VARARGS, (char *)"cvCreateContourTree(CvSeq contour, CvMemStorage storage, double threshold) -> CvContourTree"},
|
|
{ (char *)"cvContourFromContourTreeUntyped", _wrap_cvContourFromContourTreeUntyped, METH_VARARGS, (char *)"cvContourFromContourTreeUntyped(CvContourTree tree, CvMemStorage storage, CvTermCriteria criteria) -> CvSeq"},
|
|
{ (char *)"cvMatchContourTrees", _wrap_cvMatchContourTrees, METH_VARARGS, (char *)"\n"
|
|
"cvMatchContourTrees(CvContourTree tree1, CvContourTree tree2, int method, \n"
|
|
" double threshold) -> double\n"
|
|
""},
|
|
{ (char *)"cvCalcPGH", _wrap_cvCalcPGH, METH_VARARGS, (char *)"cvCalcPGH(CvSeq contour, CvHistogram hist)"},
|
|
{ (char *)"cvCheckContourConvexity", _wrap_cvCheckContourConvexity, METH_VARARGS, (char *)"cvCheckContourConvexity(CvArr contour) -> int"},
|
|
{ (char *)"cvConvexityDefectsUntyped", _wrap_cvConvexityDefectsUntyped, METH_VARARGS, (char *)"cvConvexityDefectsUntyped(CvArr contour, CvArr convexhull, CvMemStorage storage = None) -> CvSeq"},
|
|
{ (char *)"cvFitEllipse2", _wrap_cvFitEllipse2, METH_VARARGS, (char *)"cvFitEllipse2(CvArr points) -> CvBox2D"},
|
|
{ (char *)"cvMaxRect", _wrap_cvMaxRect, METH_VARARGS, (char *)"cvMaxRect(CvRect rect1, CvRect rect2) -> CvRect"},
|
|
{ (char *)"cvBoxPoints", _wrap_cvBoxPoints, METH_VARARGS, (char *)"cvBoxPoints(CvBox2D box)"},
|
|
{ (char *)"cvPointSeqFromMat", _wrap_cvPointSeqFromMat, METH_VARARGS, (char *)"\n"
|
|
"cvPointSeqFromMat(int seq_kind, CvArr mat, CvContour contour_header, \n"
|
|
" CvSeqBlock block) -> CvSeq\n"
|
|
""},
|
|
{ (char *)"cvPointPolygonTest", _wrap_cvPointPolygonTest, METH_VARARGS, (char *)"cvPointPolygonTest(CvArr contour, CvPoint2D32f pt, int measure_dist) -> double"},
|
|
{ (char *)"cvCreateHist", _wrap_cvCreateHist, METH_VARARGS, (char *)"cvCreateHist(int dims, int type, float ranges = None, int uniform = 1) -> CvHistogram"},
|
|
{ (char *)"cvSetHistBinRanges", _wrap_cvSetHistBinRanges, METH_VARARGS, (char *)"cvSetHistBinRanges(CvHistogram hist, float ranges, int uniform = 1)"},
|
|
{ (char *)"cvMakeHistHeaderForArray", _wrap_cvMakeHistHeaderForArray, METH_VARARGS, (char *)"\n"
|
|
"cvMakeHistHeaderForArray(int dims, CvHistogram hist, float data, float ranges = None, \n"
|
|
" int uniform = 1) -> CvHistogram\n"
|
|
""},
|
|
{ (char *)"cvClearHist", _wrap_cvClearHist, METH_VARARGS, (char *)"cvClearHist(CvHistogram hist)"},
|
|
{ (char *)"cvGetMinMaxHistValue", _wrap_cvGetMinMaxHistValue, METH_VARARGS, (char *)"cvGetMinMaxHistValue(CvHistogram hist)"},
|
|
{ (char *)"cvNormalizeHist", _wrap_cvNormalizeHist, METH_VARARGS, (char *)"cvNormalizeHist(CvHistogram hist, double factor)"},
|
|
{ (char *)"cvThreshHist", _wrap_cvThreshHist, METH_VARARGS, (char *)"cvThreshHist(CvHistogram hist, double threshold)"},
|
|
{ (char *)"cvCompareHist", _wrap_cvCompareHist, METH_VARARGS, (char *)"cvCompareHist(CvHistogram hist1, CvHistogram hist2, int method) -> double"},
|
|
{ (char *)"cvCopyHist", _wrap_cvCopyHist, METH_VARARGS, (char *)"cvCopyHist(CvHistogram src, CvHistogram dst)"},
|
|
{ (char *)"cvCalcBayesianProb", _wrap_cvCalcBayesianProb, METH_VARARGS, (char *)"cvCalcBayesianProb(CvHistogram src, int number, CvHistogram dst)"},
|
|
{ (char *)"cvCalcArrHist", _wrap_cvCalcArrHist, METH_VARARGS, (char *)"cvCalcArrHist(CvArr arr, CvHistogram hist, int accumulate = 0, CvArr mask = None)"},
|
|
{ (char *)"cvCalcHist", _wrap_cvCalcHist, METH_VARARGS, (char *)"cvCalcHist( image, CvHistogram hist, int accumulate = 0, CvArr mask = None)"},
|
|
{ (char *)"cvCalcArrBackProject", _wrap_cvCalcArrBackProject, METH_VARARGS, (char *)"cvCalcArrBackProject(CvArr image, CvArr dst, CvHistogram hist)"},
|
|
{ (char *)"cvCalcArrBackProjectPatch", _wrap_cvCalcArrBackProjectPatch, METH_VARARGS, (char *)"\n"
|
|
"cvCalcArrBackProjectPatch(CvArr image, CvArr dst, CvSize range, CvHistogram hist, \n"
|
|
" int method, double factor)\n"
|
|
""},
|
|
{ (char *)"cvCalcProbDensity", _wrap_cvCalcProbDensity, METH_VARARGS, (char *)"\n"
|
|
"cvCalcProbDensity(CvHistogram hist1, CvHistogram hist2, CvHistogram dst_hist, \n"
|
|
" double scale = 255)\n"
|
|
""},
|
|
{ (char *)"cvEqualizeHist", _wrap_cvEqualizeHist, METH_VARARGS, (char *)"cvEqualizeHist(CvArr src, CvArr dst)"},
|
|
{ (char *)"cvCalcImageHomography", _wrap_cvCalcImageHomography, METH_VARARGS, (char *)"cvCalcImageHomography(float line, CvPoint3D32f center, float intrinsic, float homography)"},
|
|
{ (char *)"cvDistTransform", _wrap_cvDistTransform, METH_VARARGS, (char *)"\n"
|
|
"cvDistTransform(CvArr src, CvArr dst, int distance_type = 2, int mask_size = 3, \n"
|
|
" float mask = None, CvArr labels = None)\n"
|
|
""},
|
|
{ (char *)"cvThreshold", _wrap_cvThreshold, METH_VARARGS, (char *)"\n"
|
|
"cvThreshold(CvArr src, CvArr dst, double threshold, double max_value, \n"
|
|
" int threshold_type) -> double\n"
|
|
""},
|
|
{ (char *)"cvAdaptiveThreshold", _wrap_cvAdaptiveThreshold, METH_VARARGS, (char *)"\n"
|
|
"cvAdaptiveThreshold(CvArr src, CvArr dst, double max_value, int adaptive_method = 0, \n"
|
|
" int threshold_type = 0, int block_size = 3, \n"
|
|
" double param1 = 5)\n"
|
|
""},
|
|
{ (char *)"cvFloodFill", _wrap_cvFloodFill, METH_VARARGS, (char *)"\n"
|
|
"cvFloodFill(CvArr image, CvPoint seed_point, CvScalar new_val, \n"
|
|
" CvScalar lo_diff = cvScalarAll(0), CvScalar up_diff = cvScalarAll(0), \n"
|
|
" CvConnectedComp comp = None, \n"
|
|
" int flags = 4, CvArr mask = None)\n"
|
|
""},
|
|
{ (char *)"cvCanny", _wrap_cvCanny, METH_VARARGS, (char *)"\n"
|
|
"cvCanny(CvArr image, CvArr edges, double threshold1, double threshold2, \n"
|
|
" int aperture_size = 3)\n"
|
|
""},
|
|
{ (char *)"cvPreCornerDetect", _wrap_cvPreCornerDetect, METH_VARARGS, (char *)"cvPreCornerDetect(CvArr image, CvArr corners, int aperture_size = 3)"},
|
|
{ (char *)"cvCornerEigenValsAndVecs", _wrap_cvCornerEigenValsAndVecs, METH_VARARGS, (char *)"cvCornerEigenValsAndVecs(CvArr image, CvArr eigenvv, int block_size, int aperture_size = 3)"},
|
|
{ (char *)"cvCornerMinEigenVal", _wrap_cvCornerMinEigenVal, METH_VARARGS, (char *)"cvCornerMinEigenVal(CvArr image, CvArr eigenval, int block_size, int aperture_size = 3)"},
|
|
{ (char *)"cvCornerHarris", _wrap_cvCornerHarris, METH_VARARGS, (char *)"\n"
|
|
"cvCornerHarris(CvArr image, CvArr harris_responce, int block_size, \n"
|
|
" int aperture_size = 3, double k = 0.04)\n"
|
|
""},
|
|
{ (char *)"cvFindCornerSubPix", _wrap_cvFindCornerSubPix, METH_VARARGS, (char *)"\n"
|
|
"cvFindCornerSubPix(CvArr image, CvPoint2D32f corners, CvSize win, CvSize zero_zone, \n"
|
|
" CvTermCriteria criteria)\n"
|
|
""},
|
|
{ (char *)"cvGoodFeaturesToTrack", _wrap_cvGoodFeaturesToTrack, METH_VARARGS, (char *)"\n"
|
|
"cvGoodFeaturesToTrack(CvArr image, CvArr eig_image, CvArr temp_image, CvPoint2D32f corners, \n"
|
|
" double quality_level, double min_distance, \n"
|
|
" CvArr mask = None, int block_size = 3, \n"
|
|
" int use_harris = 0, double k = 0.04)\n"
|
|
""},
|
|
{ (char *)"cvHoughLinesUntyped", _wrap_cvHoughLinesUntyped, METH_VARARGS, (char *)"\n"
|
|
"cvHoughLinesUntyped(CvArr image, void line_storage, int method, double rho, \n"
|
|
" double theta, int threshold, double param1 = 0, \n"
|
|
" double param2 = 0) -> CvSeq\n"
|
|
""},
|
|
{ (char *)"cvHoughCirclesUntyped", _wrap_cvHoughCirclesUntyped, METH_VARARGS, (char *)"\n"
|
|
"cvHoughCirclesUntyped(CvArr image, void circle_storage, int method, double dp, \n"
|
|
" double min_dist, double param1 = 100, double param2 = 100, \n"
|
|
" int min_radius = 0, int max_radius = 0) -> CvSeq\n"
|
|
""},
|
|
{ (char *)"cvFitLine", _wrap_cvFitLine, METH_VARARGS, (char *)"\n"
|
|
"cvFitLine(CvArr points, int dist_type, double param, double reps, \n"
|
|
" double aeps, float line)\n"
|
|
""},
|
|
{ (char *)"cvCreateKDTree", _wrap_cvCreateKDTree, METH_VARARGS, (char *)"cvCreateKDTree(CvMat desc) -> CvFeatureTree"},
|
|
{ (char *)"cvCreateSpillTree", _wrap_cvCreateSpillTree, METH_VARARGS, (char *)"cvCreateSpillTree(CvMat raw_data, int naive = 50, double rho = .7, double tau = .1) -> CvFeatureTree"},
|
|
{ (char *)"cvReleaseFeatureTree", _wrap_cvReleaseFeatureTree, METH_VARARGS, (char *)"cvReleaseFeatureTree(CvFeatureTree tr)"},
|
|
{ (char *)"cvFindFeatures", _wrap_cvFindFeatures, METH_VARARGS, (char *)"\n"
|
|
"cvFindFeatures(CvFeatureTree tr, CvMat query_points, CvMat indices, \n"
|
|
" int emax = 20)\n"
|
|
""},
|
|
{ (char *)"cvFindFeaturesBoxed", _wrap_cvFindFeaturesBoxed, METH_VARARGS, (char *)"\n"
|
|
"cvFindFeaturesBoxed(CvFeatureTree tr, CvMat bounds_min, CvMat bounds_max, \n"
|
|
" CvMat out_indices) -> int\n"
|
|
""},
|
|
{ (char *)"cvCreateLSH", _wrap_cvCreateLSH, METH_VARARGS, (char *)"\n"
|
|
"cvCreateLSH(CvLSHOperations ops, int d, int L = 10, int k = 10, \n"
|
|
" int type = (((6) &((1 << 3) -1)) +(((1) -1) << 3)), \n"
|
|
" double r = 4, int64 seed = -1) -> CvLSH\n"
|
|
""},
|
|
{ (char *)"cvCreateMemoryLSH", _wrap_cvCreateMemoryLSH, METH_VARARGS, (char *)"\n"
|
|
"cvCreateMemoryLSH(int d, int n, int L = 10, int k = 10, int type = (((6) &((1 << 3) -1)) +(((1) -1) << 3)), \n"
|
|
" double r = 4, \n"
|
|
" int64 seed = -1) -> CvLSH\n"
|
|
""},
|
|
{ (char *)"cvReleaseLSH", _wrap_cvReleaseLSH, METH_VARARGS, (char *)"cvReleaseLSH(CvLSH lsh)"},
|
|
{ (char *)"LSHSize", _wrap_LSHSize, METH_VARARGS, (char *)"LSHSize(CvLSH lsh) -> unsigned int"},
|
|
{ (char *)"cvLSHAdd", _wrap_cvLSHAdd, METH_VARARGS, (char *)"cvLSHAdd(CvLSH lsh, CvMat data)"},
|
|
{ (char *)"cvLSHRemove", _wrap_cvLSHRemove, METH_VARARGS, (char *)"cvLSHRemove(CvLSH lsh, CvMat indices)"},
|
|
{ (char *)"cvLSHQuery", _wrap_cvLSHQuery, METH_VARARGS, (char *)"cvLSHQuery(CvLSH lsh, CvMat query_points, CvMat indices, int emax)"},
|
|
{ (char *)"CvSURFPoint_pt_set", _wrap_CvSURFPoint_pt_set, METH_VARARGS, (char *)"CvSURFPoint_pt_set(CvSURFPoint self, CvPoint2D32f pt)"},
|
|
{ (char *)"CvSURFPoint_pt_get", _wrap_CvSURFPoint_pt_get, METH_VARARGS, (char *)"CvSURFPoint_pt_get(CvSURFPoint self) -> CvPoint2D32f"},
|
|
{ (char *)"CvSURFPoint_laplacian_set", _wrap_CvSURFPoint_laplacian_set, METH_VARARGS, (char *)"CvSURFPoint_laplacian_set(CvSURFPoint self, int laplacian)"},
|
|
{ (char *)"CvSURFPoint_laplacian_get", _wrap_CvSURFPoint_laplacian_get, METH_VARARGS, (char *)"CvSURFPoint_laplacian_get(CvSURFPoint self) -> int"},
|
|
{ (char *)"CvSURFPoint_size_set", _wrap_CvSURFPoint_size_set, METH_VARARGS, (char *)"CvSURFPoint_size_set(CvSURFPoint self, int size)"},
|
|
{ (char *)"CvSURFPoint_size_get", _wrap_CvSURFPoint_size_get, METH_VARARGS, (char *)"CvSURFPoint_size_get(CvSURFPoint self) -> int"},
|
|
{ (char *)"CvSURFPoint_dir_set", _wrap_CvSURFPoint_dir_set, METH_VARARGS, (char *)"CvSURFPoint_dir_set(CvSURFPoint self, float dir)"},
|
|
{ (char *)"CvSURFPoint_dir_get", _wrap_CvSURFPoint_dir_get, METH_VARARGS, (char *)"CvSURFPoint_dir_get(CvSURFPoint self) -> float"},
|
|
{ (char *)"CvSURFPoint_hessian_set", _wrap_CvSURFPoint_hessian_set, METH_VARARGS, (char *)"CvSURFPoint_hessian_set(CvSURFPoint self, float hessian)"},
|
|
{ (char *)"CvSURFPoint_hessian_get", _wrap_CvSURFPoint_hessian_get, METH_VARARGS, (char *)"CvSURFPoint_hessian_get(CvSURFPoint self) -> float"},
|
|
{ (char *)"new_CvSURFPoint", _wrap_new_CvSURFPoint, METH_VARARGS, (char *)"new_CvSURFPoint() -> CvSURFPoint"},
|
|
{ (char *)"delete_CvSURFPoint", _wrap_delete_CvSURFPoint, METH_VARARGS, (char *)"delete_CvSURFPoint(CvSURFPoint self)"},
|
|
{ (char *)"CvSURFPoint_swigregister", CvSURFPoint_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvSURFPoint", _wrap_cvSURFPoint, METH_VARARGS, (char *)"\n"
|
|
"cvSURFPoint(CvPoint2D32f pt, int laplacian, int size, float dir = 0, \n"
|
|
" float hessian = 0) -> CvSURFPoint\n"
|
|
""},
|
|
{ (char *)"CvSURFParams_extended_set", _wrap_CvSURFParams_extended_set, METH_VARARGS, (char *)"CvSURFParams_extended_set(CvSURFParams self, int extended)"},
|
|
{ (char *)"CvSURFParams_extended_get", _wrap_CvSURFParams_extended_get, METH_VARARGS, (char *)"CvSURFParams_extended_get(CvSURFParams self) -> int"},
|
|
{ (char *)"CvSURFParams_hessianThreshold_set", _wrap_CvSURFParams_hessianThreshold_set, METH_VARARGS, (char *)"CvSURFParams_hessianThreshold_set(CvSURFParams self, double hessianThreshold)"},
|
|
{ (char *)"CvSURFParams_hessianThreshold_get", _wrap_CvSURFParams_hessianThreshold_get, METH_VARARGS, (char *)"CvSURFParams_hessianThreshold_get(CvSURFParams self) -> double"},
|
|
{ (char *)"CvSURFParams_nOctaves_set", _wrap_CvSURFParams_nOctaves_set, METH_VARARGS, (char *)"CvSURFParams_nOctaves_set(CvSURFParams self, int nOctaves)"},
|
|
{ (char *)"CvSURFParams_nOctaves_get", _wrap_CvSURFParams_nOctaves_get, METH_VARARGS, (char *)"CvSURFParams_nOctaves_get(CvSURFParams self) -> int"},
|
|
{ (char *)"CvSURFParams_nOctaveLayers_set", _wrap_CvSURFParams_nOctaveLayers_set, METH_VARARGS, (char *)"CvSURFParams_nOctaveLayers_set(CvSURFParams self, int nOctaveLayers)"},
|
|
{ (char *)"CvSURFParams_nOctaveLayers_get", _wrap_CvSURFParams_nOctaveLayers_get, METH_VARARGS, (char *)"CvSURFParams_nOctaveLayers_get(CvSURFParams self) -> int"},
|
|
{ (char *)"new_CvSURFParams", _wrap_new_CvSURFParams, METH_VARARGS, (char *)"new_CvSURFParams() -> CvSURFParams"},
|
|
{ (char *)"delete_CvSURFParams", _wrap_delete_CvSURFParams, METH_VARARGS, (char *)"delete_CvSURFParams(CvSURFParams self)"},
|
|
{ (char *)"CvSURFParams_swigregister", CvSURFParams_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvSURFParams", _wrap_cvSURFParams, METH_VARARGS, (char *)"cvSURFParams(double hessianThreshold, int extended = 0) -> CvSURFParams"},
|
|
{ (char *)"cvExtractSURF", _wrap_cvExtractSURF, METH_VARARGS, (char *)"cvExtractSURF(CvArr img, CvArr mask, CvSURFParams params, int useProvidedKeyPts = 0)"},
|
|
{ (char *)"CvMSERParams_delta_set", _wrap_CvMSERParams_delta_set, METH_VARARGS, (char *)"CvMSERParams_delta_set(CvMSERParams self, int delta)"},
|
|
{ (char *)"CvMSERParams_delta_get", _wrap_CvMSERParams_delta_get, METH_VARARGS, (char *)"CvMSERParams_delta_get(CvMSERParams self) -> int"},
|
|
{ (char *)"CvMSERParams_maxArea_set", _wrap_CvMSERParams_maxArea_set, METH_VARARGS, (char *)"CvMSERParams_maxArea_set(CvMSERParams self, int maxArea)"},
|
|
{ (char *)"CvMSERParams_maxArea_get", _wrap_CvMSERParams_maxArea_get, METH_VARARGS, (char *)"CvMSERParams_maxArea_get(CvMSERParams self) -> int"},
|
|
{ (char *)"CvMSERParams_minArea_set", _wrap_CvMSERParams_minArea_set, METH_VARARGS, (char *)"CvMSERParams_minArea_set(CvMSERParams self, int minArea)"},
|
|
{ (char *)"CvMSERParams_minArea_get", _wrap_CvMSERParams_minArea_get, METH_VARARGS, (char *)"CvMSERParams_minArea_get(CvMSERParams self) -> int"},
|
|
{ (char *)"CvMSERParams_maxVariation_set", _wrap_CvMSERParams_maxVariation_set, METH_VARARGS, (char *)"CvMSERParams_maxVariation_set(CvMSERParams self, float maxVariation)"},
|
|
{ (char *)"CvMSERParams_maxVariation_get", _wrap_CvMSERParams_maxVariation_get, METH_VARARGS, (char *)"CvMSERParams_maxVariation_get(CvMSERParams self) -> float"},
|
|
{ (char *)"CvMSERParams_minDiversity_set", _wrap_CvMSERParams_minDiversity_set, METH_VARARGS, (char *)"CvMSERParams_minDiversity_set(CvMSERParams self, float minDiversity)"},
|
|
{ (char *)"CvMSERParams_minDiversity_get", _wrap_CvMSERParams_minDiversity_get, METH_VARARGS, (char *)"CvMSERParams_minDiversity_get(CvMSERParams self) -> float"},
|
|
{ (char *)"CvMSERParams_maxEvolution_set", _wrap_CvMSERParams_maxEvolution_set, METH_VARARGS, (char *)"CvMSERParams_maxEvolution_set(CvMSERParams self, int maxEvolution)"},
|
|
{ (char *)"CvMSERParams_maxEvolution_get", _wrap_CvMSERParams_maxEvolution_get, METH_VARARGS, (char *)"CvMSERParams_maxEvolution_get(CvMSERParams self) -> int"},
|
|
{ (char *)"CvMSERParams_areaThreshold_set", _wrap_CvMSERParams_areaThreshold_set, METH_VARARGS, (char *)"CvMSERParams_areaThreshold_set(CvMSERParams self, double areaThreshold)"},
|
|
{ (char *)"CvMSERParams_areaThreshold_get", _wrap_CvMSERParams_areaThreshold_get, METH_VARARGS, (char *)"CvMSERParams_areaThreshold_get(CvMSERParams self) -> double"},
|
|
{ (char *)"CvMSERParams_minMargin_set", _wrap_CvMSERParams_minMargin_set, METH_VARARGS, (char *)"CvMSERParams_minMargin_set(CvMSERParams self, double minMargin)"},
|
|
{ (char *)"CvMSERParams_minMargin_get", _wrap_CvMSERParams_minMargin_get, METH_VARARGS, (char *)"CvMSERParams_minMargin_get(CvMSERParams self) -> double"},
|
|
{ (char *)"CvMSERParams_edgeBlurSize_set", _wrap_CvMSERParams_edgeBlurSize_set, METH_VARARGS, (char *)"CvMSERParams_edgeBlurSize_set(CvMSERParams self, int edgeBlurSize)"},
|
|
{ (char *)"CvMSERParams_edgeBlurSize_get", _wrap_CvMSERParams_edgeBlurSize_get, METH_VARARGS, (char *)"CvMSERParams_edgeBlurSize_get(CvMSERParams self) -> int"},
|
|
{ (char *)"new_CvMSERParams", _wrap_new_CvMSERParams, METH_VARARGS, (char *)"new_CvMSERParams() -> CvMSERParams"},
|
|
{ (char *)"delete_CvMSERParams", _wrap_delete_CvMSERParams, METH_VARARGS, (char *)"delete_CvMSERParams(CvMSERParams self)"},
|
|
{ (char *)"CvMSERParams_swigregister", CvMSERParams_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvMSERParams", _wrap_cvMSERParams, METH_VARARGS, (char *)"\n"
|
|
"cvMSERParams(int delta = 5, int min_area = 60, int max_area = 14400, \n"
|
|
" float max_variation = .25, float min_diversity = .2, \n"
|
|
" int max_evolution = 200, double area_threshold = 1.01, \n"
|
|
" double min_margin = .003, \n"
|
|
" int edge_blur_size = 5) -> CvMSERParams\n"
|
|
""},
|
|
{ (char *)"cvExtractMSER", _wrap_cvExtractMSER, METH_VARARGS, (char *)"\n"
|
|
"cvExtractMSER(CvArr _img, CvArr _mask, CvSeq contours, CvMemStorage storage, \n"
|
|
" CvMSERParams params)\n"
|
|
""},
|
|
{ (char *)"CvStarKeypoint_pt_set", _wrap_CvStarKeypoint_pt_set, METH_VARARGS, (char *)"CvStarKeypoint_pt_set(CvStarKeypoint self, CvPoint pt)"},
|
|
{ (char *)"CvStarKeypoint_pt_get", _wrap_CvStarKeypoint_pt_get, METH_VARARGS, (char *)"CvStarKeypoint_pt_get(CvStarKeypoint self) -> CvPoint"},
|
|
{ (char *)"CvStarKeypoint_size_set", _wrap_CvStarKeypoint_size_set, METH_VARARGS, (char *)"CvStarKeypoint_size_set(CvStarKeypoint self, int size)"},
|
|
{ (char *)"CvStarKeypoint_size_get", _wrap_CvStarKeypoint_size_get, METH_VARARGS, (char *)"CvStarKeypoint_size_get(CvStarKeypoint self) -> int"},
|
|
{ (char *)"CvStarKeypoint_response_set", _wrap_CvStarKeypoint_response_set, METH_VARARGS, (char *)"CvStarKeypoint_response_set(CvStarKeypoint self, float response)"},
|
|
{ (char *)"CvStarKeypoint_response_get", _wrap_CvStarKeypoint_response_get, METH_VARARGS, (char *)"CvStarKeypoint_response_get(CvStarKeypoint self) -> float"},
|
|
{ (char *)"new_CvStarKeypoint", _wrap_new_CvStarKeypoint, METH_VARARGS, (char *)"new_CvStarKeypoint() -> CvStarKeypoint"},
|
|
{ (char *)"delete_CvStarKeypoint", _wrap_delete_CvStarKeypoint, METH_VARARGS, (char *)"delete_CvStarKeypoint(CvStarKeypoint self)"},
|
|
{ (char *)"CvStarKeypoint_swigregister", CvStarKeypoint_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvStarKeypoint", _wrap_cvStarKeypoint, METH_VARARGS, (char *)"cvStarKeypoint(CvPoint pt, int size, float response) -> CvStarKeypoint"},
|
|
{ (char *)"CvStarDetectorParams_maxSize_set", _wrap_CvStarDetectorParams_maxSize_set, METH_VARARGS, (char *)"CvStarDetectorParams_maxSize_set(CvStarDetectorParams self, int maxSize)"},
|
|
{ (char *)"CvStarDetectorParams_maxSize_get", _wrap_CvStarDetectorParams_maxSize_get, METH_VARARGS, (char *)"CvStarDetectorParams_maxSize_get(CvStarDetectorParams self) -> int"},
|
|
{ (char *)"CvStarDetectorParams_responseThreshold_set", _wrap_CvStarDetectorParams_responseThreshold_set, METH_VARARGS, (char *)"CvStarDetectorParams_responseThreshold_set(CvStarDetectorParams self, int responseThreshold)"},
|
|
{ (char *)"CvStarDetectorParams_responseThreshold_get", _wrap_CvStarDetectorParams_responseThreshold_get, METH_VARARGS, (char *)"CvStarDetectorParams_responseThreshold_get(CvStarDetectorParams self) -> int"},
|
|
{ (char *)"CvStarDetectorParams_lineThresholdProjected_set", _wrap_CvStarDetectorParams_lineThresholdProjected_set, METH_VARARGS, (char *)"CvStarDetectorParams_lineThresholdProjected_set(CvStarDetectorParams self, int lineThresholdProjected)"},
|
|
{ (char *)"CvStarDetectorParams_lineThresholdProjected_get", _wrap_CvStarDetectorParams_lineThresholdProjected_get, METH_VARARGS, (char *)"CvStarDetectorParams_lineThresholdProjected_get(CvStarDetectorParams self) -> int"},
|
|
{ (char *)"CvStarDetectorParams_lineThresholdBinarized_set", _wrap_CvStarDetectorParams_lineThresholdBinarized_set, METH_VARARGS, (char *)"CvStarDetectorParams_lineThresholdBinarized_set(CvStarDetectorParams self, int lineThresholdBinarized)"},
|
|
{ (char *)"CvStarDetectorParams_lineThresholdBinarized_get", _wrap_CvStarDetectorParams_lineThresholdBinarized_get, METH_VARARGS, (char *)"CvStarDetectorParams_lineThresholdBinarized_get(CvStarDetectorParams self) -> int"},
|
|
{ (char *)"CvStarDetectorParams_suppressNonmaxSize_set", _wrap_CvStarDetectorParams_suppressNonmaxSize_set, METH_VARARGS, (char *)"CvStarDetectorParams_suppressNonmaxSize_set(CvStarDetectorParams self, int suppressNonmaxSize)"},
|
|
{ (char *)"CvStarDetectorParams_suppressNonmaxSize_get", _wrap_CvStarDetectorParams_suppressNonmaxSize_get, METH_VARARGS, (char *)"CvStarDetectorParams_suppressNonmaxSize_get(CvStarDetectorParams self) -> int"},
|
|
{ (char *)"new_CvStarDetectorParams", _wrap_new_CvStarDetectorParams, METH_VARARGS, (char *)"new_CvStarDetectorParams() -> CvStarDetectorParams"},
|
|
{ (char *)"delete_CvStarDetectorParams", _wrap_delete_CvStarDetectorParams, METH_VARARGS, (char *)"delete_CvStarDetectorParams(CvStarDetectorParams self)"},
|
|
{ (char *)"CvStarDetectorParams_swigregister", CvStarDetectorParams_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvStarDetectorParams", _wrap_cvStarDetectorParams, METH_VARARGS, (char *)"\n"
|
|
"cvStarDetectorParams(int maxSize = 45, int responseThreshold = 30, int lineThresholdProjected = 10, \n"
|
|
" int lineThresholdBinarized = 8, \n"
|
|
" int suppressNonmaxSize = 5) -> CvStarDetectorParams\n"
|
|
""},
|
|
{ (char *)"cvGetStarKeypoints", _wrap_cvGetStarKeypoints, METH_VARARGS, (char *)"cvGetStarKeypoints(CvArr img, CvMemStorage storage, CvStarDetectorParams params = cvStarDetectorParams()) -> CvSeq"},
|
|
{ (char *)"cvLoadHaarClassifierCascade", _wrap_cvLoadHaarClassifierCascade, METH_VARARGS, (char *)"cvLoadHaarClassifierCascade(char directory, CvSize orig_window_size) -> CvHaarClassifierCascade"},
|
|
{ (char *)"cvSetImagesForHaarClassifierCascade", _wrap_cvSetImagesForHaarClassifierCascade, METH_VARARGS, (char *)"\n"
|
|
"cvSetImagesForHaarClassifierCascade(CvHaarClassifierCascade cascade, CvArr sum, CvArr sqsum, \n"
|
|
" CvArr tilted_sum, double scale)\n"
|
|
""},
|
|
{ (char *)"cvRunHaarClassifierCascade", _wrap_cvRunHaarClassifierCascade, METH_VARARGS, (char *)"cvRunHaarClassifierCascade(CvHaarClassifierCascade cascade, CvPoint pt, int start_stage = 0) -> int"},
|
|
{ (char *)"cvUndistort2", _wrap_cvUndistort2, METH_VARARGS, (char *)"cvUndistort2(CvArr src, CvArr dst, CvMat camera_matrix, CvMat distortion_coeffs)"},
|
|
{ (char *)"cvInitUndistortMap", _wrap_cvInitUndistortMap, METH_VARARGS, (char *)"\n"
|
|
"cvInitUndistortMap(CvMat camera_matrix, CvMat distortion_coeffs, CvArr mapx, \n"
|
|
" CvArr mapy)\n"
|
|
""},
|
|
{ (char *)"cvInitUndistortRectifyMap", _wrap_cvInitUndistortRectifyMap, METH_VARARGS, (char *)"\n"
|
|
"cvInitUndistortRectifyMap(CvMat camera_matrix, CvMat dist_coeffs, CvMat R, CvMat new_camera_matrix, \n"
|
|
" CvArr mapx, CvArr mapy)\n"
|
|
""},
|
|
{ (char *)"cvUndistortPoints", _wrap_cvUndistortPoints, METH_VARARGS, (char *)"\n"
|
|
"cvUndistortPoints(CvMat src, CvMat dst, CvMat camera_matrix, CvMat dist_coeffs, \n"
|
|
" CvMat R = None, CvMat P = None)\n"
|
|
""},
|
|
{ (char *)"cvRodrigues2", _wrap_cvRodrigues2, METH_VARARGS, (char *)"cvRodrigues2(CvMat src, CvMat dst, CvMat jacobian = None) -> int"},
|
|
{ (char *)"cvFindHomography", _wrap_cvFindHomography, METH_VARARGS, (char *)"\n"
|
|
"cvFindHomography(CvMat src_points, CvMat dst_points, int method = 0, \n"
|
|
" double ransacReprojThreshold = 0, CvMat mask = None) -> int\n"
|
|
""},
|
|
{ (char *)"cvRQDecomp3x3", _wrap_cvRQDecomp3x3, METH_VARARGS, (char *)"\n"
|
|
"cvRQDecomp3x3(CvMat matrixM, CvMat matrixR, CvMat matrixQ, CvMat matrixQx = None, \n"
|
|
" CvMat matrixQy = None, CvMat matrixQz = None, \n"
|
|
" CvPoint3D64f eulerAngles = None)\n"
|
|
""},
|
|
{ (char *)"cvDecomposeProjectionMatrix", _wrap_cvDecomposeProjectionMatrix, METH_VARARGS, (char *)"\n"
|
|
"cvDecomposeProjectionMatrix(CvMat projMatr, CvMat calibMatr, CvMat rotMatr, CvMat posVect, \n"
|
|
" CvMat rotMatrX = None, CvMat rotMatrY = None, \n"
|
|
" CvMat rotMatrZ = None, CvPoint3D64f eulerAngles = None)\n"
|
|
""},
|
|
{ (char *)"cvCalcMatMulDeriv", _wrap_cvCalcMatMulDeriv, METH_VARARGS, (char *)"cvCalcMatMulDeriv(CvMat A, CvMat B, CvMat dABdA, CvMat dABdB)"},
|
|
{ (char *)"cvComposeRT", _wrap_cvComposeRT, METH_VARARGS, (char *)"\n"
|
|
"cvComposeRT(CvMat _rvec1, CvMat _tvec1, CvMat _rvec2, CvMat _tvec2, \n"
|
|
" CvMat _rvec3, CvMat _tvec3, CvMat dr3dr1 = None, \n"
|
|
" CvMat dr3dt1 = None, CvMat dr3dr2 = None, \n"
|
|
" CvMat dr3dt2 = None, CvMat dt3dr1 = None, \n"
|
|
" CvMat dt3dt1 = None, CvMat dt3dr2 = None, \n"
|
|
" CvMat dt3dt2 = None)\n"
|
|
""},
|
|
{ (char *)"cvProjectPoints2", _wrap_cvProjectPoints2, METH_VARARGS, (char *)"\n"
|
|
"cvProjectPoints2(CvMat object_points, CvMat rotation_vector, CvMat translation_vector, \n"
|
|
" CvMat camera_matrix, CvMat distortion_coeffs, \n"
|
|
" CvMat image_points, CvMat dpdrot = None, \n"
|
|
" CvMat dpdt = None, CvMat dpdf = None, \n"
|
|
" CvMat dpdc = None, CvMat dpddist = None, \n"
|
|
" double aspect_ratio = 0)\n"
|
|
""},
|
|
{ (char *)"cvFindExtrinsicCameraParams2", _wrap_cvFindExtrinsicCameraParams2, METH_VARARGS, (char *)"\n"
|
|
"cvFindExtrinsicCameraParams2(CvMat object_points, CvMat image_points, CvMat camera_matrix, \n"
|
|
" CvMat distortion_coeffs, CvMat rotation_vector, \n"
|
|
" CvMat translation_vector, int use_extrinsic_guess = 0)\n"
|
|
""},
|
|
{ (char *)"cvInitIntrinsicParams2D", _wrap_cvInitIntrinsicParams2D, METH_VARARGS, (char *)"\n"
|
|
"cvInitIntrinsicParams2D(CvMat object_points, CvMat image_points, CvMat npoints, \n"
|
|
" CvSize image_size, CvMat camera_matrix, \n"
|
|
" double aspect_ratio = 1.)\n"
|
|
""},
|
|
{ (char *)"cvFindChessboardCorners", _wrap_cvFindChessboardCorners, METH_VARARGS, (char *)"cvFindChessboardCorners(void image, CvSize pattern_size, int flags = 1+2) -> int"},
|
|
{ (char *)"cvDrawChessboardCorners", _wrap_cvDrawChessboardCorners, METH_VARARGS, (char *)"\n"
|
|
"cvDrawChessboardCorners(CvArr image, CvSize pattern_size, CvPoint2D32f corners, \n"
|
|
" int pattern_was_found)\n"
|
|
""},
|
|
{ (char *)"cvCalibrateCamera2", _wrap_cvCalibrateCamera2, METH_VARARGS, (char *)"\n"
|
|
"cvCalibrateCamera2(CvMat object_points, CvMat image_points, CvMat point_counts, \n"
|
|
" CvSize image_size, CvMat camera_matrix, \n"
|
|
" CvMat distortion_coeffs, CvMat rotation_vectors = None, \n"
|
|
" CvMat translation_vectors = None, \n"
|
|
" int flags = 0)\n"
|
|
""},
|
|
{ (char *)"cvCalibrationMatrixValues", _wrap_cvCalibrationMatrixValues, METH_VARARGS, (char *)"\n"
|
|
"cvCalibrationMatrixValues(CvMat camera_matrix, CvSize image_size, double aperture_width = 0, \n"
|
|
" double aperture_height = 0, double fovx = None, \n"
|
|
" double fovy = None, double focal_length = None, \n"
|
|
" CvPoint2D64f principal_point = None, \n"
|
|
" double pixel_aspect_ratio = None)\n"
|
|
""},
|
|
{ (char *)"cvStereoCalibrate", _wrap_cvStereoCalibrate, METH_VARARGS, (char *)"\n"
|
|
"cvStereoCalibrate(CvMat object_points, CvMat image_points1, CvMat image_points2, \n"
|
|
" CvMat npoints, CvMat camera_matrix1, \n"
|
|
" CvMat dist_coeffs1, CvMat camera_matrix2, \n"
|
|
" CvMat dist_coeffs2, CvSize image_size, CvMat R, \n"
|
|
" CvMat T, CvMat E = None, CvMat F = None, \n"
|
|
" CvTermCriteria term_crit = cvTermCriteria( 1 +2,30,1e-6), \n"
|
|
" int flags = 256)\n"
|
|
""},
|
|
{ (char *)"cvStereoRectify", _wrap_cvStereoRectify, METH_VARARGS, (char *)"\n"
|
|
"cvStereoRectify(CvMat camera_matrix1, CvMat camera_matrix2, CvMat dist_coeffs1, \n"
|
|
" CvMat dist_coeffs2, CvSize image_size, \n"
|
|
" CvMat R, CvMat T, CvMat R1, CvMat R2, \n"
|
|
" CvMat P1, CvMat P2, CvMat Q = None, int flags = 1024)\n"
|
|
""},
|
|
{ (char *)"cvStereoRectifyUncalibrated", _wrap_cvStereoRectifyUncalibrated, METH_VARARGS, (char *)"\n"
|
|
"cvStereoRectifyUncalibrated(CvMat points1, CvMat points2, CvMat F, CvSize img_size, \n"
|
|
" CvMat H1, CvMat H2, double threshold = 5) -> int\n"
|
|
""},
|
|
{ (char *)"cvCreatePOSITObject", _wrap_cvCreatePOSITObject, METH_VARARGS, (char *)"cvCreatePOSITObject(CvPoint3D32f points, int point_count) -> CvPOSITObject"},
|
|
{ (char *)"cvPOSIT", _wrap_cvPOSIT, METH_VARARGS, (char *)"\n"
|
|
"cvPOSIT(CvPOSITObject posit_object, CvPoint2D32f image_points, \n"
|
|
" double focal_length, CvTermCriteria criteria, \n"
|
|
" CvMatr32f rotation_matrix, CvVect32f translation_vector)\n"
|
|
""},
|
|
{ (char *)"cvReleasePOSITObject", _wrap_cvReleasePOSITObject, METH_VARARGS, (char *)"cvReleasePOSITObject(CvPOSITObject posit_object)"},
|
|
{ (char *)"cvRANSACUpdateNumIters", _wrap_cvRANSACUpdateNumIters, METH_VARARGS, (char *)"cvRANSACUpdateNumIters(double p, double err_prob, int model_points, int max_iters) -> int"},
|
|
{ (char *)"cvConvertPointsHomogeneous", _wrap_cvConvertPointsHomogeneous, METH_VARARGS, (char *)"cvConvertPointsHomogeneous(CvMat src, CvMat dst)"},
|
|
{ (char *)"cvFindFundamentalMat", _wrap_cvFindFundamentalMat, METH_VARARGS, (char *)"\n"
|
|
"cvFindFundamentalMat(CvMat points1, CvMat points2, CvMat fundamental_matrix, \n"
|
|
" int method = 8, double param1 = 3., double param2 = 0.99, \n"
|
|
" CvMat status = None) -> int\n"
|
|
""},
|
|
{ (char *)"cvComputeCorrespondEpilines", _wrap_cvComputeCorrespondEpilines, METH_VARARGS, (char *)"\n"
|
|
"cvComputeCorrespondEpilines(CvMat points, int which_image, CvMat fundamental_matrix, \n"
|
|
" CvMat correspondent_lines)\n"
|
|
""},
|
|
{ (char *)"cvTriangulatePoints", _wrap_cvTriangulatePoints, METH_VARARGS, (char *)"\n"
|
|
"cvTriangulatePoints(CvMat projMatr1, CvMat projMatr2, CvMat projPoints1, \n"
|
|
" CvMat projPoints2, CvMat points4D)\n"
|
|
""},
|
|
{ (char *)"cvCorrectMatches", _wrap_cvCorrectMatches, METH_VARARGS, (char *)"\n"
|
|
"cvCorrectMatches(CvMat F, CvMat points1, CvMat points2, CvMat new_points1, \n"
|
|
" CvMat new_points2)\n"
|
|
""},
|
|
{ (char *)"CvStereoBMState_preFilterType_set", _wrap_CvStereoBMState_preFilterType_set, METH_VARARGS, (char *)"CvStereoBMState_preFilterType_set(CvStereoBMState self, int preFilterType)"},
|
|
{ (char *)"CvStereoBMState_preFilterType_get", _wrap_CvStereoBMState_preFilterType_get, METH_VARARGS, (char *)"CvStereoBMState_preFilterType_get(CvStereoBMState self) -> int"},
|
|
{ (char *)"CvStereoBMState_preFilterSize_set", _wrap_CvStereoBMState_preFilterSize_set, METH_VARARGS, (char *)"CvStereoBMState_preFilterSize_set(CvStereoBMState self, int preFilterSize)"},
|
|
{ (char *)"CvStereoBMState_preFilterSize_get", _wrap_CvStereoBMState_preFilterSize_get, METH_VARARGS, (char *)"CvStereoBMState_preFilterSize_get(CvStereoBMState self) -> int"},
|
|
{ (char *)"CvStereoBMState_preFilterCap_set", _wrap_CvStereoBMState_preFilterCap_set, METH_VARARGS, (char *)"CvStereoBMState_preFilterCap_set(CvStereoBMState self, int preFilterCap)"},
|
|
{ (char *)"CvStereoBMState_preFilterCap_get", _wrap_CvStereoBMState_preFilterCap_get, METH_VARARGS, (char *)"CvStereoBMState_preFilterCap_get(CvStereoBMState self) -> int"},
|
|
{ (char *)"CvStereoBMState_SADWindowSize_set", _wrap_CvStereoBMState_SADWindowSize_set, METH_VARARGS, (char *)"CvStereoBMState_SADWindowSize_set(CvStereoBMState self, int SADWindowSize)"},
|
|
{ (char *)"CvStereoBMState_SADWindowSize_get", _wrap_CvStereoBMState_SADWindowSize_get, METH_VARARGS, (char *)"CvStereoBMState_SADWindowSize_get(CvStereoBMState self) -> int"},
|
|
{ (char *)"CvStereoBMState_minDisparity_set", _wrap_CvStereoBMState_minDisparity_set, METH_VARARGS, (char *)"CvStereoBMState_minDisparity_set(CvStereoBMState self, int minDisparity)"},
|
|
{ (char *)"CvStereoBMState_minDisparity_get", _wrap_CvStereoBMState_minDisparity_get, METH_VARARGS, (char *)"CvStereoBMState_minDisparity_get(CvStereoBMState self) -> int"},
|
|
{ (char *)"CvStereoBMState_numberOfDisparities_set", _wrap_CvStereoBMState_numberOfDisparities_set, METH_VARARGS, (char *)"CvStereoBMState_numberOfDisparities_set(CvStereoBMState self, int numberOfDisparities)"},
|
|
{ (char *)"CvStereoBMState_numberOfDisparities_get", _wrap_CvStereoBMState_numberOfDisparities_get, METH_VARARGS, (char *)"CvStereoBMState_numberOfDisparities_get(CvStereoBMState self) -> int"},
|
|
{ (char *)"CvStereoBMState_textureThreshold_set", _wrap_CvStereoBMState_textureThreshold_set, METH_VARARGS, (char *)"CvStereoBMState_textureThreshold_set(CvStereoBMState self, int textureThreshold)"},
|
|
{ (char *)"CvStereoBMState_textureThreshold_get", _wrap_CvStereoBMState_textureThreshold_get, METH_VARARGS, (char *)"CvStereoBMState_textureThreshold_get(CvStereoBMState self) -> int"},
|
|
{ (char *)"CvStereoBMState_uniquenessRatio_set", _wrap_CvStereoBMState_uniquenessRatio_set, METH_VARARGS, (char *)"CvStereoBMState_uniquenessRatio_set(CvStereoBMState self, int uniquenessRatio)"},
|
|
{ (char *)"CvStereoBMState_uniquenessRatio_get", _wrap_CvStereoBMState_uniquenessRatio_get, METH_VARARGS, (char *)"CvStereoBMState_uniquenessRatio_get(CvStereoBMState self) -> int"},
|
|
{ (char *)"CvStereoBMState_speckleWindowSize_set", _wrap_CvStereoBMState_speckleWindowSize_set, METH_VARARGS, (char *)"CvStereoBMState_speckleWindowSize_set(CvStereoBMState self, int speckleWindowSize)"},
|
|
{ (char *)"CvStereoBMState_speckleWindowSize_get", _wrap_CvStereoBMState_speckleWindowSize_get, METH_VARARGS, (char *)"CvStereoBMState_speckleWindowSize_get(CvStereoBMState self) -> int"},
|
|
{ (char *)"CvStereoBMState_speckleRange_set", _wrap_CvStereoBMState_speckleRange_set, METH_VARARGS, (char *)"CvStereoBMState_speckleRange_set(CvStereoBMState self, int speckleRange)"},
|
|
{ (char *)"CvStereoBMState_speckleRange_get", _wrap_CvStereoBMState_speckleRange_get, METH_VARARGS, (char *)"CvStereoBMState_speckleRange_get(CvStereoBMState self) -> int"},
|
|
{ (char *)"CvStereoBMState_trySmallerWindows_set", _wrap_CvStereoBMState_trySmallerWindows_set, METH_VARARGS, (char *)"CvStereoBMState_trySmallerWindows_set(CvStereoBMState self, int trySmallerWindows)"},
|
|
{ (char *)"CvStereoBMState_trySmallerWindows_get", _wrap_CvStereoBMState_trySmallerWindows_get, METH_VARARGS, (char *)"CvStereoBMState_trySmallerWindows_get(CvStereoBMState self) -> int"},
|
|
{ (char *)"CvStereoBMState_preFilteredImg0_set", _wrap_CvStereoBMState_preFilteredImg0_set, METH_VARARGS, (char *)"CvStereoBMState_preFilteredImg0_set(CvStereoBMState self, CvMat preFilteredImg0)"},
|
|
{ (char *)"CvStereoBMState_preFilteredImg0_get", _wrap_CvStereoBMState_preFilteredImg0_get, METH_VARARGS, (char *)"CvStereoBMState_preFilteredImg0_get(CvStereoBMState self) -> CvMat"},
|
|
{ (char *)"CvStereoBMState_preFilteredImg1_set", _wrap_CvStereoBMState_preFilteredImg1_set, METH_VARARGS, (char *)"CvStereoBMState_preFilteredImg1_set(CvStereoBMState self, CvMat preFilteredImg1)"},
|
|
{ (char *)"CvStereoBMState_preFilteredImg1_get", _wrap_CvStereoBMState_preFilteredImg1_get, METH_VARARGS, (char *)"CvStereoBMState_preFilteredImg1_get(CvStereoBMState self) -> CvMat"},
|
|
{ (char *)"CvStereoBMState_slidingSumBuf_set", _wrap_CvStereoBMState_slidingSumBuf_set, METH_VARARGS, (char *)"CvStereoBMState_slidingSumBuf_set(CvStereoBMState self, CvMat slidingSumBuf)"},
|
|
{ (char *)"CvStereoBMState_slidingSumBuf_get", _wrap_CvStereoBMState_slidingSumBuf_get, METH_VARARGS, (char *)"CvStereoBMState_slidingSumBuf_get(CvStereoBMState self) -> CvMat"},
|
|
{ (char *)"CvStereoBMState_dbmin_set", _wrap_CvStereoBMState_dbmin_set, METH_VARARGS, (char *)"CvStereoBMState_dbmin_set(CvStereoBMState self, CvMat dbmin)"},
|
|
{ (char *)"CvStereoBMState_dbmin_get", _wrap_CvStereoBMState_dbmin_get, METH_VARARGS, (char *)"CvStereoBMState_dbmin_get(CvStereoBMState self) -> CvMat"},
|
|
{ (char *)"CvStereoBMState_dbmax_set", _wrap_CvStereoBMState_dbmax_set, METH_VARARGS, (char *)"CvStereoBMState_dbmax_set(CvStereoBMState self, CvMat dbmax)"},
|
|
{ (char *)"CvStereoBMState_dbmax_get", _wrap_CvStereoBMState_dbmax_get, METH_VARARGS, (char *)"CvStereoBMState_dbmax_get(CvStereoBMState self) -> CvMat"},
|
|
{ (char *)"new_CvStereoBMState", _wrap_new_CvStereoBMState, METH_VARARGS, (char *)"new_CvStereoBMState() -> CvStereoBMState"},
|
|
{ (char *)"delete_CvStereoBMState", _wrap_delete_CvStereoBMState, METH_VARARGS, (char *)"delete_CvStereoBMState(CvStereoBMState self)"},
|
|
{ (char *)"CvStereoBMState_swigregister", CvStereoBMState_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvCreateStereoBMState", _wrap_cvCreateStereoBMState, METH_VARARGS, (char *)"cvCreateStereoBMState(int preset = 0, int numberOfDisparities = 0) -> CvStereoBMState"},
|
|
{ (char *)"cvReleaseStereoBMState", _wrap_cvReleaseStereoBMState, METH_VARARGS, (char *)"cvReleaseStereoBMState(CvStereoBMState state)"},
|
|
{ (char *)"cvFindStereoCorrespondenceBM", _wrap_cvFindStereoCorrespondenceBM, METH_VARARGS, (char *)"cvFindStereoCorrespondenceBM(CvArr left, CvArr right, CvArr disparity, CvStereoBMState state)"},
|
|
{ (char *)"CvStereoGCState_Ithreshold_set", _wrap_CvStereoGCState_Ithreshold_set, METH_VARARGS, (char *)"CvStereoGCState_Ithreshold_set(CvStereoGCState self, int Ithreshold)"},
|
|
{ (char *)"CvStereoGCState_Ithreshold_get", _wrap_CvStereoGCState_Ithreshold_get, METH_VARARGS, (char *)"CvStereoGCState_Ithreshold_get(CvStereoGCState self) -> int"},
|
|
{ (char *)"CvStereoGCState_interactionRadius_set", _wrap_CvStereoGCState_interactionRadius_set, METH_VARARGS, (char *)"CvStereoGCState_interactionRadius_set(CvStereoGCState self, int interactionRadius)"},
|
|
{ (char *)"CvStereoGCState_interactionRadius_get", _wrap_CvStereoGCState_interactionRadius_get, METH_VARARGS, (char *)"CvStereoGCState_interactionRadius_get(CvStereoGCState self) -> int"},
|
|
{ (char *)"CvStereoGCState_K_set", _wrap_CvStereoGCState_K_set, METH_VARARGS, (char *)"CvStereoGCState_K_set(CvStereoGCState self, float K)"},
|
|
{ (char *)"CvStereoGCState_K_get", _wrap_CvStereoGCState_K_get, METH_VARARGS, (char *)"CvStereoGCState_K_get(CvStereoGCState self) -> float"},
|
|
{ (char *)"CvStereoGCState__lambda_set", _wrap_CvStereoGCState__lambda_set, METH_VARARGS, (char *)"CvStereoGCState__lambda_set(CvStereoGCState self, float _lambda)"},
|
|
{ (char *)"CvStereoGCState__lambda_get", _wrap_CvStereoGCState__lambda_get, METH_VARARGS, (char *)"CvStereoGCState__lambda_get(CvStereoGCState self) -> float"},
|
|
{ (char *)"CvStereoGCState_lambda1_set", _wrap_CvStereoGCState_lambda1_set, METH_VARARGS, (char *)"CvStereoGCState_lambda1_set(CvStereoGCState self, float lambda1)"},
|
|
{ (char *)"CvStereoGCState_lambda1_get", _wrap_CvStereoGCState_lambda1_get, METH_VARARGS, (char *)"CvStereoGCState_lambda1_get(CvStereoGCState self) -> float"},
|
|
{ (char *)"CvStereoGCState_lambda2_set", _wrap_CvStereoGCState_lambda2_set, METH_VARARGS, (char *)"CvStereoGCState_lambda2_set(CvStereoGCState self, float lambda2)"},
|
|
{ (char *)"CvStereoGCState_lambda2_get", _wrap_CvStereoGCState_lambda2_get, METH_VARARGS, (char *)"CvStereoGCState_lambda2_get(CvStereoGCState self) -> float"},
|
|
{ (char *)"CvStereoGCState_occlusionCost_set", _wrap_CvStereoGCState_occlusionCost_set, METH_VARARGS, (char *)"CvStereoGCState_occlusionCost_set(CvStereoGCState self, int occlusionCost)"},
|
|
{ (char *)"CvStereoGCState_occlusionCost_get", _wrap_CvStereoGCState_occlusionCost_get, METH_VARARGS, (char *)"CvStereoGCState_occlusionCost_get(CvStereoGCState self) -> int"},
|
|
{ (char *)"CvStereoGCState_minDisparity_set", _wrap_CvStereoGCState_minDisparity_set, METH_VARARGS, (char *)"CvStereoGCState_minDisparity_set(CvStereoGCState self, int minDisparity)"},
|
|
{ (char *)"CvStereoGCState_minDisparity_get", _wrap_CvStereoGCState_minDisparity_get, METH_VARARGS, (char *)"CvStereoGCState_minDisparity_get(CvStereoGCState self) -> int"},
|
|
{ (char *)"CvStereoGCState_numberOfDisparities_set", _wrap_CvStereoGCState_numberOfDisparities_set, METH_VARARGS, (char *)"CvStereoGCState_numberOfDisparities_set(CvStereoGCState self, int numberOfDisparities)"},
|
|
{ (char *)"CvStereoGCState_numberOfDisparities_get", _wrap_CvStereoGCState_numberOfDisparities_get, METH_VARARGS, (char *)"CvStereoGCState_numberOfDisparities_get(CvStereoGCState self) -> int"},
|
|
{ (char *)"CvStereoGCState_maxIters_set", _wrap_CvStereoGCState_maxIters_set, METH_VARARGS, (char *)"CvStereoGCState_maxIters_set(CvStereoGCState self, int maxIters)"},
|
|
{ (char *)"CvStereoGCState_maxIters_get", _wrap_CvStereoGCState_maxIters_get, METH_VARARGS, (char *)"CvStereoGCState_maxIters_get(CvStereoGCState self) -> int"},
|
|
{ (char *)"CvStereoGCState_left_set", _wrap_CvStereoGCState_left_set, METH_VARARGS, (char *)"CvStereoGCState_left_set(CvStereoGCState self, CvMat left)"},
|
|
{ (char *)"CvStereoGCState_left_get", _wrap_CvStereoGCState_left_get, METH_VARARGS, (char *)"CvStereoGCState_left_get(CvStereoGCState self) -> CvMat"},
|
|
{ (char *)"CvStereoGCState_right_set", _wrap_CvStereoGCState_right_set, METH_VARARGS, (char *)"CvStereoGCState_right_set(CvStereoGCState self, CvMat right)"},
|
|
{ (char *)"CvStereoGCState_right_get", _wrap_CvStereoGCState_right_get, METH_VARARGS, (char *)"CvStereoGCState_right_get(CvStereoGCState self) -> CvMat"},
|
|
{ (char *)"CvStereoGCState_dispLeft_set", _wrap_CvStereoGCState_dispLeft_set, METH_VARARGS, (char *)"CvStereoGCState_dispLeft_set(CvStereoGCState self, CvMat dispLeft)"},
|
|
{ (char *)"CvStereoGCState_dispLeft_get", _wrap_CvStereoGCState_dispLeft_get, METH_VARARGS, (char *)"CvStereoGCState_dispLeft_get(CvStereoGCState self) -> CvMat"},
|
|
{ (char *)"CvStereoGCState_dispRight_set", _wrap_CvStereoGCState_dispRight_set, METH_VARARGS, (char *)"CvStereoGCState_dispRight_set(CvStereoGCState self, CvMat dispRight)"},
|
|
{ (char *)"CvStereoGCState_dispRight_get", _wrap_CvStereoGCState_dispRight_get, METH_VARARGS, (char *)"CvStereoGCState_dispRight_get(CvStereoGCState self) -> CvMat"},
|
|
{ (char *)"CvStereoGCState_ptrLeft_set", _wrap_CvStereoGCState_ptrLeft_set, METH_VARARGS, (char *)"CvStereoGCState_ptrLeft_set(CvStereoGCState self, CvMat ptrLeft)"},
|
|
{ (char *)"CvStereoGCState_ptrLeft_get", _wrap_CvStereoGCState_ptrLeft_get, METH_VARARGS, (char *)"CvStereoGCState_ptrLeft_get(CvStereoGCState self) -> CvMat"},
|
|
{ (char *)"CvStereoGCState_ptrRight_set", _wrap_CvStereoGCState_ptrRight_set, METH_VARARGS, (char *)"CvStereoGCState_ptrRight_set(CvStereoGCState self, CvMat ptrRight)"},
|
|
{ (char *)"CvStereoGCState_ptrRight_get", _wrap_CvStereoGCState_ptrRight_get, METH_VARARGS, (char *)"CvStereoGCState_ptrRight_get(CvStereoGCState self) -> CvMat"},
|
|
{ (char *)"CvStereoGCState_vtxBuf_set", _wrap_CvStereoGCState_vtxBuf_set, METH_VARARGS, (char *)"CvStereoGCState_vtxBuf_set(CvStereoGCState self, CvMat vtxBuf)"},
|
|
{ (char *)"CvStereoGCState_vtxBuf_get", _wrap_CvStereoGCState_vtxBuf_get, METH_VARARGS, (char *)"CvStereoGCState_vtxBuf_get(CvStereoGCState self) -> CvMat"},
|
|
{ (char *)"CvStereoGCState_edgeBuf_set", _wrap_CvStereoGCState_edgeBuf_set, METH_VARARGS, (char *)"CvStereoGCState_edgeBuf_set(CvStereoGCState self, CvMat edgeBuf)"},
|
|
{ (char *)"CvStereoGCState_edgeBuf_get", _wrap_CvStereoGCState_edgeBuf_get, METH_VARARGS, (char *)"CvStereoGCState_edgeBuf_get(CvStereoGCState self) -> CvMat"},
|
|
{ (char *)"new_CvStereoGCState", _wrap_new_CvStereoGCState, METH_VARARGS, (char *)"new_CvStereoGCState() -> CvStereoGCState"},
|
|
{ (char *)"delete_CvStereoGCState", _wrap_delete_CvStereoGCState, METH_VARARGS, (char *)"delete_CvStereoGCState(CvStereoGCState self)"},
|
|
{ (char *)"CvStereoGCState_swigregister", CvStereoGCState_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"cvCreateStereoGCState", _wrap_cvCreateStereoGCState, METH_VARARGS, (char *)"cvCreateStereoGCState(int numberOfDisparities, int maxIters) -> CvStereoGCState"},
|
|
{ (char *)"cvReleaseStereoGCState", _wrap_cvReleaseStereoGCState, METH_VARARGS, (char *)"cvReleaseStereoGCState(CvStereoGCState state)"},
|
|
{ (char *)"cvFindStereoCorrespondenceGC", _wrap_cvFindStereoCorrespondenceGC, METH_VARARGS, (char *)"\n"
|
|
"cvFindStereoCorrespondenceGC(CvArr left, CvArr right, CvArr disparityLeft, CvArr disparityRight, \n"
|
|
" CvStereoGCState state, int useDisparityGuess = 0)\n"
|
|
""},
|
|
{ (char *)"cvReprojectImageTo3D", _wrap_cvReprojectImageTo3D, METH_VARARGS, (char *)"cvReprojectImageTo3D(CvArr disparityImage, CvArr _3dImage, CvMat Q, int handleMissingValues = 0)"},
|
|
{ (char *)"delete_CvLSH", _wrap_delete_CvLSH, METH_VARARGS, (char *)"delete_CvLSH(CvLSH self)"},
|
|
{ (char *)"CvLSH_swigregister", CvLSH_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvTuple_CvPoint_2_val_set", _wrap_CvTuple_CvPoint_2_val_set, METH_VARARGS, (char *)"CvTuple_CvPoint_2_val_set(CvTuple_CvPoint_2 self, CvPoint val)"},
|
|
{ (char *)"CvTuple_CvPoint_2_val_get", _wrap_CvTuple_CvPoint_2_val_get, METH_VARARGS, (char *)"CvTuple_CvPoint_2_val_get(CvTuple_CvPoint_2 self) -> CvPoint"},
|
|
{ (char *)"CvTuple_CvPoint_2___setitem__", _wrap_CvTuple_CvPoint_2___setitem__, METH_VARARGS, (char *)"CvTuple_CvPoint_2___setitem__(CvTuple_CvPoint_2 self, int i, CvPoint obj)"},
|
|
{ (char *)"CvTuple_CvPoint_2___getitem__", _wrap_CvTuple_CvPoint_2___getitem__, METH_VARARGS, (char *)"CvTuple_CvPoint_2___getitem__(CvTuple_CvPoint_2 self, int i) -> CvPoint"},
|
|
{ (char *)"new_CvTuple_CvPoint_2", _wrap_new_CvTuple_CvPoint_2, METH_VARARGS, (char *)"new_CvTuple_CvPoint_2() -> CvTuple_CvPoint_2"},
|
|
{ (char *)"delete_CvTuple_CvPoint_2", _wrap_delete_CvTuple_CvPoint_2, METH_VARARGS, (char *)"delete_CvTuple_CvPoint_2(CvTuple_CvPoint_2 self)"},
|
|
{ (char *)"CvTuple_CvPoint_2_swigregister", CvTuple_CvPoint_2_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvTuple_float_2_val_set", _wrap_CvTuple_float_2_val_set, METH_VARARGS, (char *)"CvTuple_float_2_val_set(CvTuple_float_2 self, float val)"},
|
|
{ (char *)"CvTuple_float_2_val_get", _wrap_CvTuple_float_2_val_get, METH_VARARGS, (char *)"CvTuple_float_2_val_get(CvTuple_float_2 self) -> float"},
|
|
{ (char *)"CvTuple_float_2___setitem__", _wrap_CvTuple_float_2___setitem__, METH_VARARGS, (char *)"CvTuple_float_2___setitem__(CvTuple_float_2 self, int i, float obj)"},
|
|
{ (char *)"CvTuple_float_2___getitem__", _wrap_CvTuple_float_2___getitem__, METH_VARARGS, (char *)"CvTuple_float_2___getitem__(CvTuple_float_2 self, int i) -> float"},
|
|
{ (char *)"new_CvTuple_float_2", _wrap_new_CvTuple_float_2, METH_VARARGS, (char *)"new_CvTuple_float_2() -> CvTuple_float_2"},
|
|
{ (char *)"delete_CvTuple_float_2", _wrap_delete_CvTuple_float_2, METH_VARARGS, (char *)"delete_CvTuple_float_2(CvTuple_float_2 self)"},
|
|
{ (char *)"CvTuple_float_2_swigregister", CvTuple_float_2_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvTuple_float_3_val_set", _wrap_CvTuple_float_3_val_set, METH_VARARGS, (char *)"CvTuple_float_3_val_set(CvTuple_float_3 self, float val)"},
|
|
{ (char *)"CvTuple_float_3_val_get", _wrap_CvTuple_float_3_val_get, METH_VARARGS, (char *)"CvTuple_float_3_val_get(CvTuple_float_3 self) -> float"},
|
|
{ (char *)"CvTuple_float_3___setitem__", _wrap_CvTuple_float_3___setitem__, METH_VARARGS, (char *)"CvTuple_float_3___setitem__(CvTuple_float_3 self, int i, float obj)"},
|
|
{ (char *)"CvTuple_float_3___getitem__", _wrap_CvTuple_float_3___getitem__, METH_VARARGS, (char *)"CvTuple_float_3___getitem__(CvTuple_float_3 self, int i) -> float"},
|
|
{ (char *)"new_CvTuple_float_3", _wrap_new_CvTuple_float_3, METH_VARARGS, (char *)"new_CvTuple_float_3() -> CvTuple_float_3"},
|
|
{ (char *)"delete_CvTuple_float_3", _wrap_delete_CvTuple_float_3, METH_VARARGS, (char *)"delete_CvTuple_float_3(CvTuple_float_3 self)"},
|
|
{ (char *)"CvTuple_float_3_swigregister", CvTuple_float_3_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSeq_CvPoint_cast", _wrap_CvSeq_CvPoint_cast, METH_VARARGS, (char *)"CvSeq_CvPoint_cast(CvSeq seq) -> CvSeq_CvPoint"},
|
|
{ (char *)"CvSeq_CvPoint___getitem__", _wrap_CvSeq_CvPoint___getitem__, METH_VARARGS, (char *)"CvSeq_CvPoint___getitem__(CvSeq_CvPoint self, int i) -> CvPoint"},
|
|
{ (char *)"CvSeq_CvPoint___setitem__", _wrap_CvSeq_CvPoint___setitem__, METH_VARARGS, (char *)"CvSeq_CvPoint___setitem__(CvSeq_CvPoint self, int i, CvPoint obj)"},
|
|
{ (char *)"CvSeq_CvPoint_append", _wrap_CvSeq_CvPoint_append, METH_VARARGS, (char *)"CvSeq_CvPoint_append(CvSeq_CvPoint self, CvPoint obj)"},
|
|
{ (char *)"CvSeq_CvPoint_pop", _wrap_CvSeq_CvPoint_pop, METH_VARARGS, (char *)"CvSeq_CvPoint_pop(CvSeq_CvPoint self) -> CvPoint"},
|
|
{ (char *)"new_CvSeq_CvPoint", _wrap_new_CvSeq_CvPoint, METH_VARARGS, (char *)"new_CvSeq_CvPoint() -> CvSeq_CvPoint"},
|
|
{ (char *)"delete_CvSeq_CvPoint", _wrap_delete_CvSeq_CvPoint, METH_VARARGS, (char *)"delete_CvSeq_CvPoint(CvSeq_CvPoint self)"},
|
|
{ (char *)"CvSeq_CvPoint_swigregister", CvSeq_CvPoint_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSeq_CvPoint2D32f_cast", _wrap_CvSeq_CvPoint2D32f_cast, METH_VARARGS, (char *)"CvSeq_CvPoint2D32f_cast(CvSeq seq) -> CvSeq_CvPoint2D32f"},
|
|
{ (char *)"CvSeq_CvPoint2D32f___getitem__", _wrap_CvSeq_CvPoint2D32f___getitem__, METH_VARARGS, (char *)"CvSeq_CvPoint2D32f___getitem__(CvSeq_CvPoint2D32f self, int i) -> CvPoint2D32f"},
|
|
{ (char *)"CvSeq_CvPoint2D32f___setitem__", _wrap_CvSeq_CvPoint2D32f___setitem__, METH_VARARGS, (char *)"CvSeq_CvPoint2D32f___setitem__(CvSeq_CvPoint2D32f self, int i, CvPoint2D32f obj)"},
|
|
{ (char *)"CvSeq_CvPoint2D32f_append", _wrap_CvSeq_CvPoint2D32f_append, METH_VARARGS, (char *)"CvSeq_CvPoint2D32f_append(CvSeq_CvPoint2D32f self, CvPoint2D32f obj)"},
|
|
{ (char *)"CvSeq_CvPoint2D32f_pop", _wrap_CvSeq_CvPoint2D32f_pop, METH_VARARGS, (char *)"CvSeq_CvPoint2D32f_pop(CvSeq_CvPoint2D32f self) -> CvPoint2D32f"},
|
|
{ (char *)"new_CvSeq_CvPoint2D32f", _wrap_new_CvSeq_CvPoint2D32f, METH_VARARGS, (char *)"new_CvSeq_CvPoint2D32f() -> CvSeq_CvPoint2D32f"},
|
|
{ (char *)"delete_CvSeq_CvPoint2D32f", _wrap_delete_CvSeq_CvPoint2D32f, METH_VARARGS, (char *)"delete_CvSeq_CvPoint2D32f(CvSeq_CvPoint2D32f self)"},
|
|
{ (char *)"CvSeq_CvPoint2D32f_swigregister", CvSeq_CvPoint2D32f_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSeq_CvRect_cast", _wrap_CvSeq_CvRect_cast, METH_VARARGS, (char *)"CvSeq_CvRect_cast(CvSeq seq) -> CvSeq_CvRect"},
|
|
{ (char *)"CvSeq_CvRect___getitem__", _wrap_CvSeq_CvRect___getitem__, METH_VARARGS, (char *)"CvSeq_CvRect___getitem__(CvSeq_CvRect self, int i) -> CvRect"},
|
|
{ (char *)"CvSeq_CvRect___setitem__", _wrap_CvSeq_CvRect___setitem__, METH_VARARGS, (char *)"CvSeq_CvRect___setitem__(CvSeq_CvRect self, int i, CvRect obj)"},
|
|
{ (char *)"CvSeq_CvRect_append", _wrap_CvSeq_CvRect_append, METH_VARARGS, (char *)"CvSeq_CvRect_append(CvSeq_CvRect self, CvRect obj)"},
|
|
{ (char *)"CvSeq_CvRect_pop", _wrap_CvSeq_CvRect_pop, METH_VARARGS, (char *)"CvSeq_CvRect_pop(CvSeq_CvRect self) -> CvRect"},
|
|
{ (char *)"new_CvSeq_CvRect", _wrap_new_CvSeq_CvRect, METH_VARARGS, (char *)"new_CvSeq_CvRect() -> CvSeq_CvRect"},
|
|
{ (char *)"delete_CvSeq_CvRect", _wrap_delete_CvSeq_CvRect, METH_VARARGS, (char *)"delete_CvSeq_CvRect(CvSeq_CvRect self)"},
|
|
{ (char *)"CvSeq_CvRect_swigregister", CvSeq_CvRect_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSeq_CvSeq_cast", _wrap_CvSeq_CvSeq_cast, METH_VARARGS, (char *)"CvSeq_CvSeq_cast(CvSeq seq) -> CvSeq_CvSeq"},
|
|
{ (char *)"CvSeq_CvSeq___getitem__", _wrap_CvSeq_CvSeq___getitem__, METH_VARARGS, (char *)"CvSeq_CvSeq___getitem__(CvSeq_CvSeq self, int i) -> CvSeq"},
|
|
{ (char *)"CvSeq_CvSeq___setitem__", _wrap_CvSeq_CvSeq___setitem__, METH_VARARGS, (char *)"CvSeq_CvSeq___setitem__(CvSeq_CvSeq self, int i, CvSeq obj)"},
|
|
{ (char *)"CvSeq_CvSeq_append", _wrap_CvSeq_CvSeq_append, METH_VARARGS, (char *)"CvSeq_CvSeq_append(CvSeq_CvSeq self, CvSeq obj)"},
|
|
{ (char *)"CvSeq_CvSeq_pop", _wrap_CvSeq_CvSeq_pop, METH_VARARGS, (char *)"CvSeq_CvSeq_pop(CvSeq_CvSeq self) -> CvSeq"},
|
|
{ (char *)"new_CvSeq_CvSeq", _wrap_new_CvSeq_CvSeq, METH_VARARGS, (char *)"new_CvSeq_CvSeq() -> CvSeq_CvSeq"},
|
|
{ (char *)"delete_CvSeq_CvSeq", _wrap_delete_CvSeq_CvSeq, METH_VARARGS, (char *)"delete_CvSeq_CvSeq(CvSeq_CvSeq self)"},
|
|
{ (char *)"CvSeq_CvSeq_swigregister", CvSeq_CvSeq_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSeq_CvQuadEdge2D_cast", _wrap_CvSeq_CvQuadEdge2D_cast, METH_VARARGS, (char *)"CvSeq_CvQuadEdge2D_cast(CvSeq seq) -> CvSeq_CvQuadEdge2D"},
|
|
{ (char *)"CvSeq_CvQuadEdge2D___getitem__", _wrap_CvSeq_CvQuadEdge2D___getitem__, METH_VARARGS, (char *)"CvSeq_CvQuadEdge2D___getitem__(CvSeq_CvQuadEdge2D self, int i) -> CvQuadEdge2D"},
|
|
{ (char *)"CvSeq_CvQuadEdge2D___setitem__", _wrap_CvSeq_CvQuadEdge2D___setitem__, METH_VARARGS, (char *)"CvSeq_CvQuadEdge2D___setitem__(CvSeq_CvQuadEdge2D self, int i, CvQuadEdge2D obj)"},
|
|
{ (char *)"CvSeq_CvQuadEdge2D_append", _wrap_CvSeq_CvQuadEdge2D_append, METH_VARARGS, (char *)"CvSeq_CvQuadEdge2D_append(CvSeq_CvQuadEdge2D self, CvQuadEdge2D obj)"},
|
|
{ (char *)"CvSeq_CvQuadEdge2D_pop", _wrap_CvSeq_CvQuadEdge2D_pop, METH_VARARGS, (char *)"CvSeq_CvQuadEdge2D_pop(CvSeq_CvQuadEdge2D self) -> CvQuadEdge2D"},
|
|
{ (char *)"new_CvSeq_CvQuadEdge2D", _wrap_new_CvSeq_CvQuadEdge2D, METH_VARARGS, (char *)"new_CvSeq_CvQuadEdge2D() -> CvSeq_CvQuadEdge2D"},
|
|
{ (char *)"delete_CvSeq_CvQuadEdge2D", _wrap_delete_CvSeq_CvQuadEdge2D, METH_VARARGS, (char *)"delete_CvSeq_CvQuadEdge2D(CvSeq_CvQuadEdge2D self)"},
|
|
{ (char *)"CvSeq_CvQuadEdge2D_swigregister", CvSeq_CvQuadEdge2D_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSeq_CvConnectedComp_cast", _wrap_CvSeq_CvConnectedComp_cast, METH_VARARGS, (char *)"CvSeq_CvConnectedComp_cast(CvSeq seq) -> CvSeq_CvConnectedComp"},
|
|
{ (char *)"CvSeq_CvConnectedComp___getitem__", _wrap_CvSeq_CvConnectedComp___getitem__, METH_VARARGS, (char *)"CvSeq_CvConnectedComp___getitem__(CvSeq_CvConnectedComp self, int i) -> CvConnectedComp"},
|
|
{ (char *)"CvSeq_CvConnectedComp___setitem__", _wrap_CvSeq_CvConnectedComp___setitem__, METH_VARARGS, (char *)"CvSeq_CvConnectedComp___setitem__(CvSeq_CvConnectedComp self, int i, CvConnectedComp obj)"},
|
|
{ (char *)"CvSeq_CvConnectedComp_append", _wrap_CvSeq_CvConnectedComp_append, METH_VARARGS, (char *)"CvSeq_CvConnectedComp_append(CvSeq_CvConnectedComp self, CvConnectedComp obj)"},
|
|
{ (char *)"CvSeq_CvConnectedComp_pop", _wrap_CvSeq_CvConnectedComp_pop, METH_VARARGS, (char *)"CvSeq_CvConnectedComp_pop(CvSeq_CvConnectedComp self) -> CvConnectedComp"},
|
|
{ (char *)"new_CvSeq_CvConnectedComp", _wrap_new_CvSeq_CvConnectedComp, METH_VARARGS, (char *)"new_CvSeq_CvConnectedComp() -> CvSeq_CvConnectedComp"},
|
|
{ (char *)"delete_CvSeq_CvConnectedComp", _wrap_delete_CvSeq_CvConnectedComp, METH_VARARGS, (char *)"delete_CvSeq_CvConnectedComp(CvSeq_CvConnectedComp self)"},
|
|
{ (char *)"CvSeq_CvConnectedComp_swigregister", CvSeq_CvConnectedComp_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSeq_CvPoint_2_cast", _wrap_CvSeq_CvPoint_2_cast, METH_VARARGS, (char *)"CvSeq_CvPoint_2_cast(CvSeq seq) -> CvSeq_CvPoint_2"},
|
|
{ (char *)"CvSeq_CvPoint_2___getitem__", _wrap_CvSeq_CvPoint_2___getitem__, METH_VARARGS, (char *)"CvSeq_CvPoint_2___getitem__(CvSeq_CvPoint_2 self, int i) -> CvTuple_CvPoint_2"},
|
|
{ (char *)"CvSeq_CvPoint_2___setitem__", _wrap_CvSeq_CvPoint_2___setitem__, METH_VARARGS, (char *)"CvSeq_CvPoint_2___setitem__(CvSeq_CvPoint_2 self, int i, CvTuple_CvPoint_2 obj)"},
|
|
{ (char *)"CvSeq_CvPoint_2_append", _wrap_CvSeq_CvPoint_2_append, METH_VARARGS, (char *)"CvSeq_CvPoint_2_append(CvSeq_CvPoint_2 self, CvTuple_CvPoint_2 obj)"},
|
|
{ (char *)"CvSeq_CvPoint_2_pop", _wrap_CvSeq_CvPoint_2_pop, METH_VARARGS, (char *)"CvSeq_CvPoint_2_pop(CvSeq_CvPoint_2 self) -> CvTuple_CvPoint_2"},
|
|
{ (char *)"new_CvSeq_CvPoint_2", _wrap_new_CvSeq_CvPoint_2, METH_VARARGS, (char *)"new_CvSeq_CvPoint_2() -> CvSeq_CvPoint_2"},
|
|
{ (char *)"delete_CvSeq_CvPoint_2", _wrap_delete_CvSeq_CvPoint_2, METH_VARARGS, (char *)"delete_CvSeq_CvPoint_2(CvSeq_CvPoint_2 self)"},
|
|
{ (char *)"CvSeq_CvPoint_2_swigregister", CvSeq_CvPoint_2_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSeq_float_2_cast", _wrap_CvSeq_float_2_cast, METH_VARARGS, (char *)"CvSeq_float_2_cast(CvSeq seq) -> CvSeq_float_2"},
|
|
{ (char *)"CvSeq_float_2___getitem__", _wrap_CvSeq_float_2___getitem__, METH_VARARGS, (char *)"CvSeq_float_2___getitem__(CvSeq_float_2 self, int i) -> CvTuple_float_2"},
|
|
{ (char *)"CvSeq_float_2___setitem__", _wrap_CvSeq_float_2___setitem__, METH_VARARGS, (char *)"CvSeq_float_2___setitem__(CvSeq_float_2 self, int i, CvTuple_float_2 obj)"},
|
|
{ (char *)"CvSeq_float_2_append", _wrap_CvSeq_float_2_append, METH_VARARGS, (char *)"CvSeq_float_2_append(CvSeq_float_2 self, CvTuple_float_2 obj)"},
|
|
{ (char *)"CvSeq_float_2_pop", _wrap_CvSeq_float_2_pop, METH_VARARGS, (char *)"CvSeq_float_2_pop(CvSeq_float_2 self) -> CvTuple_float_2"},
|
|
{ (char *)"new_CvSeq_float_2", _wrap_new_CvSeq_float_2, METH_VARARGS, (char *)"new_CvSeq_float_2() -> CvSeq_float_2"},
|
|
{ (char *)"delete_CvSeq_float_2", _wrap_delete_CvSeq_float_2, METH_VARARGS, (char *)"delete_CvSeq_float_2(CvSeq_float_2 self)"},
|
|
{ (char *)"CvSeq_float_2_swigregister", CvSeq_float_2_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CvSeq_float_3_cast", _wrap_CvSeq_float_3_cast, METH_VARARGS, (char *)"CvSeq_float_3_cast(CvSeq seq) -> CvSeq_float_3"},
|
|
{ (char *)"CvSeq_float_3___getitem__", _wrap_CvSeq_float_3___getitem__, METH_VARARGS, (char *)"CvSeq_float_3___getitem__(CvSeq_float_3 self, int i) -> CvTuple_float_3"},
|
|
{ (char *)"CvSeq_float_3___setitem__", _wrap_CvSeq_float_3___setitem__, METH_VARARGS, (char *)"CvSeq_float_3___setitem__(CvSeq_float_3 self, int i, CvTuple_float_3 obj)"},
|
|
{ (char *)"CvSeq_float_3_append", _wrap_CvSeq_float_3_append, METH_VARARGS, (char *)"CvSeq_float_3_append(CvSeq_float_3 self, CvTuple_float_3 obj)"},
|
|
{ (char *)"CvSeq_float_3_pop", _wrap_CvSeq_float_3_pop, METH_VARARGS, (char *)"CvSeq_float_3_pop(CvSeq_float_3 self) -> CvTuple_float_3"},
|
|
{ (char *)"new_CvSeq_float_3", _wrap_new_CvSeq_float_3, METH_VARARGS, (char *)"new_CvSeq_float_3() -> CvSeq_float_3"},
|
|
{ (char *)"delete_CvSeq_float_3", _wrap_delete_CvSeq_float_3, METH_VARARGS, (char *)"delete_CvSeq_float_3(CvSeq_float_3 self)"},
|
|
{ (char *)"CvSeq_float_3_swigregister", CvSeq_float_3_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"SendErrorToPython", _wrap_SendErrorToPython, METH_VARARGS, (char *)"\n"
|
|
"SendErrorToPython(int status, char func_name, char err_msg, char file_name, \n"
|
|
" int line, void arg5) -> int\n"
|
|
""},
|
|
{ (char *)"function_ptr_generator", _wrap_function_ptr_generator, METH_VARARGS, (char *)"function_ptr_generator() -> CvErrorCallback"},
|
|
{ (char *)"void_ptr_generator", _wrap_void_ptr_generator, METH_VARARGS, (char *)"void_ptr_generator() -> void"},
|
|
{ (char *)"void_ptrptr_generator", _wrap_void_ptrptr_generator, METH_VARARGS, (char *)"void_ptrptr_generator() -> void"},
|
|
{ NULL, NULL, 0, NULL }
|
|
};
|
|
|
|
|
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
|
|
|
|
static void *_p_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_tTo_p_p_CvSeq(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
|
return (void *)((CvSeq **) ((CvTypedSeq< CvTuple< CvPoint,2 > > **) x));
|
|
}
|
|
static void *_p_p_CvTypedSeqT_CvTupleT_float_2_t_tTo_p_p_CvSeq(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
|
return (void *)((CvSeq **) ((CvTypedSeq< CvTuple< float,2 > > **) x));
|
|
}
|
|
static void *_p_p_CvTypedSeqT_CvConnectedComp_tTo_p_p_CvSeq(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
|
return (void *)((CvSeq **) ((CvTypedSeq< CvConnectedComp > **) x));
|
|
}
|
|
static void *_p_p_CvTypedSeqT_CvRect_tTo_p_p_CvSeq(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
|
return (void *)((CvSeq **) ((CvTypedSeq< CvRect > **) x));
|
|
}
|
|
static void *_p_p_CvTypedSeqT_CvPoint_tTo_p_p_CvSeq(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
|
return (void *)((CvSeq **) ((CvTypedSeq< CvPoint > **) x));
|
|
}
|
|
static void *_p_p_CvTypedSeqT_CvTupleT_float_3_t_tTo_p_p_CvSeq(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
|
return (void *)((CvSeq **) ((CvTypedSeq< CvTuple< float,3 > > **) x));
|
|
}
|
|
static void *_p_p_CvTypedSeqT_CvSeq_p_tTo_p_p_CvSeq(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
|
return (void *)((CvSeq **) ((CvTypedSeq< CvSeq * > **) x));
|
|
}
|
|
static void *_p_p_CvTypedSeqT_CvQuadEdge2D_tTo_p_p_CvSeq(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
|
return (void *)((CvSeq **) ((CvTypedSeq< CvQuadEdge2D > **) x));
|
|
}
|
|
static void *_p_p_CvTypedSeqT_CvPoint2D32f_tTo_p_p_CvSeq(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
|
return (void *)((CvSeq **) ((CvTypedSeq< CvPoint2D32f > **) x));
|
|
}
|
|
static void *_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_tTo_p_CvSeq(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
|
return (void *)((CvSeq *) ((CvTypedSeq< CvTuple< CvPoint,2 > > *) x));
|
|
}
|
|
static void *_p_CvTypedSeqT_CvTupleT_float_2_t_tTo_p_CvSeq(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
|
return (void *)((CvSeq *) ((CvTypedSeq< CvTuple< float,2 > > *) x));
|
|
}
|
|
static void *_p_CvTypedSeqT_CvConnectedComp_tTo_p_CvSeq(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
|
return (void *)((CvSeq *) ((CvTypedSeq< CvConnectedComp > *) x));
|
|
}
|
|
static void *_p_CvTypedSeqT_CvRect_tTo_p_CvSeq(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
|
return (void *)((CvSeq *) ((CvTypedSeq< CvRect > *) x));
|
|
}
|
|
static void *_p_CvTypedSeqT_CvPoint_tTo_p_CvSeq(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
|
return (void *)((CvSeq *) ((CvTypedSeq< CvPoint > *) x));
|
|
}
|
|
static void *_p_CvTypedSeqT_CvTupleT_float_3_t_tTo_p_CvSeq(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
|
return (void *)((CvSeq *) ((CvTypedSeq< CvTuple< float,3 > > *) x));
|
|
}
|
|
static void *_p_CvTypedSeqT_CvSeq_p_tTo_p_CvSeq(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
|
return (void *)((CvSeq *) ((CvTypedSeq< CvSeq * > *) x));
|
|
}
|
|
static void *_p_CvTypedSeqT_CvQuadEdge2D_tTo_p_CvSeq(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
|
return (void *)((CvSeq *) ((CvTypedSeq< CvQuadEdge2D > *) x));
|
|
}
|
|
static void *_p_CvTypedSeqT_CvPoint2D32f_tTo_p_CvSeq(void *x, int *SWIGUNUSEDPARM(newmemory)) {
|
|
return (void *)((CvSeq *) ((CvTypedSeq< CvPoint2D32f > *) x));
|
|
}
|
|
static swig_type_info _swigt__p_Cv32suf = {"_p_Cv32suf", "Cv32suf *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_Cv64suf = {"_p_Cv64suf", "Cv64suf *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvAttrList = {"_p_CvAttrList", "CvAttrList *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvAvgComp = {"_p_CvAvgComp", "CvAvgComp *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvBox2D = {"_p_CvBox2D", "CvBox2D *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvChain = {"_p_CvChain", "CvChain *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvChainPtReader = {"_p_CvChainPtReader", "CvChainPtReader *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvConDensation = {"_p_CvConDensation", "CvConDensation *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvConnectedComp = {"_p_CvConnectedComp", "CvConnectedComp *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvContour = {"_p_CvContour", "CvPoint2DSeq *|CvContour *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvContourTree = {"_p_CvContourTree", "CvContourTree *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvConvexityDefect = {"_p_CvConvexityDefect", "CvConvexityDefect *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvFeatureTree = {"_p_CvFeatureTree", "CvFeatureTree *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvFileNode = {"_p_CvFileNode", "CvFileNode *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvFileNode_data = {"_p_CvFileNode_data", "CvFileNode_data *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvFileStorage = {"_p_CvFileStorage", "CvFileStorage *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvFilter = {"_p_CvFilter", "enum CvFilter *|CvFilter *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvFont = {"_p_CvFont", "CvFont *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvGenericHash = {"_p_CvGenericHash", "CvGenericHash *|CvFileNodeHash *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvGraph = {"_p_CvGraph", "CvGraph *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvGraphEdge = {"_p_CvGraphEdge", "CvGraphEdge *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvGraphScanner = {"_p_CvGraphScanner", "CvGraphScanner *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvGraphVtx = {"_p_CvGraphVtx", "CvGraphVtx *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvGraphVtx2D = {"_p_CvGraphVtx2D", "CvGraphVtx2D *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvHaarClassifier = {"_p_CvHaarClassifier", "CvHaarClassifier *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvHaarClassifierCascade = {"_p_CvHaarClassifierCascade", "CvHaarClassifierCascade *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvHaarFeature = {"_p_CvHaarFeature", "CvHaarFeature *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvHaarFeature_rect = {"_p_CvHaarFeature_rect", "CvHaarFeature_rect *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvHaarStageClassifier = {"_p_CvHaarStageClassifier", "CvHaarStageClassifier *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvHidHaarClassifierCascade = {"_p_CvHidHaarClassifierCascade", "CvHidHaarClassifierCascade *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvHistogram = {"_p_CvHistogram", "CvHistogram *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvHuMoments = {"_p_CvHuMoments", "CvHuMoments *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvImage = {"_p_CvImage", "CvImage *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvKalman = {"_p_CvKalman", "CvKalman *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvLSH = {"_p_CvLSH", "CvLSH *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvLSHOperations = {"_p_CvLSHOperations", "CvLSHOperations *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvLineIterator = {"_p_CvLineIterator", "CvLineIterator *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvMSERParams = {"_p_CvMSERParams", "CvMSERParams *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvMat = {"_p_CvMat", "CvMat *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvMatND = {"_p_CvMatND", "CvMatND *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvMatND_data = {"_p_CvMatND_data", "CvMatND_data *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvMatND_dim = {"_p_CvMatND_dim", "CvMatND_dim *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvMat_data = {"_p_CvMat_data", "CvMat_data *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvMatrix = {"_p_CvMatrix", "CvMatrix *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvMatrix3 = {"_p_CvMatrix3", "CvMatrix3 *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvMemBlock = {"_p_CvMemBlock", "CvMemBlock *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvMemStorage = {"_p_CvMemStorage", "CvMemStorage *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvMemStoragePos = {"_p_CvMemStoragePos", "CvMemStoragePos *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvModule = {"_p_CvModule", "CvModule *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvModuleInfo = {"_p_CvModuleInfo", "CvModuleInfo *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvMoments = {"_p_CvMoments", "CvMoments *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvNArrayIterator = {"_p_CvNArrayIterator", "CvNArrayIterator *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvNextEdgeType = {"_p_CvNextEdgeType", "enum CvNextEdgeType *|CvNextEdgeType *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvPOSITObject = {"_p_CvPOSITObject", "CvPOSITObject *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvPluginFuncInfo = {"_p_CvPluginFuncInfo", "CvPluginFuncInfo *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvPoint = {"_p_CvPoint", "CvPoint *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvPoint2D32f = {"_p_CvPoint2D32f", "CvPoint2D32f *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvPoint2D64f = {"_p_CvPoint2D64f", "CvPoint2D64f *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvPoint3D32f = {"_p_CvPoint3D32f", "CvPoint3D32f *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvPoint3D64f = {"_p_CvPoint3D64f", "CvPoint3D64f *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvQuadEdge2D = {"_p_CvQuadEdge2D", "CvQuadEdge2D *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvRNG_Wrapper = {"_p_CvRNG_Wrapper", "CvRNG_Wrapper *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvRandState = {"_p_CvRandState", "CvRandState *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvRect = {"_p_CvRect", "CvRect *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvSURFParams = {"_p_CvSURFParams", "CvSURFParams *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvSURFPoint = {"_p_CvSURFPoint", "CvSURFPoint *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvScalar = {"_p_CvScalar", "CvScalar *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvSeq = {"_p_CvSeq", "CvSeq *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvSeqBlock = {"_p_CvSeqBlock", "CvSeqBlock *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvSeqReader = {"_p_CvSeqReader", "CvSeqReader *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvSeqWriter = {"_p_CvSeqWriter", "CvSeqWriter *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvSet = {"_p_CvSet", "CvSet *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvSetElem = {"_p_CvSetElem", "CvSetElem *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvSize = {"_p_CvSize", "CvSize *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvSize2D32f = {"_p_CvSize2D32f", "CvSize2D32f *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvSlice = {"_p_CvSlice", "CvSlice *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvSparseMat = {"_p_CvSparseMat", "CvSparseMat *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvSparseMatIterator = {"_p_CvSparseMatIterator", "CvSparseMatIterator *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvSparseNode = {"_p_CvSparseNode", "CvSparseNode *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvStarDetectorParams = {"_p_CvStarDetectorParams", "CvStarDetectorParams *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvStarKeypoint = {"_p_CvStarKeypoint", "CvStarKeypoint *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvStereoBMState = {"_p_CvStereoBMState", "CvStereoBMState *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvStereoGCState = {"_p_CvStereoGCState", "CvStereoGCState *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvString = {"_p_CvString", "CvString *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvStringHashNode = {"_p_CvStringHashNode", "CvStringHashNode *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvSubdiv2D = {"_p_CvSubdiv2D", "CvSubdiv2D *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvSubdiv2DEdge_Wrapper = {"_p_CvSubdiv2DEdge_Wrapper", "CvSubdiv2DEdge_Wrapper *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvSubdiv2DPoint = {"_p_CvSubdiv2DPoint", "CvSubdiv2DPoint *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvSubdiv2DPointLocation = {"_p_CvSubdiv2DPointLocation", "enum CvSubdiv2DPointLocation *|CvSubdiv2DPointLocation *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvTermCriteria = {"_p_CvTermCriteria", "CvTermCriteria *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvTreeNodeIterator = {"_p_CvTreeNodeIterator", "CvTreeNodeIterator *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvTupleT_CvPoint_2_t = {"_p_CvTupleT_CvPoint_2_t", "CvTuple< CvPoint,2 > *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvTupleT_float_2_t = {"_p_CvTupleT_float_2_t", "CvTuple< float,2 > *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvTupleT_float_3_t = {"_p_CvTupleT_float_3_t", "CvTuple< float,3 > *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvType = {"_p_CvType", "CvType *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvTypeInfo = {"_p_CvTypeInfo", "CvTypeInfo *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvTypedSeqT_CvConnectedComp_t = {"_p_CvTypedSeqT_CvConnectedComp_t", "CvTypedSeq< CvConnectedComp > *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvTypedSeqT_CvPoint2D32f_t = {"_p_CvTypedSeqT_CvPoint2D32f_t", "CvTypedSeq< CvPoint2D32f > *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvTypedSeqT_CvPoint_t = {"_p_CvTypedSeqT_CvPoint_t", "CvTypedSeq< CvPoint > *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvTypedSeqT_CvQuadEdge2D_t = {"_p_CvTypedSeqT_CvQuadEdge2D_t", "CvTypedSeq< CvQuadEdge2D > *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvTypedSeqT_CvRect_t = {"_p_CvTypedSeqT_CvRect_t", "CvTypedSeq< CvRect > *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvTypedSeqT_CvSeq_p_t = {"_p_CvTypedSeqT_CvSeq_p_t", "CvTypedSeq< CvSeq * > *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t = {"_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t", "CvTypedSeq< CvTuple< CvPoint,2 > > *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvTypedSeqT_CvTupleT_float_2_t_t = {"_p_CvTypedSeqT_CvTupleT_float_2_t_t", "CvTypedSeq< CvTuple< float,2 > > *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_CvTypedSeqT_CvTupleT_float_3_t_t = {"_p_CvTypedSeqT_CvTupleT_float_3_t_t", "CvTypedSeq< CvTuple< float,3 > > *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p__CvContourScanner = {"_p__CvContourScanner", "_CvContourScanner *|CvContourScanner", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p__IplConvKernel = {"_p__IplConvKernel", "_IplConvKernel *|IplConvKernel *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p__IplConvKernelFP = {"_p__IplConvKernelFP", "_IplConvKernelFP *|IplConvKernelFP *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p__IplImage = {"_p__IplImage", "_IplImage *|IplImage *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p__IplROI = {"_p__IplROI", "_IplROI *|IplROI *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p__IplTileInfo = {"_p__IplTileInfo", "_IplTileInfo *|IplTileInfo *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_a_2__float = {"_p_a_2__float", "float (*)[2]", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_a_2__signed_char = {"_p_a_2__signed_char", "signed char (*)[2]|schar (*)[2]", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_a_3__float = {"_p_a_3__float", "float (*)[3]", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_allocator_type = {"_p_allocator_type", "allocator_type *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_difference_type = {"_p_difference_type", "difference_type *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_int_int_int_int_int__p__IplROI = {"_p_f_int_int_int_int_int__p__IplROI", "Cv_iplCreateROI|_IplROI *(*)(int,int,int,int,int)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_int_int_int_p_char_p_char_int_int_int_int_int_p_IplROI_p_IplImage_p_void_p_IplTileInfo__p__IplImage = {"_p_f_int_int_int_p_char_p_char_int_int_int_int_int_p_IplROI_p_IplImage_p_void_p_IplTileInfo__p__IplImage", "_IplImage *(*)(int,int,int,char *,char *,int,int,int,int,int,IplROI *,IplImage *,void *,IplTileInfo *)|Cv_iplCreateImageHeader", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_int_p_q_const__char_p_q_const__char_p_q_const__char_int_p_void__int = {"_p_f_int_p_q_const__char_p_q_const__char_p_q_const__char_int_p_void__int", "int (*)(int,char const *,char const *,char const *,int,void *)|CvErrorCallback", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_CvFileStorage_p_CvFileNode__p_void = {"_p_f_p_CvFileStorage_p_CvFileNode__p_void", "void *(*)(CvFileStorage *,CvFileNode *)|CvReadFunc", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_CvFileStorage_p_q_const__char_p_q_const__void_CvAttrList__void = {"_p_f_p_CvFileStorage_p_q_const__char_p_q_const__void_CvAttrList__void", "void (*)(CvFileStorage *,char const *,void const *,CvAttrList)|CvWriteFunc", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p__IplImage_int__void = {"_p_f_p__IplImage_int__void", "Cv_iplDeallocate|void (*)(_IplImage *,int)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p__IplImage_int_int__void = {"_p_f_p__IplImage_int_int__void", "Cv_iplAllocateImageData|void (*)(_IplImage *,int,int)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_p_void__void = {"_p_f_p_p_void__void", "void (*)(void **)|CvReleaseFunc", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_q_const__IplImage__p__IplImage = {"_p_f_p_q_const__IplImage__p__IplImage", "_IplImage *(*)(IplImage const *)|Cv_iplCloneImage", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_q_const__char_int__p_CvMat = {"_p_f_p_q_const__char_int__p_CvMat", "CvMat *(*)(char const *,int)|CvLoadImageMFunc", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_q_const__char_int__p__IplImage = {"_p_f_p_q_const__char_int__p__IplImage", "CvLoadImageFunc|_IplImage *(*)(char const *,int)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_q_const__char_p_q_const__void__void = {"_p_f_p_q_const__char_p_q_const__void__void", "CvShowImageFunc|void (*)(char const *,void const *)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_q_const__char_p_q_const__void_p_q_const__int__int = {"_p_f_p_q_const__char_p_q_const__void_p_q_const__int__int", "CvSaveImageFunc|int (*)(char const *,void const *,int const *)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_q_const__float_p_q_const__float_p_void__float = {"_p_f_p_q_const__float_p_q_const__float_p_void__float", "CvDistanceFunction|float (*)(float const *,float const *,void *)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_q_const__void__int = {"_p_f_p_q_const__void__int", "CvIsInstanceFunc|int (*)(void const *)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_q_const__void__p_void = {"_p_f_p_q_const__void__p_void", "CvCloneFunc|void *(*)(void const *)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_q_const__void_p_q_const__void_p_void__int = {"_p_f_p_q_const__void_p_q_const__void_p_void__int", "CvCmpFunc|int (*)(void const *,void const *,void *)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_p_void_p_void__int = {"_p_f_p_void_p_void__int", "int (*)(void *,void *)|CvFreeFunc", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_f_size_t_p_void__p_void = {"_p_f_size_t_p_void__p_void", "CvAllocFunc|void *(*)(size_t,void *)", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_float = {"_p_float", "float *|CvVect32f|CvMatr32f", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_int = {"_p_int", "CvHistType *|int *|CVStatus *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_int64_t = {"_p_int64_t", "int64_t *|int64 *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_CvFileStorage = {"_p_p_CvFileStorage", "CvFileStorage **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_CvGraphEdge = {"_p_p_CvGraphEdge", "CvGraphEdge **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_CvGraphVtx = {"_p_p_CvGraphVtx", "CvGraphVtx **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_CvHistogram = {"_p_p_CvHistogram", "CvHistogram **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_CvLSH = {"_p_p_CvLSH", "CvLSH **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_CvMat = {"_p_p_CvMat", "CvMat **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_CvMatND = {"_p_p_CvMatND", "CvMatND **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_CvPOSITObject = {"_p_p_CvPOSITObject", "CvPOSITObject **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_CvPoint = {"_p_p_CvPoint", "CvPoint **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_CvSeq = {"_p_p_CvSeq", "CvSeq **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t = {"_p_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t", 0, 0, 0, 0, 0};
|
|
static swig_type_info _swigt__p_p_CvTypedSeqT_CvTupleT_float_2_t_t = {"_p_p_CvTypedSeqT_CvTupleT_float_2_t_t", 0, 0, 0, 0, 0};
|
|
static swig_type_info _swigt__p_p_CvTypedSeqT_CvRect_t = {"_p_p_CvTypedSeqT_CvRect_t", 0, 0, 0, 0, 0};
|
|
static swig_type_info _swigt__p_p_CvTypedSeqT_CvPoint_t = {"_p_p_CvTypedSeqT_CvPoint_t", 0, 0, 0, 0, 0};
|
|
static swig_type_info _swigt__p_p_CvTypedSeqT_CvQuadEdge2D_t = {"_p_p_CvTypedSeqT_CvQuadEdge2D_t", 0, 0, 0, 0, 0};
|
|
static swig_type_info _swigt__p_p_CvTypedSeqT_CvSeq_p_t = {"_p_p_CvTypedSeqT_CvSeq_p_t", 0, 0, 0, 0, 0};
|
|
static swig_type_info _swigt__p_p_CvTypedSeqT_CvPoint2D32f_t = {"_p_p_CvTypedSeqT_CvPoint2D32f_t", 0, 0, 0, 0, 0};
|
|
static swig_type_info _swigt__p_p_CvTypedSeqT_CvTupleT_float_3_t_t = {"_p_p_CvTypedSeqT_CvTupleT_float_3_t_t", 0, 0, 0, 0, 0};
|
|
static swig_type_info _swigt__p_p_CvTypedSeqT_CvConnectedComp_t = {"_p_p_CvTypedSeqT_CvConnectedComp_t", 0, 0, 0, 0, 0};
|
|
static swig_type_info _swigt__p_p_CvSeqBlock = {"_p_p_CvSeqBlock", "CvSeqBlock **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_CvSetElem = {"_p_p_CvSetElem", "CvSetElem **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_CvStereoBMState = {"_p_p_CvStereoBMState", "CvStereoBMState **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_CvStereoGCState = {"_p_p_CvStereoGCState", "CvStereoGCState **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_CvSubdiv2DPoint = {"_p_p_CvSubdiv2DPoint", "CvSubdiv2DPoint **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_PyObject = {"_p_p_PyObject", "PyObject **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p__CvContourScanner = {"_p_p__CvContourScanner", "CvContourScanner *|_CvContourScanner **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p__IplImage = {"_p_p__IplImage", "_IplImage **|IplImage **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_char = {"_p_p_char", "char **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_float = {"_p_p_float", "float **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_p_CvMat = {"_p_p_p_CvMat", "CvMat ***", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_unsigned_char = {"_p_p_unsigned_char", "unsigned char **|uchar **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_p_void = {"_p_p_void", "void **|CvArr **", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_short = {"_p_short", "short *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_signed_char = {"_p_signed_char", "schar *|signed char *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_size_t = {"_p_size_t", "size_t *|CvSubdiv2DEdge *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_size_type = {"_p_size_type", "size_type *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t = {"_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t", "std::vector< CvPoint,std::allocator< CvPoint > > *|std::vector< CvPoint > *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__allocator_type = {"_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__allocator_type", "std::vector< CvPoint >::allocator_type *|std::allocator< CvPoint > *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type = {"_p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type", "std::vector< CvPoint >::value_type *|CvPoint *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_std__vectorT_float_std__allocatorT_float_t_t = {"_p_std__vectorT_float_std__allocatorT_float_t_t", "std::vector< float > *|std::vector< float,std::allocator< float > > *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_std__vectorT_float_std__allocatorT_float_t_t__allocator_type = {"_p_std__vectorT_float_std__allocatorT_float_t_t__allocator_type", "std::vector< float >::allocator_type *|std::allocator< float > *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_uint64_t = {"_p_uint64_t", "uint64_t *|uint64 *|CvRNG *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "uchar *|unsigned char *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|ushort *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_value_type = {"_p_value_type", "value_type *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_void = {"_p_void", "CvArr *|void *", 0, 0, (void*)0, 0};
|
|
|
|
static swig_type_info *swig_type_initial[] = {
|
|
&_swigt__p_Cv32suf,
|
|
&_swigt__p_Cv64suf,
|
|
&_swigt__p_CvAttrList,
|
|
&_swigt__p_CvAvgComp,
|
|
&_swigt__p_CvBox2D,
|
|
&_swigt__p_CvChain,
|
|
&_swigt__p_CvChainPtReader,
|
|
&_swigt__p_CvConDensation,
|
|
&_swigt__p_CvConnectedComp,
|
|
&_swigt__p_CvContour,
|
|
&_swigt__p_CvContourTree,
|
|
&_swigt__p_CvConvexityDefect,
|
|
&_swigt__p_CvFeatureTree,
|
|
&_swigt__p_CvFileNode,
|
|
&_swigt__p_CvFileNode_data,
|
|
&_swigt__p_CvFileStorage,
|
|
&_swigt__p_CvFilter,
|
|
&_swigt__p_CvFont,
|
|
&_swigt__p_CvGenericHash,
|
|
&_swigt__p_CvGraph,
|
|
&_swigt__p_CvGraphEdge,
|
|
&_swigt__p_CvGraphScanner,
|
|
&_swigt__p_CvGraphVtx,
|
|
&_swigt__p_CvGraphVtx2D,
|
|
&_swigt__p_CvHaarClassifier,
|
|
&_swigt__p_CvHaarClassifierCascade,
|
|
&_swigt__p_CvHaarFeature,
|
|
&_swigt__p_CvHaarFeature_rect,
|
|
&_swigt__p_CvHaarStageClassifier,
|
|
&_swigt__p_CvHidHaarClassifierCascade,
|
|
&_swigt__p_CvHistogram,
|
|
&_swigt__p_CvHuMoments,
|
|
&_swigt__p_CvImage,
|
|
&_swigt__p_CvKalman,
|
|
&_swigt__p_CvLSH,
|
|
&_swigt__p_CvLSHOperations,
|
|
&_swigt__p_CvLineIterator,
|
|
&_swigt__p_CvMSERParams,
|
|
&_swigt__p_CvMat,
|
|
&_swigt__p_CvMatND,
|
|
&_swigt__p_CvMatND_data,
|
|
&_swigt__p_CvMatND_dim,
|
|
&_swigt__p_CvMat_data,
|
|
&_swigt__p_CvMatrix,
|
|
&_swigt__p_CvMatrix3,
|
|
&_swigt__p_CvMemBlock,
|
|
&_swigt__p_CvMemStorage,
|
|
&_swigt__p_CvMemStoragePos,
|
|
&_swigt__p_CvModule,
|
|
&_swigt__p_CvModuleInfo,
|
|
&_swigt__p_CvMoments,
|
|
&_swigt__p_CvNArrayIterator,
|
|
&_swigt__p_CvNextEdgeType,
|
|
&_swigt__p_CvPOSITObject,
|
|
&_swigt__p_CvPluginFuncInfo,
|
|
&_swigt__p_CvPoint,
|
|
&_swigt__p_CvPoint2D32f,
|
|
&_swigt__p_CvPoint2D64f,
|
|
&_swigt__p_CvPoint3D32f,
|
|
&_swigt__p_CvPoint3D64f,
|
|
&_swigt__p_CvQuadEdge2D,
|
|
&_swigt__p_CvRNG_Wrapper,
|
|
&_swigt__p_CvRandState,
|
|
&_swigt__p_CvRect,
|
|
&_swigt__p_CvSURFParams,
|
|
&_swigt__p_CvSURFPoint,
|
|
&_swigt__p_CvScalar,
|
|
&_swigt__p_CvSeq,
|
|
&_swigt__p_CvSeqBlock,
|
|
&_swigt__p_CvSeqReader,
|
|
&_swigt__p_CvSeqWriter,
|
|
&_swigt__p_CvSet,
|
|
&_swigt__p_CvSetElem,
|
|
&_swigt__p_CvSize,
|
|
&_swigt__p_CvSize2D32f,
|
|
&_swigt__p_CvSlice,
|
|
&_swigt__p_CvSparseMat,
|
|
&_swigt__p_CvSparseMatIterator,
|
|
&_swigt__p_CvSparseNode,
|
|
&_swigt__p_CvStarDetectorParams,
|
|
&_swigt__p_CvStarKeypoint,
|
|
&_swigt__p_CvStereoBMState,
|
|
&_swigt__p_CvStereoGCState,
|
|
&_swigt__p_CvString,
|
|
&_swigt__p_CvStringHashNode,
|
|
&_swigt__p_CvSubdiv2D,
|
|
&_swigt__p_CvSubdiv2DEdge_Wrapper,
|
|
&_swigt__p_CvSubdiv2DPoint,
|
|
&_swigt__p_CvSubdiv2DPointLocation,
|
|
&_swigt__p_CvTermCriteria,
|
|
&_swigt__p_CvTreeNodeIterator,
|
|
&_swigt__p_CvTupleT_CvPoint_2_t,
|
|
&_swigt__p_CvTupleT_float_2_t,
|
|
&_swigt__p_CvTupleT_float_3_t,
|
|
&_swigt__p_CvType,
|
|
&_swigt__p_CvTypeInfo,
|
|
&_swigt__p_CvTypedSeqT_CvConnectedComp_t,
|
|
&_swigt__p_CvTypedSeqT_CvPoint2D32f_t,
|
|
&_swigt__p_CvTypedSeqT_CvPoint_t,
|
|
&_swigt__p_CvTypedSeqT_CvQuadEdge2D_t,
|
|
&_swigt__p_CvTypedSeqT_CvRect_t,
|
|
&_swigt__p_CvTypedSeqT_CvSeq_p_t,
|
|
&_swigt__p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t,
|
|
&_swigt__p_CvTypedSeqT_CvTupleT_float_2_t_t,
|
|
&_swigt__p_CvTypedSeqT_CvTupleT_float_3_t_t,
|
|
&_swigt__p__CvContourScanner,
|
|
&_swigt__p__IplConvKernel,
|
|
&_swigt__p__IplConvKernelFP,
|
|
&_swigt__p__IplImage,
|
|
&_swigt__p__IplROI,
|
|
&_swigt__p__IplTileInfo,
|
|
&_swigt__p_a_2__float,
|
|
&_swigt__p_a_2__signed_char,
|
|
&_swigt__p_a_3__float,
|
|
&_swigt__p_allocator_type,
|
|
&_swigt__p_char,
|
|
&_swigt__p_difference_type,
|
|
&_swigt__p_double,
|
|
&_swigt__p_f_int_int_int_int_int__p__IplROI,
|
|
&_swigt__p_f_int_int_int_p_char_p_char_int_int_int_int_int_p_IplROI_p_IplImage_p_void_p_IplTileInfo__p__IplImage,
|
|
&_swigt__p_f_int_p_q_const__char_p_q_const__char_p_q_const__char_int_p_void__int,
|
|
&_swigt__p_f_p_CvFileStorage_p_CvFileNode__p_void,
|
|
&_swigt__p_f_p_CvFileStorage_p_q_const__char_p_q_const__void_CvAttrList__void,
|
|
&_swigt__p_f_p__IplImage_int__void,
|
|
&_swigt__p_f_p__IplImage_int_int__void,
|
|
&_swigt__p_f_p_p_void__void,
|
|
&_swigt__p_f_p_q_const__IplImage__p__IplImage,
|
|
&_swigt__p_f_p_q_const__char_int__p_CvMat,
|
|
&_swigt__p_f_p_q_const__char_int__p__IplImage,
|
|
&_swigt__p_f_p_q_const__char_p_q_const__void__void,
|
|
&_swigt__p_f_p_q_const__char_p_q_const__void_p_q_const__int__int,
|
|
&_swigt__p_f_p_q_const__float_p_q_const__float_p_void__float,
|
|
&_swigt__p_f_p_q_const__void__int,
|
|
&_swigt__p_f_p_q_const__void__p_void,
|
|
&_swigt__p_f_p_q_const__void_p_q_const__void_p_void__int,
|
|
&_swigt__p_f_p_void_p_void__int,
|
|
&_swigt__p_f_size_t_p_void__p_void,
|
|
&_swigt__p_float,
|
|
&_swigt__p_int,
|
|
&_swigt__p_int64_t,
|
|
&_swigt__p_p_CvFileStorage,
|
|
&_swigt__p_p_CvGraphEdge,
|
|
&_swigt__p_p_CvGraphVtx,
|
|
&_swigt__p_p_CvHistogram,
|
|
&_swigt__p_p_CvLSH,
|
|
&_swigt__p_p_CvMat,
|
|
&_swigt__p_p_CvMatND,
|
|
&_swigt__p_p_CvPOSITObject,
|
|
&_swigt__p_p_CvPoint,
|
|
&_swigt__p_p_CvSeq,
|
|
&_swigt__p_p_CvSeqBlock,
|
|
&_swigt__p_p_CvSetElem,
|
|
&_swigt__p_p_CvStereoBMState,
|
|
&_swigt__p_p_CvStereoGCState,
|
|
&_swigt__p_p_CvSubdiv2DPoint,
|
|
&_swigt__p_p_CvTypedSeqT_CvConnectedComp_t,
|
|
&_swigt__p_p_CvTypedSeqT_CvPoint2D32f_t,
|
|
&_swigt__p_p_CvTypedSeqT_CvPoint_t,
|
|
&_swigt__p_p_CvTypedSeqT_CvQuadEdge2D_t,
|
|
&_swigt__p_p_CvTypedSeqT_CvRect_t,
|
|
&_swigt__p_p_CvTypedSeqT_CvSeq_p_t,
|
|
&_swigt__p_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t,
|
|
&_swigt__p_p_CvTypedSeqT_CvTupleT_float_2_t_t,
|
|
&_swigt__p_p_CvTypedSeqT_CvTupleT_float_3_t_t,
|
|
&_swigt__p_p_PyObject,
|
|
&_swigt__p_p__CvContourScanner,
|
|
&_swigt__p_p__IplImage,
|
|
&_swigt__p_p_char,
|
|
&_swigt__p_p_float,
|
|
&_swigt__p_p_p_CvMat,
|
|
&_swigt__p_p_unsigned_char,
|
|
&_swigt__p_p_void,
|
|
&_swigt__p_short,
|
|
&_swigt__p_signed_char,
|
|
&_swigt__p_size_t,
|
|
&_swigt__p_size_type,
|
|
&_swigt__p_std__invalid_argument,
|
|
&_swigt__p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t,
|
|
&_swigt__p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__allocator_type,
|
|
&_swigt__p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type,
|
|
&_swigt__p_std__vectorT_float_std__allocatorT_float_t_t,
|
|
&_swigt__p_std__vectorT_float_std__allocatorT_float_t_t__allocator_type,
|
|
&_swigt__p_swig__SwigPyIterator,
|
|
&_swigt__p_uint64_t,
|
|
&_swigt__p_unsigned_char,
|
|
&_swigt__p_unsigned_int,
|
|
&_swigt__p_unsigned_short,
|
|
&_swigt__p_value_type,
|
|
&_swigt__p_void,
|
|
};
|
|
|
|
static swig_cast_info _swigc__p_Cv32suf[] = { {&_swigt__p_Cv32suf, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_Cv64suf[] = { {&_swigt__p_Cv64suf, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvAttrList[] = { {&_swigt__p_CvAttrList, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvAvgComp[] = { {&_swigt__p_CvAvgComp, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvBox2D[] = { {&_swigt__p_CvBox2D, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvChain[] = { {&_swigt__p_CvChain, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvChainPtReader[] = { {&_swigt__p_CvChainPtReader, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvConDensation[] = { {&_swigt__p_CvConDensation, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvConnectedComp[] = { {&_swigt__p_CvConnectedComp, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvContour[] = { {&_swigt__p_CvContour, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvContourTree[] = { {&_swigt__p_CvContourTree, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvConvexityDefect[] = { {&_swigt__p_CvConvexityDefect, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvFeatureTree[] = { {&_swigt__p_CvFeatureTree, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvFileNode[] = { {&_swigt__p_CvFileNode, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvFileNode_data[] = { {&_swigt__p_CvFileNode_data, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvFileStorage[] = { {&_swigt__p_CvFileStorage, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvFilter[] = { {&_swigt__p_CvFilter, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvFont[] = { {&_swigt__p_CvFont, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvGenericHash[] = { {&_swigt__p_CvGenericHash, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvGraph[] = { {&_swigt__p_CvGraph, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvGraphEdge[] = { {&_swigt__p_CvGraphEdge, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvGraphScanner[] = { {&_swigt__p_CvGraphScanner, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvGraphVtx[] = { {&_swigt__p_CvGraphVtx, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvGraphVtx2D[] = { {&_swigt__p_CvGraphVtx2D, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvHaarClassifier[] = { {&_swigt__p_CvHaarClassifier, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvHaarClassifierCascade[] = { {&_swigt__p_CvHaarClassifierCascade, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvHaarFeature[] = { {&_swigt__p_CvHaarFeature, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvHaarFeature_rect[] = { {&_swigt__p_CvHaarFeature_rect, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvHaarStageClassifier[] = { {&_swigt__p_CvHaarStageClassifier, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvHidHaarClassifierCascade[] = { {&_swigt__p_CvHidHaarClassifierCascade, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvHistogram[] = { {&_swigt__p_CvHistogram, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvHuMoments[] = { {&_swigt__p_CvHuMoments, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvImage[] = { {&_swigt__p_CvImage, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvKalman[] = { {&_swigt__p_CvKalman, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvLSH[] = { {&_swigt__p_CvLSH, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvLSHOperations[] = { {&_swigt__p_CvLSHOperations, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvLineIterator[] = { {&_swigt__p_CvLineIterator, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvMSERParams[] = { {&_swigt__p_CvMSERParams, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvMat[] = { {&_swigt__p_CvMat, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvMatND[] = { {&_swigt__p_CvMatND, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvMatND_data[] = { {&_swigt__p_CvMatND_data, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvMatND_dim[] = { {&_swigt__p_CvMatND_dim, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvMat_data[] = { {&_swigt__p_CvMat_data, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvMatrix[] = { {&_swigt__p_CvMatrix, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvMatrix3[] = { {&_swigt__p_CvMatrix3, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvMemBlock[] = { {&_swigt__p_CvMemBlock, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvMemStorage[] = { {&_swigt__p_CvMemStorage, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvMemStoragePos[] = { {&_swigt__p_CvMemStoragePos, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvModule[] = { {&_swigt__p_CvModule, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvModuleInfo[] = { {&_swigt__p_CvModuleInfo, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvMoments[] = { {&_swigt__p_CvMoments, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvNArrayIterator[] = { {&_swigt__p_CvNArrayIterator, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvNextEdgeType[] = { {&_swigt__p_CvNextEdgeType, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvPOSITObject[] = { {&_swigt__p_CvPOSITObject, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvPluginFuncInfo[] = { {&_swigt__p_CvPluginFuncInfo, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvPoint[] = { {&_swigt__p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, 0, 0, 0}, {&_swigt__p_CvPoint, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvPoint2D32f[] = { {&_swigt__p_CvPoint2D32f, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvPoint2D64f[] = { {&_swigt__p_CvPoint2D64f, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvPoint3D32f[] = { {&_swigt__p_CvPoint3D32f, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvPoint3D64f[] = { {&_swigt__p_CvPoint3D64f, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvQuadEdge2D[] = { {&_swigt__p_CvQuadEdge2D, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvRNG_Wrapper[] = { {&_swigt__p_CvRNG_Wrapper, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvRandState[] = { {&_swigt__p_CvRandState, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvRect[] = { {&_swigt__p_CvRect, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvSURFParams[] = { {&_swigt__p_CvSURFParams, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvSURFPoint[] = { {&_swigt__p_CvSURFPoint, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvScalar[] = { {&_swigt__p_CvScalar, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvSeq[] = { {&_swigt__p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t, _p_CvTypedSeqT_CvTupleT_CvPoint_2_t_tTo_p_CvSeq, 0, 0}, {&_swigt__p_CvTypedSeqT_CvTupleT_float_2_t_t, _p_CvTypedSeqT_CvTupleT_float_2_t_tTo_p_CvSeq, 0, 0}, {&_swigt__p_CvTypedSeqT_CvRect_t, _p_CvTypedSeqT_CvRect_tTo_p_CvSeq, 0, 0}, {&_swigt__p_CvTypedSeqT_CvPoint_t, _p_CvTypedSeqT_CvPoint_tTo_p_CvSeq, 0, 0}, {&_swigt__p_CvTypedSeqT_CvQuadEdge2D_t, _p_CvTypedSeqT_CvQuadEdge2D_tTo_p_CvSeq, 0, 0}, {&_swigt__p_CvTypedSeqT_CvSeq_p_t, _p_CvTypedSeqT_CvSeq_p_tTo_p_CvSeq, 0, 0}, {&_swigt__p_CvTypedSeqT_CvPoint2D32f_t, _p_CvTypedSeqT_CvPoint2D32f_tTo_p_CvSeq, 0, 0}, {&_swigt__p_CvSeq, 0, 0, 0}, {&_swigt__p_CvTypedSeqT_CvTupleT_float_3_t_t, _p_CvTypedSeqT_CvTupleT_float_3_t_tTo_p_CvSeq, 0, 0}, {&_swigt__p_CvTypedSeqT_CvConnectedComp_t, _p_CvTypedSeqT_CvConnectedComp_tTo_p_CvSeq, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvSeqBlock[] = { {&_swigt__p_CvSeqBlock, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvSeqReader[] = { {&_swigt__p_CvSeqReader, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvSeqWriter[] = { {&_swigt__p_CvSeqWriter, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvSet[] = { {&_swigt__p_CvSet, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvSetElem[] = { {&_swigt__p_CvSetElem, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvSize[] = { {&_swigt__p_CvSize, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvSize2D32f[] = { {&_swigt__p_CvSize2D32f, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvSlice[] = { {&_swigt__p_CvSlice, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvSparseMat[] = { {&_swigt__p_CvSparseMat, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvSparseMatIterator[] = { {&_swigt__p_CvSparseMatIterator, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvSparseNode[] = { {&_swigt__p_CvSparseNode, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvStarDetectorParams[] = { {&_swigt__p_CvStarDetectorParams, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvStarKeypoint[] = { {&_swigt__p_CvStarKeypoint, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvStereoBMState[] = { {&_swigt__p_CvStereoBMState, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvStereoGCState[] = { {&_swigt__p_CvStereoGCState, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvString[] = { {&_swigt__p_CvString, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvStringHashNode[] = { {&_swigt__p_CvStringHashNode, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvSubdiv2D[] = { {&_swigt__p_CvSubdiv2D, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvSubdiv2DEdge_Wrapper[] = { {&_swigt__p_CvSubdiv2DEdge_Wrapper, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvSubdiv2DPoint[] = { {&_swigt__p_CvSubdiv2DPoint, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvSubdiv2DPointLocation[] = { {&_swigt__p_CvSubdiv2DPointLocation, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvTermCriteria[] = { {&_swigt__p_CvTermCriteria, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvTreeNodeIterator[] = { {&_swigt__p_CvTreeNodeIterator, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvTupleT_CvPoint_2_t[] = { {&_swigt__p_CvTupleT_CvPoint_2_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvTupleT_float_2_t[] = { {&_swigt__p_CvTupleT_float_2_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvTupleT_float_3_t[] = { {&_swigt__p_CvTupleT_float_3_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvType[] = { {&_swigt__p_CvType, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvTypeInfo[] = { {&_swigt__p_CvTypeInfo, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvTypedSeqT_CvConnectedComp_t[] = { {&_swigt__p_CvTypedSeqT_CvConnectedComp_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvTypedSeqT_CvPoint2D32f_t[] = { {&_swigt__p_CvTypedSeqT_CvPoint2D32f_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvTypedSeqT_CvPoint_t[] = { {&_swigt__p_CvTypedSeqT_CvPoint_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvTypedSeqT_CvQuadEdge2D_t[] = { {&_swigt__p_CvTypedSeqT_CvQuadEdge2D_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvTypedSeqT_CvRect_t[] = { {&_swigt__p_CvTypedSeqT_CvRect_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvTypedSeqT_CvSeq_p_t[] = { {&_swigt__p_CvTypedSeqT_CvSeq_p_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t[] = { {&_swigt__p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvTypedSeqT_CvTupleT_float_2_t_t[] = { {&_swigt__p_CvTypedSeqT_CvTupleT_float_2_t_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_CvTypedSeqT_CvTupleT_float_3_t_t[] = { {&_swigt__p_CvTypedSeqT_CvTupleT_float_3_t_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p__CvContourScanner[] = { {&_swigt__p__CvContourScanner, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p__IplConvKernel[] = { {&_swigt__p__IplConvKernel, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p__IplConvKernelFP[] = { {&_swigt__p__IplConvKernelFP, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p__IplImage[] = { {&_swigt__p__IplImage, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p__IplROI[] = { {&_swigt__p__IplROI, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p__IplTileInfo[] = { {&_swigt__p__IplTileInfo, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_a_2__float[] = { {&_swigt__p_a_2__float, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_a_2__signed_char[] = { {&_swigt__p_a_2__signed_char, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_a_3__float[] = { {&_swigt__p_a_3__float, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_allocator_type[] = { {&_swigt__p_allocator_type, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_difference_type[] = { {&_swigt__p_difference_type, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_int_int_int_int_int__p__IplROI[] = { {&_swigt__p_f_int_int_int_int_int__p__IplROI, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_int_int_int_p_char_p_char_int_int_int_int_int_p_IplROI_p_IplImage_p_void_p_IplTileInfo__p__IplImage[] = { {&_swigt__p_f_int_int_int_p_char_p_char_int_int_int_int_int_p_IplROI_p_IplImage_p_void_p_IplTileInfo__p__IplImage, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_int_p_q_const__char_p_q_const__char_p_q_const__char_int_p_void__int[] = { {&_swigt__p_f_int_p_q_const__char_p_q_const__char_p_q_const__char_int_p_void__int, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_CvFileStorage_p_CvFileNode__p_void[] = { {&_swigt__p_f_p_CvFileStorage_p_CvFileNode__p_void, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_CvFileStorage_p_q_const__char_p_q_const__void_CvAttrList__void[] = { {&_swigt__p_f_p_CvFileStorage_p_q_const__char_p_q_const__void_CvAttrList__void, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p__IplImage_int__void[] = { {&_swigt__p_f_p__IplImage_int__void, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p__IplImage_int_int__void[] = { {&_swigt__p_f_p__IplImage_int_int__void, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_p_void__void[] = { {&_swigt__p_f_p_p_void__void, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_q_const__IplImage__p__IplImage[] = { {&_swigt__p_f_p_q_const__IplImage__p__IplImage, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_q_const__char_int__p_CvMat[] = { {&_swigt__p_f_p_q_const__char_int__p_CvMat, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_q_const__char_int__p__IplImage[] = { {&_swigt__p_f_p_q_const__char_int__p__IplImage, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_q_const__char_p_q_const__void__void[] = { {&_swigt__p_f_p_q_const__char_p_q_const__void__void, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_q_const__char_p_q_const__void_p_q_const__int__int[] = { {&_swigt__p_f_p_q_const__char_p_q_const__void_p_q_const__int__int, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_q_const__float_p_q_const__float_p_void__float[] = { {&_swigt__p_f_p_q_const__float_p_q_const__float_p_void__float, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_q_const__void__int[] = { {&_swigt__p_f_p_q_const__void__int, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_q_const__void__p_void[] = { {&_swigt__p_f_p_q_const__void__p_void, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_q_const__void_p_q_const__void_p_void__int[] = { {&_swigt__p_f_p_q_const__void_p_q_const__void_p_void__int, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_p_void_p_void__int[] = { {&_swigt__p_f_p_void_p_void__int, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_f_size_t_p_void__p_void[] = { {&_swigt__p_f_size_t_p_void__p_void, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_float[] = { {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_int64_t[] = { {&_swigt__p_int64_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvFileStorage[] = { {&_swigt__p_p_CvFileStorage, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvGraphEdge[] = { {&_swigt__p_p_CvGraphEdge, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvGraphVtx[] = { {&_swigt__p_p_CvGraphVtx, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvHistogram[] = { {&_swigt__p_p_CvHistogram, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvLSH[] = { {&_swigt__p_p_CvLSH, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvMat[] = { {&_swigt__p_p_CvMat, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvMatND[] = { {&_swigt__p_p_CvMatND, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvPOSITObject[] = { {&_swigt__p_p_CvPOSITObject, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvPoint[] = { {&_swigt__p_p_CvPoint, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t[] = {{&_swigt__p_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvTypedSeqT_CvTupleT_float_2_t_t[] = {{&_swigt__p_p_CvTypedSeqT_CvTupleT_float_2_t_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvTypedSeqT_CvRect_t[] = {{&_swigt__p_p_CvTypedSeqT_CvRect_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvTypedSeqT_CvPoint_t[] = {{&_swigt__p_p_CvTypedSeqT_CvPoint_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvTypedSeqT_CvQuadEdge2D_t[] = {{&_swigt__p_p_CvTypedSeqT_CvQuadEdge2D_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvTypedSeqT_CvSeq_p_t[] = {{&_swigt__p_p_CvTypedSeqT_CvSeq_p_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvTypedSeqT_CvPoint2D32f_t[] = {{&_swigt__p_p_CvTypedSeqT_CvPoint2D32f_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvTypedSeqT_CvTupleT_float_3_t_t[] = {{&_swigt__p_p_CvTypedSeqT_CvTupleT_float_3_t_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvTypedSeqT_CvConnectedComp_t[] = {{&_swigt__p_p_CvTypedSeqT_CvConnectedComp_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvSeq[] = { {&_swigt__p_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t, _p_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_tTo_p_p_CvSeq, 0, 0}, {&_swigt__p_p_CvTypedSeqT_CvTupleT_float_2_t_t, _p_p_CvTypedSeqT_CvTupleT_float_2_t_tTo_p_p_CvSeq, 0, 0}, {&_swigt__p_p_CvTypedSeqT_CvRect_t, _p_p_CvTypedSeqT_CvRect_tTo_p_p_CvSeq, 0, 0}, {&_swigt__p_p_CvTypedSeqT_CvPoint_t, _p_p_CvTypedSeqT_CvPoint_tTo_p_p_CvSeq, 0, 0}, {&_swigt__p_p_CvTypedSeqT_CvQuadEdge2D_t, _p_p_CvTypedSeqT_CvQuadEdge2D_tTo_p_p_CvSeq, 0, 0}, {&_swigt__p_p_CvTypedSeqT_CvSeq_p_t, _p_p_CvTypedSeqT_CvSeq_p_tTo_p_p_CvSeq, 0, 0}, {&_swigt__p_p_CvTypedSeqT_CvPoint2D32f_t, _p_p_CvTypedSeqT_CvPoint2D32f_tTo_p_p_CvSeq, 0, 0}, {&_swigt__p_p_CvSeq, 0, 0, 0}, {&_swigt__p_p_CvTypedSeqT_CvTupleT_float_3_t_t, _p_p_CvTypedSeqT_CvTupleT_float_3_t_tTo_p_p_CvSeq, 0, 0}, {&_swigt__p_p_CvTypedSeqT_CvConnectedComp_t, _p_p_CvTypedSeqT_CvConnectedComp_tTo_p_p_CvSeq, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvSeqBlock[] = { {&_swigt__p_p_CvSeqBlock, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvSetElem[] = { {&_swigt__p_p_CvSetElem, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvStereoBMState[] = { {&_swigt__p_p_CvStereoBMState, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvStereoGCState[] = { {&_swigt__p_p_CvStereoGCState, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_CvSubdiv2DPoint[] = { {&_swigt__p_p_CvSubdiv2DPoint, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_PyObject[] = { {&_swigt__p_p_PyObject, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p__CvContourScanner[] = { {&_swigt__p_p__CvContourScanner, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p__IplImage[] = { {&_swigt__p_p__IplImage, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_char[] = { {&_swigt__p_p_char, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_float[] = { {&_swigt__p_p_float, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_p_CvMat[] = { {&_swigt__p_p_p_CvMat, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_unsigned_char[] = { {&_swigt__p_p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_p_void[] = { {&_swigt__p_p_void, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_short[] = { {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_signed_char[] = { {&_swigt__p_signed_char, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_size_t[] = { {&_swigt__p_size_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_size_type[] = { {&_swigt__p_size_type, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_std__invalid_argument[] = { {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t[] = { {&_swigt__p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__allocator_type[] = { {&_swigt__p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__allocator_type, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type[] = { {&_swigt__p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type, 0, 0, 0}, {&_swigt__p_CvPoint, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_std__vectorT_float_std__allocatorT_float_t_t[] = { {&_swigt__p_std__vectorT_float_std__allocatorT_float_t_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_std__vectorT_float_std__allocatorT_float_t_t__allocator_type[] = { {&_swigt__p_std__vectorT_float_std__allocatorT_float_t_t__allocator_type, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_swig__SwigPyIterator[] = { {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_uint64_t[] = { {&_swigt__p_uint64_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_value_type[] = { {&_swigt__p_value_type, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
|
|
|
|
static swig_cast_info *swig_cast_initial[] = {
|
|
_swigc__p_Cv32suf,
|
|
_swigc__p_Cv64suf,
|
|
_swigc__p_CvAttrList,
|
|
_swigc__p_CvAvgComp,
|
|
_swigc__p_CvBox2D,
|
|
_swigc__p_CvChain,
|
|
_swigc__p_CvChainPtReader,
|
|
_swigc__p_CvConDensation,
|
|
_swigc__p_CvConnectedComp,
|
|
_swigc__p_CvContour,
|
|
_swigc__p_CvContourTree,
|
|
_swigc__p_CvConvexityDefect,
|
|
_swigc__p_CvFeatureTree,
|
|
_swigc__p_CvFileNode,
|
|
_swigc__p_CvFileNode_data,
|
|
_swigc__p_CvFileStorage,
|
|
_swigc__p_CvFilter,
|
|
_swigc__p_CvFont,
|
|
_swigc__p_CvGenericHash,
|
|
_swigc__p_CvGraph,
|
|
_swigc__p_CvGraphEdge,
|
|
_swigc__p_CvGraphScanner,
|
|
_swigc__p_CvGraphVtx,
|
|
_swigc__p_CvGraphVtx2D,
|
|
_swigc__p_CvHaarClassifier,
|
|
_swigc__p_CvHaarClassifierCascade,
|
|
_swigc__p_CvHaarFeature,
|
|
_swigc__p_CvHaarFeature_rect,
|
|
_swigc__p_CvHaarStageClassifier,
|
|
_swigc__p_CvHidHaarClassifierCascade,
|
|
_swigc__p_CvHistogram,
|
|
_swigc__p_CvHuMoments,
|
|
_swigc__p_CvImage,
|
|
_swigc__p_CvKalman,
|
|
_swigc__p_CvLSH,
|
|
_swigc__p_CvLSHOperations,
|
|
_swigc__p_CvLineIterator,
|
|
_swigc__p_CvMSERParams,
|
|
_swigc__p_CvMat,
|
|
_swigc__p_CvMatND,
|
|
_swigc__p_CvMatND_data,
|
|
_swigc__p_CvMatND_dim,
|
|
_swigc__p_CvMat_data,
|
|
_swigc__p_CvMatrix,
|
|
_swigc__p_CvMatrix3,
|
|
_swigc__p_CvMemBlock,
|
|
_swigc__p_CvMemStorage,
|
|
_swigc__p_CvMemStoragePos,
|
|
_swigc__p_CvModule,
|
|
_swigc__p_CvModuleInfo,
|
|
_swigc__p_CvMoments,
|
|
_swigc__p_CvNArrayIterator,
|
|
_swigc__p_CvNextEdgeType,
|
|
_swigc__p_CvPOSITObject,
|
|
_swigc__p_CvPluginFuncInfo,
|
|
_swigc__p_CvPoint,
|
|
_swigc__p_CvPoint2D32f,
|
|
_swigc__p_CvPoint2D64f,
|
|
_swigc__p_CvPoint3D32f,
|
|
_swigc__p_CvPoint3D64f,
|
|
_swigc__p_CvQuadEdge2D,
|
|
_swigc__p_CvRNG_Wrapper,
|
|
_swigc__p_CvRandState,
|
|
_swigc__p_CvRect,
|
|
_swigc__p_CvSURFParams,
|
|
_swigc__p_CvSURFPoint,
|
|
_swigc__p_CvScalar,
|
|
_swigc__p_CvSeq,
|
|
_swigc__p_CvSeqBlock,
|
|
_swigc__p_CvSeqReader,
|
|
_swigc__p_CvSeqWriter,
|
|
_swigc__p_CvSet,
|
|
_swigc__p_CvSetElem,
|
|
_swigc__p_CvSize,
|
|
_swigc__p_CvSize2D32f,
|
|
_swigc__p_CvSlice,
|
|
_swigc__p_CvSparseMat,
|
|
_swigc__p_CvSparseMatIterator,
|
|
_swigc__p_CvSparseNode,
|
|
_swigc__p_CvStarDetectorParams,
|
|
_swigc__p_CvStarKeypoint,
|
|
_swigc__p_CvStereoBMState,
|
|
_swigc__p_CvStereoGCState,
|
|
_swigc__p_CvString,
|
|
_swigc__p_CvStringHashNode,
|
|
_swigc__p_CvSubdiv2D,
|
|
_swigc__p_CvSubdiv2DEdge_Wrapper,
|
|
_swigc__p_CvSubdiv2DPoint,
|
|
_swigc__p_CvSubdiv2DPointLocation,
|
|
_swigc__p_CvTermCriteria,
|
|
_swigc__p_CvTreeNodeIterator,
|
|
_swigc__p_CvTupleT_CvPoint_2_t,
|
|
_swigc__p_CvTupleT_float_2_t,
|
|
_swigc__p_CvTupleT_float_3_t,
|
|
_swigc__p_CvType,
|
|
_swigc__p_CvTypeInfo,
|
|
_swigc__p_CvTypedSeqT_CvConnectedComp_t,
|
|
_swigc__p_CvTypedSeqT_CvPoint2D32f_t,
|
|
_swigc__p_CvTypedSeqT_CvPoint_t,
|
|
_swigc__p_CvTypedSeqT_CvQuadEdge2D_t,
|
|
_swigc__p_CvTypedSeqT_CvRect_t,
|
|
_swigc__p_CvTypedSeqT_CvSeq_p_t,
|
|
_swigc__p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t,
|
|
_swigc__p_CvTypedSeqT_CvTupleT_float_2_t_t,
|
|
_swigc__p_CvTypedSeqT_CvTupleT_float_3_t_t,
|
|
_swigc__p__CvContourScanner,
|
|
_swigc__p__IplConvKernel,
|
|
_swigc__p__IplConvKernelFP,
|
|
_swigc__p__IplImage,
|
|
_swigc__p__IplROI,
|
|
_swigc__p__IplTileInfo,
|
|
_swigc__p_a_2__float,
|
|
_swigc__p_a_2__signed_char,
|
|
_swigc__p_a_3__float,
|
|
_swigc__p_allocator_type,
|
|
_swigc__p_char,
|
|
_swigc__p_difference_type,
|
|
_swigc__p_double,
|
|
_swigc__p_f_int_int_int_int_int__p__IplROI,
|
|
_swigc__p_f_int_int_int_p_char_p_char_int_int_int_int_int_p_IplROI_p_IplImage_p_void_p_IplTileInfo__p__IplImage,
|
|
_swigc__p_f_int_p_q_const__char_p_q_const__char_p_q_const__char_int_p_void__int,
|
|
_swigc__p_f_p_CvFileStorage_p_CvFileNode__p_void,
|
|
_swigc__p_f_p_CvFileStorage_p_q_const__char_p_q_const__void_CvAttrList__void,
|
|
_swigc__p_f_p__IplImage_int__void,
|
|
_swigc__p_f_p__IplImage_int_int__void,
|
|
_swigc__p_f_p_p_void__void,
|
|
_swigc__p_f_p_q_const__IplImage__p__IplImage,
|
|
_swigc__p_f_p_q_const__char_int__p_CvMat,
|
|
_swigc__p_f_p_q_const__char_int__p__IplImage,
|
|
_swigc__p_f_p_q_const__char_p_q_const__void__void,
|
|
_swigc__p_f_p_q_const__char_p_q_const__void_p_q_const__int__int,
|
|
_swigc__p_f_p_q_const__float_p_q_const__float_p_void__float,
|
|
_swigc__p_f_p_q_const__void__int,
|
|
_swigc__p_f_p_q_const__void__p_void,
|
|
_swigc__p_f_p_q_const__void_p_q_const__void_p_void__int,
|
|
_swigc__p_f_p_void_p_void__int,
|
|
_swigc__p_f_size_t_p_void__p_void,
|
|
_swigc__p_float,
|
|
_swigc__p_int,
|
|
_swigc__p_int64_t,
|
|
_swigc__p_p_CvFileStorage,
|
|
_swigc__p_p_CvGraphEdge,
|
|
_swigc__p_p_CvGraphVtx,
|
|
_swigc__p_p_CvHistogram,
|
|
_swigc__p_p_CvLSH,
|
|
_swigc__p_p_CvMat,
|
|
_swigc__p_p_CvMatND,
|
|
_swigc__p_p_CvPOSITObject,
|
|
_swigc__p_p_CvPoint,
|
|
_swigc__p_p_CvSeq,
|
|
_swigc__p_p_CvSeqBlock,
|
|
_swigc__p_p_CvSetElem,
|
|
_swigc__p_p_CvStereoBMState,
|
|
_swigc__p_p_CvStereoGCState,
|
|
_swigc__p_p_CvSubdiv2DPoint,
|
|
_swigc__p_p_CvTypedSeqT_CvConnectedComp_t,
|
|
_swigc__p_p_CvTypedSeqT_CvPoint2D32f_t,
|
|
_swigc__p_p_CvTypedSeqT_CvPoint_t,
|
|
_swigc__p_p_CvTypedSeqT_CvQuadEdge2D_t,
|
|
_swigc__p_p_CvTypedSeqT_CvRect_t,
|
|
_swigc__p_p_CvTypedSeqT_CvSeq_p_t,
|
|
_swigc__p_p_CvTypedSeqT_CvTupleT_CvPoint_2_t_t,
|
|
_swigc__p_p_CvTypedSeqT_CvTupleT_float_2_t_t,
|
|
_swigc__p_p_CvTypedSeqT_CvTupleT_float_3_t_t,
|
|
_swigc__p_p_PyObject,
|
|
_swigc__p_p__CvContourScanner,
|
|
_swigc__p_p__IplImage,
|
|
_swigc__p_p_char,
|
|
_swigc__p_p_float,
|
|
_swigc__p_p_p_CvMat,
|
|
_swigc__p_p_unsigned_char,
|
|
_swigc__p_p_void,
|
|
_swigc__p_short,
|
|
_swigc__p_signed_char,
|
|
_swigc__p_size_t,
|
|
_swigc__p_size_type,
|
|
_swigc__p_std__invalid_argument,
|
|
_swigc__p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t,
|
|
_swigc__p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__allocator_type,
|
|
_swigc__p_std__vectorT_CvPoint_std__allocatorT_CvPoint_t_t__value_type,
|
|
_swigc__p_std__vectorT_float_std__allocatorT_float_t_t,
|
|
_swigc__p_std__vectorT_float_std__allocatorT_float_t_t__allocator_type,
|
|
_swigc__p_swig__SwigPyIterator,
|
|
_swigc__p_uint64_t,
|
|
_swigc__p_unsigned_char,
|
|
_swigc__p_unsigned_int,
|
|
_swigc__p_unsigned_short,
|
|
_swigc__p_value_type,
|
|
_swigc__p_void,
|
|
};
|
|
|
|
|
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
|
|
|
|
static swig_const_info swig_const_table[] = {
|
|
{0, 0, 0, 0.0, 0, 0}};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
/* -----------------------------------------------------------------------------
|
|
* Type initialization:
|
|
* This problem is tough by the requirement that no dynamic
|
|
* memory is used. Also, since swig_type_info structures store pointers to
|
|
* swig_cast_info structures and swig_cast_info structures store pointers back
|
|
* to swig_type_info structures, we need some lookup code at initialization.
|
|
* The idea is that swig generates all the structures that are needed.
|
|
* The runtime then collects these partially filled structures.
|
|
* The SWIG_InitializeModule function takes these initial arrays out of
|
|
* swig_module, and does all the lookup, filling in the swig_module.types
|
|
* array with the correct data and linking the correct swig_cast_info
|
|
* structures together.
|
|
*
|
|
* The generated swig_type_info structures are assigned staticly to an initial
|
|
* array. We just loop through that array, and handle each type individually.
|
|
* First we lookup if this type has been already loaded, and if so, use the
|
|
* loaded structure instead of the generated one. Then we have to fill in the
|
|
* cast linked list. The cast data is initially stored in something like a
|
|
* two-dimensional array. Each row corresponds to a type (there are the same
|
|
* number of rows as there are in the swig_type_initial array). Each entry in
|
|
* a column is one of the swig_cast_info structures for that type.
|
|
* The cast_initial array is actually an array of arrays, because each row has
|
|
* a variable number of columns. So to actually build the cast linked list,
|
|
* we find the array of casts associated with the type, and loop through it
|
|
* adding the casts to the list. The one last trick we need to do is making
|
|
* sure the type pointer in the swig_cast_info struct is correct.
|
|
*
|
|
* First off, we lookup the cast->type name to see if it is already loaded.
|
|
* There are three cases to handle:
|
|
* 1) If the cast->type has already been loaded AND the type we are adding
|
|
* casting info to has not been loaded (it is in this module), THEN we
|
|
* replace the cast->type pointer with the type pointer that has already
|
|
* been loaded.
|
|
* 2) If BOTH types (the one we are adding casting info to, and the
|
|
* cast->type) are loaded, THEN the cast info has already been loaded by
|
|
* the previous module so we just ignore it.
|
|
* 3) Finally, if cast->type has not already been loaded, then we add that
|
|
* swig_cast_info to the linked list (because the cast->type) pointer will
|
|
* be correct.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#if 0
|
|
} /* c-mode */
|
|
#endif
|
|
#endif
|
|
|
|
#if 0
|
|
#define SWIGRUNTIME_DEBUG
|
|
#endif
|
|
|
|
|
|
SWIGRUNTIME void
|
|
SWIG_InitializeModule(void *clientdata) {
|
|
size_t i;
|
|
swig_module_info *module_head, *iter;
|
|
int found, init;
|
|
|
|
clientdata = clientdata;
|
|
|
|
/* check to see if the circular list has been setup, if not, set it up */
|
|
if (swig_module.next==0) {
|
|
/* Initialize the swig_module */
|
|
swig_module.type_initial = swig_type_initial;
|
|
swig_module.cast_initial = swig_cast_initial;
|
|
swig_module.next = &swig_module;
|
|
init = 1;
|
|
} else {
|
|
init = 0;
|
|
}
|
|
|
|
/* Try and load any already created modules */
|
|
module_head = SWIG_GetModule(clientdata);
|
|
if (!module_head) {
|
|
/* This is the first module loaded for this interpreter */
|
|
/* so set the swig module into the interpreter */
|
|
SWIG_SetModule(clientdata, &swig_module);
|
|
module_head = &swig_module;
|
|
} else {
|
|
/* the interpreter has loaded a SWIG module, but has it loaded this one? */
|
|
found=0;
|
|
iter=module_head;
|
|
do {
|
|
if (iter==&swig_module) {
|
|
found=1;
|
|
break;
|
|
}
|
|
iter=iter->next;
|
|
} while (iter!= module_head);
|
|
|
|
/* if the is found in the list, then all is done and we may leave */
|
|
if (found) return;
|
|
/* otherwise we must add out module into the list */
|
|
swig_module.next = module_head->next;
|
|
module_head->next = &swig_module;
|
|
}
|
|
|
|
/* When multiple interpeters are used, a module could have already been initialized in
|
|
a different interpreter, but not yet have a pointer in this interpreter.
|
|
In this case, we do not want to continue adding types... everything should be
|
|
set up already */
|
|
if (init == 0) return;
|
|
|
|
/* Now work on filling in swig_module.types */
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: size %d\n", swig_module.size);
|
|
#endif
|
|
for (i = 0; i < swig_module.size; ++i) {
|
|
swig_type_info *type = 0;
|
|
swig_type_info *ret;
|
|
swig_cast_info *cast;
|
|
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
|
|
#endif
|
|
|
|
/* if there is another module already loaded */
|
|
if (swig_module.next != &swig_module) {
|
|
type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
|
|
}
|
|
if (type) {
|
|
/* Overwrite clientdata field */
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: found type %s\n", type->name);
|
|
#endif
|
|
if (swig_module.type_initial[i]->clientdata) {
|
|
type->clientdata = swig_module.type_initial[i]->clientdata;
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
|
|
#endif
|
|
}
|
|
} else {
|
|
type = swig_module.type_initial[i];
|
|
}
|
|
|
|
/* Insert casting types */
|
|
cast = swig_module.cast_initial[i];
|
|
while (cast->type) {
|
|
/* Don't need to add information already in the list */
|
|
ret = 0;
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
|
|
#endif
|
|
if (swig_module.next != &swig_module) {
|
|
ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
|
|
#endif
|
|
}
|
|
if (ret) {
|
|
if (type == swig_module.type_initial[i]) {
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
|
|
#endif
|
|
cast->type = ret;
|
|
ret = 0;
|
|
} else {
|
|
/* Check for casting already in the list */
|
|
swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
|
|
#endif
|
|
if (!ocast) ret = 0;
|
|
}
|
|
}
|
|
|
|
if (!ret) {
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
|
|
#endif
|
|
if (type->cast) {
|
|
type->cast->prev = cast;
|
|
cast->next = type->cast;
|
|
}
|
|
type->cast = cast;
|
|
}
|
|
cast++;
|
|
}
|
|
/* Set entry in modules->types array equal to the type */
|
|
swig_module.types[i] = type;
|
|
}
|
|
swig_module.types[i] = 0;
|
|
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("**** SWIG_InitializeModule: Cast List ******\n");
|
|
for (i = 0; i < swig_module.size; ++i) {
|
|
int j = 0;
|
|
swig_cast_info *cast = swig_module.cast_initial[i];
|
|
printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
|
|
while (cast->type) {
|
|
printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
|
|
cast++;
|
|
++j;
|
|
}
|
|
printf("---- Total casts: %d\n",j);
|
|
}
|
|
printf("**** SWIG_InitializeModule: Cast List ******\n");
|
|
#endif
|
|
}
|
|
|
|
/* This function will propagate the clientdata field of type to
|
|
* any new swig_type_info structures that have been added into the list
|
|
* of equivalent types. It is like calling
|
|
* SWIG_TypeClientData(type, clientdata) a second time.
|
|
*/
|
|
SWIGRUNTIME void
|
|
SWIG_PropagateClientData(void) {
|
|
size_t i;
|
|
swig_cast_info *equiv;
|
|
static int init_run = 0;
|
|
|
|
if (init_run) return;
|
|
init_run = 1;
|
|
|
|
for (i = 0; i < swig_module.size; i++) {
|
|
if (swig_module.types[i]->clientdata) {
|
|
equiv = swig_module.types[i]->cast;
|
|
while (equiv) {
|
|
if (!equiv->converter) {
|
|
if (equiv->type && !equiv->type->clientdata)
|
|
SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
|
|
}
|
|
equiv = equiv->next;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
#if 0
|
|
{
|
|
/* c-mode */
|
|
#endif
|
|
}
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Python-specific SWIG API */
|
|
#define SWIG_newvarlink() SWIG_Python_newvarlink()
|
|
#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
|
|
#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* global variable support code.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
typedef struct swig_globalvar {
|
|
char *name; /* Name of global variable */
|
|
PyObject *(*get_attr)(void); /* Return the current value */
|
|
int (*set_attr)(PyObject *); /* Set the value */
|
|
struct swig_globalvar *next;
|
|
} swig_globalvar;
|
|
|
|
typedef struct swig_varlinkobject {
|
|
PyObject_HEAD
|
|
swig_globalvar *vars;
|
|
} swig_varlinkobject;
|
|
|
|
SWIGINTERN PyObject *
|
|
swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
return PyUnicode_InternFromString("<Swig global variables>");
|
|
#else
|
|
return PyString_FromString("<Swig global variables>");
|
|
#endif
|
|
}
|
|
|
|
SWIGINTERN PyObject *
|
|
swig_varlink_str(swig_varlinkobject *v) {
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
PyObject *str = PyUnicode_InternFromString("(");
|
|
PyObject *tail;
|
|
PyObject *joined;
|
|
swig_globalvar *var;
|
|
for (var = v->vars; var; var=var->next) {
|
|
tail = PyUnicode_FromString(var->name);
|
|
joined = PyUnicode_Concat(str, tail);
|
|
Py_DecRef(str);
|
|
Py_DecRef(tail);
|
|
str = joined;
|
|
if (var->next) {
|
|
tail = PyUnicode_InternFromString(", ");
|
|
joined = PyUnicode_Concat(str, tail);
|
|
Py_DecRef(str);
|
|
Py_DecRef(tail);
|
|
str = joined;
|
|
}
|
|
}
|
|
tail = PyUnicode_InternFromString(")");
|
|
joined = PyUnicode_Concat(str, tail);
|
|
Py_DecRef(str);
|
|
Py_DecRef(tail);
|
|
str = joined;
|
|
#else
|
|
PyObject *str = PyString_FromString("(");
|
|
swig_globalvar *var;
|
|
for (var = v->vars; var; var=var->next) {
|
|
PyString_ConcatAndDel(&str,PyString_FromString(var->name));
|
|
if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
|
|
}
|
|
PyString_ConcatAndDel(&str,PyString_FromString(")"));
|
|
#endif
|
|
return str;
|
|
}
|
|
|
|
SWIGINTERN int
|
|
swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
|
|
char *tmp;
|
|
PyObject *str = swig_varlink_str(v);
|
|
fprintf(fp,"Swig global variables ");
|
|
fprintf(fp,"%s\n", tmp = SWIG_Python_str_AsChar(str));
|
|
SWIG_Python_str_DelForPy3(tmp);
|
|
Py_DECREF(str);
|
|
return 0;
|
|
}
|
|
|
|
SWIGINTERN void
|
|
swig_varlink_dealloc(swig_varlinkobject *v) {
|
|
swig_globalvar *var = v->vars;
|
|
while (var) {
|
|
swig_globalvar *n = var->next;
|
|
free(var->name);
|
|
free(var);
|
|
var = n;
|
|
}
|
|
}
|
|
|
|
SWIGINTERN PyObject *
|
|
swig_varlink_getattr(swig_varlinkobject *v, char *n) {
|
|
PyObject *res = NULL;
|
|
swig_globalvar *var = v->vars;
|
|
while (var) {
|
|
if (strcmp(var->name,n) == 0) {
|
|
res = (*var->get_attr)();
|
|
break;
|
|
}
|
|
var = var->next;
|
|
}
|
|
if (res == NULL && !PyErr_Occurred()) {
|
|
PyErr_SetString(PyExc_NameError,"Unknown C global variable");
|
|
}
|
|
return res;
|
|
}
|
|
|
|
SWIGINTERN int
|
|
swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
|
|
int res = 1;
|
|
swig_globalvar *var = v->vars;
|
|
while (var) {
|
|
if (strcmp(var->name,n) == 0) {
|
|
res = (*var->set_attr)(p);
|
|
break;
|
|
}
|
|
var = var->next;
|
|
}
|
|
if (res == 1 && !PyErr_Occurred()) {
|
|
PyErr_SetString(PyExc_NameError,"Unknown C global variable");
|
|
}
|
|
return res;
|
|
}
|
|
|
|
SWIGINTERN PyTypeObject*
|
|
swig_varlink_type(void) {
|
|
static char varlink__doc__[] = "Swig var link object";
|
|
static PyTypeObject varlink_type;
|
|
static int type_init = 0;
|
|
if (!type_init) {
|
|
const PyTypeObject tmp
|
|
= {
|
|
/* PyObject header changed in Python 3 */
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
PyVarObject_HEAD_INIT(&PyType_Type, 0)
|
|
#else
|
|
PyObject_HEAD_INIT(NULL)
|
|
0, /* Number of items in variable part (ob_size) */
|
|
#endif
|
|
(char *)"swigvarlink", /* Type name (tp_name) */
|
|
sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
|
|
0, /* Itemsize (tp_itemsize) */
|
|
(destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
|
|
(printfunc) swig_varlink_print, /* Print (tp_print) */
|
|
(getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
|
|
(setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
|
|
0, /* tp_compare */
|
|
(reprfunc) swig_varlink_repr, /* tp_repr */
|
|
0, /* tp_as_number */
|
|
0, /* tp_as_sequence */
|
|
0, /* tp_as_mapping */
|
|
0, /* tp_hash */
|
|
0, /* tp_call */
|
|
(reprfunc) swig_varlink_str, /* tp_str */
|
|
0, /* tp_getattro */
|
|
0, /* tp_setattro */
|
|
0, /* tp_as_buffer */
|
|
0, /* tp_flags */
|
|
varlink__doc__, /* tp_doc */
|
|
0, /* tp_traverse */
|
|
0, /* tp_clear */
|
|
0, /* tp_richcompare */
|
|
0, /* tp_weaklistoffset */
|
|
#if PY_VERSION_HEX >= 0x02020000
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
|
|
#endif
|
|
#if PY_VERSION_HEX >= 0x02030000
|
|
0, /* tp_del */
|
|
#endif
|
|
#ifdef COUNT_ALLOCS
|
|
0,0,0,0 /* tp_alloc -> tp_next */
|
|
#endif
|
|
};
|
|
varlink_type = tmp;
|
|
/* for Python 3 we already assigned ob_type in PyVarObject_HEAD_INIT() */
|
|
#if PY_VERSION_HEX < 0x03000000
|
|
varlink_type.ob_type = &PyType_Type;
|
|
#endif
|
|
type_init = 1;
|
|
}
|
|
return &varlink_type;
|
|
}
|
|
|
|
/* Create a variable linking object for use later */
|
|
SWIGINTERN PyObject *
|
|
SWIG_Python_newvarlink(void) {
|
|
swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
|
|
if (result) {
|
|
result->vars = 0;
|
|
}
|
|
return ((PyObject*) result);
|
|
}
|
|
|
|
SWIGINTERN void
|
|
SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
|
|
swig_varlinkobject *v = (swig_varlinkobject *) p;
|
|
swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
|
|
if (gv) {
|
|
size_t size = strlen(name)+1;
|
|
gv->name = (char *)malloc(size);
|
|
if (gv->name) {
|
|
strncpy(gv->name,name,size);
|
|
gv->get_attr = get_attr;
|
|
gv->set_attr = set_attr;
|
|
gv->next = v->vars;
|
|
}
|
|
}
|
|
v->vars = gv;
|
|
}
|
|
|
|
SWIGINTERN PyObject *
|
|
SWIG_globals(void) {
|
|
static PyObject *_SWIG_globals = 0;
|
|
if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
|
|
return _SWIG_globals;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* constants/methods manipulation
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* Install Constants */
|
|
SWIGINTERN void
|
|
SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
|
|
PyObject *obj = 0;
|
|
size_t i;
|
|
for (i = 0; constants[i].type; ++i) {
|
|
switch(constants[i].type) {
|
|
case SWIG_PY_POINTER:
|
|
obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
|
|
break;
|
|
case SWIG_PY_BINARY:
|
|
obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
|
|
break;
|
|
default:
|
|
obj = 0;
|
|
break;
|
|
}
|
|
if (obj) {
|
|
PyDict_SetItemString(d, constants[i].name, obj);
|
|
Py_DECREF(obj);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------------*/
|
|
/* Fix SwigMethods to carry the callback ptrs when needed */
|
|
/* -----------------------------------------------------------------------------*/
|
|
|
|
SWIGINTERN void
|
|
SWIG_Python_FixMethods(PyMethodDef *methods,
|
|
swig_const_info *const_table,
|
|
swig_type_info **types,
|
|
swig_type_info **types_initial) {
|
|
size_t i;
|
|
for (i = 0; methods[i].ml_name; ++i) {
|
|
const char *c = methods[i].ml_doc;
|
|
if (c && (c = strstr(c, "swig_ptr: "))) {
|
|
int j;
|
|
swig_const_info *ci = 0;
|
|
const char *name = c + 10;
|
|
for (j = 0; const_table[j].type; ++j) {
|
|
if (strncmp(const_table[j].name, name,
|
|
strlen(const_table[j].name)) == 0) {
|
|
ci = &(const_table[j]);
|
|
break;
|
|
}
|
|
}
|
|
if (ci) {
|
|
size_t shift = (ci->ptype) - types;
|
|
swig_type_info *ty = types_initial[shift];
|
|
size_t ldoc = (c - methods[i].ml_doc);
|
|
size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
|
|
char *ndoc = (char*)malloc(ldoc + lptr + 10);
|
|
if (ndoc) {
|
|
char *buff = ndoc;
|
|
void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
|
|
if (ptr) {
|
|
strncpy(buff, methods[i].ml_doc, ldoc);
|
|
buff += ldoc;
|
|
strncpy(buff, "swig_ptr: ", 10);
|
|
buff += 10;
|
|
SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
|
|
methods[i].ml_doc = ndoc;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/* -----------------------------------------------------------------------------*
|
|
* Partial Init method
|
|
* -----------------------------------------------------------------------------*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
|
|
SWIGEXPORT
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
PyObject*
|
|
#else
|
|
void
|
|
#endif
|
|
SWIG_init(void) {
|
|
PyObject *m, *d;
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
static struct PyModuleDef SWIG_module = {
|
|
PyModuleDef_HEAD_INIT,
|
|
(char *) SWIG_name,
|
|
NULL,
|
|
-1,
|
|
SwigMethods,
|
|
NULL,
|
|
NULL,
|
|
NULL,
|
|
NULL
|
|
};
|
|
#endif
|
|
|
|
/* Fix SwigMethods to carry the callback ptrs when needed */
|
|
SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
|
|
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
m = PyModule_Create(&SWIG_module);
|
|
#else
|
|
m = Py_InitModule((char *) SWIG_name, SwigMethods);
|
|
#endif
|
|
d = PyModule_GetDict(m);
|
|
|
|
SWIG_InitializeModule(0);
|
|
SWIG_InstallConstants(d,swig_const_table);
|
|
|
|
|
|
SWIG_Python_SetConstant(d, "sizeof_CvContour",SWIG_From_size_t(static_cast< size_t >(sizeof(CvContour))));
|
|
SWIG_Python_SetConstant(d, "sizeof_CvPoint",SWIG_From_size_t(static_cast< size_t >(sizeof(CvPoint))));
|
|
SWIG_Python_SetConstant(d, "sizeof_CvSeq",SWIG_From_size_t(static_cast< size_t >(sizeof(CvSeq))));
|
|
SWIG_Python_SetConstant(d, "CV_AUTOSTEP",SWIG_From_int(static_cast< int >(0x7fffffff)));
|
|
SWIG_Python_SetConstant(d, "CV_MAX_ARR",SWIG_From_int(static_cast< int >(10)));
|
|
SWIG_Python_SetConstant(d, "CV_NO_DEPTH_CHECK",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_NO_CN_CHECK",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_NO_SIZE_CHECK",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_CMP_EQ",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_CMP_GT",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_CMP_GE",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_CMP_LT",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_CMP_LE",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_CMP_NE",SWIG_From_int(static_cast< int >(5)));
|
|
SWIG_Python_SetConstant(d, "CV_CHECK_RANGE",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_CHECK_QUIET",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_RAND_UNI",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_RAND_NORMAL",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_SORT_EVERY_ROW",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_SORT_EVERY_COLUMN",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_SORT_ASCENDING",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_SORT_DESCENDING",SWIG_From_int(static_cast< int >(16)));
|
|
SWIG_Python_SetConstant(d, "CV_GEMM_A_T",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_GEMM_B_T",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_GEMM_C_T",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_SVD_MODIFY_A",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_SVD_U_T",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_SVD_V_T",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_LU",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_SVD",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_SVD_SYM",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_CHOLESKY",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_QR",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_NORMAL",SWIG_From_int(static_cast< int >(16)));
|
|
SWIG_Python_SetConstant(d, "CV_COVAR_SCRAMBLED",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_COVAR_NORMAL",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_COVAR_USE_AVG",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_COVAR_SCALE",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_COVAR_ROWS",SWIG_From_int(static_cast< int >(8)));
|
|
SWIG_Python_SetConstant(d, "CV_COVAR_COLS",SWIG_From_int(static_cast< int >(16)));
|
|
SWIG_Python_SetConstant(d, "CV_PCA_DATA_AS_ROW",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_PCA_DATA_AS_COL",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_PCA_USE_AVG",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_C",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_L1",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_L2",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_NORM_MASK",SWIG_From_int(static_cast< int >(7)));
|
|
SWIG_Python_SetConstant(d, "CV_RELATIVE",SWIG_From_int(static_cast< int >(8)));
|
|
SWIG_Python_SetConstant(d, "CV_DIFF",SWIG_From_int(static_cast< int >(16)));
|
|
SWIG_Python_SetConstant(d, "CV_MINMAX",SWIG_From_int(static_cast< int >(32)));
|
|
SWIG_Python_SetConstant(d, "CV_DIFF_C",SWIG_From_int(static_cast< int >((16|1))));
|
|
SWIG_Python_SetConstant(d, "CV_DIFF_L1",SWIG_From_int(static_cast< int >((16|2))));
|
|
SWIG_Python_SetConstant(d, "CV_DIFF_L2",SWIG_From_int(static_cast< int >((16|4))));
|
|
SWIG_Python_SetConstant(d, "CV_RELATIVE_C",SWIG_From_int(static_cast< int >((8|1))));
|
|
SWIG_Python_SetConstant(d, "CV_RELATIVE_L1",SWIG_From_int(static_cast< int >((8|2))));
|
|
SWIG_Python_SetConstant(d, "CV_RELATIVE_L2",SWIG_From_int(static_cast< int >((8|4))));
|
|
SWIG_Python_SetConstant(d, "CV_REDUCE_SUM",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_REDUCE_AVG",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_REDUCE_MAX",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_REDUCE_MIN",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_DXT_FORWARD",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_DXT_INVERSE",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_DXT_SCALE",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_DXT_INV_SCALE",SWIG_From_int(static_cast< int >((1+2))));
|
|
SWIG_Python_SetConstant(d, "CV_DXT_INVERSE_SCALE",SWIG_From_int(static_cast< int >((1+2))));
|
|
SWIG_Python_SetConstant(d, "CV_DXT_ROWS",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_DXT_MUL_CONJ",SWIG_From_int(static_cast< int >(8)));
|
|
SWIG_Python_SetConstant(d, "CV_FRONT",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_BACK",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_GRAPH_VERTEX",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_GRAPH_TREE_EDGE",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_GRAPH_BACK_EDGE",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_GRAPH_FORWARD_EDGE",SWIG_From_int(static_cast< int >(8)));
|
|
SWIG_Python_SetConstant(d, "CV_GRAPH_CROSS_EDGE",SWIG_From_int(static_cast< int >(16)));
|
|
SWIG_Python_SetConstant(d, "CV_GRAPH_ANY_EDGE",SWIG_From_int(static_cast< int >(30)));
|
|
SWIG_Python_SetConstant(d, "CV_GRAPH_NEW_TREE",SWIG_From_int(static_cast< int >(32)));
|
|
SWIG_Python_SetConstant(d, "CV_GRAPH_BACKTRACKING",SWIG_From_int(static_cast< int >(64)));
|
|
SWIG_Python_SetConstant(d, "CV_GRAPH_OVER",SWIG_From_int(static_cast< int >(-1)));
|
|
SWIG_Python_SetConstant(d, "CV_GRAPH_ALL_ITEMS",SWIG_From_int(static_cast< int >(-1)));
|
|
SWIG_Python_SetConstant(d, "CV_GRAPH_ITEM_VISITED_FLAG",SWIG_From_int(static_cast< int >((1 << 30))));
|
|
SWIG_Python_SetConstant(d, "CV_GRAPH_SEARCH_TREE_NODE_FLAG",SWIG_From_int(static_cast< int >((1 << 29))));
|
|
SWIG_Python_SetConstant(d, "CV_GRAPH_FORWARD_EDGE_FLAG",SWIG_From_int(static_cast< int >((1 << 28))));
|
|
SWIG_Python_SetConstant(d, "CV_FILLED",SWIG_From_int(static_cast< int >(-1)));
|
|
SWIG_Python_SetConstant(d, "CV_AA",SWIG_From_int(static_cast< int >(16)));
|
|
SWIG_Python_SetConstant(d, "CV_FONT_HERSHEY_SIMPLEX",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_FONT_HERSHEY_PLAIN",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_FONT_HERSHEY_DUPLEX",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_FONT_HERSHEY_COMPLEX",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_FONT_HERSHEY_TRIPLEX",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_FONT_HERSHEY_COMPLEX_SMALL",SWIG_From_int(static_cast< int >(5)));
|
|
SWIG_Python_SetConstant(d, "CV_FONT_HERSHEY_SCRIPT_SIMPLEX",SWIG_From_int(static_cast< int >(6)));
|
|
SWIG_Python_SetConstant(d, "CV_FONT_HERSHEY_SCRIPT_COMPLEX",SWIG_From_int(static_cast< int >(7)));
|
|
SWIG_Python_SetConstant(d, "CV_FONT_ITALIC",SWIG_From_int(static_cast< int >(16)));
|
|
SWIG_Python_SetConstant(d, "CV_FONT_VECTOR0",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_KMEANS_USE_INITIAL_LABELS",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_ErrModeLeaf",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_ErrModeParent",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_ErrModeSilent",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_MAJOR_VERSION",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_MINOR_VERSION",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_SUBMINOR_VERSION",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_PI",SWIG_From_double(static_cast< double >(3.1415926535897932384626433832795)));
|
|
SWIG_Python_SetConstant(d, "CV_LOG2",SWIG_From_double(static_cast< double >(0.69314718055994530941723212145818)));
|
|
SWIG_Python_SetConstant(d, "IPL_DEPTH_SIGN",SWIG_From_int(static_cast< int >(0x80000000)));
|
|
SWIG_Python_SetConstant(d, "IPL_DEPTH_1U",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "IPL_DEPTH_8U",SWIG_From_int(static_cast< int >(8)));
|
|
SWIG_Python_SetConstant(d, "IPL_DEPTH_16U",SWIG_From_int(static_cast< int >(16)));
|
|
SWIG_Python_SetConstant(d, "IPL_DEPTH_32F",SWIG_From_int(static_cast< int >(32)));
|
|
SWIG_Python_SetConstant(d, "IPL_DEPTH_8S",SWIG_From_int(static_cast< int >((0x80000000|8))));
|
|
SWIG_Python_SetConstant(d, "IPL_DEPTH_16S",SWIG_From_int(static_cast< int >((0x80000000|16))));
|
|
SWIG_Python_SetConstant(d, "IPL_DEPTH_32S",SWIG_From_int(static_cast< int >((0x80000000|32))));
|
|
SWIG_Python_SetConstant(d, "IPL_DATA_ORDER_PIXEL",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "IPL_DATA_ORDER_PLANE",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "IPL_ORIGIN_TL",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "IPL_ORIGIN_BL",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "IPL_ALIGN_4BYTES",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "IPL_ALIGN_8BYTES",SWIG_From_int(static_cast< int >(8)));
|
|
SWIG_Python_SetConstant(d, "IPL_ALIGN_16BYTES",SWIG_From_int(static_cast< int >(16)));
|
|
SWIG_Python_SetConstant(d, "IPL_ALIGN_32BYTES",SWIG_From_int(static_cast< int >(32)));
|
|
SWIG_Python_SetConstant(d, "IPL_ALIGN_DWORD",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "IPL_ALIGN_QWORD",SWIG_From_int(static_cast< int >(8)));
|
|
SWIG_Python_SetConstant(d, "IPL_BORDER_CONSTANT",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "IPL_BORDER_REPLICATE",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "IPL_BORDER_REFLECT",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "IPL_BORDER_WRAP",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "IPL_IMAGE_HEADER",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "IPL_IMAGE_DATA",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "IPL_IMAGE_ROI",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "IPL_BORDER_REFLECT_101",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_TYPE_NAME_IMAGE",SWIG_FromCharPtr("opencv-image"));
|
|
SWIG_Python_SetConstant(d, "IPL_DEPTH_64F",SWIG_From_int(static_cast< int >(64)));
|
|
SWIG_Python_SetConstant(d, "CV_CN_MAX",SWIG_From_int(static_cast< int >(64)));
|
|
SWIG_Python_SetConstant(d, "CV_CN_SHIFT",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_DEPTH_MAX",SWIG_From_int(static_cast< int >((1 << 3))));
|
|
SWIG_Python_SetConstant(d, "CV_8U",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_8S",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_16U",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_16S",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_32S",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_32F",SWIG_From_int(static_cast< int >(5)));
|
|
SWIG_Python_SetConstant(d, "CV_64F",SWIG_From_int(static_cast< int >(6)));
|
|
SWIG_Python_SetConstant(d, "CV_USRTYPE1",SWIG_From_int(static_cast< int >(7)));
|
|
SWIG_Python_SetConstant(d, "CV_MAT_DEPTH_MASK",SWIG_From_int(static_cast< int >(((1 << 3) -1))));
|
|
SWIG_Python_SetConstant(d, "CV_8UC1",SWIG_From_int(static_cast< int >((((0) &((1 << 3) -1)) +(((1) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_8UC2",SWIG_From_int(static_cast< int >((((0) &((1 << 3) -1)) +(((2) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_8UC3",SWIG_From_int(static_cast< int >((((0) &((1 << 3) -1)) +(((3) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_8UC4",SWIG_From_int(static_cast< int >((((0) &((1 << 3) -1)) +(((4) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_8SC1",SWIG_From_int(static_cast< int >((((1) &((1 << 3) -1)) +(((1) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_8SC2",SWIG_From_int(static_cast< int >((((1) &((1 << 3) -1)) +(((2) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_8SC3",SWIG_From_int(static_cast< int >((((1) &((1 << 3) -1)) +(((3) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_8SC4",SWIG_From_int(static_cast< int >((((1) &((1 << 3) -1)) +(((4) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_16UC1",SWIG_From_int(static_cast< int >((((2) &((1 << 3) -1)) +(((1) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_16UC2",SWIG_From_int(static_cast< int >((((2) &((1 << 3) -1)) +(((2) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_16UC3",SWIG_From_int(static_cast< int >((((2) &((1 << 3) -1)) +(((3) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_16UC4",SWIG_From_int(static_cast< int >((((2) &((1 << 3) -1)) +(((4) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_16SC1",SWIG_From_int(static_cast< int >((((3) &((1 << 3) -1)) +(((1) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_16SC2",SWIG_From_int(static_cast< int >((((3) &((1 << 3) -1)) +(((2) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_16SC3",SWIG_From_int(static_cast< int >((((3) &((1 << 3) -1)) +(((3) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_16SC4",SWIG_From_int(static_cast< int >((((3) &((1 << 3) -1)) +(((4) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_32SC1",SWIG_From_int(static_cast< int >((((4) &((1 << 3) -1)) +(((1) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_32SC2",SWIG_From_int(static_cast< int >((((4) &((1 << 3) -1)) +(((2) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_32SC3",SWIG_From_int(static_cast< int >((((4) &((1 << 3) -1)) +(((3) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_32SC4",SWIG_From_int(static_cast< int >((((4) &((1 << 3) -1)) +(((4) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_32FC1",SWIG_From_int(static_cast< int >((((5) &((1 << 3) -1)) +(((1) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_32FC2",SWIG_From_int(static_cast< int >((((5) &((1 << 3) -1)) +(((2) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_32FC3",SWIG_From_int(static_cast< int >((((5) &((1 << 3) -1)) +(((3) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_32FC4",SWIG_From_int(static_cast< int >((((5) &((1 << 3) -1)) +(((4) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_64FC1",SWIG_From_int(static_cast< int >((((6) &((1 << 3) -1)) +(((1) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_64FC2",SWIG_From_int(static_cast< int >((((6) &((1 << 3) -1)) +(((2) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_64FC3",SWIG_From_int(static_cast< int >((((6) &((1 << 3) -1)) +(((3) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_64FC4",SWIG_From_int(static_cast< int >((((6) &((1 << 3) -1)) +(((4) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_AUTO_STEP",SWIG_From_int(static_cast< int >(0x7fffffff)));
|
|
SWIG_Python_SetConstant(d, "CV_MAT_CN_MASK",SWIG_From_int(static_cast< int >(((64-1) << 3))));
|
|
SWIG_Python_SetConstant(d, "CV_MAT_TYPE_MASK",SWIG_From_int(static_cast< int >(((1 << 3) *64-1))));
|
|
SWIG_Python_SetConstant(d, "CV_MAT_CONT_FLAG_SHIFT",SWIG_From_int(static_cast< int >(14)));
|
|
SWIG_Python_SetConstant(d, "CV_MAT_CONT_FLAG",SWIG_From_int(static_cast< int >((1 << 14))));
|
|
SWIG_Python_SetConstant(d, "CV_MAT_TEMP_FLAG_SHIFT",SWIG_From_int(static_cast< int >(15)));
|
|
SWIG_Python_SetConstant(d, "CV_MAT_TEMP_FLAG",SWIG_From_int(static_cast< int >((1 << 15))));
|
|
SWIG_Python_SetConstant(d, "CV_MAGIC_MASK",SWIG_From_int(static_cast< int >(0xFFFF0000)));
|
|
SWIG_Python_SetConstant(d, "CV_MAT_MAGIC_VAL",SWIG_From_int(static_cast< int >(0x42420000)));
|
|
SWIG_Python_SetConstant(d, "CV_TYPE_NAME_MAT",SWIG_FromCharPtr("opencv-matrix"));
|
|
SWIG_Python_SetConstant(d, "CV_MATND_MAGIC_VAL",SWIG_From_int(static_cast< int >(0x42430000)));
|
|
SWIG_Python_SetConstant(d, "CV_TYPE_NAME_MATND",SWIG_FromCharPtr("opencv-nd-matrix"));
|
|
SWIG_Python_SetConstant(d, "CV_MAX_DIM",SWIG_From_int(static_cast< int >(32)));
|
|
SWIG_Python_SetConstant(d, "CV_MAX_DIM_HEAP",SWIG_From_int(static_cast< int >((1 << 16))));
|
|
SWIG_Python_SetConstant(d, "CV_SPARSE_MAT_MAGIC_VAL",SWIG_From_int(static_cast< int >(0x42440000)));
|
|
SWIG_Python_SetConstant(d, "CV_TYPE_NAME_SPARSE_MAT",SWIG_FromCharPtr("opencv-sparse-matrix"));
|
|
SWIG_Python_SetConstant(d, "CV_HIST_MAGIC_VAL",SWIG_From_int(static_cast< int >(0x42450000)));
|
|
SWIG_Python_SetConstant(d, "CV_HIST_UNIFORM_FLAG",SWIG_From_int(static_cast< int >((1 << 10))));
|
|
SWIG_Python_SetConstant(d, "CV_HIST_RANGES_FLAG",SWIG_From_int(static_cast< int >((1 << 11))));
|
|
SWIG_Python_SetConstant(d, "CV_HIST_ARRAY",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_HIST_SPARSE",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_HIST_TREE",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_HIST_UNIFORM",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_TERMCRIT_ITER",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_TERMCRIT_NUMBER",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_TERMCRIT_EPS",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_WHOLE_SEQ_END_INDEX",SWIG_From_int(static_cast< int >(0x3fffffff)));
|
|
SWIG_Python_SetConstant(d, "CV_STORAGE_MAGIC_VAL",SWIG_From_int(static_cast< int >(0x42890000)));
|
|
SWIG_Python_SetConstant(d, "CV_TYPE_NAME_SEQ",SWIG_FromCharPtr("opencv-sequence"));
|
|
SWIG_Python_SetConstant(d, "CV_TYPE_NAME_SEQ_TREE",SWIG_FromCharPtr("opencv-sequence-tree"));
|
|
SWIG_Python_SetConstant(d, "CV_SET_ELEM_IDX_MASK",SWIG_From_int(static_cast< int >(((1 << 26) -1))));
|
|
SWIG_Python_SetConstant(d, "CV_TYPE_NAME_GRAPH",SWIG_FromCharPtr("opencv-graph"));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_MAGIC_VAL",SWIG_From_int(static_cast< int >(0x42990000)));
|
|
SWIG_Python_SetConstant(d, "CV_SET_MAGIC_VAL",SWIG_From_int(static_cast< int >(0x42980000)));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_ELTYPE_BITS",SWIG_From_int(static_cast< int >(9)));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_ELTYPE_MASK",SWIG_From_int(static_cast< int >(((1 << 9) -1))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_ELTYPE_POINT",SWIG_From_int(static_cast< int >((((4) &((1 << 3) -1)) +(((2) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_ELTYPE_CODE",SWIG_From_int(static_cast< int >((((0) &((1 << 3) -1)) +(((1) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_ELTYPE_GENERIC",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_ELTYPE_PTR",SWIG_From_int(static_cast< int >(7)));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_ELTYPE_PPOINT",SWIG_From_int(static_cast< int >(7)));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_ELTYPE_INDEX",SWIG_From_int(static_cast< int >((((4) &((1 << 3) -1)) +(((1) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_ELTYPE_GRAPH_EDGE",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_ELTYPE_GRAPH_VERTEX",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_ELTYPE_TRIAN_ATR",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_ELTYPE_CONNECTED_COMP",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_ELTYPE_POINT3D",SWIG_From_int(static_cast< int >((((5) &((1 << 3) -1)) +(((3) -1) << 3)))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_KIND_BITS",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_KIND_MASK",SWIG_From_int(static_cast< int >((((1 << 3) -1) << 9))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_KIND_GENERIC",SWIG_From_int(static_cast< int >((0 << 9))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_KIND_CURVE",SWIG_From_int(static_cast< int >((1 << 9))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_KIND_BIN_TREE",SWIG_From_int(static_cast< int >((2 << 9))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_KIND_GRAPH",SWIG_From_int(static_cast< int >((3 << 9))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_KIND_SUBDIV2D",SWIG_From_int(static_cast< int >((4 << 9))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_FLAG_SHIFT",SWIG_From_int(static_cast< int >((3+9))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_FLAG_CLOSED",SWIG_From_int(static_cast< int >((1 << (3+9)))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_FLAG_SIMPLE",SWIG_From_int(static_cast< int >((2 << (3+9)))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_FLAG_CONVEX",SWIG_From_int(static_cast< int >((4 << (3+9)))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_FLAG_HOLE",SWIG_From_int(static_cast< int >((8 << (3+9)))));
|
|
SWIG_Python_SetConstant(d, "CV_GRAPH_FLAG_ORIENTED",SWIG_From_int(static_cast< int >((1 << (3+9)))));
|
|
SWIG_Python_SetConstant(d, "CV_GRAPH",SWIG_From_int(static_cast< int >((3 << 9))));
|
|
SWIG_Python_SetConstant(d, "CV_ORIENTED_GRAPH",SWIG_From_int(static_cast< int >(((3 << 9)|(1 << (3+9))))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_POINT_SET",SWIG_From_int(static_cast< int >(((0 << 9)|(((4) &((1 << 3) -1)) +(((2) -1) << 3))))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_POINT3D_SET",SWIG_From_int(static_cast< int >(((0 << 9)|(((5) &((1 << 3) -1)) +(((3) -1) << 3))))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_POLYLINE",SWIG_From_int(static_cast< int >(((1 << 9)|(((4) &((1 << 3) -1)) +(((2) -1) << 3))))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_POLYGON",SWIG_From_int(static_cast< int >(((1 << (3+9))|((1 << 9)|(((4) &((1 << 3) -1)) +(((2) -1) << 3)))))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_CONTOUR",SWIG_From_int(static_cast< int >(((1 << (3+9))|((1 << 9)|(((4) &((1 << 3) -1)) +(((2) -1) << 3)))))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_SIMPLE_POLYGON",SWIG_From_int(static_cast< int >(((2 << (3+9))|((1 << (3+9))|((1 << 9)|(((4) &((1 << 3) -1)) +(((2) -1) << 3))))))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_CHAIN",SWIG_From_int(static_cast< int >(((1 << 9)|(((0) &((1 << 3) -1)) +(((1) -1) << 3))))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_CHAIN_CONTOUR",SWIG_From_int(static_cast< int >(((1 << (3+9))|((1 << 9)|(((0) &((1 << 3) -1)) +(((1) -1) << 3)))))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_POLYGON_TREE",SWIG_From_int(static_cast< int >(((2 << 9)|0))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_CONNECTED_COMP",SWIG_From_int(static_cast< int >(((0 << 9)|0))));
|
|
SWIG_Python_SetConstant(d, "CV_SEQ_INDEX",SWIG_From_int(static_cast< int >(((0 << 9)|(((4) &((1 << 3) -1)) +(((1) -1) << 3))))));
|
|
SWIG_Python_SetConstant(d, "CV_STORAGE_READ",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_STORAGE_WRITE",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_STORAGE_WRITE_TEXT",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_STORAGE_WRITE_BINARY",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_STORAGE_APPEND",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_NODE_NONE",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_NODE_INT",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_NODE_INTEGER",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_NODE_REAL",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_NODE_FLOAT",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_NODE_STR",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_NODE_STRING",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_NODE_REF",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_NODE_SEQ",SWIG_From_int(static_cast< int >(5)));
|
|
SWIG_Python_SetConstant(d, "CV_NODE_MAP",SWIG_From_int(static_cast< int >(6)));
|
|
SWIG_Python_SetConstant(d, "CV_NODE_TYPE_MASK",SWIG_From_int(static_cast< int >(7)));
|
|
SWIG_Python_SetConstant(d, "CV_NODE_FLOW",SWIG_From_int(static_cast< int >(8)));
|
|
SWIG_Python_SetConstant(d, "CV_NODE_USER",SWIG_From_int(static_cast< int >(16)));
|
|
SWIG_Python_SetConstant(d, "CV_NODE_EMPTY",SWIG_From_int(static_cast< int >(32)));
|
|
SWIG_Python_SetConstant(d, "CV_NODE_NAMED",SWIG_From_int(static_cast< int >(64)));
|
|
SWIG_Python_SetConstant(d, "CV_NODE_SEQ_SIMPLE",SWIG_From_int(static_cast< int >(256)));
|
|
SWIG_Python_SetConstant(d, "CV_StsOk",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_StsBackTrace",SWIG_From_int(static_cast< int >(-1)));
|
|
SWIG_Python_SetConstant(d, "CV_StsError",SWIG_From_int(static_cast< int >(-2)));
|
|
SWIG_Python_SetConstant(d, "CV_StsInternal",SWIG_From_int(static_cast< int >(-3)));
|
|
SWIG_Python_SetConstant(d, "CV_StsNoMem",SWIG_From_int(static_cast< int >(-4)));
|
|
SWIG_Python_SetConstant(d, "CV_StsBadArg",SWIG_From_int(static_cast< int >(-5)));
|
|
SWIG_Python_SetConstant(d, "CV_StsBadFunc",SWIG_From_int(static_cast< int >(-6)));
|
|
SWIG_Python_SetConstant(d, "CV_StsNoConv",SWIG_From_int(static_cast< int >(-7)));
|
|
SWIG_Python_SetConstant(d, "CV_StsAutoTrace",SWIG_From_int(static_cast< int >(-8)));
|
|
SWIG_Python_SetConstant(d, "CV_HeaderIsNull",SWIG_From_int(static_cast< int >(-9)));
|
|
SWIG_Python_SetConstant(d, "CV_BadImageSize",SWIG_From_int(static_cast< int >(-10)));
|
|
SWIG_Python_SetConstant(d, "CV_BadOffset",SWIG_From_int(static_cast< int >(-11)));
|
|
SWIG_Python_SetConstant(d, "CV_BadDataPtr",SWIG_From_int(static_cast< int >(-12)));
|
|
SWIG_Python_SetConstant(d, "CV_BadStep",SWIG_From_int(static_cast< int >(-13)));
|
|
SWIG_Python_SetConstant(d, "CV_BadModelOrChSeq",SWIG_From_int(static_cast< int >(-14)));
|
|
SWIG_Python_SetConstant(d, "CV_BadNumChannels",SWIG_From_int(static_cast< int >(-15)));
|
|
SWIG_Python_SetConstant(d, "CV_BadNumChannel1U",SWIG_From_int(static_cast< int >(-16)));
|
|
SWIG_Python_SetConstant(d, "CV_BadDepth",SWIG_From_int(static_cast< int >(-17)));
|
|
SWIG_Python_SetConstant(d, "CV_BadAlphaChannel",SWIG_From_int(static_cast< int >(-18)));
|
|
SWIG_Python_SetConstant(d, "CV_BadOrder",SWIG_From_int(static_cast< int >(-19)));
|
|
SWIG_Python_SetConstant(d, "CV_BadOrigin",SWIG_From_int(static_cast< int >(-20)));
|
|
SWIG_Python_SetConstant(d, "CV_BadAlign",SWIG_From_int(static_cast< int >(-21)));
|
|
SWIG_Python_SetConstant(d, "CV_BadCallBack",SWIG_From_int(static_cast< int >(-22)));
|
|
SWIG_Python_SetConstant(d, "CV_BadTileSize",SWIG_From_int(static_cast< int >(-23)));
|
|
SWIG_Python_SetConstant(d, "CV_BadCOI",SWIG_From_int(static_cast< int >(-24)));
|
|
SWIG_Python_SetConstant(d, "CV_BadROISize",SWIG_From_int(static_cast< int >(-25)));
|
|
SWIG_Python_SetConstant(d, "CV_MaskIsTiled",SWIG_From_int(static_cast< int >(-26)));
|
|
SWIG_Python_SetConstant(d, "CV_StsNullPtr",SWIG_From_int(static_cast< int >(-27)));
|
|
SWIG_Python_SetConstant(d, "CV_StsVecLengthErr",SWIG_From_int(static_cast< int >(-28)));
|
|
SWIG_Python_SetConstant(d, "CV_StsFilterStructContentErr",SWIG_From_int(static_cast< int >(-29)));
|
|
SWIG_Python_SetConstant(d, "CV_StsKernelStructContentErr",SWIG_From_int(static_cast< int >(-30)));
|
|
SWIG_Python_SetConstant(d, "CV_StsFilterOffsetErr",SWIG_From_int(static_cast< int >(-31)));
|
|
SWIG_Python_SetConstant(d, "CV_StsBadSize",SWIG_From_int(static_cast< int >(-201)));
|
|
SWIG_Python_SetConstant(d, "CV_StsDivByZero",SWIG_From_int(static_cast< int >(-202)));
|
|
SWIG_Python_SetConstant(d, "CV_StsInplaceNotSupported",SWIG_From_int(static_cast< int >(-203)));
|
|
SWIG_Python_SetConstant(d, "CV_StsObjectNotFound",SWIG_From_int(static_cast< int >(-204)));
|
|
SWIG_Python_SetConstant(d, "CV_StsUnmatchedFormats",SWIG_From_int(static_cast< int >(-205)));
|
|
SWIG_Python_SetConstant(d, "CV_StsBadFlag",SWIG_From_int(static_cast< int >(-206)));
|
|
SWIG_Python_SetConstant(d, "CV_StsBadPoint",SWIG_From_int(static_cast< int >(-207)));
|
|
SWIG_Python_SetConstant(d, "CV_StsBadMask",SWIG_From_int(static_cast< int >(-208)));
|
|
SWIG_Python_SetConstant(d, "CV_StsUnmatchedSizes",SWIG_From_int(static_cast< int >(-209)));
|
|
SWIG_Python_SetConstant(d, "CV_StsUnsupportedFormat",SWIG_From_int(static_cast< int >(-210)));
|
|
SWIG_Python_SetConstant(d, "CV_StsOutOfRange",SWIG_From_int(static_cast< int >(-211)));
|
|
SWIG_Python_SetConstant(d, "CV_StsParseError",SWIG_From_int(static_cast< int >(-212)));
|
|
SWIG_Python_SetConstant(d, "CV_StsNotImplemented",SWIG_From_int(static_cast< int >(-213)));
|
|
SWIG_Python_SetConstant(d, "CV_StsBadMemBlock",SWIG_From_int(static_cast< int >(-214)));
|
|
SWIG_Python_SetConstant(d, "CV_StsAssert",SWIG_From_int(static_cast< int >(-215)));
|
|
SWIG_Python_SetConstant(d, "CV_BLUR_NO_SCALE",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_BLUR",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_GAUSSIAN",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_MEDIAN",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_BILATERAL",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_INPAINT_NS",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_INPAINT_TELEA",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_SCHARR",SWIG_From_int(static_cast< int >(-1)));
|
|
SWIG_Python_SetConstant(d, "CV_MAX_SOBEL_KSIZE",SWIG_From_int(static_cast< int >(7)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR2BGRA",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_RGB2RGBA",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_BGRA2BGR",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_RGBA2RGB",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR2RGBA",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_RGB2BGRA",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_RGBA2BGR",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_BGRA2RGB",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR2RGB",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_RGB2BGR",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_BGRA2RGBA",SWIG_From_int(static_cast< int >(5)));
|
|
SWIG_Python_SetConstant(d, "CV_RGBA2BGRA",SWIG_From_int(static_cast< int >(5)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR2GRAY",SWIG_From_int(static_cast< int >(6)));
|
|
SWIG_Python_SetConstant(d, "CV_RGB2GRAY",SWIG_From_int(static_cast< int >(7)));
|
|
SWIG_Python_SetConstant(d, "CV_GRAY2BGR",SWIG_From_int(static_cast< int >(8)));
|
|
SWIG_Python_SetConstant(d, "CV_GRAY2RGB",SWIG_From_int(static_cast< int >(8)));
|
|
SWIG_Python_SetConstant(d, "CV_GRAY2BGRA",SWIG_From_int(static_cast< int >(9)));
|
|
SWIG_Python_SetConstant(d, "CV_GRAY2RGBA",SWIG_From_int(static_cast< int >(9)));
|
|
SWIG_Python_SetConstant(d, "CV_BGRA2GRAY",SWIG_From_int(static_cast< int >(10)));
|
|
SWIG_Python_SetConstant(d, "CV_RGBA2GRAY",SWIG_From_int(static_cast< int >(11)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR2BGR565",SWIG_From_int(static_cast< int >(12)));
|
|
SWIG_Python_SetConstant(d, "CV_RGB2BGR565",SWIG_From_int(static_cast< int >(13)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR5652BGR",SWIG_From_int(static_cast< int >(14)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR5652RGB",SWIG_From_int(static_cast< int >(15)));
|
|
SWIG_Python_SetConstant(d, "CV_BGRA2BGR565",SWIG_From_int(static_cast< int >(16)));
|
|
SWIG_Python_SetConstant(d, "CV_RGBA2BGR565",SWIG_From_int(static_cast< int >(17)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR5652BGRA",SWIG_From_int(static_cast< int >(18)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR5652RGBA",SWIG_From_int(static_cast< int >(19)));
|
|
SWIG_Python_SetConstant(d, "CV_GRAY2BGR565",SWIG_From_int(static_cast< int >(20)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR5652GRAY",SWIG_From_int(static_cast< int >(21)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR2BGR555",SWIG_From_int(static_cast< int >(22)));
|
|
SWIG_Python_SetConstant(d, "CV_RGB2BGR555",SWIG_From_int(static_cast< int >(23)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR5552BGR",SWIG_From_int(static_cast< int >(24)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR5552RGB",SWIG_From_int(static_cast< int >(25)));
|
|
SWIG_Python_SetConstant(d, "CV_BGRA2BGR555",SWIG_From_int(static_cast< int >(26)));
|
|
SWIG_Python_SetConstant(d, "CV_RGBA2BGR555",SWIG_From_int(static_cast< int >(27)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR5552BGRA",SWIG_From_int(static_cast< int >(28)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR5552RGBA",SWIG_From_int(static_cast< int >(29)));
|
|
SWIG_Python_SetConstant(d, "CV_GRAY2BGR555",SWIG_From_int(static_cast< int >(30)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR5552GRAY",SWIG_From_int(static_cast< int >(31)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR2XYZ",SWIG_From_int(static_cast< int >(32)));
|
|
SWIG_Python_SetConstant(d, "CV_RGB2XYZ",SWIG_From_int(static_cast< int >(33)));
|
|
SWIG_Python_SetConstant(d, "CV_XYZ2BGR",SWIG_From_int(static_cast< int >(34)));
|
|
SWIG_Python_SetConstant(d, "CV_XYZ2RGB",SWIG_From_int(static_cast< int >(35)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR2YCrCb",SWIG_From_int(static_cast< int >(36)));
|
|
SWIG_Python_SetConstant(d, "CV_RGB2YCrCb",SWIG_From_int(static_cast< int >(37)));
|
|
SWIG_Python_SetConstant(d, "CV_YCrCb2BGR",SWIG_From_int(static_cast< int >(38)));
|
|
SWIG_Python_SetConstant(d, "CV_YCrCb2RGB",SWIG_From_int(static_cast< int >(39)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR2HSV",SWIG_From_int(static_cast< int >(40)));
|
|
SWIG_Python_SetConstant(d, "CV_RGB2HSV",SWIG_From_int(static_cast< int >(41)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR2Lab",SWIG_From_int(static_cast< int >(44)));
|
|
SWIG_Python_SetConstant(d, "CV_RGB2Lab",SWIG_From_int(static_cast< int >(45)));
|
|
SWIG_Python_SetConstant(d, "CV_BayerBG2BGR",SWIG_From_int(static_cast< int >(46)));
|
|
SWIG_Python_SetConstant(d, "CV_BayerGB2BGR",SWIG_From_int(static_cast< int >(47)));
|
|
SWIG_Python_SetConstant(d, "CV_BayerRG2BGR",SWIG_From_int(static_cast< int >(48)));
|
|
SWIG_Python_SetConstant(d, "CV_BayerGR2BGR",SWIG_From_int(static_cast< int >(49)));
|
|
SWIG_Python_SetConstant(d, "CV_BayerBG2RGB",SWIG_From_int(static_cast< int >(48)));
|
|
SWIG_Python_SetConstant(d, "CV_BayerGB2RGB",SWIG_From_int(static_cast< int >(49)));
|
|
SWIG_Python_SetConstant(d, "CV_BayerRG2RGB",SWIG_From_int(static_cast< int >(46)));
|
|
SWIG_Python_SetConstant(d, "CV_BayerGR2RGB",SWIG_From_int(static_cast< int >(47)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR2Luv",SWIG_From_int(static_cast< int >(50)));
|
|
SWIG_Python_SetConstant(d, "CV_RGB2Luv",SWIG_From_int(static_cast< int >(51)));
|
|
SWIG_Python_SetConstant(d, "CV_BGR2HLS",SWIG_From_int(static_cast< int >(52)));
|
|
SWIG_Python_SetConstant(d, "CV_RGB2HLS",SWIG_From_int(static_cast< int >(53)));
|
|
SWIG_Python_SetConstant(d, "CV_HSV2BGR",SWIG_From_int(static_cast< int >(54)));
|
|
SWIG_Python_SetConstant(d, "CV_HSV2RGB",SWIG_From_int(static_cast< int >(55)));
|
|
SWIG_Python_SetConstant(d, "CV_Lab2BGR",SWIG_From_int(static_cast< int >(56)));
|
|
SWIG_Python_SetConstant(d, "CV_Lab2RGB",SWIG_From_int(static_cast< int >(57)));
|
|
SWIG_Python_SetConstant(d, "CV_Luv2BGR",SWIG_From_int(static_cast< int >(58)));
|
|
SWIG_Python_SetConstant(d, "CV_Luv2RGB",SWIG_From_int(static_cast< int >(59)));
|
|
SWIG_Python_SetConstant(d, "CV_HLS2BGR",SWIG_From_int(static_cast< int >(60)));
|
|
SWIG_Python_SetConstant(d, "CV_HLS2RGB",SWIG_From_int(static_cast< int >(61)));
|
|
SWIG_Python_SetConstant(d, "CV_COLORCVT_MAX",SWIG_From_int(static_cast< int >(100)));
|
|
SWIG_Python_SetConstant(d, "CV_INTER_NN",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_INTER_LINEAR",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_INTER_CUBIC",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_INTER_AREA",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_WARP_FILL_OUTLIERS",SWIG_From_int(static_cast< int >(8)));
|
|
SWIG_Python_SetConstant(d, "CV_WARP_INVERSE_MAP",SWIG_From_int(static_cast< int >(16)));
|
|
SWIG_Python_SetConstant(d, "CV_SHAPE_RECT",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_SHAPE_CROSS",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_SHAPE_ELLIPSE",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_SHAPE_CUSTOM",SWIG_From_int(static_cast< int >(100)));
|
|
SWIG_Python_SetConstant(d, "CV_MOP_OPEN",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_MOP_CLOSE",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_MOP_GRADIENT",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_MOP_TOPHAT",SWIG_From_int(static_cast< int >(5)));
|
|
SWIG_Python_SetConstant(d, "CV_MOP_BLACKHAT",SWIG_From_int(static_cast< int >(6)));
|
|
SWIG_Python_SetConstant(d, "CV_TM_SQDIFF",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_TM_SQDIFF_NORMED",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_TM_CCORR",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_TM_CCORR_NORMED",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_TM_CCOEFF",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_TM_CCOEFF_NORMED",SWIG_From_int(static_cast< int >(5)));
|
|
SWIG_Python_SetConstant(d, "CV_LKFLOW_PYR_A_READY",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_LKFLOW_PYR_B_READY",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_LKFLOW_INITIAL_GUESSES",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_LKFLOW_GET_MIN_EIGENVALS",SWIG_From_int(static_cast< int >(8)));
|
|
SWIG_Python_SetConstant(d, "CV_POLY_APPROX_DP",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_DOMINANT_IPAN",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_CONTOURS_MATCH_I1",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_CONTOURS_MATCH_I2",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_CONTOURS_MATCH_I3",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_CONTOUR_TREES_MATCH_I1",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_CLOCKWISE",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_COUNTER_CLOCKWISE",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_COMP_CORREL",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_COMP_CHISQR",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_COMP_INTERSECT",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_COMP_BHATTACHARYYA",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_VALUE",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_ARRAY",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_DIST_MASK_3",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_DIST_MASK_5",SWIG_From_int(static_cast< int >(5)));
|
|
SWIG_Python_SetConstant(d, "CV_DIST_MASK_PRECISE",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_THRESH_BINARY",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_THRESH_BINARY_INV",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_THRESH_TRUNC",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_THRESH_TOZERO",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_THRESH_TOZERO_INV",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_THRESH_MASK",SWIG_From_int(static_cast< int >(7)));
|
|
SWIG_Python_SetConstant(d, "CV_THRESH_OTSU",SWIG_From_int(static_cast< int >(8)));
|
|
SWIG_Python_SetConstant(d, "CV_ADAPTIVE_THRESH_MEAN_C",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_ADAPTIVE_THRESH_GAUSSIAN_C",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_FLOODFILL_FIXED_RANGE",SWIG_From_int(static_cast< int >((1 << 16))));
|
|
SWIG_Python_SetConstant(d, "CV_FLOODFILL_MASK_ONLY",SWIG_From_int(static_cast< int >((1 << 17))));
|
|
SWIG_Python_SetConstant(d, "CV_CANNY_L2_GRADIENT",SWIG_From_int(static_cast< int >((1 << 31))));
|
|
SWIG_Python_SetConstant(d, "CV_HOUGH_STANDARD",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_HOUGH_PROBABILISTIC",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_HOUGH_MULTI_SCALE",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_HOUGH_GRADIENT",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_HAAR_DO_CANNY_PRUNING",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_HAAR_SCALE_IMAGE",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_HAAR_FIND_BIGGEST_OBJECT",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_HAAR_DO_ROUGH_SEARCH",SWIG_From_int(static_cast< int >(8)));
|
|
SWIG_Python_SetConstant(d, "CV_LMEDS",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_RANSAC",SWIG_From_int(static_cast< int >(8)));
|
|
SWIG_Python_SetConstant(d, "CV_CALIB_CB_ADAPTIVE_THRESH",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_CALIB_CB_NORMALIZE_IMAGE",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_CALIB_CB_FILTER_QUADS",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_CALIB_USE_INTRINSIC_GUESS",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_CALIB_FIX_ASPECT_RATIO",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_CALIB_FIX_PRINCIPAL_POINT",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_CALIB_ZERO_TANGENT_DIST",SWIG_From_int(static_cast< int >(8)));
|
|
SWIG_Python_SetConstant(d, "CV_CALIB_FIX_FOCAL_LENGTH",SWIG_From_int(static_cast< int >(16)));
|
|
SWIG_Python_SetConstant(d, "CV_CALIB_FIX_K1",SWIG_From_int(static_cast< int >(32)));
|
|
SWIG_Python_SetConstant(d, "CV_CALIB_FIX_K2",SWIG_From_int(static_cast< int >(64)));
|
|
SWIG_Python_SetConstant(d, "CV_CALIB_FIX_K3",SWIG_From_int(static_cast< int >(128)));
|
|
SWIG_Python_SetConstant(d, "CV_CALIB_FIX_INTRINSIC",SWIG_From_int(static_cast< int >(256)));
|
|
SWIG_Python_SetConstant(d, "CV_CALIB_SAME_FOCAL_LENGTH",SWIG_From_int(static_cast< int >(512)));
|
|
SWIG_Python_SetConstant(d, "CV_CALIB_ZERO_DISPARITY",SWIG_From_int(static_cast< int >(1024)));
|
|
SWIG_Python_SetConstant(d, "CV_FM_7POINT",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_FM_8POINT",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_FM_LMEDS_ONLY",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_FM_RANSAC_ONLY",SWIG_From_int(static_cast< int >(8)));
|
|
SWIG_Python_SetConstant(d, "CV_FM_LMEDS",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_FM_RANSAC",SWIG_From_int(static_cast< int >(8)));
|
|
SWIG_Python_SetConstant(d, "CV_STEREO_BM_NORMALIZED_RESPONSE",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_STEREO_BM_BASIC",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_STEREO_BM_FISH_EYE",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_STEREO_BM_NARROW",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_RETR_EXTERNAL",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_RETR_LIST",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_RETR_CCOMP",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_RETR_TREE",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_CHAIN_CODE",SWIG_From_int(static_cast< int >(0)));
|
|
SWIG_Python_SetConstant(d, "CV_CHAIN_APPROX_NONE",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_CHAIN_APPROX_SIMPLE",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_CHAIN_APPROX_TC89_L1",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_CHAIN_APPROX_TC89_KCOS",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_LINK_RUNS",SWIG_From_int(static_cast< int >(5)));
|
|
SWIG_Python_SetConstant(d, "CV_SUBDIV2D_VIRTUAL_POINT_FLAG",SWIG_From_int(static_cast< int >((1 << 30))));
|
|
SWIG_Python_SetConstant(d, "CV_DIST_USER",SWIG_From_int(static_cast< int >(-1)));
|
|
SWIG_Python_SetConstant(d, "CV_DIST_L1",SWIG_From_int(static_cast< int >(1)));
|
|
SWIG_Python_SetConstant(d, "CV_DIST_L2",SWIG_From_int(static_cast< int >(2)));
|
|
SWIG_Python_SetConstant(d, "CV_DIST_C",SWIG_From_int(static_cast< int >(3)));
|
|
SWIG_Python_SetConstant(d, "CV_DIST_L12",SWIG_From_int(static_cast< int >(4)));
|
|
SWIG_Python_SetConstant(d, "CV_DIST_FAIR",SWIG_From_int(static_cast< int >(5)));
|
|
SWIG_Python_SetConstant(d, "CV_DIST_WELSCH",SWIG_From_int(static_cast< int >(6)));
|
|
SWIG_Python_SetConstant(d, "CV_DIST_HUBER",SWIG_From_int(static_cast< int >(7)));
|
|
SWIG_Python_SetConstant(d, "CV_HAAR_MAGIC_VAL",SWIG_From_int(static_cast< int >(0x42500000)));
|
|
SWIG_Python_SetConstant(d, "CV_TYPE_NAME_HAAR",SWIG_FromCharPtr("opencv-haar-classifier"));
|
|
SWIG_Python_SetConstant(d, "CV_HAAR_FEATURE_MAX",SWIG_From_int(static_cast< int >(3)));
|
|
PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"CvModule_first",Swig_var_CvModule_first_get, Swig_var_CvModule_first_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"CvModule_last",Swig_var_CvModule_last_get, Swig_var_CvModule_last_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"CvType_first",Swig_var_CvType_first_get, Swig_var_CvType_first_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"CvType_last",Swig_var_CvType_last_get, Swig_var_CvType_last_set);
|
|
SWIG_Python_SetConstant(d, "CV_PTLOC_ERROR",SWIG_From_int(static_cast< int >(CV_PTLOC_ERROR)));
|
|
SWIG_Python_SetConstant(d, "CV_PTLOC_OUTSIDE_RECT",SWIG_From_int(static_cast< int >(CV_PTLOC_OUTSIDE_RECT)));
|
|
SWIG_Python_SetConstant(d, "CV_PTLOC_INSIDE",SWIG_From_int(static_cast< int >(CV_PTLOC_INSIDE)));
|
|
SWIG_Python_SetConstant(d, "CV_PTLOC_VERTEX",SWIG_From_int(static_cast< int >(CV_PTLOC_VERTEX)));
|
|
SWIG_Python_SetConstant(d, "CV_PTLOC_ON_EDGE",SWIG_From_int(static_cast< int >(CV_PTLOC_ON_EDGE)));
|
|
SWIG_Python_SetConstant(d, "CV_NEXT_AROUND_ORG",SWIG_From_int(static_cast< int >(CV_NEXT_AROUND_ORG)));
|
|
SWIG_Python_SetConstant(d, "CV_NEXT_AROUND_DST",SWIG_From_int(static_cast< int >(CV_NEXT_AROUND_DST)));
|
|
SWIG_Python_SetConstant(d, "CV_PREV_AROUND_ORG",SWIG_From_int(static_cast< int >(CV_PREV_AROUND_ORG)));
|
|
SWIG_Python_SetConstant(d, "CV_PREV_AROUND_DST",SWIG_From_int(static_cast< int >(CV_PREV_AROUND_DST)));
|
|
SWIG_Python_SetConstant(d, "CV_NEXT_AROUND_LEFT",SWIG_From_int(static_cast< int >(CV_NEXT_AROUND_LEFT)));
|
|
SWIG_Python_SetConstant(d, "CV_NEXT_AROUND_RIGHT",SWIG_From_int(static_cast< int >(CV_NEXT_AROUND_RIGHT)));
|
|
SWIG_Python_SetConstant(d, "CV_PREV_AROUND_LEFT",SWIG_From_int(static_cast< int >(CV_PREV_AROUND_LEFT)));
|
|
SWIG_Python_SetConstant(d, "CV_PREV_AROUND_RIGHT",SWIG_From_int(static_cast< int >(CV_PREV_AROUND_RIGHT)));
|
|
SWIG_Python_SetConstant(d, "CV_GAUSSIAN_5x5",SWIG_From_int(static_cast< int >(CV_GAUSSIAN_5x5)));
|
|
#if PY_VERSION_HEX >= 0x03000000
|
|
return m;
|
|
#else
|
|
return;
|
|
#endif
|
|
}
|
|
|