Skip to content

Instantly share code, notes, and snippets.

@saulshanabrook
Created April 10, 2020 13:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saulshanabrook/42ae13a9786f201ad7c07a751cfd9f3b to your computer and use it in GitHub Desktop.
Save saulshanabrook/42ae13a9786f201ad7c07a751cfd9f3b to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
/* Generated by Cython 0.29.16 */
/* BEGIN: Cython Metadata
{
"distutils": {
"depends": [
"skimage/feature/conditional_omp.h"
],
"include_dirs": [
"./skimage/feature"
],
"language": "c++",
"name": "skimage.feature._cascade",
"sources": [
"/Users/saul/p/scikit-image/skimage/feature/_cascade.pyx"
]
},
"module_name": "skimage.feature._cascade"
}
END: Cython Metadata */
#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
#error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03030000)
#error Cython requires Python 2.6+ or Python 3.3+.
#else
#define CYTHON_ABI "0_29_16"
#define CYTHON_HEX_VERSION 0x001D10F0
#define CYTHON_FUTURE_DIVISION 1
#include <stddef.h>
#ifndef offsetof
#define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(WIN32) && !defined(MS_WINDOWS)
#ifndef __stdcall
#define __stdcall
#endif
#ifndef __cdecl
#define __cdecl
#endif
#ifndef __fastcall
#define __fastcall
#endif
#endif
#ifndef DL_IMPORT
#define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
#define DL_EXPORT(t) t
#endif
#define __PYX_COMMA ,
#ifndef HAVE_LONG_LONG
#if PY_VERSION_HEX >= 0x02070000
#define HAVE_LONG_LONG
#endif
#endif
#ifndef PY_LONG_LONG
#define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
#define Py_HUGE_VAL HUGE_VAL
#endif
#ifdef PYPY_VERSION
#define CYTHON_COMPILING_IN_PYPY 1
#define CYTHON_COMPILING_IN_PYSTON 0
#define CYTHON_COMPILING_IN_CPYTHON 0
#undef CYTHON_USE_TYPE_SLOTS
#define CYTHON_USE_TYPE_SLOTS 0
#undef CYTHON_USE_PYTYPE_LOOKUP
#define CYTHON_USE_PYTYPE_LOOKUP 0
#if PY_VERSION_HEX < 0x03050000
#undef CYTHON_USE_ASYNC_SLOTS
#define CYTHON_USE_ASYNC_SLOTS 0
#elif !defined(CYTHON_USE_ASYNC_SLOTS)
#define CYTHON_USE_ASYNC_SLOTS 1
#endif
#undef CYTHON_USE_PYLIST_INTERNALS
#define CYTHON_USE_PYLIST_INTERNALS 0
#undef CYTHON_USE_UNICODE_INTERNALS
#define CYTHON_USE_UNICODE_INTERNALS 0
#undef CYTHON_USE_UNICODE_WRITER
#define CYTHON_USE_UNICODE_WRITER 0
#undef CYTHON_USE_PYLONG_INTERNALS
#define CYTHON_USE_PYLONG_INTERNALS 0
#undef CYTHON_AVOID_BORROWED_REFS
#define CYTHON_AVOID_BORROWED_REFS 1
#undef CYTHON_ASSUME_SAFE_MACROS
#define CYTHON_ASSUME_SAFE_MACROS 0
#undef CYTHON_UNPACK_METHODS
#define CYTHON_UNPACK_METHODS 0
#undef CYTHON_FAST_THREAD_STATE
#define CYTHON_FAST_THREAD_STATE 0
#undef CYTHON_FAST_PYCALL
#define CYTHON_FAST_PYCALL 0
#undef CYTHON_PEP489_MULTI_PHASE_INIT
#define CYTHON_PEP489_MULTI_PHASE_INIT 0
#undef CYTHON_USE_TP_FINALIZE
#define CYTHON_USE_TP_FINALIZE 0
#undef CYTHON_USE_DICT_VERSIONS
#define CYTHON_USE_DICT_VERSIONS 0
#undef CYTHON_USE_EXC_INFO_STACK
#define CYTHON_USE_EXC_INFO_STACK 0
#elif defined(PYSTON_VERSION)
#define CYTHON_COMPILING_IN_PYPY 0
#define CYTHON_COMPILING_IN_PYSTON 1
#define CYTHON_COMPILING_IN_CPYTHON 0
#ifndef CYTHON_USE_TYPE_SLOTS
#define CYTHON_USE_TYPE_SLOTS 1
#endif
#undef CYTHON_USE_PYTYPE_LOOKUP
#define CYTHON_USE_PYTYPE_LOOKUP 0
#undef CYTHON_USE_ASYNC_SLOTS
#define CYTHON_USE_ASYNC_SLOTS 0
#undef CYTHON_USE_PYLIST_INTERNALS
#define CYTHON_USE_PYLIST_INTERNALS 0
#ifndef CYTHON_USE_UNICODE_INTERNALS
#define CYTHON_USE_UNICODE_INTERNALS 1
#endif
#undef CYTHON_USE_UNICODE_WRITER
#define CYTHON_USE_UNICODE_WRITER 0
#undef CYTHON_USE_PYLONG_INTERNALS
#define CYTHON_USE_PYLONG_INTERNALS 0
#ifndef CYTHON_AVOID_BORROWED_REFS
#define CYTHON_AVOID_BORROWED_REFS 0
#endif
#ifndef CYTHON_ASSUME_SAFE_MACROS
#define CYTHON_ASSUME_SAFE_MACROS 1
#endif
#ifndef CYTHON_UNPACK_METHODS
#define CYTHON_UNPACK_METHODS 1
#endif
#undef CYTHON_FAST_THREAD_STATE
#define CYTHON_FAST_THREAD_STATE 0
#undef CYTHON_FAST_PYCALL
#define CYTHON_FAST_PYCALL 0
#undef CYTHON_PEP489_MULTI_PHASE_INIT
#define CYTHON_PEP489_MULTI_PHASE_INIT 0
#undef CYTHON_USE_TP_FINALIZE
#define CYTHON_USE_TP_FINALIZE 0
#undef CYTHON_USE_DICT_VERSIONS
#define CYTHON_USE_DICT_VERSIONS 0
#undef CYTHON_USE_EXC_INFO_STACK
#define CYTHON_USE_EXC_INFO_STACK 0
#else
#define CYTHON_COMPILING_IN_PYPY 0
#define CYTHON_COMPILING_IN_PYSTON 0
#define CYTHON_COMPILING_IN_CPYTHON 1
#ifndef CYTHON_USE_TYPE_SLOTS
#define CYTHON_USE_TYPE_SLOTS 1
#endif
#if PY_VERSION_HEX < 0x02070000
#undef CYTHON_USE_PYTYPE_LOOKUP
#define CYTHON_USE_PYTYPE_LOOKUP 0
#elif !defined(CYTHON_USE_PYTYPE_LOOKUP)
#define CYTHON_USE_PYTYPE_LOOKUP 1
#endif
#if PY_MAJOR_VERSION < 3
#undef CYTHON_USE_ASYNC_SLOTS
#define CYTHON_USE_ASYNC_SLOTS 0
#elif !defined(CYTHON_USE_ASYNC_SLOTS)
#define CYTHON_USE_ASYNC_SLOTS 1
#endif
#if PY_VERSION_HEX < 0x02070000
#undef CYTHON_USE_PYLONG_INTERNALS
#define CYTHON_USE_PYLONG_INTERNALS 0
#elif !defined(CYTHON_USE_PYLONG_INTERNALS)
#define CYTHON_USE_PYLONG_INTERNALS 1
#endif
#ifndef CYTHON_USE_PYLIST_INTERNALS
#define CYTHON_USE_PYLIST_INTERNALS 1
#endif
#ifndef CYTHON_USE_UNICODE_INTERNALS
#define CYTHON_USE_UNICODE_INTERNALS 1
#endif
#if PY_VERSION_HEX < 0x030300F0
#undef CYTHON_USE_UNICODE_WRITER
#define CYTHON_USE_UNICODE_WRITER 0
#elif !defined(CYTHON_USE_UNICODE_WRITER)
#define CYTHON_USE_UNICODE_WRITER 1
#endif
#ifndef CYTHON_AVOID_BORROWED_REFS
#define CYTHON_AVOID_BORROWED_REFS 0
#endif
#ifndef CYTHON_ASSUME_SAFE_MACROS
#define CYTHON_ASSUME_SAFE_MACROS 1
#endif
#ifndef CYTHON_UNPACK_METHODS
#define CYTHON_UNPACK_METHODS 1
#endif
#ifndef CYTHON_FAST_THREAD_STATE
#define CYTHON_FAST_THREAD_STATE 1
#endif
#ifndef CYTHON_FAST_PYCALL
#define CYTHON_FAST_PYCALL 1
#endif
#ifndef CYTHON_PEP489_MULTI_PHASE_INIT
#define CYTHON_PEP489_MULTI_PHASE_INIT (PY_VERSION_HEX >= 0x03050000)
#endif
#ifndef CYTHON_USE_TP_FINALIZE
#define CYTHON_USE_TP_FINALIZE (PY_VERSION_HEX >= 0x030400a1)
#endif
#ifndef CYTHON_USE_DICT_VERSIONS
#define CYTHON_USE_DICT_VERSIONS (PY_VERSION_HEX >= 0x030600B1)
#endif
#ifndef CYTHON_USE_EXC_INFO_STACK
#define CYTHON_USE_EXC_INFO_STACK (PY_VERSION_HEX >= 0x030700A3)
#endif
#endif
#if !defined(CYTHON_FAST_PYCCALL)
#define CYTHON_FAST_PYCCALL (CYTHON_FAST_PYCALL && PY_VERSION_HEX >= 0x030600B1)
#endif
#if CYTHON_USE_PYLONG_INTERNALS
#include "longintrepr.h"
#undef SHIFT
#undef BASE
#undef MASK
#ifdef SIZEOF_VOID_P
enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
#endif
#endif
#ifndef __has_attribute
#define __has_attribute(x) 0
#endif
#ifndef __has_cpp_attribute
#define __has_cpp_attribute(x) 0
#endif
#ifndef CYTHON_RESTRICT
#if defined(__GNUC__)
#define CYTHON_RESTRICT __restrict__
#elif defined(_MSC_VER) && _MSC_VER >= 1400
#define CYTHON_RESTRICT __restrict
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define CYTHON_RESTRICT restrict
#else
#define CYTHON_RESTRICT
#endif
#endif
#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
# define CYTHON_UNUSED __attribute__ ((__unused__))
# else
# define CYTHON_UNUSED
# endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
# define CYTHON_UNUSED __attribute__ ((__unused__))
# else
# define CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_MAYBE_UNUSED_VAR
# if defined(__cplusplus)
template<class T> void CYTHON_MAYBE_UNUSED_VAR( const T& ) { }
# else
# define CYTHON_MAYBE_UNUSED_VAR(x) (void)(x)
# endif
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON
# define CYTHON_NCP_UNUSED
# else
# define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
#ifdef _MSC_VER
#ifndef _MSC_STDINT_H_
#if _MSC_VER < 1300
typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
#else
typedef unsigned __int8 uint8_t;
typedef unsigned __int32 uint32_t;
#endif
#endif
#else
#include <stdint.h>
#endif
#ifndef CYTHON_FALLTHROUGH
#if defined(__cplusplus) && __cplusplus >= 201103L
#if __has_cpp_attribute(fallthrough)
#define CYTHON_FALLTHROUGH [[fallthrough]]
#elif __has_cpp_attribute(clang::fallthrough)
#define CYTHON_FALLTHROUGH [[clang::fallthrough]]
#elif __has_cpp_attribute(gnu::fallthrough)
#define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
#endif
#endif
#ifndef CYTHON_FALLTHROUGH
#if __has_attribute(fallthrough)
#define CYTHON_FALLTHROUGH __attribute__((fallthrough))
#else
#define CYTHON_FALLTHROUGH
#endif
#endif
#if defined(__clang__ ) && defined(__apple_build_version__)
#if __apple_build_version__ < 7000000
#undef CYTHON_FALLTHROUGH
#define CYTHON_FALLTHROUGH
#endif
#endif
#endif
#ifndef __cplusplus
#error "Cython files generated with the C++ option must be compiled with a C++ compiler."
#endif
#ifndef CYTHON_INLINE
#if defined(__clang__)
#define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
#else
#define CYTHON_INLINE inline
#endif
#endif
template<typename T>
void __Pyx_call_destructor(T& x) {
x.~T();
}
template<typename T>
class __Pyx_FakeReference {
public:
__Pyx_FakeReference() : ptr(NULL) { }
__Pyx_FakeReference(const T& ref) : ptr(const_cast<T*>(&ref)) { }
T *operator->() { return ptr; }
T *operator&() { return ptr; }
operator T&() { return *ptr; }
template<typename U> bool operator ==(U other) { return *ptr == other; }
template<typename U> bool operator !=(U other) { return *ptr != other; }
private:
T *ptr;
};
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
#define Py_OptimizeFlag 0
#endif
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#if PY_MAJOR_VERSION < 3
#define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
#define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#define __Pyx_DefaultClassType PyClass_Type
#else
#define __Pyx_BUILTIN_MODULE_NAME "builtins"
#if PY_VERSION_HEX >= 0x030800A4 && PY_VERSION_HEX < 0x030800B2
#define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
PyCode_New(a, 0, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#else
#define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#endif
#define __Pyx_DefaultClassType PyType_Type
#endif
#ifndef Py_TPFLAGS_CHECKTYPES
#define Py_TPFLAGS_CHECKTYPES 0
#endif
#ifndef Py_TPFLAGS_HAVE_INDEX
#define Py_TPFLAGS_HAVE_INDEX 0
#endif
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
#define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#ifndef Py_TPFLAGS_HAVE_FINALIZE
#define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#ifndef METH_STACKLESS
#define METH_STACKLESS 0
#endif
#if PY_VERSION_HEX <= 0x030700A3 || !defined(METH_FASTCALL)
#ifndef METH_FASTCALL
#define METH_FASTCALL 0x80
#endif
typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
Py_ssize_t nargs, PyObject *kwnames);
#else
#define __Pyx_PyCFunctionFast _PyCFunctionFast
#define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
#endif
#if CYTHON_FAST_PYCCALL
#define __Pyx_PyFastCFunction_Check(func)\
((PyCFunction_Check(func) && (METH_FASTCALL == (PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_KEYWORDS | METH_STACKLESS)))))
#else
#define __Pyx_PyFastCFunction_Check(func) 0
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
#define PyObject_Malloc(s) PyMem_Malloc(s)
#define PyObject_Free(p) PyMem_Free(p)
#define PyObject_Realloc(p) PyMem_Realloc(p)
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030400A1
#define PyMem_RawMalloc(n) PyMem_Malloc(n)
#define PyMem_RawRealloc(p, n) PyMem_Realloc(p, n)
#define PyMem_RawFree(p) PyMem_Free(p)
#endif
#if CYTHON_COMPILING_IN_PYSTON
#define __Pyx_PyCode_HasFreeVars(co) PyCode_HasFreeVars(co)
#define __Pyx_PyFrame_SetLineNumber(frame, lineno) PyFrame_SetLineNumber(frame, lineno)
#else
#define __Pyx_PyCode_HasFreeVars(co) (PyCode_GetNumFree(co) > 0)
#define __Pyx_PyFrame_SetLineNumber(frame, lineno) (frame)->f_lineno = (lineno)
#endif
#if !CYTHON_FAST_THREAD_STATE || PY_VERSION_HEX < 0x02070000
#define __Pyx_PyThreadState_Current PyThreadState_GET()
#elif PY_VERSION_HEX >= 0x03060000
#define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
#elif PY_VERSION_HEX >= 0x03000000
#define __Pyx_PyThreadState_Current PyThreadState_GET()
#else
#define __Pyx_PyThreadState_Current _PyThreadState_Current
#endif
#if PY_VERSION_HEX < 0x030700A2 && !defined(PyThread_tss_create) && !defined(Py_tss_NEEDS_INIT)
#include "pythread.h"
#define Py_tss_NEEDS_INIT 0
typedef int Py_tss_t;
static CYTHON_INLINE int PyThread_tss_create(Py_tss_t *key) {
*key = PyThread_create_key();
return 0;
}
static CYTHON_INLINE Py_tss_t * PyThread_tss_alloc(void) {
Py_tss_t *key = (Py_tss_t *)PyObject_Malloc(sizeof(Py_tss_t));
*key = Py_tss_NEEDS_INIT;
return key;
}
static CYTHON_INLINE void PyThread_tss_free(Py_tss_t *key) {
PyObject_Free(key);
}
static CYTHON_INLINE int PyThread_tss_is_created(Py_tss_t *key) {
return *key != Py_tss_NEEDS_INIT;
}
static CYTHON_INLINE void PyThread_tss_delete(Py_tss_t *key) {
PyThread_delete_key(*key);
*key = Py_tss_NEEDS_INIT;
}
static CYTHON_INLINE int PyThread_tss_set(Py_tss_t *key, void *value) {
return PyThread_set_key_value(*key, value);
}
static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
return PyThread_get_key_value(*key);
}
#endif
#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
#define __Pyx_PyDict_NewPresized(n) ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
#else
#define __Pyx_PyDict_NewPresized(n) PyDict_New()
#endif
#if PY_MAJOR_VERSION >= 3 || CYTHON_FUTURE_DIVISION
#define __Pyx_PyNumber_Divide(x,y) PyNumber_TrueDivide(x,y)
#define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceTrueDivide(x,y)
#else
#define __Pyx_PyNumber_Divide(x,y) PyNumber_Divide(x,y)
#define __Pyx_PyNumber_InPlaceDivide(x,y) PyNumber_InPlaceDivide(x,y)
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030500A1 && CYTHON_USE_UNICODE_INTERNALS
#define __Pyx_PyDict_GetItemStr(dict, name) _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
#else
#define __Pyx_PyDict_GetItemStr(dict, name) PyDict_GetItem(dict, name)
#endif
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
#define CYTHON_PEP393_ENABLED 1
#define __Pyx_PyUnicode_READY(op) (likely(PyUnicode_IS_READY(op)) ?\
0 : _PyUnicode_Ready((PyObject *)(op)))
#define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_LENGTH(u)
#define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
#define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) PyUnicode_MAX_CHAR_VALUE(u)
#define __Pyx_PyUnicode_KIND(u) PyUnicode_KIND(u)
#define __Pyx_PyUnicode_DATA(u) PyUnicode_DATA(u)
#define __Pyx_PyUnicode_READ(k, d, i) PyUnicode_READ(k, d, i)
#define __Pyx_PyUnicode_WRITE(k, d, i, ch) PyUnicode_WRITE(k, d, i, ch)
#define __Pyx_PyUnicode_IS_TRUE(u) (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
#else
#define CYTHON_PEP393_ENABLED 0
#define PyUnicode_1BYTE_KIND 1
#define PyUnicode_2BYTE_KIND 2
#define PyUnicode_4BYTE_KIND 4
#define __Pyx_PyUnicode_READY(op) (0)
#define __Pyx_PyUnicode_GET_LENGTH(u) PyUnicode_GET_SIZE(u)
#define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
#define __Pyx_PyUnicode_MAX_CHAR_VALUE(u) ((sizeof(Py_UNICODE) == 2) ? 65535 : 1114111)
#define __Pyx_PyUnicode_KIND(u) (sizeof(Py_UNICODE))
#define __Pyx_PyUnicode_DATA(u) ((void*)PyUnicode_AS_UNICODE(u))
#define __Pyx_PyUnicode_READ(k, d, i) ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
#define __Pyx_PyUnicode_WRITE(k, d, i, ch) (((void)(k)), ((Py_UNICODE*)d)[i] = ch)
#define __Pyx_PyUnicode_IS_TRUE(u) (0 != PyUnicode_GET_SIZE(u))
#endif
#if CYTHON_COMPILING_IN_PYPY
#define __Pyx_PyUnicode_Concat(a, b) PyNumber_Add(a, b)
#define __Pyx_PyUnicode_ConcatSafe(a, b) PyNumber_Add(a, b)
#else
#define __Pyx_PyUnicode_Concat(a, b) PyUnicode_Concat(a, b)
#define __Pyx_PyUnicode_ConcatSafe(a, b) ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
#define PyUnicode_Contains(u, s) PySequence_Contains(u, s)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check)
#define PyByteArray_Check(obj) PyObject_TypeCheck(obj, &PyByteArray_Type)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format)
#define PyObject_Format(obj, fmt) PyObject_CallMethod(obj, "__format__", "O", fmt)
#endif
#define __Pyx_PyString_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyString_Check(b) && !PyString_CheckExact(b)))) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
#define __Pyx_PyUnicode_FormatSafe(a, b) ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyString_Format(a, b) PyUnicode_Format(a, b)
#else
#define __Pyx_PyString_Format(a, b) PyString_Format(a, b)
#endif
#if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII)
#define PyObject_ASCII(o) PyObject_Repr(o)
#endif
#if PY_MAJOR_VERSION >= 3
#define PyBaseString_Type PyUnicode_Type
#define PyStringObject PyUnicodeObject
#define PyString_Type PyUnicode_Type
#define PyString_Check PyUnicode_Check
#define PyString_CheckExact PyUnicode_CheckExact
#ifndef PyObject_Unicode
#define PyObject_Unicode PyObject_Str
#endif
#endif
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
#define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
#else
#define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
#define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
#endif
#ifndef PySet_CheckExact
#define PySet_CheckExact(obj) (Py_TYPE(obj) == &PySet_Type)
#endif
#if CYTHON_ASSUME_SAFE_MACROS
#define __Pyx_PySequence_SIZE(seq) Py_SIZE(seq)
#else
#define __Pyx_PySequence_SIZE(seq) PySequence_Size(seq)
#endif
#if PY_MAJOR_VERSION >= 3
#define PyIntObject PyLongObject
#define PyInt_Type PyLong_Type
#define PyInt_Check(op) PyLong_Check(op)
#define PyInt_CheckExact(op) PyLong_CheckExact(op)
#define PyInt_FromString PyLong_FromString
#define PyInt_FromUnicode PyLong_FromUnicode
#define PyInt_FromLong PyLong_FromLong
#define PyInt_FromSize_t PyLong_FromSize_t
#define PyInt_FromSsize_t PyLong_FromSsize_t
#define PyInt_AsLong PyLong_AsLong
#define PyInt_AS_LONG PyLong_AS_LONG
#define PyInt_AsSsize_t PyLong_AsSsize_t
#define PyInt_AsUnsignedLongMask PyLong_AsUnsignedLongMask
#define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
#define PyNumber_Int PyNumber_Long
#endif
#if PY_MAJOR_VERSION >= 3
#define PyBoolObject PyLongObject
#endif
#if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
#ifndef PyUnicode_InternFromString
#define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
#endif
#endif
#if PY_VERSION_HEX < 0x030200A4
typedef long Py_hash_t;
#define __Pyx_PyInt_FromHash_t PyInt_FromLong
#define __Pyx_PyInt_AsHash_t PyInt_AsLong
#else
#define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
#define __Pyx_PyInt_AsHash_t PyInt_AsSsize_t
#endif
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : (Py_INCREF(func), func))
#else
#define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
#endif
#if CYTHON_USE_ASYNC_SLOTS
#if PY_VERSION_HEX >= 0x030500B1
#define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
#define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
#else
#define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
#endif
#else
#define __Pyx_PyType_AsAsync(obj) NULL
#endif
#ifndef __Pyx_PyAsyncMethodsStruct
typedef struct {
unaryfunc am_await;
unaryfunc am_aiter;
unaryfunc am_anext;
} __Pyx_PyAsyncMethodsStruct;
#endif
#if defined(WIN32) || defined(MS_WINDOWS)
#define _USE_MATH_DEFINES
#endif
#include <math.h>
#ifdef NAN
#define __PYX_NAN() ((float) NAN)
#else
static CYTHON_INLINE float __PYX_NAN() {
float value;
memset(&value, 0xFF, sizeof(value));
return value;
}
#endif
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
#define __Pyx_truncl trunc
#else
#define __Pyx_truncl truncl
#endif
#define __PYX_ERR(f_index, lineno, Ln_error) \
{ \
__pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \
}
#ifndef __PYX_EXTERN_C
#ifdef __cplusplus
#define __PYX_EXTERN_C extern "C"
#else
#define __PYX_EXTERN_C extern
#endif
#endif
#define __PYX_HAVE__skimage__feature___cascade
#define __PYX_HAVE_API__skimage__feature___cascade
/* Early includes */
#include <string.h>
#include <stdio.h>
#include "numpy/arrayobject.h"
#include "numpy/ufuncobject.h"
#include "conditional_omp.h"
#include <stdlib.h>
#include "ios"
#include "new"
#include "stdexcept"
#include "typeinfo"
#include <vector>
#include <math.h>
#include "pythread.h"
#include "pystate.h"
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */
#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
#define CYTHON_WITHOUT_ASSERTIONS
#endif
typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding;
const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry;
#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT (PY_MAJOR_VERSION >= 3 && __PYX_DEFAULT_STRING_ENCODING_IS_UTF8)
#define __PYX_DEFAULT_STRING_ENCODING ""
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_uchar_cast(c) ((unsigned char)c)
#define __Pyx_long_cast(x) ((long)x)
#define __Pyx_fits_Py_ssize_t(v, type, is_signed) (\
(sizeof(type) < sizeof(Py_ssize_t)) ||\
(sizeof(type) > sizeof(Py_ssize_t) &&\
likely(v < (type)PY_SSIZE_T_MAX ||\
v == (type)PY_SSIZE_T_MAX) &&\
(!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
v == (type)PY_SSIZE_T_MIN))) ||\
(sizeof(type) == sizeof(Py_ssize_t) &&\
(is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
v == (type)PY_SSIZE_T_MAX))) )
static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
return (size_t) i < (size_t) limit;
}
#if defined (__cplusplus) && __cplusplus >= 201103L
#include <cstdlib>
#define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
#define __Pyx_sst_abs(value) abs(value)
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
#define __Pyx_sst_abs(value) labs(value)
#elif defined (_MSC_VER)
#define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define __Pyx_sst_abs(value) llabs(value)
#elif defined (__GNUC__)
#define __Pyx_sst_abs(value) __builtin_llabs(value)
#else
#define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
#if PY_MAJOR_VERSION < 3
#define __Pyx_PyStr_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#else
#define __Pyx_PyStr_FromString __Pyx_PyUnicode_FromString
#define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
#endif
#define __Pyx_PyBytes_AsWritableString(s) ((char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsWritableSString(s) ((signed char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsWritableUString(s) ((unsigned char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsString(s) ((const char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsSString(s) ((const signed char*) PyBytes_AS_STRING(s))
#define __Pyx_PyBytes_AsUString(s) ((const unsigned char*) PyBytes_AS_STRING(s))
#define __Pyx_PyObject_AsWritableString(s) ((char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableSString(s) ((signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableUString(s) ((unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsSString(s) ((const signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s) ((const unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromCString(s) __Pyx_PyObject_FromString((const char*)s)
#define __Pyx_PyBytes_FromCString(s) __Pyx_PyBytes_FromString((const char*)s)
#define __Pyx_PyByteArray_FromCString(s) __Pyx_PyByteArray_FromString((const char*)s)
#define __Pyx_PyStr_FromCString(s) __Pyx_PyStr_FromString((const char*)s)
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u) {
const Py_UNICODE *u_end = u;
while (*u_end++) ;
return (size_t)(u_end - u - 1);
}
#define __Pyx_PyUnicode_FromUnicode(u) PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
#define __Pyx_PyUnicode_AsUnicode PyUnicode_AsUnicode
#define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
#define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
#define __Pyx_PySequence_Tuple(obj)\
(likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
#if CYTHON_ASSUME_SAFE_MACROS
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#else
#define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#endif
#define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
#else
#define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x))
#endif
#define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x))
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
static int __Pyx_sys_getdefaultencoding_not_ascii;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
PyObject* sys;
PyObject* default_encoding = NULL;
PyObject* ascii_chars_u = NULL;
PyObject* ascii_chars_b = NULL;
const char* default_encoding_c;
sys = PyImport_ImportModule("sys");
if (!sys) goto bad;
default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL);
Py_DECREF(sys);
if (!default_encoding) goto bad;
default_encoding_c = PyBytes_AsString(default_encoding);
if (!default_encoding_c) goto bad;
if (strcmp(default_encoding_c, "ascii") == 0) {
__Pyx_sys_getdefaultencoding_not_ascii = 0;
} else {
char ascii_chars[128];
int c;
for (c = 0; c < 128; c++) {
ascii_chars[c] = c;
}
__Pyx_sys_getdefaultencoding_not_ascii = 1;
ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
if (!ascii_chars_u) goto bad;
ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
PyErr_Format(
PyExc_ValueError,
"This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
default_encoding_c);
goto bad;
}
Py_DECREF(ascii_chars_u);
Py_DECREF(ascii_chars_b);
}
Py_DECREF(default_encoding);
return 0;
bad:
Py_XDECREF(default_encoding);
Py_XDECREF(ascii_chars_u);
Py_XDECREF(ascii_chars_b);
return -1;
}
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#else
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
static char* __PYX_DEFAULT_STRING_ENCODING;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
PyObject* sys;
PyObject* default_encoding = NULL;
char* default_encoding_c;
sys = PyImport_ImportModule("sys");
if (!sys) goto bad;
default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
Py_DECREF(sys);
if (!default_encoding) goto bad;
default_encoding_c = PyBytes_AsString(default_encoding);
if (!default_encoding_c) goto bad;
__PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c) + 1);
if (!__PYX_DEFAULT_STRING_ENCODING) goto bad;
strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
Py_DECREF(default_encoding);
return 0;
bad:
Py_XDECREF(default_encoding);
return -1;
}
#endif
#endif
/* Test for GCC > 2.95 */
#if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#else /* !__GNUC__ or GCC < 2.95 */
#define likely(x) (x)
#define unlikely(x) (x)
#endif /* __GNUC__ */
static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }
static PyObject *__pyx_m = NULL;
static PyObject *__pyx_d;
static PyObject *__pyx_b;
static PyObject *__pyx_cython_runtime = NULL;
static PyObject *__pyx_empty_tuple;
static PyObject *__pyx_empty_bytes;
static PyObject *__pyx_empty_unicode;
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * __pyx_cfilenm= __FILE__;
static const char *__pyx_filename;
/* Header.proto */
#if !defined(CYTHON_CCOMPLEX)
#if defined(__cplusplus)
#define CYTHON_CCOMPLEX 1
#elif defined(_Complex_I)
#define CYTHON_CCOMPLEX 1
#else
#define CYTHON_CCOMPLEX 0
#endif
#endif
#if CYTHON_CCOMPLEX
#ifdef __cplusplus
#include <complex>
#else
#include <complex.h>
#endif
#endif
#if CYTHON_CCOMPLEX && !defined(__cplusplus) && defined(__sun__) && defined(__GNUC__)
#undef _Complex_I
#define _Complex_I 1.0fj
#endif
static const char *__pyx_f[] = {
"skimage/feature/_cascade.pyx",
"stringsource",
"__init__.pxd",
"skimage/_shared/interpolation.pxd",
"type.pxd",
};
/* NoFastGil.proto */
#define __Pyx_PyGILState_Ensure PyGILState_Ensure
#define __Pyx_PyGILState_Release PyGILState_Release
#define __Pyx_FastGIL_Remember()
#define __Pyx_FastGIL_Forget()
#define __Pyx_FastGilFuncInit()
/* ForceInitThreads.proto */
#ifndef __PYX_FORCE_INIT_THREADS
#define __PYX_FORCE_INIT_THREADS 0
#endif
/* MemviewSliceStruct.proto */
struct __pyx_memoryview_obj;
typedef struct {
struct __pyx_memoryview_obj *memview;
char *data;
Py_ssize_t shape[8];
Py_ssize_t strides[8];
Py_ssize_t suboffsets[8];
} __Pyx_memviewslice;
#define __Pyx_MemoryView_Len(m) (m.shape[0])
/* Atomics.proto */
#include <pythread.h>
#ifndef CYTHON_ATOMICS
#define CYTHON_ATOMICS 1
#endif
#define __pyx_atomic_int_type int
#if CYTHON_ATOMICS && __GNUC__ >= 4 && (__GNUC_MINOR__ > 1 ||\
(__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL >= 2)) &&\
!defined(__i386__)
#define __pyx_atomic_incr_aligned(value, lock) __sync_fetch_and_add(value, 1)
#define __pyx_atomic_decr_aligned(value, lock) __sync_fetch_and_sub(value, 1)
#ifdef __PYX_DEBUG_ATOMICS
#warning "Using GNU atomics"
#endif
#elif CYTHON_ATOMICS && defined(_MSC_VER) && 0
#include <Windows.h>
#undef __pyx_atomic_int_type
#define __pyx_atomic_int_type LONG
#define __pyx_atomic_incr_aligned(value, lock) InterlockedIncrement(value)
#define __pyx_atomic_decr_aligned(value, lock) InterlockedDecrement(value)
#ifdef __PYX_DEBUG_ATOMICS
#pragma message ("Using MSVC atomics")
#endif
#elif CYTHON_ATOMICS && (defined(__ICC) || defined(__INTEL_COMPILER)) && 0
#define __pyx_atomic_incr_aligned(value, lock) _InterlockedIncrement(value)
#define __pyx_atomic_decr_aligned(value, lock) _InterlockedDecrement(value)
#ifdef __PYX_DEBUG_ATOMICS
#warning "Using Intel atomics"
#endif
#else
#undef CYTHON_ATOMICS
#define CYTHON_ATOMICS 0
#ifdef __PYX_DEBUG_ATOMICS
#warning "Not using atomics"
#endif
#endif
typedef volatile __pyx_atomic_int_type __pyx_atomic_int;
#if CYTHON_ATOMICS
#define __pyx_add_acquisition_count(memview)\
__pyx_atomic_incr_aligned(__pyx_get_slice_count_pointer(memview), memview->lock)
#define __pyx_sub_acquisition_count(memview)\
__pyx_atomic_decr_aligned(__pyx_get_slice_count_pointer(memview), memview->lock)
#else
#define __pyx_add_acquisition_count(memview)\
__pyx_add_acquisition_count_locked(__pyx_get_slice_count_pointer(memview), memview->lock)
#define __pyx_sub_acquisition_count(memview)\
__pyx_sub_acquisition_count_locked(__pyx_get_slice_count_pointer(memview), memview->lock)
#endif
/* BufferFormatStructs.proto */
#define IS_UNSIGNED(type) (((type) -1) > 0)
struct __Pyx_StructField_;
#define __PYX_BUF_FLAGS_PACKED_STRUCT (1 << 0)
typedef struct {
const char* name;
struct __Pyx_StructField_* fields;
size_t size;
size_t arraysize[8];
int ndim;
char typegroup;
char is_unsigned;
int flags;
} __Pyx_TypeInfo;
typedef struct __Pyx_StructField_ {
__Pyx_TypeInfo* type;
const char* name;
size_t offset;
} __Pyx_StructField;
typedef struct {
__Pyx_StructField* field;
size_t parent_offset;
} __Pyx_BufFmt_StackElem;
typedef struct {
__Pyx_StructField root;
__Pyx_BufFmt_StackElem* head;
size_t fmt_offset;
size_t new_count, enc_count;
size_t struct_alignment;
int is_complex;
char enc_type;
char new_packmode;
char enc_packmode;
char is_valid_array;
} __Pyx_BufFmt_Context;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":776
* # in Cython to enable them only on the right systems.
*
* ctypedef npy_int8 int8_t # <<<<<<<<<<<<<<
* ctypedef npy_int16 int16_t
* ctypedef npy_int32 int32_t
*/
typedef npy_int8 __pyx_t_5numpy_int8_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":777
*
* ctypedef npy_int8 int8_t
* ctypedef npy_int16 int16_t # <<<<<<<<<<<<<<
* ctypedef npy_int32 int32_t
* ctypedef npy_int64 int64_t
*/
typedef npy_int16 __pyx_t_5numpy_int16_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":778
* ctypedef npy_int8 int8_t
* ctypedef npy_int16 int16_t
* ctypedef npy_int32 int32_t # <<<<<<<<<<<<<<
* ctypedef npy_int64 int64_t
* #ctypedef npy_int96 int96_t
*/
typedef npy_int32 __pyx_t_5numpy_int32_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":779
* ctypedef npy_int16 int16_t
* ctypedef npy_int32 int32_t
* ctypedef npy_int64 int64_t # <<<<<<<<<<<<<<
* #ctypedef npy_int96 int96_t
* #ctypedef npy_int128 int128_t
*/
typedef npy_int64 __pyx_t_5numpy_int64_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":783
* #ctypedef npy_int128 int128_t
*
* ctypedef npy_uint8 uint8_t # <<<<<<<<<<<<<<
* ctypedef npy_uint16 uint16_t
* ctypedef npy_uint32 uint32_t
*/
typedef npy_uint8 __pyx_t_5numpy_uint8_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":784
*
* ctypedef npy_uint8 uint8_t
* ctypedef npy_uint16 uint16_t # <<<<<<<<<<<<<<
* ctypedef npy_uint32 uint32_t
* ctypedef npy_uint64 uint64_t
*/
typedef npy_uint16 __pyx_t_5numpy_uint16_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":785
* ctypedef npy_uint8 uint8_t
* ctypedef npy_uint16 uint16_t
* ctypedef npy_uint32 uint32_t # <<<<<<<<<<<<<<
* ctypedef npy_uint64 uint64_t
* #ctypedef npy_uint96 uint96_t
*/
typedef npy_uint32 __pyx_t_5numpy_uint32_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":786
* ctypedef npy_uint16 uint16_t
* ctypedef npy_uint32 uint32_t
* ctypedef npy_uint64 uint64_t # <<<<<<<<<<<<<<
* #ctypedef npy_uint96 uint96_t
* #ctypedef npy_uint128 uint128_t
*/
typedef npy_uint64 __pyx_t_5numpy_uint64_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":790
* #ctypedef npy_uint128 uint128_t
*
* ctypedef npy_float32 float32_t # <<<<<<<<<<<<<<
* ctypedef npy_float64 float64_t
* #ctypedef npy_float80 float80_t
*/
typedef npy_float32 __pyx_t_5numpy_float32_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":791
*
* ctypedef npy_float32 float32_t
* ctypedef npy_float64 float64_t # <<<<<<<<<<<<<<
* #ctypedef npy_float80 float80_t
* #ctypedef npy_float128 float128_t
*/
typedef npy_float64 __pyx_t_5numpy_float64_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":800
* # The int types are mapped a bit surprising --
* # numpy.int corresponds to 'l' and numpy.long to 'q'
* ctypedef npy_long int_t # <<<<<<<<<<<<<<
* ctypedef npy_longlong long_t
* ctypedef npy_longlong longlong_t
*/
typedef npy_long __pyx_t_5numpy_int_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":801
* # numpy.int corresponds to 'l' and numpy.long to 'q'
* ctypedef npy_long int_t
* ctypedef npy_longlong long_t # <<<<<<<<<<<<<<
* ctypedef npy_longlong longlong_t
*
*/
typedef npy_longlong __pyx_t_5numpy_long_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":802
* ctypedef npy_long int_t
* ctypedef npy_longlong long_t
* ctypedef npy_longlong longlong_t # <<<<<<<<<<<<<<
*
* ctypedef npy_ulong uint_t
*/
typedef npy_longlong __pyx_t_5numpy_longlong_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":804
* ctypedef npy_longlong longlong_t
*
* ctypedef npy_ulong uint_t # <<<<<<<<<<<<<<
* ctypedef npy_ulonglong ulong_t
* ctypedef npy_ulonglong ulonglong_t
*/
typedef npy_ulong __pyx_t_5numpy_uint_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":805
*
* ctypedef npy_ulong uint_t
* ctypedef npy_ulonglong ulong_t # <<<<<<<<<<<<<<
* ctypedef npy_ulonglong ulonglong_t
*
*/
typedef npy_ulonglong __pyx_t_5numpy_ulong_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":806
* ctypedef npy_ulong uint_t
* ctypedef npy_ulonglong ulong_t
* ctypedef npy_ulonglong ulonglong_t # <<<<<<<<<<<<<<
*
* ctypedef npy_intp intp_t
*/
typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":808
* ctypedef npy_ulonglong ulonglong_t
*
* ctypedef npy_intp intp_t # <<<<<<<<<<<<<<
* ctypedef npy_uintp uintp_t
*
*/
typedef npy_intp __pyx_t_5numpy_intp_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":809
*
* ctypedef npy_intp intp_t
* ctypedef npy_uintp uintp_t # <<<<<<<<<<<<<<
*
* ctypedef npy_double float_t
*/
typedef npy_uintp __pyx_t_5numpy_uintp_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":811
* ctypedef npy_uintp uintp_t
*
* ctypedef npy_double float_t # <<<<<<<<<<<<<<
* ctypedef npy_double double_t
* ctypedef npy_longdouble longdouble_t
*/
typedef npy_double __pyx_t_5numpy_float_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":812
*
* ctypedef npy_double float_t
* ctypedef npy_double double_t # <<<<<<<<<<<<<<
* ctypedef npy_longdouble longdouble_t
*
*/
typedef npy_double __pyx_t_5numpy_double_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":813
* ctypedef npy_double float_t
* ctypedef npy_double double_t
* ctypedef npy_longdouble longdouble_t # <<<<<<<<<<<<<<
*
* ctypedef npy_cfloat cfloat_t
*/
typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
/* Declarations.proto */
#if CYTHON_CCOMPLEX
#ifdef __cplusplus
typedef ::std::complex< float > __pyx_t_float_complex;
#else
typedef float _Complex __pyx_t_float_complex;
#endif
#else
typedef struct { float real, imag; } __pyx_t_float_complex;
#endif
static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float, float);
/* Declarations.proto */
#if CYTHON_CCOMPLEX
#ifdef __cplusplus
typedef ::std::complex< double > __pyx_t_double_complex;
#else
typedef double _Complex __pyx_t_double_complex;
#endif
#else
typedef struct { double real, imag; } __pyx_t_double_complex;
#endif
static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double, double);
/*--- Type declarations ---*/
struct __pyx_obj_7skimage_7feature_8_cascade_Cascade;
struct __pyx_array_obj;
struct __pyx_MemviewEnum_obj;
struct __pyx_memoryview_obj;
struct __pyx_memoryviewslice_obj;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":815
* ctypedef npy_longdouble longdouble_t
*
* ctypedef npy_cfloat cfloat_t # <<<<<<<<<<<<<<
* ctypedef npy_cdouble cdouble_t
* ctypedef npy_clongdouble clongdouble_t
*/
typedef npy_cfloat __pyx_t_5numpy_cfloat_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":816
*
* ctypedef npy_cfloat cfloat_t
* ctypedef npy_cdouble cdouble_t # <<<<<<<<<<<<<<
* ctypedef npy_clongdouble clongdouble_t
*
*/
typedef npy_cdouble __pyx_t_5numpy_cdouble_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":817
* ctypedef npy_cfloat cfloat_t
* ctypedef npy_cdouble cdouble_t
* ctypedef npy_clongdouble clongdouble_t # <<<<<<<<<<<<<<
*
* ctypedef npy_cdouble complex_t
*/
typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":819
* ctypedef npy_clongdouble clongdouble_t
*
* ctypedef npy_cdouble complex_t # <<<<<<<<<<<<<<
*
* cdef inline object PyArray_MultiIterNew1(a):
*/
typedef npy_cdouble __pyx_t_5numpy_complex_t;
struct __pyx_t_7skimage_7feature_8_cascade_Detection;
struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster;
struct __pyx_t_7skimage_7feature_8_cascade_MBLBP;
struct __pyx_t_7skimage_7feature_8_cascade_MBLBPStump;
struct __pyx_t_7skimage_7feature_8_cascade_Stage;
struct __pyx_opt_args_7skimage_7feature_8_cascade__group_detections;
/* "skimage/feature/_cascade.pyx":27
*
* # Struct for storing a single detection.
* cdef struct Detection: # <<<<<<<<<<<<<<
*
* int r
*/
struct __pyx_t_7skimage_7feature_8_cascade_Detection {
int r;
int c;
int width;
int height;
};
/* "skimage/feature/_cascade.pyx":41
* # information as array and the average of all detections in a cluster
* # can be easily computed in a constant time.
* cdef struct DetectionsCluster: # <<<<<<<<<<<<<<
*
* int r_sum
*/
struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster {
int r_sum;
int c_sum;
int width_sum;
int height_sum;
int count;
};
/* "skimage/feature/_cascade.pyx":53
* # Defines the parameters of multi-block binary pattern feature.
* # Read more in skimage.feature.texture.multiblock_lbp.
* cdef struct MBLBP: # <<<<<<<<<<<<<<
*
* Py_ssize_t r
*/
struct __pyx_t_7skimage_7feature_8_cascade_MBLBP {
Py_ssize_t r;
Py_ssize_t c;
Py_ssize_t width;
Py_ssize_t height;
};
/* "skimage/feature/_cascade.pyx":69
* # look-up table (0 or 1) positive(right) or negative(left) weight is added to
* # the overall score of a stage.
* cdef struct MBLBPStump: # <<<<<<<<<<<<<<
*
* Py_ssize_t feature_id
*/
struct __pyx_t_7skimage_7feature_8_cascade_MBLBPStump {
Py_ssize_t feature_id;
Py_ssize_t lut_idx;
float left;
float right;
};
/* "skimage/feature/_cascade.pyx":85
* # next stage. If all the stages are passed, the object is predicted to be
* # present in the input image patch.
* cdef struct Stage: # <<<<<<<<<<<<<<
*
* Py_ssize_t first_idx
*/
struct __pyx_t_7skimage_7feature_8_cascade_Stage {
Py_ssize_t first_idx;
Py_ssize_t amount;
float threshold;
};
/* "skimage/feature/_cascade.pyx":92
*
*
* cdef vector[Detection] _group_detections(vector[Detection] detections, # <<<<<<<<<<<<<<
* float intersection_score_threshold=0.5,
* int min_neighbour_number=4):
*/
struct __pyx_opt_args_7skimage_7feature_8_cascade__group_detections {
int __pyx_n;
float intersection_score_threshold;
int min_neighbour_number;
};
/* "skimage/feature/_cascade.pyx":396
*
*
* cdef class Cascade: # <<<<<<<<<<<<<<
* """Class for cascade of classifiers that is used for object detection.
*
*/
struct __pyx_obj_7skimage_7feature_8_cascade_Cascade {
PyObject_HEAD
struct __pyx_vtabstruct_7skimage_7feature_8_cascade_Cascade *__pyx_vtab;
float eps;
Py_ssize_t stages_number;
Py_ssize_t stumps_number;
Py_ssize_t features_number;
Py_ssize_t window_width;
Py_ssize_t window_height;
struct __pyx_t_7skimage_7feature_8_cascade_Stage *stages;
struct __pyx_t_7skimage_7feature_8_cascade_MBLBPStump *stumps;
struct __pyx_t_7skimage_7feature_8_cascade_MBLBP *features;
__pyx_t_5numpy_uint32_t *LUTs;
};
/* "View.MemoryView":105
*
* @cname("__pyx_array")
* cdef class array: # <<<<<<<<<<<<<<
*
* cdef:
*/
struct __pyx_array_obj {
PyObject_HEAD
struct __pyx_vtabstruct_array *__pyx_vtab;
char *data;
Py_ssize_t len;
char *format;
int ndim;
Py_ssize_t *_shape;
Py_ssize_t *_strides;
Py_ssize_t itemsize;
PyObject *mode;
PyObject *_format;
void (*callback_free_data)(void *);
int free_data;
int dtype_is_object;
};
/* "View.MemoryView":279
*
* @cname('__pyx_MemviewEnum')
* cdef class Enum(object): # <<<<<<<<<<<<<<
* cdef object name
* def __init__(self, name):
*/
struct __pyx_MemviewEnum_obj {
PyObject_HEAD
PyObject *name;
};
/* "View.MemoryView":330
*
* @cname('__pyx_memoryview')
* cdef class memoryview(object): # <<<<<<<<<<<<<<
*
* cdef object obj
*/
struct __pyx_memoryview_obj {
PyObject_HEAD
struct __pyx_vtabstruct_memoryview *__pyx_vtab;
PyObject *obj;
PyObject *_size;
PyObject *_array_interface;
PyThread_type_lock lock;
__pyx_atomic_int acquisition_count[2];
__pyx_atomic_int *acquisition_count_aligned_p;
Py_buffer view;
int flags;
int dtype_is_object;
__Pyx_TypeInfo *typeinfo;
};
/* "View.MemoryView":965
*
* @cname('__pyx_memoryviewslice')
* cdef class _memoryviewslice(memoryview): # <<<<<<<<<<<<<<
* "Internal class for passing memoryview slices to Python"
*
*/
struct __pyx_memoryviewslice_obj {
struct __pyx_memoryview_obj __pyx_base;
__Pyx_memviewslice from_slice;
PyObject *from_object;
PyObject *(*to_object_func)(char *);
int (*to_dtype_func)(char *, PyObject *);
};
/* "skimage/feature/_cascade.pyx":396
*
*
* cdef class Cascade: # <<<<<<<<<<<<<<
* """Class for cascade of classifiers that is used for object detection.
*
*/
struct __pyx_vtabstruct_7skimage_7feature_8_cascade_Cascade {
int (*classify)(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *, __Pyx_memviewslice, Py_ssize_t, Py_ssize_t, float);
};
static struct __pyx_vtabstruct_7skimage_7feature_8_cascade_Cascade *__pyx_vtabptr_7skimage_7feature_8_cascade_Cascade;
/* "View.MemoryView":105
*
* @cname("__pyx_array")
* cdef class array: # <<<<<<<<<<<<<<
*
* cdef:
*/
struct __pyx_vtabstruct_array {
PyObject *(*get_memview)(struct __pyx_array_obj *);
};
static struct __pyx_vtabstruct_array *__pyx_vtabptr_array;
/* "View.MemoryView":330
*
* @cname('__pyx_memoryview')
* cdef class memoryview(object): # <<<<<<<<<<<<<<
*
* cdef object obj
*/
struct __pyx_vtabstruct_memoryview {
char *(*get_item_pointer)(struct __pyx_memoryview_obj *, PyObject *);
PyObject *(*is_slice)(struct __pyx_memoryview_obj *, PyObject *);
PyObject *(*setitem_slice_assignment)(struct __pyx_memoryview_obj *, PyObject *, PyObject *);
PyObject *(*setitem_slice_assign_scalar)(struct __pyx_memoryview_obj *, struct __pyx_memoryview_obj *, PyObject *);
PyObject *(*setitem_indexed)(struct __pyx_memoryview_obj *, PyObject *, PyObject *);
PyObject *(*convert_item_to_object)(struct __pyx_memoryview_obj *, char *);
PyObject *(*assign_item_from_object)(struct __pyx_memoryview_obj *, char *, PyObject *);
};
static struct __pyx_vtabstruct_memoryview *__pyx_vtabptr_memoryview;
/* "View.MemoryView":965
*
* @cname('__pyx_memoryviewslice')
* cdef class _memoryviewslice(memoryview): # <<<<<<<<<<<<<<
* "Internal class for passing memoryview slices to Python"
*
*/
struct __pyx_vtabstruct__memoryviewslice {
struct __pyx_vtabstruct_memoryview __pyx_base;
};
static struct __pyx_vtabstruct__memoryviewslice *__pyx_vtabptr__memoryviewslice;
/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
#define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
typedef struct {
void (*INCREF)(void*, PyObject*, int);
void (*DECREF)(void*, PyObject*, int);
void (*GOTREF)(void*, PyObject*, int);
void (*GIVEREF)(void*, PyObject*, int);
void* (*SetupContext)(const char*, int, const char*);
void (*FinishContext)(void**);
} __Pyx_RefNannyAPIStruct;
static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
#define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
#ifdef WITH_THREAD
#define __Pyx_RefNannySetupContext(name, acquire_gil)\
if (acquire_gil) {\
PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
__pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
PyGILState_Release(__pyx_gilstate_save);\
} else {\
__pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
}
#else
#define __Pyx_RefNannySetupContext(name, acquire_gil)\
__pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
#endif
#define __Pyx_RefNannyFinishContext()\
__Pyx_RefNanny->FinishContext(&__pyx_refnanny)
#define __Pyx_INCREF(r) __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
#define __Pyx_DECREF(r) __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
#define __Pyx_GOTREF(r) __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
#define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
#define __Pyx_XINCREF(r) do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
#define __Pyx_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
#define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
#define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
#else
#define __Pyx_RefNannyDeclarations
#define __Pyx_RefNannySetupContext(name, acquire_gil)
#define __Pyx_RefNannyFinishContext()
#define __Pyx_INCREF(r) Py_INCREF(r)
#define __Pyx_DECREF(r) Py_DECREF(r)
#define __Pyx_GOTREF(r)
#define __Pyx_GIVEREF(r)
#define __Pyx_XINCREF(r) Py_XINCREF(r)
#define __Pyx_XDECREF(r) Py_XDECREF(r)
#define __Pyx_XGOTREF(r)
#define __Pyx_XGIVEREF(r)
#endif
#define __Pyx_XDECREF_SET(r, v) do {\
PyObject *tmp = (PyObject *) r;\
r = v; __Pyx_XDECREF(tmp);\
} while (0)
#define __Pyx_DECREF_SET(r, v) do {\
PyObject *tmp = (PyObject *) r;\
r = v; __Pyx_DECREF(tmp);\
} while (0)
#define __Pyx_CLEAR(r) do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r) do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)
/* PyObjectGetAttrStr.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif
/* GetBuiltinName.proto */
static PyObject *__Pyx_GetBuiltinName(PyObject *name);
/* PyThreadStateGet.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyThreadState_declare PyThreadState *__pyx_tstate;
#define __Pyx_PyThreadState_assign __pyx_tstate = __Pyx_PyThreadState_Current;
#define __Pyx_PyErr_Occurred() __pyx_tstate->curexc_type
#else
#define __Pyx_PyThreadState_declare
#define __Pyx_PyThreadState_assign
#define __Pyx_PyErr_Occurred() PyErr_Occurred()
#endif
/* PyErrFetchRestore.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
#define __Pyx_ErrRestoreWithState(type, value, tb) __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb) __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrRestore(type, value, tb) __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
#define __Pyx_ErrFetch(type, value, tb) __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
#else
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#endif
#else
#define __Pyx_PyErr_Clear() PyErr_Clear()
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#define __Pyx_ErrRestoreWithState(type, value, tb) PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb) PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestoreInState(tstate, type, value, tb) PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchInState(tstate, type, value, tb) PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestore(type, value, tb) PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetch(type, value, tb) PyErr_Fetch(type, value, tb)
#endif
/* Profile.proto */
#ifndef CYTHON_PROFILE
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_PYSTON
#define CYTHON_PROFILE 0
#else
#define CYTHON_PROFILE 1
#endif
#endif
#ifndef CYTHON_TRACE_NOGIL
#define CYTHON_TRACE_NOGIL 0
#else
#if CYTHON_TRACE_NOGIL && !defined(CYTHON_TRACE)
#define CYTHON_TRACE 1
#endif
#endif
#ifndef CYTHON_TRACE
#define CYTHON_TRACE 0
#endif
#if CYTHON_TRACE
#undef CYTHON_PROFILE_REUSE_FRAME
#endif
#ifndef CYTHON_PROFILE_REUSE_FRAME
#define CYTHON_PROFILE_REUSE_FRAME 0
#endif
#if CYTHON_PROFILE || CYTHON_TRACE
#include "compile.h"
#include "frameobject.h"
#include "traceback.h"
#if CYTHON_PROFILE_REUSE_FRAME
#define CYTHON_FRAME_MODIFIER static
#define CYTHON_FRAME_DEL(frame)
#else
#define CYTHON_FRAME_MODIFIER
#define CYTHON_FRAME_DEL(frame) Py_CLEAR(frame)
#endif
#define __Pyx_TraceDeclarations\
static PyCodeObject *__pyx_frame_code = NULL;\
CYTHON_FRAME_MODIFIER PyFrameObject *__pyx_frame = NULL;\
int __Pyx_use_tracing = 0;
#define __Pyx_TraceFrameInit(codeobj)\
if (codeobj) __pyx_frame_code = (PyCodeObject*) codeobj;
#ifdef WITH_THREAD
#define __Pyx_TraceCall(funcname, srcfile, firstlineno, nogil, goto_error)\
if (nogil) {\
if (CYTHON_TRACE_NOGIL) {\
PyThreadState *tstate;\
PyGILState_STATE state = PyGILState_Ensure();\
tstate = __Pyx_PyThreadState_Current;\
if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
(tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) {\
__Pyx_use_tracing = __Pyx_TraceSetupAndCall(&__pyx_frame_code, &__pyx_frame, tstate, funcname, srcfile, firstlineno);\
}\
PyGILState_Release(state);\
if (unlikely(__Pyx_use_tracing < 0)) goto_error;\
}\
} else {\
PyThreadState* tstate = PyThreadState_GET();\
if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
(tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) {\
__Pyx_use_tracing = __Pyx_TraceSetupAndCall(&__pyx_frame_code, &__pyx_frame, tstate, funcname, srcfile, firstlineno);\
if (unlikely(__Pyx_use_tracing < 0)) goto_error;\
}\
}
#else
#define __Pyx_TraceCall(funcname, srcfile, firstlineno, nogil, goto_error)\
{ PyThreadState* tstate = PyThreadState_GET();\
if (unlikely(tstate->use_tracing) && !tstate->tracing &&\
(tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) {\
__Pyx_use_tracing = __Pyx_TraceSetupAndCall(&__pyx_frame_code, &__pyx_frame, tstate, funcname, srcfile, firstlineno);\
if (unlikely(__Pyx_use_tracing < 0)) goto_error;\
}\
}
#endif
#define __Pyx_TraceException()\
if (likely(!__Pyx_use_tracing)); else {\
PyThreadState* tstate = __Pyx_PyThreadState_Current;\
if (tstate->use_tracing &&\
(tstate->c_profilefunc || (CYTHON_TRACE && tstate->c_tracefunc))) {\
tstate->tracing++;\
tstate->use_tracing = 0;\
PyObject *exc_info = __Pyx_GetExceptionTuple(tstate);\
if (exc_info) {\
if (CYTHON_TRACE && tstate->c_tracefunc)\
tstate->c_tracefunc(\
tstate->c_traceobj, __pyx_frame, PyTrace_EXCEPTION, exc_info);\
tstate->c_profilefunc(\
tstate->c_profileobj, __pyx_frame, PyTrace_EXCEPTION, exc_info);\
Py_DECREF(exc_info);\
}\
tstate->use_tracing = 1;\
tstate->tracing--;\
}\
}
static void __Pyx_call_return_trace_func(PyThreadState *tstate, PyFrameObject *frame, PyObject *result) {
PyObject *type, *value, *traceback;
__Pyx_ErrFetchInState(tstate, &type, &value, &traceback);
tstate->tracing++;
tstate->use_tracing = 0;
if (CYTHON_TRACE && tstate->c_tracefunc)
tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_RETURN, result);
if (tstate->c_profilefunc)
tstate->c_profilefunc(tstate->c_profileobj, frame, PyTrace_RETURN, result);
CYTHON_FRAME_DEL(frame);
tstate->use_tracing = 1;
tstate->tracing--;
__Pyx_ErrRestoreInState(tstate, type, value, traceback);
}
#ifdef WITH_THREAD
#define __Pyx_TraceReturn(result, nogil)\
if (likely(!__Pyx_use_tracing)); else {\
if (nogil) {\
if (CYTHON_TRACE_NOGIL) {\
PyThreadState *tstate;\
PyGILState_STATE state = PyGILState_Ensure();\
tstate = __Pyx_PyThreadState_Current;\
if (tstate->use_tracing) {\
__Pyx_call_return_trace_func(tstate, __pyx_frame, (PyObject*)result);\
}\
PyGILState_Release(state);\
}\
} else {\
PyThreadState* tstate = __Pyx_PyThreadState_Current;\
if (tstate->use_tracing) {\
__Pyx_call_return_trace_func(tstate, __pyx_frame, (PyObject*)result);\
}\
}\
}
#else
#define __Pyx_TraceReturn(result, nogil)\
if (likely(!__Pyx_use_tracing)); else {\
PyThreadState* tstate = __Pyx_PyThreadState_Current;\
if (tstate->use_tracing) {\
__Pyx_call_return_trace_func(tstate, __pyx_frame, (PyObject*)result);\
}\
}
#endif
static PyCodeObject *__Pyx_createFrameCodeObject(const char *funcname, const char *srcfile, int firstlineno);
static int __Pyx_TraceSetupAndCall(PyCodeObject** code, PyFrameObject** frame, PyThreadState* tstate, const char *funcname, const char *srcfile, int firstlineno);
#else
#define __Pyx_TraceDeclarations
#define __Pyx_TraceFrameInit(codeobj)
#define __Pyx_TraceCall(funcname, srcfile, firstlineno, nogil, goto_error) if ((1)); else goto_error;
#define __Pyx_TraceException()
#define __Pyx_TraceReturn(result, nogil)
#endif
#if CYTHON_TRACE
static int __Pyx_call_line_trace_func(PyThreadState *tstate, PyFrameObject *frame, int lineno) {
int ret;
PyObject *type, *value, *traceback;
__Pyx_ErrFetchInState(tstate, &type, &value, &traceback);
__Pyx_PyFrame_SetLineNumber(frame, lineno);
tstate->tracing++;
tstate->use_tracing = 0;
ret = tstate->c_tracefunc(tstate->c_traceobj, frame, PyTrace_LINE, NULL);
tstate->use_tracing = 1;
tstate->tracing--;
if (likely(!ret)) {
__Pyx_ErrRestoreInState(tstate, type, value, traceback);
} else {
Py_XDECREF(type);
Py_XDECREF(value);
Py_XDECREF(traceback);
}
return ret;
}
#ifdef WITH_THREAD
#define __Pyx_TraceLine(lineno, nogil, goto_error)\
if (likely(!__Pyx_use_tracing)); else {\
if (nogil) {\
if (CYTHON_TRACE_NOGIL) {\
int ret = 0;\
PyThreadState *tstate;\
PyGILState_STATE state = PyGILState_Ensure();\
tstate = __Pyx_PyThreadState_Current;\
if (unlikely(tstate->use_tracing && tstate->c_tracefunc && __pyx_frame->f_trace)) {\
ret = __Pyx_call_line_trace_func(tstate, __pyx_frame, lineno);\
}\
PyGILState_Release(state);\
if (unlikely(ret)) goto_error;\
}\
} else {\
PyThreadState* tstate = __Pyx_PyThreadState_Current;\
if (unlikely(tstate->use_tracing && tstate->c_tracefunc && __pyx_frame->f_trace)) {\
int ret = __Pyx_call_line_trace_func(tstate, __pyx_frame, lineno);\
if (unlikely(ret)) goto_error;\
}\
}\
}
#else
#define __Pyx_TraceLine(lineno, nogil, goto_error)\
if (likely(!__Pyx_use_tracing)); else {\
PyThreadState* tstate = __Pyx_PyThreadState_Current;\
if (unlikely(tstate->use_tracing && tstate->c_tracefunc && __pyx_frame->f_trace)) {\
int ret = __Pyx_call_line_trace_func(tstate, __pyx_frame, lineno);\
if (unlikely(ret)) goto_error;\
}\
}
#endif
#else
#define __Pyx_TraceLine(lineno, nogil, goto_error) if ((1)); else goto_error;
#endif
/* WriteUnraisableException.proto */
static void __Pyx_WriteUnraisable(const char *name, int clineno,
int lineno, const char *filename,
int full_traceback, int nogil);
/* RaiseDoubleKeywords.proto */
static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);
/* ParseKeywords.proto */
static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\
PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\
const char* function_name);
/* RaiseArgTupleInvalid.proto */
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);
/* PyFunctionFastCall.proto */
#if CYTHON_FAST_PYCALL
#define __Pyx_PyFunction_FastCall(func, args, nargs)\
__Pyx_PyFunction_FastCallDict((func), (args), (nargs), NULL)
#if 1 || PY_VERSION_HEX < 0x030600B1
static PyObject *__Pyx_PyFunction_FastCallDict(PyObject *func, PyObject **args, Py_ssize_t nargs, PyObject *kwargs);
#else
#define __Pyx_PyFunction_FastCallDict(func, args, nargs, kwargs) _PyFunction_FastCallDict(func, args, nargs, kwargs)
#endif
#define __Pyx_BUILD_ASSERT_EXPR(cond)\
(sizeof(char [1 - 2*!(cond)]) - 1)
#ifndef Py_MEMBER_SIZE
#define Py_MEMBER_SIZE(type, member) sizeof(((type *)0)->member)
#endif
static size_t __pyx_pyframe_localsplus_offset = 0;
#include "frameobject.h"
#define __Pxy_PyFrame_Initialize_Offsets()\
((void)__Pyx_BUILD_ASSERT_EXPR(sizeof(PyFrameObject) == offsetof(PyFrameObject, f_localsplus) + Py_MEMBER_SIZE(PyFrameObject, f_localsplus)),\
(void)(__pyx_pyframe_localsplus_offset = ((size_t)PyFrame_Type.tp_basicsize) - Py_MEMBER_SIZE(PyFrameObject, f_localsplus)))
#define __Pyx_PyFrame_GetLocalsplus(frame)\
(assert(__pyx_pyframe_localsplus_offset), (PyObject **)(((char *)(frame)) + __pyx_pyframe_localsplus_offset))
#endif
/* PyCFunctionFastCall.proto */
#if CYTHON_FAST_PYCCALL
static CYTHON_INLINE PyObject *__Pyx_PyCFunction_FastCall(PyObject *func, PyObject **args, Py_ssize_t nargs);
#else
#define __Pyx_PyCFunction_FastCall(func, args, nargs) (assert(0), NULL)
#endif
/* PyObjectCall.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif
/* PyDictVersioning.proto */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
#define __PYX_DICT_VERSION_INIT ((PY_UINT64_T) -1)
#define __PYX_GET_DICT_VERSION(dict) (((PyDictObject*)(dict))->ma_version_tag)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
(version_var) = __PYX_GET_DICT_VERSION(dict);\
(cache_var) = (value);
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
static PY_UINT64_T __pyx_dict_version = 0;\
static PyObject *__pyx_dict_cached_value = NULL;\
if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
(VAR) = __pyx_dict_cached_value;\
} else {\
(VAR) = __pyx_dict_cached_value = (LOOKUP);\
__pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
}\
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
#else
#define __PYX_GET_DICT_VERSION(dict) (0)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) (VAR) = (LOOKUP);
#endif
/* GetModuleGlobalName.proto */
#if CYTHON_USE_DICT_VERSIONS
#define __Pyx_GetModuleGlobalName(var, name) {\
static PY_UINT64_T __pyx_dict_version = 0;\
static PyObject *__pyx_dict_cached_value = NULL;\
(var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_d))) ?\
(likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
__Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
}
#define __Pyx_GetModuleGlobalNameUncached(var, name) {\
PY_UINT64_T __pyx_dict_version;\
PyObject *__pyx_dict_cached_value;\
(var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
}
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
#else
#define __Pyx_GetModuleGlobalName(var, name) (var) = __Pyx__GetModuleGlobalName(name)
#define __Pyx_GetModuleGlobalNameUncached(var, name) (var) = __Pyx__GetModuleGlobalName(name)
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
#endif
/* PyObjectCall2Args.proto */
static CYTHON_UNUSED PyObject* __Pyx_PyObject_Call2Args(PyObject* function, PyObject* arg1, PyObject* arg2);
/* PyObjectCallMethO.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
#endif
/* PyObjectCallOneArg.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);
/* GetItemInt.proto */
#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
(__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
__Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\
(is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\
__Pyx_GetItemInt_Generic(o, to_py_func(i))))
#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
(__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
__Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
(PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i,
int wraparound, int boundscheck);
#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\
(__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\
__Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\
(PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL))
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i,
int wraparound, int boundscheck);
static PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j);
static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i,
int is_list, int wraparound, int boundscheck);
/* MemviewSliceInit.proto */
#define __Pyx_BUF_MAX_NDIMS %(BUF_MAX_NDIMS)d
#define __Pyx_MEMVIEW_DIRECT 1
#define __Pyx_MEMVIEW_PTR 2
#define __Pyx_MEMVIEW_FULL 4
#define __Pyx_MEMVIEW_CONTIG 8
#define __Pyx_MEMVIEW_STRIDED 16
#define __Pyx_MEMVIEW_FOLLOW 32
#define __Pyx_IS_C_CONTIG 1
#define __Pyx_IS_F_CONTIG 2
static int __Pyx_init_memviewslice(
struct __pyx_memoryview_obj *memview,
int ndim,
__Pyx_memviewslice *memviewslice,
int memview_is_new_reference);
static CYTHON_INLINE int __pyx_add_acquisition_count_locked(
__pyx_atomic_int *acquisition_count, PyThread_type_lock lock);
static CYTHON_INLINE int __pyx_sub_acquisition_count_locked(
__pyx_atomic_int *acquisition_count, PyThread_type_lock lock);
#define __pyx_get_slice_count_pointer(memview) (memview->acquisition_count_aligned_p)
#define __pyx_get_slice_count(memview) (*__pyx_get_slice_count_pointer(memview))
#define __PYX_INC_MEMVIEW(slice, have_gil) __Pyx_INC_MEMVIEW(slice, have_gil, __LINE__)
#define __PYX_XDEC_MEMVIEW(slice, have_gil) __Pyx_XDEC_MEMVIEW(slice, have_gil, __LINE__)
static CYTHON_INLINE void __Pyx_INC_MEMVIEW(__Pyx_memviewslice *, int, int);
static CYTHON_INLINE void __Pyx_XDEC_MEMVIEW(__Pyx_memviewslice *, int, int);
/* RaiseException.proto */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);
/* PyObjectCallNoArg.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func);
#else
#define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL)
#endif
/* FetchCommonType.proto */
static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type);
/* CythonFunction.proto */
#define __Pyx_CyFunction_USED 1
#define __Pyx_CYFUNCTION_STATICMETHOD 0x01
#define __Pyx_CYFUNCTION_CLASSMETHOD 0x02
#define __Pyx_CYFUNCTION_CCLASS 0x04
#define __Pyx_CyFunction_GetClosure(f)\
(((__pyx_CyFunctionObject *) (f))->func_closure)
#define __Pyx_CyFunction_GetClassObj(f)\
(((__pyx_CyFunctionObject *) (f))->func_classobj)
#define __Pyx_CyFunction_Defaults(type, f)\
((type *)(((__pyx_CyFunctionObject *) (f))->defaults))
#define __Pyx_CyFunction_SetDefaultsGetter(f, g)\
((__pyx_CyFunctionObject *) (f))->defaults_getter = (g)
typedef struct {
PyCFunctionObject func;
#if PY_VERSION_HEX < 0x030500A0
PyObject *func_weakreflist;
#endif
PyObject *func_dict;
PyObject *func_name;
PyObject *func_qualname;
PyObject *func_doc;
PyObject *func_globals;
PyObject *func_code;
PyObject *func_closure;
PyObject *func_classobj;
void *defaults;
int defaults_pyobjects;
size_t defaults_size; // used by FusedFunction for copying defaults
int flags;
PyObject *defaults_tuple;
PyObject *defaults_kwdict;
PyObject *(*defaults_getter)(PyObject *);
PyObject *func_annotations;
} __pyx_CyFunctionObject;
static PyTypeObject *__pyx_CyFunctionType = 0;
#define __Pyx_CyFunction_Check(obj) (__Pyx_TypeCheck(obj, __pyx_CyFunctionType))
#define __Pyx_CyFunction_NewEx(ml, flags, qualname, self, module, globals, code)\
__Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, qualname, self, module, globals, code)
static PyObject *__Pyx_CyFunction_New(PyTypeObject *, PyMethodDef *ml,
int flags, PyObject* qualname,
PyObject *self,
PyObject *module, PyObject *globals,
PyObject* code);
static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m,
size_t size,
int pyobjects);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m,
PyObject *tuple);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m,
PyObject *dict);
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m,
PyObject *dict);
static int __pyx_CyFunction_init(void);
/* pyobject_as_double.proto */
static double __Pyx__PyObject_AsDouble(PyObject* obj);
#if CYTHON_COMPILING_IN_PYPY
#define __Pyx_PyObject_AsDouble(obj)\
(likely(PyFloat_CheckExact(obj)) ? PyFloat_AS_DOUBLE(obj) :\
likely(PyInt_CheckExact(obj)) ?\
PyFloat_AsDouble(obj) : __Pyx__PyObject_AsDouble(obj))
#else
#define __Pyx_PyObject_AsDouble(obj)\
((likely(PyFloat_CheckExact(obj))) ?\
PyFloat_AS_DOUBLE(obj) : __Pyx__PyObject_AsDouble(obj))
#endif
/* SliceObject.proto */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(
PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop,
PyObject** py_start, PyObject** py_stop, PyObject** py_slice,
int has_cstart, int has_cstop, int wraparound);
/* DictGetItem.proto */
#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key);
#define __Pyx_PyObject_Dict_GetItem(obj, name)\
(likely(PyDict_CheckExact(obj)) ?\
__Pyx_PyDict_GetItem(obj, name) : PyObject_GetItem(obj, name))
#else
#define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
#define __Pyx_PyObject_Dict_GetItem(obj, name) PyObject_GetItem(obj, name)
#endif
/* RaiseTooManyValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);
/* RaiseNeedMoreValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);
/* RaiseNoneIterError.proto */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void);
/* ExtTypeTest.proto */
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type);
/* GetTopmostException.proto */
#if CYTHON_USE_EXC_INFO_STACK
static _PyErr_StackItem * __Pyx_PyErr_GetTopmostException(PyThreadState *tstate);
#endif
/* SaveResetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
#else
#define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb)
#define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb)
#endif
/* PyErrExceptionMatches.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
#else
#define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err)
#endif
/* GetException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb)
static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb);
#endif
/* ListCompAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
PyListObject* L = (PyListObject*) list;
Py_ssize_t len = Py_SIZE(list);
if (likely(L->allocated > len)) {
Py_INCREF(x);
PyList_SET_ITEM(list, len, x);
Py_SIZE(list) = len+1;
return 0;
}
return PyList_Append(list, x);
}
#else
#define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
#endif
/* ArgTypeTest.proto */
#define __Pyx_ArgTypeTest(obj, type, none_allowed, name, exact)\
((likely((Py_TYPE(obj) == type) | (none_allowed && (obj == Py_None)))) ? 1 :\
__Pyx__ArgTypeTest(obj, type, name, exact))
static int __Pyx__ArgTypeTest(PyObject *obj, PyTypeObject *type, const char *name, int exact);
/* IncludeStringH.proto */
#include <string.h>
/* BytesEquals.proto */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals);
/* UnicodeEquals.proto */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals);
/* StrEquals.proto */
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyString_Equals __Pyx_PyUnicode_Equals
#else
#define __Pyx_PyString_Equals __Pyx_PyBytes_Equals
#endif
/* UnaryNegOverflows.proto */
#define UNARY_NEG_WOULD_OVERFLOW(x)\
(((x) < 0) & ((unsigned long)(x) == 0-(unsigned long)(x)))
static CYTHON_UNUSED int __pyx_array_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/
static PyObject *__pyx_array_get_memview(struct __pyx_array_obj *); /*proto*/
/* GetAttr.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *, PyObject *);
/* ObjectGetItem.proto */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject *__Pyx_PyObject_GetItem(PyObject *obj, PyObject* key);
#else
#define __Pyx_PyObject_GetItem(obj, key) PyObject_GetItem(obj, key)
#endif
/* decode_c_string_utf16.proto */
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16(const char *s, Py_ssize_t size, const char *errors) {
int byteorder = 0;
return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16LE(const char *s, Py_ssize_t size, const char *errors) {
int byteorder = -1;
return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}
static CYTHON_INLINE PyObject *__Pyx_PyUnicode_DecodeUTF16BE(const char *s, Py_ssize_t size, const char *errors) {
int byteorder = 1;
return PyUnicode_DecodeUTF16(s, size, errors, &byteorder);
}
/* decode_c_string.proto */
static CYTHON_INLINE PyObject* __Pyx_decode_c_string(
const char* cstring, Py_ssize_t start, Py_ssize_t stop,
const char* encoding, const char* errors,
PyObject* (*decode_func)(const char *s, Py_ssize_t size, const char *errors));
/* GetAttr3.proto */
static CYTHON_INLINE PyObject *__Pyx_GetAttr3(PyObject *, PyObject *, PyObject *);
/* SwapException.proto */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_ExceptionSwap(type, value, tb) __Pyx__ExceptionSwap(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx__ExceptionSwap(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
static CYTHON_INLINE void __Pyx_ExceptionSwap(PyObject **type, PyObject **value, PyObject **tb);
#endif
/* Import.proto */
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level);
/* FastTypeChecks.proto */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
#else
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
#define __Pyx_PyErr_GivenExceptionMatches2(err, type1, type2) (PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2))
#endif
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
static CYTHON_UNUSED int __pyx_memoryview_getbuffer(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/
/* PyIntBinop.proto */
#if !CYTHON_COMPILING_IN_PYPY
static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace, int zerodivision_check);
#else
#define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace, zerodivision_check)\
(inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2))
#endif
/* ListExtend.proto */
static CYTHON_INLINE int __Pyx_PyList_Extend(PyObject* L, PyObject* v) {
#if CYTHON_COMPILING_IN_CPYTHON
PyObject* none = _PyList_Extend((PyListObject*)L, v);
if (unlikely(!none))
return -1;
Py_DECREF(none);
return 0;
#else
return PyList_SetSlice(L, PY_SSIZE_T_MAX, PY_SSIZE_T_MAX, v);
#endif
}
/* ListAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) {
PyListObject* L = (PyListObject*) list;
Py_ssize_t len = Py_SIZE(list);
if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) {
Py_INCREF(x);
PyList_SET_ITEM(list, len, x);
Py_SIZE(list) = len+1;
return 0;
}
return PyList_Append(list, x);
}
#else
#define __Pyx_PyList_Append(L,x) PyList_Append(L,x)
#endif
/* None.proto */
static CYTHON_INLINE void __Pyx_RaiseUnboundLocalError(const char *varname);
/* ImportFrom.proto */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);
/* HasAttr.proto */
static CYTHON_INLINE int __Pyx_HasAttr(PyObject *, PyObject *);
/* PyObject_GenericGetAttrNoDict.proto */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static CYTHON_INLINE PyObject* __Pyx_PyObject_GenericGetAttrNoDict(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GenericGetAttrNoDict PyObject_GenericGetAttr
#endif
/* PyObject_GenericGetAttr.proto */
#if CYTHON_USE_TYPE_SLOTS && CYTHON_USE_PYTYPE_LOOKUP && PY_VERSION_HEX < 0x03070000
static PyObject* __Pyx_PyObject_GenericGetAttr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GenericGetAttr PyObject_GenericGetAttr
#endif
/* SetVTable.proto */
static int __Pyx_SetVtable(PyObject *dict, void *vtable);
/* SetupReduce.proto */
static int __Pyx_setup_reduce(PyObject* type_obj);
/* TypeImport.proto */
#ifndef __PYX_HAVE_RT_ImportType_proto
#define __PYX_HAVE_RT_ImportType_proto
enum __Pyx_ImportType_CheckSize {
__Pyx_ImportType_CheckSize_Error = 0,
__Pyx_ImportType_CheckSize_Warn = 1,
__Pyx_ImportType_CheckSize_Ignore = 2
};
static PyTypeObject *__Pyx_ImportType(PyObject* module, const char *module_name, const char *class_name, size_t size, enum __Pyx_ImportType_CheckSize check_size);
#endif
/* CLineInTraceback.proto */
#ifdef CYTHON_CLINE_IN_TRACEBACK
#define __Pyx_CLineForTraceback(tstate, c_line) (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
#else
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
#endif
/* CodeObjectCache.proto */
typedef struct {
PyCodeObject* code_object;
int code_line;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
int count;
int max_count;
__Pyx_CodeObjectCacheEntry* entries;
};
static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static PyCodeObject *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);
/* AddTraceback.proto */
static void __Pyx_AddTraceback(const char *funcname, int c_line,
int py_line, const char *filename);
#if PY_MAJOR_VERSION < 3
static int __Pyx_GetBuffer(PyObject *obj, Py_buffer *view, int flags);
static void __Pyx_ReleaseBuffer(Py_buffer *view);
#else
#define __Pyx_GetBuffer PyObject_GetBuffer
#define __Pyx_ReleaseBuffer PyBuffer_Release
#endif
/* BufferStructDeclare.proto */
typedef struct {
Py_ssize_t shape, strides, suboffsets;
} __Pyx_Buf_DimInfo;
typedef struct {
size_t refcount;
Py_buffer pybuffer;
} __Pyx_Buffer;
typedef struct {
__Pyx_Buffer *rcbuffer;
char *data;
__Pyx_Buf_DimInfo diminfo[8];
} __Pyx_LocalBuf_ND;
/* MemviewSliceIsContig.proto */
static int __pyx_memviewslice_is_contig(const __Pyx_memviewslice mvs, char order, int ndim);
/* OverlappingSlices.proto */
static int __pyx_slices_overlap(__Pyx_memviewslice *slice1,
__Pyx_memviewslice *slice2,
int ndim, size_t itemsize);
/* Capsule.proto */
static CYTHON_INLINE PyObject *__pyx_capsule_create(void *p, const char *sig);
/* CppExceptionConversion.proto */
#ifndef __Pyx_CppExn2PyErr
#include <new>
#include <typeinfo>
#include <stdexcept>
#include <ios>
static void __Pyx_CppExn2PyErr() {
try {
if (PyErr_Occurred())
; // let the latest Python exn pass through and ignore the current one
else
throw;
} catch (const std::bad_alloc& exn) {
PyErr_SetString(PyExc_MemoryError, exn.what());
} catch (const std::bad_cast& exn) {
PyErr_SetString(PyExc_TypeError, exn.what());
} catch (const std::bad_typeid& exn) {
PyErr_SetString(PyExc_TypeError, exn.what());
} catch (const std::domain_error& exn) {
PyErr_SetString(PyExc_ValueError, exn.what());
} catch (const std::invalid_argument& exn) {
PyErr_SetString(PyExc_ValueError, exn.what());
} catch (const std::ios_base::failure& exn) {
PyErr_SetString(PyExc_IOError, exn.what());
} catch (const std::out_of_range& exn) {
PyErr_SetString(PyExc_IndexError, exn.what());
} catch (const std::overflow_error& exn) {
PyErr_SetString(PyExc_OverflowError, exn.what());
} catch (const std::range_error& exn) {
PyErr_SetString(PyExc_ArithmeticError, exn.what());
} catch (const std::underflow_error& exn) {
PyErr_SetString(PyExc_ArithmeticError, exn.what());
} catch (const std::exception& exn) {
PyErr_SetString(PyExc_RuntimeError, exn.what());
}
catch (...)
{
PyErr_SetString(PyExc_RuntimeError, "Unknown exception");
}
}
#endif
/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value);
/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value);
struct __pyx_t_7skimage_7feature_8_cascade_Detection;
static PyObject* __pyx_convert__to_py_struct____pyx_t_7skimage_7feature_8_cascade_Detection(struct __pyx_t_7skimage_7feature_8_cascade_Detection s);
/* RealImag.proto */
#if CYTHON_CCOMPLEX
#ifdef __cplusplus
#define __Pyx_CREAL(z) ((z).real())
#define __Pyx_CIMAG(z) ((z).imag())
#else
#define __Pyx_CREAL(z) (__real__(z))
#define __Pyx_CIMAG(z) (__imag__(z))
#endif
#else
#define __Pyx_CREAL(z) ((z).real)
#define __Pyx_CIMAG(z) ((z).imag)
#endif
#if defined(__cplusplus) && CYTHON_CCOMPLEX\
&& (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 5 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4 )) || __cplusplus >= 201103)
#define __Pyx_SET_CREAL(z,x) ((z).real(x))
#define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
#else
#define __Pyx_SET_CREAL(z,x) __Pyx_CREAL(z) = (x)
#define __Pyx_SET_CIMAG(z,y) __Pyx_CIMAG(z) = (y)
#endif
/* Arithmetic.proto */
#if CYTHON_CCOMPLEX
#define __Pyx_c_eq_float(a, b) ((a)==(b))
#define __Pyx_c_sum_float(a, b) ((a)+(b))
#define __Pyx_c_diff_float(a, b) ((a)-(b))
#define __Pyx_c_prod_float(a, b) ((a)*(b))
#define __Pyx_c_quot_float(a, b) ((a)/(b))
#define __Pyx_c_neg_float(a) (-(a))
#ifdef __cplusplus
#define __Pyx_c_is_zero_float(z) ((z)==(float)0)
#define __Pyx_c_conj_float(z) (::std::conj(z))
#if 1
#define __Pyx_c_abs_float(z) (::std::abs(z))
#define __Pyx_c_pow_float(a, b) (::std::pow(a, b))
#endif
#else
#define __Pyx_c_is_zero_float(z) ((z)==0)
#define __Pyx_c_conj_float(z) (conjf(z))
#if 1
#define __Pyx_c_abs_float(z) (cabsf(z))
#define __Pyx_c_pow_float(a, b) (cpowf(a, b))
#endif
#endif
#else
static CYTHON_INLINE int __Pyx_c_eq_float(__pyx_t_float_complex, __pyx_t_float_complex);
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sum_float(__pyx_t_float_complex, __pyx_t_float_complex);
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_diff_float(__pyx_t_float_complex, __pyx_t_float_complex);
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prod_float(__pyx_t_float_complex, __pyx_t_float_complex);
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quot_float(__pyx_t_float_complex, __pyx_t_float_complex);
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_neg_float(__pyx_t_float_complex);
static CYTHON_INLINE int __Pyx_c_is_zero_float(__pyx_t_float_complex);
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conj_float(__pyx_t_float_complex);
#if 1
static CYTHON_INLINE float __Pyx_c_abs_float(__pyx_t_float_complex);
static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_pow_float(__pyx_t_float_complex, __pyx_t_float_complex);
#endif
#endif
/* Arithmetic.proto */
#if CYTHON_CCOMPLEX
#define __Pyx_c_eq_double(a, b) ((a)==(b))
#define __Pyx_c_sum_double(a, b) ((a)+(b))
#define __Pyx_c_diff_double(a, b) ((a)-(b))
#define __Pyx_c_prod_double(a, b) ((a)*(b))
#define __Pyx_c_quot_double(a, b) ((a)/(b))
#define __Pyx_c_neg_double(a) (-(a))
#ifdef __cplusplus
#define __Pyx_c_is_zero_double(z) ((z)==(double)0)
#define __Pyx_c_conj_double(z) (::std::conj(z))
#if 1
#define __Pyx_c_abs_double(z) (::std::abs(z))
#define __Pyx_c_pow_double(a, b) (::std::pow(a, b))
#endif
#else
#define __Pyx_c_is_zero_double(z) ((z)==0)
#define __Pyx_c_conj_double(z) (conj(z))
#if 1
#define __Pyx_c_abs_double(z) (cabs(z))
#define __Pyx_c_pow_double(a, b) (cpow(a, b))
#endif
#endif
#else
static CYTHON_INLINE int __Pyx_c_eq_double(__pyx_t_double_complex, __pyx_t_double_complex);
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum_double(__pyx_t_double_complex, __pyx_t_double_complex);
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff_double(__pyx_t_double_complex, __pyx_t_double_complex);
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod_double(__pyx_t_double_complex, __pyx_t_double_complex);
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot_double(__pyx_t_double_complex, __pyx_t_double_complex);
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg_double(__pyx_t_double_complex);
static CYTHON_INLINE int __Pyx_c_is_zero_double(__pyx_t_double_complex);
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj_double(__pyx_t_double_complex);
#if 1
static CYTHON_INLINE double __Pyx_c_abs_double(__pyx_t_double_complex);
static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow_double(__pyx_t_double_complex, __pyx_t_double_complex);
#endif
#endif
/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__NPY_TYPES(enum NPY_TYPES value);
/* MemviewSliceCopyTemplate.proto */
static __Pyx_memviewslice
__pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs,
const char *mode, int ndim,
size_t sizeof_dtype, int contig_flag,
int dtype_is_object);
/* CIntFromPy.proto */
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *);
/* CIntFromPy.proto */
static CYTHON_INLINE size_t __Pyx_PyInt_As_size_t(PyObject *);
/* CIntFromPy.proto */
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *);
/* CIntFromPy.proto */
static CYTHON_INLINE char __Pyx_PyInt_As_char(PyObject *);
/* IsLittleEndian.proto */
static CYTHON_INLINE int __Pyx_Is_Little_Endian(void);
/* BufferFormatCheck.proto */
static const char* __Pyx_BufFmt_CheckString(__Pyx_BufFmt_Context* ctx, const char* ts);
static void __Pyx_BufFmt_Init(__Pyx_BufFmt_Context* ctx,
__Pyx_BufFmt_StackElem* stack,
__Pyx_TypeInfo* type);
/* TypeInfoCompare.proto */
static int __pyx_typeinfo_cmp(__Pyx_TypeInfo *a, __Pyx_TypeInfo *b);
/* MemviewSliceValidateAndInit.proto */
static int __Pyx_ValidateAndInit_memviewslice(
int *axes_specs,
int c_or_f_flag,
int buf_flags,
int ndim,
__Pyx_TypeInfo *dtype,
__Pyx_BufFmt_StackElem stack[],
__Pyx_memviewslice *memviewslice,
PyObject *original_obj);
/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_d_dc_float(PyObject *, int writable_flag);
/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dc_float(PyObject *, int writable_flag);
/* ObjectToMemviewSlice.proto */
static CYTHON_INLINE __Pyx_memviewslice __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_uint32_t(PyObject *, int writable_flag);
/* CheckBinaryVersion.proto */
static int __Pyx_check_binary_version(void);
/* FunctionImport.proto */
static int __Pyx_ImportFunction(PyObject *module, const char *funcname, void (**f)(void), const char *sig);
/* InitStrings.proto */
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);
static int __pyx_f_7skimage_7feature_8_cascade_7Cascade_classify(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, __Pyx_memviewslice __pyx_v_int_img, Py_ssize_t __pyx_v_row, Py_ssize_t __pyx_v_col, float __pyx_v_scale); /* proto*/
static PyObject *__pyx_array_get_memview(struct __pyx_array_obj *__pyx_v_self); /* proto*/
static char *__pyx_memoryview_get_item_pointer(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index); /* proto*/
static PyObject *__pyx_memoryview_is_slice(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_obj); /* proto*/
static PyObject *__pyx_memoryview_setitem_slice_assignment(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_dst, PyObject *__pyx_v_src); /* proto*/
static PyObject *__pyx_memoryview_setitem_slice_assign_scalar(struct __pyx_memoryview_obj *__pyx_v_self, struct __pyx_memoryview_obj *__pyx_v_dst, PyObject *__pyx_v_value); /* proto*/
static PyObject *__pyx_memoryview_setitem_indexed(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value); /* proto*/
static PyObject *__pyx_memoryview_convert_item_to_object(struct __pyx_memoryview_obj *__pyx_v_self, char *__pyx_v_itemp); /* proto*/
static PyObject *__pyx_memoryview_assign_item_from_object(struct __pyx_memoryview_obj *__pyx_v_self, char *__pyx_v_itemp, PyObject *__pyx_v_value); /* proto*/
static PyObject *__pyx_memoryviewslice_convert_item_to_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp); /* proto*/
static PyObject *__pyx_memoryviewslice_assign_item_from_object(struct __pyx_memoryviewslice_obj *__pyx_v_self, char *__pyx_v_itemp, PyObject *__pyx_v_value); /* proto*/
/* Module declarations from 'cpython.buffer' */
/* Module declarations from 'libc.string' */
/* Module declarations from 'libc.stdio' */
/* Module declarations from '__builtin__' */
/* Module declarations from 'cpython.type' */
static PyTypeObject *__pyx_ptype_7cpython_4type_type = 0;
/* Module declarations from 'cpython' */
/* Module declarations from 'cpython.object' */
/* Module declarations from 'cpython.ref' */
/* Module declarations from 'cpython.mem' */
/* Module declarations from 'numpy' */
/* Module declarations from 'numpy' */
static PyTypeObject *__pyx_ptype_5numpy_dtype = 0;
static PyTypeObject *__pyx_ptype_5numpy_flatiter = 0;
static PyTypeObject *__pyx_ptype_5numpy_broadcast = 0;
static PyTypeObject *__pyx_ptype_5numpy_ndarray = 0;
static PyTypeObject *__pyx_ptype_5numpy_ufunc = 0;
static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *, char *, char *, int *); /*proto*/
/* Module declarations from 'safe_openmp' */
/* Module declarations from 'libc.stdlib' */
/* Module declarations from 'libcpp.vector' */
/* Module declarations from 'cython.view' */
/* Module declarations from 'cython' */
/* Module declarations from 'skimage._shared.transform' */
static __pyx_t_5numpy_uint8_t (*__pyx_fuse_0__pyx_f_7skimage_7_shared_9transform_integrate)(__Pyx_memviewslice, Py_ssize_t, Py_ssize_t, Py_ssize_t, Py_ssize_t); /*proto*/
static __pyx_t_5numpy_uint16_t (*__pyx_fuse_1__pyx_f_7skimage_7_shared_9transform_integrate)(__Pyx_memviewslice, Py_ssize_t, Py_ssize_t, Py_ssize_t, Py_ssize_t); /*proto*/
static __pyx_t_5numpy_uint32_t (*__pyx_fuse_2__pyx_f_7skimage_7_shared_9transform_integrate)(__Pyx_memviewslice, Py_ssize_t, Py_ssize_t, Py_ssize_t, Py_ssize_t); /*proto*/
static __pyx_t_5numpy_uint64_t (*__pyx_fuse_3__pyx_f_7skimage_7_shared_9transform_integrate)(__Pyx_memviewslice, Py_ssize_t, Py_ssize_t, Py_ssize_t, Py_ssize_t); /*proto*/
static __pyx_t_5numpy_int8_t (*__pyx_fuse_4__pyx_f_7skimage_7_shared_9transform_integrate)(__Pyx_memviewslice, Py_ssize_t, Py_ssize_t, Py_ssize_t, Py_ssize_t); /*proto*/
static __pyx_t_5numpy_int16_t (*__pyx_fuse_5__pyx_f_7skimage_7_shared_9transform_integrate)(__Pyx_memviewslice, Py_ssize_t, Py_ssize_t, Py_ssize_t, Py_ssize_t); /*proto*/
static __pyx_t_5numpy_int32_t (*__pyx_fuse_6__pyx_f_7skimage_7_shared_9transform_integrate)(__Pyx_memviewslice, Py_ssize_t, Py_ssize_t, Py_ssize_t, Py_ssize_t); /*proto*/
static __pyx_t_5numpy_int64_t (*__pyx_fuse_7__pyx_f_7skimage_7_shared_9transform_integrate)(__Pyx_memviewslice, Py_ssize_t, Py_ssize_t, Py_ssize_t, Py_ssize_t); /*proto*/
static float (*__pyx_fuse_8__pyx_f_7skimage_7_shared_9transform_integrate)(__Pyx_memviewslice, Py_ssize_t, Py_ssize_t, Py_ssize_t, Py_ssize_t); /*proto*/
static double (*__pyx_fuse_9__pyx_f_7skimage_7_shared_9transform_integrate)(__Pyx_memviewslice, Py_ssize_t, Py_ssize_t, Py_ssize_t, Py_ssize_t); /*proto*/
/* Module declarations from 'libc.math' */
/* Module declarations from 'skimage._shared.fused_numerics' */
/* Module declarations from 'skimage._shared.interpolation' */
static CYTHON_INLINE Py_ssize_t __pyx_f_7skimage_7_shared_13interpolation_fmax(Py_ssize_t, Py_ssize_t); /*proto*/
static CYTHON_INLINE Py_ssize_t __pyx_f_7skimage_7_shared_13interpolation_fmin(Py_ssize_t, Py_ssize_t); /*proto*/
static CYTHON_INLINE Py_ssize_t __pyx_f_7skimage_7_shared_13interpolation_coord_map(Py_ssize_t, long, char); /*proto*/
static CYTHON_INLINE Py_ssize_t __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_t_5numpy_float32_t); /*proto*/
static CYTHON_INLINE Py_ssize_t __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_t_5numpy_float64_t); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_0__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_uint8_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_1__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_uint16_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_2__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_uint32_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_3__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_uint64_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_4__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_int8_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_5__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_int16_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_6__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_int32_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_7__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_int64_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_8__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_float32_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_9__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_float64_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_0__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_uint8_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_1__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_uint16_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_2__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_uint32_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_3__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_uint64_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_4__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_int8_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_5__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_int16_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_6__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_int32_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_7__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_int64_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_8__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_float32_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_9__pyx_f_7skimage_7_shared_13interpolation_quadratic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_float64_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_0__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_uint8_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_1__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_uint16_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_2__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_uint32_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_3__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_uint64_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_4__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_int8_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_5__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_int16_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_6__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_int32_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_7__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_int64_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_8__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_float32_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_0_9__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float32_t, __pyx_t_5numpy_float64_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_0__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_uint8_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_1__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_uint16_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_2__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_uint32_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_3__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_uint64_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_4__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_int8_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_5__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_int16_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_6__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_int32_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_7__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_int64_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_8__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_float32_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_1_9__pyx_f_7skimage_7_shared_13interpolation_cubic_interpolation(__pyx_t_5numpy_float64_t, __pyx_t_5numpy_float64_t *); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_uint8_t __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_t_5numpy_uint8_t *, Py_ssize_t, Py_ssize_t, long, long, char, __pyx_t_5numpy_uint8_t); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_uint16_t __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_t_5numpy_uint16_t *, Py_ssize_t, Py_ssize_t, long, long, char, __pyx_t_5numpy_uint16_t); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_uint32_t __pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_t_5numpy_uint32_t *, Py_ssize_t, Py_ssize_t, long, long, char, __pyx_t_5numpy_uint32_t); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_uint64_t __pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_t_5numpy_uint64_t *, Py_ssize_t, Py_ssize_t, long, long, char, __pyx_t_5numpy_uint64_t); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_int8_t __pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_t_5numpy_int8_t *, Py_ssize_t, Py_ssize_t, long, long, char, __pyx_t_5numpy_int8_t); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_int16_t __pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_t_5numpy_int16_t *, Py_ssize_t, Py_ssize_t, long, long, char, __pyx_t_5numpy_int16_t); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_int32_t __pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_t_5numpy_int32_t *, Py_ssize_t, Py_ssize_t, long, long, char, __pyx_t_5numpy_int32_t); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_int64_t __pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_t_5numpy_int64_t *, Py_ssize_t, Py_ssize_t, long, long, char, __pyx_t_5numpy_int64_t); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float32_t __pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_t_5numpy_float32_t *, Py_ssize_t, Py_ssize_t, long, long, char, __pyx_t_5numpy_float32_t); /*proto*/
static CYTHON_INLINE __pyx_t_5numpy_float64_t __pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_t_5numpy_float64_t *, Py_ssize_t, Py_ssize_t, long, long, char, __pyx_t_5numpy_float64_t); /*proto*/
/* Module declarations from 'skimage.feature._texture' */
static int (*__pyx_f_7skimage_7feature_8_texture__multiblock_lbp)(__Pyx_memviewslice, Py_ssize_t, Py_ssize_t, Py_ssize_t, Py_ssize_t, int __pyx_skip_dispatch); /*proto*/
/* Module declarations from 'skimage.feature._cascade' */
static PyTypeObject *__pyx_ptype_7skimage_7feature_8_cascade_Cascade = 0;
static PyTypeObject *__pyx_array_type = 0;
static PyTypeObject *__pyx_MemviewEnum_type = 0;
static PyTypeObject *__pyx_memoryview_type = 0;
static PyTypeObject *__pyx_memoryviewslice_type = 0;
static PyObject *generic = 0;
static PyObject *strided = 0;
static PyObject *indirect = 0;
static PyObject *contiguous = 0;
static PyObject *indirect_contiguous = 0;
static int __pyx_memoryview_thread_locks_used;
static PyThread_type_lock __pyx_memoryview_thread_locks[8];
static std::vector<struct __pyx_t_7skimage_7feature_8_cascade_Detection> __pyx_f_7skimage_7feature_8_cascade__group_detections(std::vector<struct __pyx_t_7skimage_7feature_8_cascade_Detection> , struct __pyx_opt_args_7skimage_7feature_8_cascade__group_detections *__pyx_optional_args); /*proto*/
static struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster __pyx_f_7skimage_7feature_8_cascade_update_cluster(struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster, struct __pyx_t_7skimage_7feature_8_cascade_Detection); /*proto*/
static struct __pyx_t_7skimage_7feature_8_cascade_Detection __pyx_f_7skimage_7feature_8_cascade_mean_detection_from_cluster(struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster); /*proto*/
static struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster __pyx_f_7skimage_7feature_8_cascade_cluster_from_detection(struct __pyx_t_7skimage_7feature_8_cascade_Detection); /*proto*/
static std::vector<struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster> __pyx_f_7skimage_7feature_8_cascade_threshold_clusters(std::vector<struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster> , int); /*proto*/
static std::vector<struct __pyx_t_7skimage_7feature_8_cascade_Detection> __pyx_f_7skimage_7feature_8_cascade_get_mean_detections(std::vector<struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster> ); /*proto*/
static float __pyx_f_7skimage_7feature_8_cascade_rect_intersection_area(struct __pyx_t_7skimage_7feature_8_cascade_Detection, struct __pyx_t_7skimage_7feature_8_cascade_Detection); /*proto*/
static float __pyx_f_7skimage_7feature_8_cascade_rect_intersection_score(struct __pyx_t_7skimage_7feature_8_cascade_Detection, struct __pyx_t_7skimage_7feature_8_cascade_Detection); /*proto*/
static PyObject *__pyx_convert_vector_to_py_struct____pyx_t_7skimage_7feature_8_cascade_Detection(const std::vector<struct __pyx_t_7skimage_7feature_8_cascade_Detection> &); /*proto*/
static struct __pyx_array_obj *__pyx_array_new(PyObject *, Py_ssize_t, char *, char *, char *); /*proto*/
static void *__pyx_align_pointer(void *, size_t); /*proto*/
static PyObject *__pyx_memoryview_new(PyObject *, int, int, __Pyx_TypeInfo *); /*proto*/
static CYTHON_INLINE int __pyx_memoryview_check(PyObject *); /*proto*/
static PyObject *_unellipsify(PyObject *, int); /*proto*/
static PyObject *assert_direct_dimensions(Py_ssize_t *, int); /*proto*/
static struct __pyx_memoryview_obj *__pyx_memview_slice(struct __pyx_memoryview_obj *, PyObject *); /*proto*/
static int __pyx_memoryview_slice_memviewslice(__Pyx_memviewslice *, Py_ssize_t, Py_ssize_t, Py_ssize_t, int, int, int *, Py_ssize_t, Py_ssize_t, Py_ssize_t, int, int, int, int); /*proto*/
static char *__pyx_pybuffer_index(Py_buffer *, char *, Py_ssize_t, Py_ssize_t); /*proto*/
static int __pyx_memslice_transpose(__Pyx_memviewslice *); /*proto*/
static PyObject *__pyx_memoryview_fromslice(__Pyx_memviewslice, int, PyObject *(*)(char *), int (*)(char *, PyObject *), int); /*proto*/
static __Pyx_memviewslice *__pyx_memoryview_get_slice_from_memoryview(struct __pyx_memoryview_obj *, __Pyx_memviewslice *); /*proto*/
static void __pyx_memoryview_slice_copy(struct __pyx_memoryview_obj *, __Pyx_memviewslice *); /*proto*/
static PyObject *__pyx_memoryview_copy_object(struct __pyx_memoryview_obj *); /*proto*/
static PyObject *__pyx_memoryview_copy_object_from_slice(struct __pyx_memoryview_obj *, __Pyx_memviewslice *); /*proto*/
static Py_ssize_t abs_py_ssize_t(Py_ssize_t); /*proto*/
static char __pyx_get_best_slice_order(__Pyx_memviewslice *, int); /*proto*/
static void _copy_strided_to_strided(char *, Py_ssize_t *, char *, Py_ssize_t *, Py_ssize_t *, Py_ssize_t *, int, size_t); /*proto*/
static void copy_strided_to_strided(__Pyx_memviewslice *, __Pyx_memviewslice *, int, size_t); /*proto*/
static Py_ssize_t __pyx_memoryview_slice_get_size(__Pyx_memviewslice *, int); /*proto*/
static Py_ssize_t __pyx_fill_contig_strides_array(Py_ssize_t *, Py_ssize_t *, Py_ssize_t, int, char); /*proto*/
static void *__pyx_memoryview_copy_data_to_temp(__Pyx_memviewslice *, __Pyx_memviewslice *, char, int); /*proto*/
static int __pyx_memoryview_err_extents(int, Py_ssize_t, Py_ssize_t); /*proto*/
static int __pyx_memoryview_err_dim(PyObject *, char *, int); /*proto*/
static int __pyx_memoryview_err(PyObject *, char *); /*proto*/
static int __pyx_memoryview_copy_contents(__Pyx_memviewslice, __Pyx_memviewslice, int, int, int); /*proto*/
static void __pyx_memoryview_broadcast_leading(__Pyx_memviewslice *, int, int); /*proto*/
static void __pyx_memoryview_refcount_copying(__Pyx_memviewslice *, int, int, int); /*proto*/
static void __pyx_memoryview_refcount_objects_in_slice_with_gil(char *, Py_ssize_t *, Py_ssize_t *, int, int); /*proto*/
static void __pyx_memoryview_refcount_objects_in_slice(char *, Py_ssize_t *, Py_ssize_t *, int, int); /*proto*/
static void __pyx_memoryview_slice_assign_scalar(__Pyx_memviewslice *, int, size_t, void *, int); /*proto*/
static void __pyx_memoryview__slice_assign_scalar(char *, Py_ssize_t *, Py_ssize_t *, int, size_t, void *); /*proto*/
static PyObject *__pyx_unpickle_Enum__set_state(struct __pyx_MemviewEnum_obj *, PyObject *); /*proto*/
static __Pyx_TypeInfo __Pyx_TypeInfo_float = { "float", NULL, sizeof(float), { 0 }, 0, 'R', 0, 0 };
static __Pyx_TypeInfo __Pyx_TypeInfo_nn___pyx_t_5numpy_uint32_t = { "uint32_t", NULL, sizeof(__pyx_t_5numpy_uint32_t), { 0 }, 0, IS_UNSIGNED(__pyx_t_5numpy_uint32_t) ? 'U' : 'I', IS_UNSIGNED(__pyx_t_5numpy_uint32_t), 0 };
#define __Pyx_MODULE_NAME "skimage.feature._cascade"
extern int __pyx_module_is_main_skimage__feature___cascade;
int __pyx_module_is_main_skimage__feature___cascade = 0;
/* Implementation of 'skimage.feature._cascade' */
static PyObject *__pyx_builtin_range;
static PyObject *__pyx_builtin_MemoryError;
static PyObject *__pyx_builtin_map;
static PyObject *__pyx_builtin_TypeError;
static PyObject *__pyx_builtin_ValueError;
static PyObject *__pyx_builtin_RuntimeError;
static PyObject *__pyx_builtin_ImportError;
static PyObject *__pyx_builtin_enumerate;
static PyObject *__pyx_builtin_Ellipsis;
static PyObject *__pyx_builtin_id;
static PyObject *__pyx_builtin_IndexError;
static const char __pyx_k_O[] = "O";
static const char __pyx_k_c[] = "c";
static const char __pyx_k_r[] = "r";
static const char __pyx_k_ET[] = "ET";
static const char __pyx_k_id[] = "id";
static const char __pyx_k_np[] = "np";
static const char __pyx_k__32[] = "*";
static const char __pyx_k_eps[] = "eps";
static const char __pyx_k_img[] = "img";
static const char __pyx_k_log[] = "log";
static const char __pyx_k_map[] = "map";
static const char __pyx_k_new[] = "__new__";
static const char __pyx_k_obj[] = "obj";
static const char __pyx_k_base[] = "base";
static const char __pyx_k_dict[] = "__dict__";
static const char __pyx_k_find[] = "find";
static const char __pyx_k_left[] = "left";
static const char __pyx_k_main[] = "__main__";
static const char __pyx_k_math[] = "math";
static const char __pyx_k_mode[] = "mode";
static const char __pyx_k_name[] = "name";
static const char __pyx_k_ndim[] = "ndim";
static const char __pyx_k_pack[] = "pack";
static const char __pyx_k_size[] = "size";
static const char __pyx_k_step[] = "step";
static const char __pyx_k_stop[] = "stop";
static const char __pyx_k_test[] = "__test__";
static const char __pyx_k_text[] = "text";
static const char __pyx_k_ASCII[] = "ASCII";
static const char __pyx_k_array[] = "array";
static const char __pyx_k_class[] = "__class__";
static const char __pyx_k_color[] = "color";
static const char __pyx_k_dtype[] = "dtype";
static const char __pyx_k_error[] = "error";
static const char __pyx_k_flags[] = "flags";
static const char __pyx_k_numpy[] = "numpy";
static const char __pyx_k_parse[] = "parse";
static const char __pyx_k_power[] = "power";
static const char __pyx_k_range[] = "range";
static const char __pyx_k_right[] = "right";
static const char __pyx_k_shape[] = "shape";
static const char __pyx_k_split[] = "split";
static const char __pyx_k_start[] = "start";
static const char __pyx_k_width[] = ".//width";
static const char __pyx_k_amount[] = "amount";
static const char __pyx_k_arange[] = "arange";
static const char __pyx_k_encode[] = "encode";
static const char __pyx_k_format[] = "format";
static const char __pyx_k_height[] = ".//height";
static const char __pyx_k_import[] = "__import__";
static const char __pyx_k_name_2[] = "__name__";
static const char __pyx_k_pickle[] = "pickle";
static const char __pyx_k_reduce[] = "__reduce__";
static const char __pyx_k_stages[] = ".//stages";
static const char __pyx_k_struct[] = "struct";
static const char __pyx_k_uint32[] = "uint32";
static const char __pyx_k_unpack[] = "unpack";
static const char __pyx_k_update[] = "update";
static const char __pyx_k_Cascade[] = "Cascade";
static const char __pyx_k_asarray[] = "asarray";
static const char __pyx_k_float32[] = "float32";
static const char __pyx_k_fortran[] = "fortran";
static const char __pyx_k_lut_idx[] = "lut_idx";
static const char __pyx_k_memview[] = "memview";
static const char __pyx_k_width_2[] = "width";
static const char __pyx_k_Ellipsis[] = "Ellipsis";
static const char __pyx_k_features[] = ".//features";
static const char __pyx_k_getstate[] = "__getstate__";
static const char __pyx_k_height_2[] = "height";
static const char __pyx_k_itemsize[] = "itemsize";
static const char __pyx_k_load_xml[] = "_load_xml";
static const char __pyx_k_max_size[] = "max_size";
static const char __pyx_k_min_size[] = "min_size";
static const char __pyx_k_pyx_type[] = "__pyx_type";
static const char __pyx_k_rgb2gray[] = "rgb2gray";
static const char __pyx_k_setstate[] = "__setstate__";
static const char __pyx_k_stageNum[] = ".//stageNum";
static const char __pyx_k_xml_file[] = "xml_file";
static const char __pyx_k_TypeError[] = "TypeError";
static const char __pyx_k_enumerate[] = "enumerate";
static const char __pyx_k_first_idx[] = "first_idx";
static const char __pyx_k_pyx_state[] = "__pyx_state";
static const char __pyx_k_reduce_ex[] = "__reduce_ex__";
static const char __pyx_k_threshold[] = "threshold";
static const char __pyx_k_transform[] = "transform";
static const char __pyx_k_IndexError[] = "IndexError";
static const char __pyx_k_ValueError[] = "ValueError";
static const char __pyx_k_feature_id[] = "feature_id";
static const char __pyx_k_leafValues[] = "leafValues";
static const char __pyx_k_pyx_result[] = "__pyx_result";
static const char __pyx_k_pyx_vtable[] = "__pyx_vtable__";
static const char __pyx_k_scale_step[] = "scale_step";
static const char __pyx_k_step_ratio[] = "step_ratio";
static const char __pyx_k_ImportError[] = "ImportError";
static const char __pyx_k_MemoryError[] = "MemoryError";
static const char __pyx_k_PickleError[] = "PickleError";
static const char __pyx_k_RuntimeError[] = "RuntimeError";
static const char __pyx_k_maxWeakCount[] = "maxWeakCount";
static const char __pyx_k_pyx_checksum[] = "__pyx_checksum";
static const char __pyx_k_scale_factor[] = "scale_factor";
static const char __pyx_k_stringsource[] = "stringsource";
static const char __pyx_k_internalNodes[] = "internalNodes";
static const char __pyx_k_pyx_getbuffer[] = "__pyx_getbuffer";
static const char __pyx_k_reduce_cython[] = "__reduce_cython__";
static const char __pyx_k_integral_image[] = "integral_image";
static const char __pyx_k_stageThreshold[] = "stageThreshold";
static const char __pyx_k_View_MemoryView[] = "View.MemoryView";
static const char __pyx_k_allocate_buffer[] = "allocate_buffer";
static const char __pyx_k_dtype_is_object[] = "dtype_is_object";
static const char __pyx_k_pyx_PickleError[] = "__pyx_PickleError";
static const char __pyx_k_setstate_cython[] = "__setstate_cython__";
static const char __pyx_k_weakClassifiers[] = "weakClassifiers";
static const char __pyx_k_ascontiguousarray[] = "ascontiguousarray";
static const char __pyx_k_pyx_unpickle_Enum[] = "__pyx_unpickle_Enum";
static const char __pyx_k_cline_in_traceback[] = "cline_in_traceback";
static const char __pyx_k_strided_and_direct[] = "<strided and direct>";
static const char __pyx_k_min_neighbour_number[] = "min_neighbour_number";
static const char __pyx_k_strided_and_indirect[] = "<strided and indirect>";
static const char __pyx_k_contiguous_and_direct[] = "<contiguous and direct>";
static const char __pyx_k_xml_etree_ElementTree[] = "xml.etree.ElementTree";
static const char __pyx_k_MemoryView_of_r_object[] = "<MemoryView of %r object>";
static const char __pyx_k_load_xml_locals_lambda[] = "_load_xml.<locals>.<lambda>";
static const char __pyx_k_MemoryView_of_r_at_0x_x[] = "<MemoryView of %r at 0x%x>";
static const char __pyx_k_contiguous_and_indirect[] = "<contiguous and indirect>";
static const char __pyx_k_get_valid_scale_factors[] = "_get_valid_scale_factors";
static const char __pyx_k_Cannot_index_with_type_s[] = "Cannot index with type '%s'";
static const char __pyx_k_skimage_feature__cascade[] = "skimage.feature._cascade";
static const char __pyx_k_Invalid_shape_in_axis_d_d[] = "Invalid shape in axis %d: %d.";
static const char __pyx_k_itemsize_0_for_cython_array[] = "itemsize <= 0 for cython.array";
static const char __pyx_k_ndarray_is_not_C_contiguous[] = "ndarray is not C contiguous";
static const char __pyx_k_intersection_score_threshold[] = "intersection_score_threshold";
static const char __pyx_k_get_contiguous_integral_image[] = "_get_contiguous_integral_image";
static const char __pyx_k_unable_to_allocate_array_data[] = "unable to allocate array data.";
static const char __pyx_k_strided_and_direct_or_indirect[] = "<strided and direct or indirect>";
static const char __pyx_k_Failed_to_allocate_memory_while[] = "Failed to allocate memory while parsing XML.";
static const char __pyx_k_numpy_core_multiarray_failed_to[] = "numpy.core.multiarray failed to import";
static const char __pyx_k_unknown_dtype_code_in_numpy_pxd[] = "unknown dtype code in numpy.pxd (%d)";
static const char __pyx_k_Buffer_view_does_not_expose_stri[] = "Buffer view does not expose strides";
static const char __pyx_k_Can_only_create_a_buffer_that_is[] = "Can only create a buffer that is contiguous in memory.";
static const char __pyx_k_Cannot_assign_to_read_only_memor[] = "Cannot assign to read-only memoryview";
static const char __pyx_k_Cannot_create_writable_memory_vi[] = "Cannot create writable memory view from read-only memoryview";
static const char __pyx_k_Empty_shape_tuple_for_cython_arr[] = "Empty shape tuple for cython.array";
static const char __pyx_k_Format_string_allocated_too_shor[] = "Format string allocated too short, see comment in numpy.pxd";
static const char __pyx_k_Incompatible_checksums_s_vs_0xb0[] = "Incompatible checksums (%s vs 0xb068931 = (name))";
static const char __pyx_k_Indirect_dimensions_not_supporte[] = "Indirect dimensions not supported";
static const char __pyx_k_Invalid_mode_expected_c_or_fortr[] = "Invalid mode, expected 'c' or 'fortran', got %s";
static const char __pyx_k_Non_native_byte_order_not_suppor[] = "Non-native byte order not supported";
static const char __pyx_k_Out_of_bounds_on_buffer_access_a[] = "Out of bounds on buffer access (axis %d)";
static const char __pyx_k_Unable_to_convert_item_to_object[] = "Unable to convert item to object";
static const char __pyx_k_got_differing_extents_in_dimensi[] = "got differing extents in dimension %d (got %d and %d)";
static const char __pyx_k_ndarray_is_not_Fortran_contiguou[] = "ndarray is not Fortran contiguous";
static const char __pyx_k_no_default___reduce___due_to_non[] = "no default __reduce__ due to non-trivial __cinit__";
static const char __pyx_k_numpy_core_umath_failed_to_impor[] = "numpy.core.umath failed to import";
static const char __pyx_k_self_LUTs_self_features_self_sta[] = "self.LUTs,self.features,self.stages,self.stumps cannot be converted to a Python object for pickling";
static const char __pyx_k_unable_to_allocate_shape_and_str[] = "unable to allocate shape and strides.";
static const char __pyx_k_Format_string_allocated_too_shor_2[] = "Format string allocated too short.";
static PyObject *__pyx_n_s_ASCII;
static PyObject *__pyx_kp_s_Buffer_view_does_not_expose_stri;
static PyObject *__pyx_kp_s_Can_only_create_a_buffer_that_is;
static PyObject *__pyx_kp_s_Cannot_assign_to_read_only_memor;
static PyObject *__pyx_kp_s_Cannot_create_writable_memory_vi;
static PyObject *__pyx_kp_s_Cannot_index_with_type_s;
static PyObject *__pyx_n_s_Cascade;
static PyObject *__pyx_n_s_ET;
static PyObject *__pyx_n_s_Ellipsis;
static PyObject *__pyx_kp_s_Empty_shape_tuple_for_cython_arr;
static PyObject *__pyx_kp_u_Failed_to_allocate_memory_while;
static PyObject *__pyx_kp_u_Format_string_allocated_too_shor;
static PyObject *__pyx_kp_u_Format_string_allocated_too_shor_2;
static PyObject *__pyx_n_s_ImportError;
static PyObject *__pyx_kp_s_Incompatible_checksums_s_vs_0xb0;
static PyObject *__pyx_n_s_IndexError;
static PyObject *__pyx_kp_s_Indirect_dimensions_not_supporte;
static PyObject *__pyx_kp_s_Invalid_mode_expected_c_or_fortr;
static PyObject *__pyx_kp_s_Invalid_shape_in_axis_d_d;
static PyObject *__pyx_n_s_MemoryError;
static PyObject *__pyx_kp_s_MemoryView_of_r_at_0x_x;
static PyObject *__pyx_kp_s_MemoryView_of_r_object;
static PyObject *__pyx_kp_u_Non_native_byte_order_not_suppor;
static PyObject *__pyx_n_b_O;
static PyObject *__pyx_kp_s_Out_of_bounds_on_buffer_access_a;
static PyObject *__pyx_n_s_PickleError;
static PyObject *__pyx_n_s_RuntimeError;
static PyObject *__pyx_n_s_TypeError;
static PyObject *__pyx_kp_s_Unable_to_convert_item_to_object;
static PyObject *__pyx_n_s_ValueError;
static PyObject *__pyx_n_s_View_MemoryView;
static PyObject *__pyx_n_s__32;
static PyObject *__pyx_n_s_allocate_buffer;
static PyObject *__pyx_n_s_amount;
static PyObject *__pyx_n_s_arange;
static PyObject *__pyx_n_s_array;
static PyObject *__pyx_n_s_asarray;
static PyObject *__pyx_n_s_ascontiguousarray;
static PyObject *__pyx_n_s_base;
static PyObject *__pyx_n_s_c;
static PyObject *__pyx_n_u_c;
static PyObject *__pyx_n_s_class;
static PyObject *__pyx_n_s_cline_in_traceback;
static PyObject *__pyx_n_s_color;
static PyObject *__pyx_kp_s_contiguous_and_direct;
static PyObject *__pyx_kp_s_contiguous_and_indirect;
static PyObject *__pyx_n_s_dict;
static PyObject *__pyx_n_s_dtype;
static PyObject *__pyx_n_s_dtype_is_object;
static PyObject *__pyx_n_s_encode;
static PyObject *__pyx_n_s_enumerate;
static PyObject *__pyx_n_s_eps;
static PyObject *__pyx_n_s_error;
static PyObject *__pyx_n_s_feature_id;
static PyObject *__pyx_kp_u_features;
static PyObject *__pyx_n_s_find;
static PyObject *__pyx_n_s_first_idx;
static PyObject *__pyx_n_s_flags;
static PyObject *__pyx_n_s_float32;
static PyObject *__pyx_n_s_format;
static PyObject *__pyx_n_s_fortran;
static PyObject *__pyx_n_u_fortran;
static PyObject *__pyx_n_s_get_contiguous_integral_image;
static PyObject *__pyx_n_s_get_valid_scale_factors;
static PyObject *__pyx_n_s_getstate;
static PyObject *__pyx_kp_s_got_differing_extents_in_dimensi;
static PyObject *__pyx_kp_u_height;
static PyObject *__pyx_n_s_height_2;
static PyObject *__pyx_n_s_id;
static PyObject *__pyx_n_s_img;
static PyObject *__pyx_n_s_import;
static PyObject *__pyx_n_s_integral_image;
static PyObject *__pyx_n_u_internalNodes;
static PyObject *__pyx_n_s_intersection_score_threshold;
static PyObject *__pyx_n_s_itemsize;
static PyObject *__pyx_kp_s_itemsize_0_for_cython_array;
static PyObject *__pyx_n_u_leafValues;
static PyObject *__pyx_n_s_left;
static PyObject *__pyx_n_s_load_xml;
static PyObject *__pyx_n_s_load_xml_locals_lambda;
static PyObject *__pyx_n_s_log;
static PyObject *__pyx_n_s_lut_idx;
static PyObject *__pyx_n_s_main;
static PyObject *__pyx_n_s_map;
static PyObject *__pyx_n_s_math;
static PyObject *__pyx_n_u_maxWeakCount;
static PyObject *__pyx_n_s_max_size;
static PyObject *__pyx_n_s_memview;
static PyObject *__pyx_n_s_min_neighbour_number;
static PyObject *__pyx_n_s_min_size;
static PyObject *__pyx_n_s_mode;
static PyObject *__pyx_n_s_name;
static PyObject *__pyx_n_s_name_2;
static PyObject *__pyx_kp_u_ndarray_is_not_C_contiguous;
static PyObject *__pyx_kp_u_ndarray_is_not_Fortran_contiguou;
static PyObject *__pyx_n_s_ndim;
static PyObject *__pyx_n_s_new;
static PyObject *__pyx_kp_s_no_default___reduce___due_to_non;
static PyObject *__pyx_n_s_np;
static PyObject *__pyx_n_s_numpy;
static PyObject *__pyx_kp_u_numpy_core_multiarray_failed_to;
static PyObject *__pyx_kp_u_numpy_core_umath_failed_to_impor;
static PyObject *__pyx_n_s_obj;
static PyObject *__pyx_n_s_pack;
static PyObject *__pyx_n_s_parse;
static PyObject *__pyx_n_s_pickle;
static PyObject *__pyx_n_s_power;
static PyObject *__pyx_n_s_pyx_PickleError;
static PyObject *__pyx_n_s_pyx_checksum;
static PyObject *__pyx_n_s_pyx_getbuffer;
static PyObject *__pyx_n_s_pyx_result;
static PyObject *__pyx_n_s_pyx_state;
static PyObject *__pyx_n_s_pyx_type;
static PyObject *__pyx_n_s_pyx_unpickle_Enum;
static PyObject *__pyx_n_s_pyx_vtable;
static PyObject *__pyx_n_s_r;
static PyObject *__pyx_n_s_range;
static PyObject *__pyx_n_s_reduce;
static PyObject *__pyx_n_s_reduce_cython;
static PyObject *__pyx_n_s_reduce_ex;
static PyObject *__pyx_n_s_rgb2gray;
static PyObject *__pyx_n_s_right;
static PyObject *__pyx_n_s_scale_factor;
static PyObject *__pyx_n_s_scale_step;
static PyObject *__pyx_kp_s_self_LUTs_self_features_self_sta;
static PyObject *__pyx_n_s_setstate;
static PyObject *__pyx_n_s_setstate_cython;
static PyObject *__pyx_n_s_shape;
static PyObject *__pyx_n_s_size;
static PyObject *__pyx_n_s_skimage_feature__cascade;
static PyObject *__pyx_n_s_split;
static PyObject *__pyx_kp_u_stageNum;
static PyObject *__pyx_n_u_stageThreshold;
static PyObject *__pyx_kp_u_stages;
static PyObject *__pyx_n_s_start;
static PyObject *__pyx_n_s_step;
static PyObject *__pyx_n_s_step_ratio;
static PyObject *__pyx_n_s_stop;
static PyObject *__pyx_kp_s_strided_and_direct;
static PyObject *__pyx_kp_s_strided_and_direct_or_indirect;
static PyObject *__pyx_kp_s_strided_and_indirect;
static PyObject *__pyx_kp_s_stringsource;
static PyObject *__pyx_n_s_struct;
static PyObject *__pyx_n_s_test;
static PyObject *__pyx_n_s_text;
static PyObject *__pyx_n_s_threshold;
static PyObject *__pyx_n_s_transform;
static PyObject *__pyx_n_u_uint32;
static PyObject *__pyx_kp_s_unable_to_allocate_array_data;
static PyObject *__pyx_kp_s_unable_to_allocate_shape_and_str;
static PyObject *__pyx_kp_u_unknown_dtype_code_in_numpy_pxd;
static PyObject *__pyx_n_s_unpack;
static PyObject *__pyx_n_s_update;
static PyObject *__pyx_n_u_weakClassifiers;
static PyObject *__pyx_kp_u_width;
static PyObject *__pyx_n_s_width_2;
static PyObject *__pyx_n_s_xml_etree_ElementTree;
static PyObject *__pyx_n_s_xml_file;
static void __pyx_pf_7skimage_7feature_8_cascade_7Cascade___dealloc__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self); /* proto */
static int __pyx_pf_7skimage_7feature_8_cascade_7Cascade_2__init__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_xml_file, PyObject *__pyx_v_eps); /* proto */
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_4_get_valid_scale_factors(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_min_size, PyObject *__pyx_v_max_size, PyObject *__pyx_v_scale_step); /* proto */
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_6_get_contiguous_integral_image(CYTHON_UNUSED struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_img); /* proto */
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_8detect_multi_scale(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_img, float __pyx_v_scale_factor, float __pyx_v_step_ratio, PyObject *__pyx_v_min_size, PyObject *__pyx_v_max_size, PyObject *__pyx_v_min_neighbour_number, PyObject *__pyx_v_intersection_score_threshold); /* proto */
static PyObject *__pyx_lambda_funcdef_lambda(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_x); /* proto */
static PyObject *__pyx_lambda_funcdef_lambda1(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_x); /* proto */
static PyObject *__pyx_lambda_funcdef_lambda2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_x); /* proto */
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_10_load_xml(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_xml_file, PyObject *__pyx_v_eps); /* proto */
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_3eps___get__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self); /* proto */
static int __pyx_pf_7skimage_7feature_8_cascade_7Cascade_3eps_2__set__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_13stages_number___get__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self); /* proto */
static int __pyx_pf_7skimage_7feature_8_cascade_7Cascade_13stages_number_2__set__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_13stumps_number___get__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self); /* proto */
static int __pyx_pf_7skimage_7feature_8_cascade_7Cascade_13stumps_number_2__set__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_15features_number___get__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self); /* proto */
static int __pyx_pf_7skimage_7feature_8_cascade_7Cascade_15features_number_2__set__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_12window_width___get__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self); /* proto */
static int __pyx_pf_7skimage_7feature_8_cascade_7Cascade_12window_width_2__set__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_13window_height___get__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self); /* proto */
static int __pyx_pf_7skimage_7feature_8_cascade_7Cascade_13window_height_2__set__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /* proto */
static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info); /* proto */
static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array___cinit__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_shape, Py_ssize_t __pyx_v_itemsize, PyObject *__pyx_v_format, PyObject *__pyx_v_mode, int __pyx_v_allocate_buffer); /* proto */
static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_2__getbuffer__(struct __pyx_array_obj *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /* proto */
static void __pyx_array___pyx_pf_15View_dot_MemoryView_5array_4__dealloc__(struct __pyx_array_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_5array_7memview___get__(struct __pyx_array_obj *__pyx_v_self); /* proto */
static Py_ssize_t __pyx_array___pyx_pf_15View_dot_MemoryView_5array_6__len__(struct __pyx_array_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_8__getattr__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_attr); /* proto */
static PyObject *__pyx_array___pyx_pf_15View_dot_MemoryView_5array_10__getitem__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_item); /* proto */
static int __pyx_array___pyx_pf_15View_dot_MemoryView_5array_12__setitem__(struct __pyx_array_obj *__pyx_v_self, PyObject *__pyx_v_item, PyObject *__pyx_v_value); /* proto */
static PyObject *__pyx_pf___pyx_array___reduce_cython__(CYTHON_UNUSED struct __pyx_array_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf___pyx_array_2__setstate_cython__(CYTHON_UNUSED struct __pyx_array_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum___init__(struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v_name); /* proto */
static PyObject *__pyx_MemviewEnum___pyx_pf_15View_dot_MemoryView_4Enum_2__repr__(struct __pyx_MemviewEnum_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf___pyx_MemviewEnum___reduce_cython__(struct __pyx_MemviewEnum_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf___pyx_MemviewEnum_2__setstate_cython__(struct __pyx_MemviewEnum_obj *__pyx_v_self, PyObject *__pyx_v___pyx_state); /* proto */
static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview___cinit__(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_obj, int __pyx_v_flags, int __pyx_v_dtype_is_object); /* proto */
static void __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_2__dealloc__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_4__getitem__(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index); /* proto */
static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_6__setitem__(struct __pyx_memoryview_obj *__pyx_v_self, PyObject *__pyx_v_index, PyObject *__pyx_v_value); /* proto */
static int __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_8__getbuffer__(struct __pyx_memoryview_obj *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_1T___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4base___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_5shape___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_7strides___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_10suboffsets___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4ndim___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_8itemsize___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_6nbytes___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_10memoryview_4size___get__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static Py_ssize_t __pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_10__len__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_12__repr__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_14__str__(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_16is_c_contig(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_18is_f_contig(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_20copy(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_memoryview___pyx_pf_15View_dot_MemoryView_10memoryview_22copy_fortran(struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf___pyx_memoryview___reduce_cython__(CYTHON_UNUSED struct __pyx_memoryview_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf___pyx_memoryview_2__setstate_cython__(CYTHON_UNUSED struct __pyx_memoryview_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static void __pyx_memoryviewslice___pyx_pf_15View_dot_MemoryView_16_memoryviewslice___dealloc__(struct __pyx_memoryviewslice_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView_16_memoryviewslice_4base___get__(struct __pyx_memoryviewslice_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf___pyx_memoryviewslice___reduce_cython__(CYTHON_UNUSED struct __pyx_memoryviewslice_obj *__pyx_v_self); /* proto */
static PyObject *__pyx_pf___pyx_memoryviewslice_2__setstate_cython__(CYTHON_UNUSED struct __pyx_memoryviewslice_obj *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_pf_15View_dot_MemoryView___pyx_unpickle_Enum(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v___pyx_type, long __pyx_v___pyx_checksum, PyObject *__pyx_v___pyx_state); /* proto */
static PyObject *__pyx_tp_new_7skimage_7feature_8_cascade_Cascade(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_array(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_Enum(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new_memoryview(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_tp_new__memoryviewslice(PyTypeObject *t, PyObject *a, PyObject *k); /*proto*/
static PyObject *__pyx_float_0_5;
static PyObject *__pyx_float_1eneg_5;
static PyObject *__pyx_int_0;
static PyObject *__pyx_int_1;
static PyObject *__pyx_int_2;
static PyObject *__pyx_int_4;
static PyObject *__pyx_int_8;
static PyObject *__pyx_int_184977713;
static PyObject *__pyx_int_neg_1;
static PyObject *__pyx_tuple_;
static PyObject *__pyx_slice__2;
static PyObject *__pyx_slice__3;
static PyObject *__pyx_tuple__4;
static PyObject *__pyx_tuple__5;
static PyObject *__pyx_tuple__6;
static PyObject *__pyx_tuple__7;
static PyObject *__pyx_tuple__8;
static PyObject *__pyx_tuple__9;
static PyObject *__pyx_slice__27;
static PyObject *__pyx_tuple__10;
static PyObject *__pyx_tuple__11;
static PyObject *__pyx_tuple__12;
static PyObject *__pyx_tuple__13;
static PyObject *__pyx_tuple__14;
static PyObject *__pyx_tuple__15;
static PyObject *__pyx_tuple__16;
static PyObject *__pyx_tuple__17;
static PyObject *__pyx_tuple__18;
static PyObject *__pyx_tuple__19;
static PyObject *__pyx_tuple__20;
static PyObject *__pyx_tuple__21;
static PyObject *__pyx_tuple__22;
static PyObject *__pyx_tuple__23;
static PyObject *__pyx_tuple__24;
static PyObject *__pyx_tuple__25;
static PyObject *__pyx_tuple__26;
static PyObject *__pyx_tuple__28;
static PyObject *__pyx_tuple__29;
static PyObject *__pyx_tuple__30;
static PyObject *__pyx_tuple__33;
static PyObject *__pyx_tuple__34;
static PyObject *__pyx_tuple__35;
static PyObject *__pyx_tuple__36;
static PyObject *__pyx_tuple__37;
static PyObject *__pyx_tuple__38;
static PyObject *__pyx_codeobj__31;
/* Late includes */
/* "skimage/feature/_cascade.pyx":92
*
*
* cdef vector[Detection] _group_detections(vector[Detection] detections, # <<<<<<<<<<<<<<
* float intersection_score_threshold=0.5,
* int min_neighbour_number=4):
*/
static std::vector<struct __pyx_t_7skimage_7feature_8_cascade_Detection> __pyx_f_7skimage_7feature_8_cascade__group_detections(std::vector<struct __pyx_t_7skimage_7feature_8_cascade_Detection> __pyx_v_detections, struct __pyx_opt_args_7skimage_7feature_8_cascade__group_detections *__pyx_optional_args) {
float __pyx_v_intersection_score_threshold = ((float)0.5);
int __pyx_v_min_neighbour_number = ((int)4);
struct __pyx_t_7skimage_7feature_8_cascade_Detection __pyx_v_mean_detection;
std::vector<struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster> __pyx_v_clusters;
Py_ssize_t __pyx_v_nr_of_clusters;
Py_ssize_t __pyx_v_current_detection_nr;
Py_ssize_t __pyx_v_current_cluster_nr;
Py_ssize_t __pyx_v_nr_of_detections;
Py_ssize_t __pyx_v_best_cluster_nr;
int __pyx_v_new_cluster;
float __pyx_v_best_score;
float __pyx_v_intersection_score;
std::vector<struct __pyx_t_7skimage_7feature_8_cascade_Detection> __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
int __pyx_t_1;
Py_ssize_t __pyx_t_2;
Py_ssize_t __pyx_t_3;
Py_ssize_t __pyx_t_4;
Py_ssize_t __pyx_t_5;
Py_ssize_t __pyx_t_6;
Py_ssize_t __pyx_t_7;
__Pyx_RefNannySetupContext("_group_detections", 0);
__Pyx_TraceCall("_group_detections", __pyx_f[0], 92, 0, __PYX_ERR(0, 92, __pyx_L1_error));
if (__pyx_optional_args) {
if (__pyx_optional_args->__pyx_n > 0) {
__pyx_v_intersection_score_threshold = __pyx_optional_args->intersection_score_threshold;
if (__pyx_optional_args->__pyx_n > 1) {
__pyx_v_min_neighbour_number = __pyx_optional_args->min_neighbour_number;
}
}
}
/* "skimage/feature/_cascade.pyx":130
* Py_ssize_t current_detection_nr
* Py_ssize_t current_cluster_nr
* Py_ssize_t nr_of_detections = detections.size() # <<<<<<<<<<<<<<
* Py_ssize_t best_cluster_nr
* bint new_cluster
*/
__Pyx_TraceLine(130,0,__PYX_ERR(0, 130, __pyx_L1_error))
__pyx_v_nr_of_detections = __pyx_v_detections.size();
/* "skimage/feature/_cascade.pyx":138
* # Check if detections array is not empty.
* # Push first detection as first cluster.
* if nr_of_detections: # <<<<<<<<<<<<<<
* clusters.push_back(cluster_from_detection(detections[0]))
*
*/
__Pyx_TraceLine(138,0,__PYX_ERR(0, 138, __pyx_L1_error))
__pyx_t_1 = (__pyx_v_nr_of_detections != 0);
if (__pyx_t_1) {
/* "skimage/feature/_cascade.pyx":139
* # Push first detection as first cluster.
* if nr_of_detections:
* clusters.push_back(cluster_from_detection(detections[0])) # <<<<<<<<<<<<<<
*
* for current_detection_nr in range(1, nr_of_detections):
*/
__Pyx_TraceLine(139,0,__PYX_ERR(0, 139, __pyx_L1_error))
try {
__pyx_v_clusters.push_back(__pyx_f_7skimage_7feature_8_cascade_cluster_from_detection((__pyx_v_detections[0])));
} catch(...) {
__Pyx_CppExn2PyErr();
__PYX_ERR(0, 139, __pyx_L1_error)
}
/* "skimage/feature/_cascade.pyx":138
* # Check if detections array is not empty.
* # Push first detection as first cluster.
* if nr_of_detections: # <<<<<<<<<<<<<<
* clusters.push_back(cluster_from_detection(detections[0]))
*
*/
}
/* "skimage/feature/_cascade.pyx":141
* clusters.push_back(cluster_from_detection(detections[0]))
*
* for current_detection_nr in range(1, nr_of_detections): # <<<<<<<<<<<<<<
*
* best_score = intersection_score_threshold
*/
__Pyx_TraceLine(141,0,__PYX_ERR(0, 141, __pyx_L1_error))
__pyx_t_2 = __pyx_v_nr_of_detections;
__pyx_t_3 = __pyx_t_2;
for (__pyx_t_4 = 1; __pyx_t_4 < __pyx_t_3; __pyx_t_4+=1) {
__pyx_v_current_detection_nr = __pyx_t_4;
/* "skimage/feature/_cascade.pyx":143
* for current_detection_nr in range(1, nr_of_detections):
*
* best_score = intersection_score_threshold # <<<<<<<<<<<<<<
* best_cluster_nr = 0
* new_cluster = True
*/
__Pyx_TraceLine(143,0,__PYX_ERR(0, 143, __pyx_L1_error))
__pyx_v_best_score = __pyx_v_intersection_score_threshold;
/* "skimage/feature/_cascade.pyx":144
*
* best_score = intersection_score_threshold
* best_cluster_nr = 0 # <<<<<<<<<<<<<<
* new_cluster = True
*
*/
__Pyx_TraceLine(144,0,__PYX_ERR(0, 144, __pyx_L1_error))
__pyx_v_best_cluster_nr = 0;
/* "skimage/feature/_cascade.pyx":145
* best_score = intersection_score_threshold
* best_cluster_nr = 0
* new_cluster = True # <<<<<<<<<<<<<<
*
* nr_of_clusters = clusters.size()
*/
__Pyx_TraceLine(145,0,__PYX_ERR(0, 145, __pyx_L1_error))
__pyx_v_new_cluster = 1;
/* "skimage/feature/_cascade.pyx":147
* new_cluster = True
*
* nr_of_clusters = clusters.size() # <<<<<<<<<<<<<<
*
* for current_cluster_nr in range(nr_of_clusters):
*/
__Pyx_TraceLine(147,0,__PYX_ERR(0, 147, __pyx_L1_error))
__pyx_v_nr_of_clusters = __pyx_v_clusters.size();
/* "skimage/feature/_cascade.pyx":149
* nr_of_clusters = clusters.size()
*
* for current_cluster_nr in range(nr_of_clusters): # <<<<<<<<<<<<<<
*
* mean_detection = mean_detection_from_cluster(
*/
__Pyx_TraceLine(149,0,__PYX_ERR(0, 149, __pyx_L1_error))
__pyx_t_5 = __pyx_v_nr_of_clusters;
__pyx_t_6 = __pyx_t_5;
for (__pyx_t_7 = 0; __pyx_t_7 < __pyx_t_6; __pyx_t_7+=1) {
__pyx_v_current_cluster_nr = __pyx_t_7;
/* "skimage/feature/_cascade.pyx":151
* for current_cluster_nr in range(nr_of_clusters):
*
* mean_detection = mean_detection_from_cluster( # <<<<<<<<<<<<<<
* clusters[current_cluster_nr])
*
*/
__Pyx_TraceLine(151,0,__PYX_ERR(0, 151, __pyx_L1_error))
__pyx_v_mean_detection = __pyx_f_7skimage_7feature_8_cascade_mean_detection_from_cluster((__pyx_v_clusters[__pyx_v_current_cluster_nr]));
/* "skimage/feature/_cascade.pyx":154
* clusters[current_cluster_nr])
*
* intersection_score = rect_intersection_score( # <<<<<<<<<<<<<<
* detections[current_detection_nr],
* mean_detection)
*/
__Pyx_TraceLine(154,0,__PYX_ERR(0, 154, __pyx_L1_error))
__pyx_v_intersection_score = __pyx_f_7skimage_7feature_8_cascade_rect_intersection_score((__pyx_v_detections[__pyx_v_current_detection_nr]), __pyx_v_mean_detection);
/* "skimage/feature/_cascade.pyx":158
* mean_detection)
*
* if intersection_score > best_score: # <<<<<<<<<<<<<<
*
* new_cluster = False
*/
__Pyx_TraceLine(158,0,__PYX_ERR(0, 158, __pyx_L1_error))
__pyx_t_1 = ((__pyx_v_intersection_score > __pyx_v_best_score) != 0);
if (__pyx_t_1) {
/* "skimage/feature/_cascade.pyx":160
* if intersection_score > best_score:
*
* new_cluster = False # <<<<<<<<<<<<<<
* best_cluster_nr = current_cluster_nr
* best_score = intersection_score
*/
__Pyx_TraceLine(160,0,__PYX_ERR(0, 160, __pyx_L1_error))
__pyx_v_new_cluster = 0;
/* "skimage/feature/_cascade.pyx":161
*
* new_cluster = False
* best_cluster_nr = current_cluster_nr # <<<<<<<<<<<<<<
* best_score = intersection_score
*
*/
__Pyx_TraceLine(161,0,__PYX_ERR(0, 161, __pyx_L1_error))
__pyx_v_best_cluster_nr = __pyx_v_current_cluster_nr;
/* "skimage/feature/_cascade.pyx":162
* new_cluster = False
* best_cluster_nr = current_cluster_nr
* best_score = intersection_score # <<<<<<<<<<<<<<
*
* if new_cluster:
*/
__Pyx_TraceLine(162,0,__PYX_ERR(0, 162, __pyx_L1_error))
__pyx_v_best_score = __pyx_v_intersection_score;
/* "skimage/feature/_cascade.pyx":158
* mean_detection)
*
* if intersection_score > best_score: # <<<<<<<<<<<<<<
*
* new_cluster = False
*/
}
}
/* "skimage/feature/_cascade.pyx":164
* best_score = intersection_score
*
* if new_cluster: # <<<<<<<<<<<<<<
*
* clusters.push_back(cluster_from_detection(
*/
__Pyx_TraceLine(164,0,__PYX_ERR(0, 164, __pyx_L1_error))
__pyx_t_1 = (__pyx_v_new_cluster != 0);
if (__pyx_t_1) {
/* "skimage/feature/_cascade.pyx":166
* if new_cluster:
*
* clusters.push_back(cluster_from_detection( # <<<<<<<<<<<<<<
* detections[current_detection_nr]))
* else:
*/
__Pyx_TraceLine(166,0,__PYX_ERR(0, 166, __pyx_L1_error))
try {
__pyx_v_clusters.push_back(__pyx_f_7skimage_7feature_8_cascade_cluster_from_detection((__pyx_v_detections[__pyx_v_current_detection_nr])));
} catch(...) {
__Pyx_CppExn2PyErr();
__PYX_ERR(0, 166, __pyx_L1_error)
}
/* "skimage/feature/_cascade.pyx":164
* best_score = intersection_score
*
* if new_cluster: # <<<<<<<<<<<<<<
*
* clusters.push_back(cluster_from_detection(
*/
goto __pyx_L9;
}
/* "skimage/feature/_cascade.pyx":170
* else:
*
* clusters[best_cluster_nr] = update_cluster( # <<<<<<<<<<<<<<
* clusters[best_cluster_nr],
* detections[current_detection_nr])
*/
__Pyx_TraceLine(170,0,__PYX_ERR(0, 170, __pyx_L1_error))
/*else*/ {
/* "skimage/feature/_cascade.pyx":172
* clusters[best_cluster_nr] = update_cluster(
* clusters[best_cluster_nr],
* detections[current_detection_nr]) # <<<<<<<<<<<<<<
*
* clusters = threshold_clusters(clusters, min_neighbour_number)
*/
__Pyx_TraceLine(172,0,__PYX_ERR(0, 172, __pyx_L1_error))
(__pyx_v_clusters[__pyx_v_best_cluster_nr]) = __pyx_f_7skimage_7feature_8_cascade_update_cluster((__pyx_v_clusters[__pyx_v_best_cluster_nr]), (__pyx_v_detections[__pyx_v_current_detection_nr]));
}
__pyx_L9:;
}
/* "skimage/feature/_cascade.pyx":174
* detections[current_detection_nr])
*
* clusters = threshold_clusters(clusters, min_neighbour_number) # <<<<<<<<<<<<<<
* return get_mean_detections(clusters)
*
*/
__Pyx_TraceLine(174,0,__PYX_ERR(0, 174, __pyx_L1_error))
__pyx_v_clusters = __pyx_f_7skimage_7feature_8_cascade_threshold_clusters(__pyx_v_clusters, __pyx_v_min_neighbour_number);
/* "skimage/feature/_cascade.pyx":175
*
* clusters = threshold_clusters(clusters, min_neighbour_number)
* return get_mean_detections(clusters) # <<<<<<<<<<<<<<
*
*
*/
__Pyx_TraceLine(175,0,__PYX_ERR(0, 175, __pyx_L1_error))
__pyx_r = __pyx_f_7skimage_7feature_8_cascade_get_mean_detections(__pyx_v_clusters);
goto __pyx_L0;
/* "skimage/feature/_cascade.pyx":92
*
*
* cdef vector[Detection] _group_detections(vector[Detection] detections, # <<<<<<<<<<<<<<
* float intersection_score_threshold=0.5,
* int min_neighbour_number=4):
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage.feature._cascade._group_detections", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
__Pyx_pretend_to_initialize(&__pyx_r);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":178
*
*
* cdef DetectionsCluster update_cluster(DetectionsCluster cluster, # <<<<<<<<<<<<<<
* Detection detection):
* """Updated the cluster by adding new detection.
*/
static struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster __pyx_f_7skimage_7feature_8_cascade_update_cluster(struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster __pyx_v_cluster, struct __pyx_t_7skimage_7feature_8_cascade_Detection __pyx_v_detection) {
struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster __pyx_v_updated_cluster;
struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("update_cluster", 0);
__Pyx_TraceCall("update_cluster", __pyx_f[0], 178, 0, __PYX_ERR(0, 178, __pyx_L1_error));
/* "skimage/feature/_cascade.pyx":198
* """
*
* cdef DetectionsCluster updated_cluster = cluster # <<<<<<<<<<<<<<
*
* updated_cluster.r_sum += detection.r
*/
__Pyx_TraceLine(198,0,__PYX_ERR(0, 198, __pyx_L1_error))
__pyx_v_updated_cluster = __pyx_v_cluster;
/* "skimage/feature/_cascade.pyx":200
* cdef DetectionsCluster updated_cluster = cluster
*
* updated_cluster.r_sum += detection.r # <<<<<<<<<<<<<<
* updated_cluster.c_sum += detection.c
* updated_cluster.width_sum += detection.width
*/
__Pyx_TraceLine(200,0,__PYX_ERR(0, 200, __pyx_L1_error))
__pyx_v_updated_cluster.r_sum = (__pyx_v_updated_cluster.r_sum + __pyx_v_detection.r);
/* "skimage/feature/_cascade.pyx":201
*
* updated_cluster.r_sum += detection.r
* updated_cluster.c_sum += detection.c # <<<<<<<<<<<<<<
* updated_cluster.width_sum += detection.width
* updated_cluster.height_sum += detection.height
*/
__Pyx_TraceLine(201,0,__PYX_ERR(0, 201, __pyx_L1_error))
__pyx_v_updated_cluster.c_sum = (__pyx_v_updated_cluster.c_sum + __pyx_v_detection.c);
/* "skimage/feature/_cascade.pyx":202
* updated_cluster.r_sum += detection.r
* updated_cluster.c_sum += detection.c
* updated_cluster.width_sum += detection.width # <<<<<<<<<<<<<<
* updated_cluster.height_sum += detection.height
* updated_cluster.count += 1
*/
__Pyx_TraceLine(202,0,__PYX_ERR(0, 202, __pyx_L1_error))
__pyx_v_updated_cluster.width_sum = (__pyx_v_updated_cluster.width_sum + __pyx_v_detection.width);
/* "skimage/feature/_cascade.pyx":203
* updated_cluster.c_sum += detection.c
* updated_cluster.width_sum += detection.width
* updated_cluster.height_sum += detection.height # <<<<<<<<<<<<<<
* updated_cluster.count += 1
*
*/
__Pyx_TraceLine(203,0,__PYX_ERR(0, 203, __pyx_L1_error))
__pyx_v_updated_cluster.height_sum = (__pyx_v_updated_cluster.height_sum + __pyx_v_detection.height);
/* "skimage/feature/_cascade.pyx":204
* updated_cluster.width_sum += detection.width
* updated_cluster.height_sum += detection.height
* updated_cluster.count += 1 # <<<<<<<<<<<<<<
*
* return updated_cluster
*/
__Pyx_TraceLine(204,0,__PYX_ERR(0, 204, __pyx_L1_error))
__pyx_v_updated_cluster.count = (__pyx_v_updated_cluster.count + 1);
/* "skimage/feature/_cascade.pyx":206
* updated_cluster.count += 1
*
* return updated_cluster # <<<<<<<<<<<<<<
*
*
*/
__Pyx_TraceLine(206,0,__PYX_ERR(0, 206, __pyx_L1_error))
__pyx_r = __pyx_v_updated_cluster;
goto __pyx_L0;
/* "skimage/feature/_cascade.pyx":178
*
*
* cdef DetectionsCluster update_cluster(DetectionsCluster cluster, # <<<<<<<<<<<<<<
* Detection detection):
* """Updated the cluster by adding new detection.
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage.feature._cascade.update_cluster", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
__Pyx_pretend_to_initialize(&__pyx_r);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":209
*
*
* cdef Detection mean_detection_from_cluster(DetectionsCluster cluster): # <<<<<<<<<<<<<<
* """Compute the mean detection from the cluster.
*
*/
static struct __pyx_t_7skimage_7feature_8_cascade_Detection __pyx_f_7skimage_7feature_8_cascade_mean_detection_from_cluster(struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster __pyx_v_cluster) {
struct __pyx_t_7skimage_7feature_8_cascade_Detection __pyx_v_mean;
struct __pyx_t_7skimage_7feature_8_cascade_Detection __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("mean_detection_from_cluster", 0);
__Pyx_TraceCall("mean_detection_from_cluster", __pyx_f[0], 209, 0, __PYX_ERR(0, 209, __pyx_L1_error));
/* "skimage/feature/_cascade.pyx":228
* cdef Detection mean
*
* mean.r = cluster.r_sum / cluster.count # <<<<<<<<<<<<<<
* mean.c = cluster.c_sum / cluster.count
* mean.width = cluster.width_sum / cluster.count
*/
__Pyx_TraceLine(228,0,__PYX_ERR(0, 228, __pyx_L1_error))
__pyx_v_mean.r = (__pyx_v_cluster.r_sum / __pyx_v_cluster.count);
/* "skimage/feature/_cascade.pyx":229
*
* mean.r = cluster.r_sum / cluster.count
* mean.c = cluster.c_sum / cluster.count # <<<<<<<<<<<<<<
* mean.width = cluster.width_sum / cluster.count
* mean.height = cluster.height_sum / cluster.count
*/
__Pyx_TraceLine(229,0,__PYX_ERR(0, 229, __pyx_L1_error))
__pyx_v_mean.c = (__pyx_v_cluster.c_sum / __pyx_v_cluster.count);
/* "skimage/feature/_cascade.pyx":230
* mean.r = cluster.r_sum / cluster.count
* mean.c = cluster.c_sum / cluster.count
* mean.width = cluster.width_sum / cluster.count # <<<<<<<<<<<<<<
* mean.height = cluster.height_sum / cluster.count
*
*/
__Pyx_TraceLine(230,0,__PYX_ERR(0, 230, __pyx_L1_error))
__pyx_v_mean.width = (__pyx_v_cluster.width_sum / __pyx_v_cluster.count);
/* "skimage/feature/_cascade.pyx":231
* mean.c = cluster.c_sum / cluster.count
* mean.width = cluster.width_sum / cluster.count
* mean.height = cluster.height_sum / cluster.count # <<<<<<<<<<<<<<
*
* return mean
*/
__Pyx_TraceLine(231,0,__PYX_ERR(0, 231, __pyx_L1_error))
__pyx_v_mean.height = (__pyx_v_cluster.height_sum / __pyx_v_cluster.count);
/* "skimage/feature/_cascade.pyx":233
* mean.height = cluster.height_sum / cluster.count
*
* return mean # <<<<<<<<<<<<<<
*
*
*/
__Pyx_TraceLine(233,0,__PYX_ERR(0, 233, __pyx_L1_error))
__pyx_r = __pyx_v_mean;
goto __pyx_L0;
/* "skimage/feature/_cascade.pyx":209
*
*
* cdef Detection mean_detection_from_cluster(DetectionsCluster cluster): # <<<<<<<<<<<<<<
* """Compute the mean detection from the cluster.
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage.feature._cascade.mean_detection_from_cluster", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
__Pyx_pretend_to_initialize(&__pyx_r);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":236
*
*
* cdef DetectionsCluster cluster_from_detection(Detection detection): # <<<<<<<<<<<<<<
* """Create a cluster from a single detection.
*
*/
static struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster __pyx_f_7skimage_7feature_8_cascade_cluster_from_detection(struct __pyx_t_7skimage_7feature_8_cascade_Detection __pyx_v_detection) {
struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster __pyx_v_new_cluster;
struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
int __pyx_t_1;
__Pyx_RefNannySetupContext("cluster_from_detection", 0);
__Pyx_TraceCall("cluster_from_detection", __pyx_f[0], 236, 0, __PYX_ERR(0, 236, __pyx_L1_error));
/* "skimage/feature/_cascade.pyx":254
* cdef DetectionsCluster new_cluster
*
* new_cluster.r_sum = detection.r # <<<<<<<<<<<<<<
* new_cluster.c_sum = detection.c
* new_cluster.width_sum = detection.width
*/
__Pyx_TraceLine(254,0,__PYX_ERR(0, 254, __pyx_L1_error))
__pyx_t_1 = __pyx_v_detection.r;
__pyx_v_new_cluster.r_sum = __pyx_t_1;
/* "skimage/feature/_cascade.pyx":255
*
* new_cluster.r_sum = detection.r
* new_cluster.c_sum = detection.c # <<<<<<<<<<<<<<
* new_cluster.width_sum = detection.width
* new_cluster.height_sum = detection.height
*/
__Pyx_TraceLine(255,0,__PYX_ERR(0, 255, __pyx_L1_error))
__pyx_t_1 = __pyx_v_detection.c;
__pyx_v_new_cluster.c_sum = __pyx_t_1;
/* "skimage/feature/_cascade.pyx":256
* new_cluster.r_sum = detection.r
* new_cluster.c_sum = detection.c
* new_cluster.width_sum = detection.width # <<<<<<<<<<<<<<
* new_cluster.height_sum = detection.height
* new_cluster.count = 1
*/
__Pyx_TraceLine(256,0,__PYX_ERR(0, 256, __pyx_L1_error))
__pyx_t_1 = __pyx_v_detection.width;
__pyx_v_new_cluster.width_sum = __pyx_t_1;
/* "skimage/feature/_cascade.pyx":257
* new_cluster.c_sum = detection.c
* new_cluster.width_sum = detection.width
* new_cluster.height_sum = detection.height # <<<<<<<<<<<<<<
* new_cluster.count = 1
*
*/
__Pyx_TraceLine(257,0,__PYX_ERR(0, 257, __pyx_L1_error))
__pyx_t_1 = __pyx_v_detection.height;
__pyx_v_new_cluster.height_sum = __pyx_t_1;
/* "skimage/feature/_cascade.pyx":258
* new_cluster.width_sum = detection.width
* new_cluster.height_sum = detection.height
* new_cluster.count = 1 # <<<<<<<<<<<<<<
*
* return new_cluster
*/
__Pyx_TraceLine(258,0,__PYX_ERR(0, 258, __pyx_L1_error))
__pyx_v_new_cluster.count = 1;
/* "skimage/feature/_cascade.pyx":260
* new_cluster.count = 1
*
* return new_cluster # <<<<<<<<<<<<<<
*
*
*/
__Pyx_TraceLine(260,0,__PYX_ERR(0, 260, __pyx_L1_error))
__pyx_r = __pyx_v_new_cluster;
goto __pyx_L0;
/* "skimage/feature/_cascade.pyx":236
*
*
* cdef DetectionsCluster cluster_from_detection(Detection detection): # <<<<<<<<<<<<<<
* """Create a cluster from a single detection.
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage.feature._cascade.cluster_from_detection", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
__Pyx_pretend_to_initialize(&__pyx_r);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":263
*
*
* cdef vector[DetectionsCluster] threshold_clusters(vector[DetectionsCluster] clusters, # <<<<<<<<<<<<<<
* int count_threshold):
* """Threshold clusters depending on the amount of rectangles in them.
*/
static std::vector<struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster> __pyx_f_7skimage_7feature_8_cascade_threshold_clusters(std::vector<struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster> __pyx_v_clusters, int __pyx_v_count_threshold) {
Py_ssize_t __pyx_v_clusters_amount;
Py_ssize_t __pyx_v_current_cluster;
std::vector<struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster> __pyx_v_output;
std::vector<struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster> __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
Py_ssize_t __pyx_t_1;
Py_ssize_t __pyx_t_2;
Py_ssize_t __pyx_t_3;
int __pyx_t_4;
__Pyx_RefNannySetupContext("threshold_clusters", 0);
__Pyx_TraceCall("threshold_clusters", __pyx_f[0], 263, 0, __PYX_ERR(0, 263, __pyx_L1_error));
/* "skimage/feature/_cascade.pyx":288
* vector[DetectionsCluster] output
*
* clusters_amount = clusters.size() # <<<<<<<<<<<<<<
*
* for current_cluster in range(clusters_amount):
*/
__Pyx_TraceLine(288,0,__PYX_ERR(0, 288, __pyx_L1_error))
__pyx_v_clusters_amount = __pyx_v_clusters.size();
/* "skimage/feature/_cascade.pyx":290
* clusters_amount = clusters.size()
*
* for current_cluster in range(clusters_amount): # <<<<<<<<<<<<<<
*
* if clusters[current_cluster].count >= count_threshold:
*/
__Pyx_TraceLine(290,0,__PYX_ERR(0, 290, __pyx_L1_error))
__pyx_t_1 = __pyx_v_clusters_amount;
__pyx_t_2 = __pyx_t_1;
for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
__pyx_v_current_cluster = __pyx_t_3;
/* "skimage/feature/_cascade.pyx":292
* for current_cluster in range(clusters_amount):
*
* if clusters[current_cluster].count >= count_threshold: # <<<<<<<<<<<<<<
* output.push_back(clusters[current_cluster])
*
*/
__Pyx_TraceLine(292,0,__PYX_ERR(0, 292, __pyx_L1_error))
__pyx_t_4 = (((__pyx_v_clusters[__pyx_v_current_cluster]).count >= __pyx_v_count_threshold) != 0);
if (__pyx_t_4) {
/* "skimage/feature/_cascade.pyx":293
*
* if clusters[current_cluster].count >= count_threshold:
* output.push_back(clusters[current_cluster]) # <<<<<<<<<<<<<<
*
* return output
*/
__Pyx_TraceLine(293,0,__PYX_ERR(0, 293, __pyx_L1_error))
try {
__pyx_v_output.push_back((__pyx_v_clusters[__pyx_v_current_cluster]));
} catch(...) {
__Pyx_CppExn2PyErr();
__PYX_ERR(0, 293, __pyx_L1_error)
}
/* "skimage/feature/_cascade.pyx":292
* for current_cluster in range(clusters_amount):
*
* if clusters[current_cluster].count >= count_threshold: # <<<<<<<<<<<<<<
* output.push_back(clusters[current_cluster])
*
*/
}
}
/* "skimage/feature/_cascade.pyx":295
* output.push_back(clusters[current_cluster])
*
* return output # <<<<<<<<<<<<<<
*
*
*/
__Pyx_TraceLine(295,0,__PYX_ERR(0, 295, __pyx_L1_error))
__pyx_r = __pyx_v_output;
goto __pyx_L0;
/* "skimage/feature/_cascade.pyx":263
*
*
* cdef vector[DetectionsCluster] threshold_clusters(vector[DetectionsCluster] clusters, # <<<<<<<<<<<<<<
* int count_threshold):
* """Threshold clusters depending on the amount of rectangles in them.
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage.feature._cascade.threshold_clusters", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
__Pyx_pretend_to_initialize(&__pyx_r);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":298
*
*
* cdef vector[Detection] get_mean_detections(vector[DetectionsCluster] clusters): # <<<<<<<<<<<<<<
* """Computes the mean of each cluster of detections in the array.
*
*/
static std::vector<struct __pyx_t_7skimage_7feature_8_cascade_Detection> __pyx_f_7skimage_7feature_8_cascade_get_mean_detections(std::vector<struct __pyx_t_7skimage_7feature_8_cascade_DetectionsCluster> __pyx_v_clusters) {
Py_ssize_t __pyx_v_current_cluster;
Py_ssize_t __pyx_v_clusters_amount;
std::vector<struct __pyx_t_7skimage_7feature_8_cascade_Detection> __pyx_v_detections;
std::vector<struct __pyx_t_7skimage_7feature_8_cascade_Detection> __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
Py_ssize_t __pyx_t_1;
Py_ssize_t __pyx_t_2;
Py_ssize_t __pyx_t_3;
__Pyx_RefNannySetupContext("get_mean_detections", 0);
__Pyx_TraceCall("get_mean_detections", __pyx_f[0], 298, 0, __PYX_ERR(0, 298, __pyx_L1_error));
/* "skimage/feature/_cascade.pyx":319
* cdef:
* Py_ssize_t current_cluster
* Py_ssize_t clusters_amount = clusters.size() # <<<<<<<<<<<<<<
* vector[Detection] detections
*
*/
__Pyx_TraceLine(319,0,__PYX_ERR(0, 319, __pyx_L1_error))
__pyx_v_clusters_amount = __pyx_v_clusters.size();
/* "skimage/feature/_cascade.pyx":322
* vector[Detection] detections
*
* detections.resize(clusters_amount) # <<<<<<<<<<<<<<
*
* for current_cluster in range(clusters_amount):
*/
__Pyx_TraceLine(322,0,__PYX_ERR(0, 322, __pyx_L1_error))
try {
__pyx_v_detections.resize(__pyx_v_clusters_amount);
} catch(...) {
__Pyx_CppExn2PyErr();
__PYX_ERR(0, 322, __pyx_L1_error)
}
/* "skimage/feature/_cascade.pyx":324
* detections.resize(clusters_amount)
*
* for current_cluster in range(clusters_amount): # <<<<<<<<<<<<<<
* detections[current_cluster] = mean_detection_from_cluster(clusters[current_cluster])
*
*/
__Pyx_TraceLine(324,0,__PYX_ERR(0, 324, __pyx_L1_error))
__pyx_t_1 = __pyx_v_clusters_amount;
__pyx_t_2 = __pyx_t_1;
for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
__pyx_v_current_cluster = __pyx_t_3;
/* "skimage/feature/_cascade.pyx":325
*
* for current_cluster in range(clusters_amount):
* detections[current_cluster] = mean_detection_from_cluster(clusters[current_cluster]) # <<<<<<<<<<<<<<
*
* return detections
*/
__Pyx_TraceLine(325,0,__PYX_ERR(0, 325, __pyx_L1_error))
(__pyx_v_detections[__pyx_v_current_cluster]) = __pyx_f_7skimage_7feature_8_cascade_mean_detection_from_cluster((__pyx_v_clusters[__pyx_v_current_cluster]));
}
/* "skimage/feature/_cascade.pyx":327
* detections[current_cluster] = mean_detection_from_cluster(clusters[current_cluster])
*
* return detections # <<<<<<<<<<<<<<
*
*
*/
__Pyx_TraceLine(327,0,__PYX_ERR(0, 327, __pyx_L1_error))
__pyx_r = __pyx_v_detections;
goto __pyx_L0;
/* "skimage/feature/_cascade.pyx":298
*
*
* cdef vector[Detection] get_mean_detections(vector[DetectionsCluster] clusters): # <<<<<<<<<<<<<<
* """Computes the mean of each cluster of detections in the array.
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage.feature._cascade.get_mean_detections", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
__Pyx_pretend_to_initialize(&__pyx_r);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":330
*
*
* cdef float rect_intersection_area(Detection rect_a, Detection rect_b): # <<<<<<<<<<<<<<
* """Computes the intersection area of two rectangles.
*
*/
static float __pyx_f_7skimage_7feature_8_cascade_rect_intersection_area(struct __pyx_t_7skimage_7feature_8_cascade_Detection __pyx_v_rect_a, struct __pyx_t_7skimage_7feature_8_cascade_Detection __pyx_v_rect_b) {
Py_ssize_t __pyx_v_r_a_1;
Py_ssize_t __pyx_v_r_a_2;
Py_ssize_t __pyx_v_c_a_1;
Py_ssize_t __pyx_v_c_a_2;
Py_ssize_t __pyx_v_r_b_1;
Py_ssize_t __pyx_v_r_b_2;
Py_ssize_t __pyx_v_c_b_1;
Py_ssize_t __pyx_v_c_b_2;
float __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
int __pyx_t_1;
__Pyx_RefNannySetupContext("rect_intersection_area", 0);
__Pyx_TraceCall("rect_intersection_area", __pyx_f[0], 330, 0, __PYX_ERR(0, 330, __pyx_L1_error));
/* "skimage/feature/_cascade.pyx":348
*
* cdef:
* Py_ssize_t r_a_1 = rect_a.r # <<<<<<<<<<<<<<
* Py_ssize_t r_a_2 = rect_a.r + rect_a.height
* Py_ssize_t c_a_1 = rect_a.c
*/
__Pyx_TraceLine(348,0,__PYX_ERR(0, 348, __pyx_L1_error))
__pyx_t_1 = __pyx_v_rect_a.r;
__pyx_v_r_a_1 = __pyx_t_1;
/* "skimage/feature/_cascade.pyx":349
* cdef:
* Py_ssize_t r_a_1 = rect_a.r
* Py_ssize_t r_a_2 = rect_a.r + rect_a.height # <<<<<<<<<<<<<<
* Py_ssize_t c_a_1 = rect_a.c
* Py_ssize_t c_a_2 = rect_a.c + rect_a.width
*/
__Pyx_TraceLine(349,0,__PYX_ERR(0, 349, __pyx_L1_error))
__pyx_v_r_a_2 = (__pyx_v_rect_a.r + __pyx_v_rect_a.height);
/* "skimage/feature/_cascade.pyx":350
* Py_ssize_t r_a_1 = rect_a.r
* Py_ssize_t r_a_2 = rect_a.r + rect_a.height
* Py_ssize_t c_a_1 = rect_a.c # <<<<<<<<<<<<<<
* Py_ssize_t c_a_2 = rect_a.c + rect_a.width
*
*/
__Pyx_TraceLine(350,0,__PYX_ERR(0, 350, __pyx_L1_error))
__pyx_t_1 = __pyx_v_rect_a.c;
__pyx_v_c_a_1 = __pyx_t_1;
/* "skimage/feature/_cascade.pyx":351
* Py_ssize_t r_a_2 = rect_a.r + rect_a.height
* Py_ssize_t c_a_1 = rect_a.c
* Py_ssize_t c_a_2 = rect_a.c + rect_a.width # <<<<<<<<<<<<<<
*
* Py_ssize_t r_b_1 = rect_b.r
*/
__Pyx_TraceLine(351,0,__PYX_ERR(0, 351, __pyx_L1_error))
__pyx_v_c_a_2 = (__pyx_v_rect_a.c + __pyx_v_rect_a.width);
/* "skimage/feature/_cascade.pyx":353
* Py_ssize_t c_a_2 = rect_a.c + rect_a.width
*
* Py_ssize_t r_b_1 = rect_b.r # <<<<<<<<<<<<<<
* Py_ssize_t r_b_2 = rect_b.r + rect_b.height
* Py_ssize_t c_b_1 = rect_b.c
*/
__Pyx_TraceLine(353,0,__PYX_ERR(0, 353, __pyx_L1_error))
__pyx_t_1 = __pyx_v_rect_b.r;
__pyx_v_r_b_1 = __pyx_t_1;
/* "skimage/feature/_cascade.pyx":354
*
* Py_ssize_t r_b_1 = rect_b.r
* Py_ssize_t r_b_2 = rect_b.r + rect_b.height # <<<<<<<<<<<<<<
* Py_ssize_t c_b_1 = rect_b.c
* Py_ssize_t c_b_2 = rect_b.c + rect_b.width
*/
__Pyx_TraceLine(354,0,__PYX_ERR(0, 354, __pyx_L1_error))
__pyx_v_r_b_2 = (__pyx_v_rect_b.r + __pyx_v_rect_b.height);
/* "skimage/feature/_cascade.pyx":355
* Py_ssize_t r_b_1 = rect_b.r
* Py_ssize_t r_b_2 = rect_b.r + rect_b.height
* Py_ssize_t c_b_1 = rect_b.c # <<<<<<<<<<<<<<
* Py_ssize_t c_b_2 = rect_b.c + rect_b.width
*
*/
__Pyx_TraceLine(355,0,__PYX_ERR(0, 355, __pyx_L1_error))
__pyx_t_1 = __pyx_v_rect_b.c;
__pyx_v_c_b_1 = __pyx_t_1;
/* "skimage/feature/_cascade.pyx":356
* Py_ssize_t r_b_2 = rect_b.r + rect_b.height
* Py_ssize_t c_b_1 = rect_b.c
* Py_ssize_t c_b_2 = rect_b.c + rect_b.width # <<<<<<<<<<<<<<
*
* return (fmax(0, fmin(c_a_2, c_b_2) - fmax(c_a_1, c_b_1)) *
*/
__Pyx_TraceLine(356,0,__PYX_ERR(0, 356, __pyx_L1_error))
__pyx_v_c_b_2 = (__pyx_v_rect_b.c + __pyx_v_rect_b.width);
/* "skimage/feature/_cascade.pyx":358
* Py_ssize_t c_b_2 = rect_b.c + rect_b.width
*
* return (fmax(0, fmin(c_a_2, c_b_2) - fmax(c_a_1, c_b_1)) * # <<<<<<<<<<<<<<
* fmax(0, fmin(r_a_2, r_b_2) - fmax(r_a_1, r_b_1)))
*
*/
__Pyx_TraceLine(358,0,__PYX_ERR(0, 358, __pyx_L1_error))
__pyx_r = (__pyx_f_7skimage_7_shared_13interpolation_fmax(0, (__pyx_f_7skimage_7_shared_13interpolation_fmin(__pyx_v_c_a_2, __pyx_v_c_b_2) - __pyx_f_7skimage_7_shared_13interpolation_fmax(__pyx_v_c_a_1, __pyx_v_c_b_1))) * __pyx_f_7skimage_7_shared_13interpolation_fmax(0, (__pyx_f_7skimage_7_shared_13interpolation_fmin(__pyx_v_r_a_2, __pyx_v_r_b_2) - __pyx_f_7skimage_7_shared_13interpolation_fmax(__pyx_v_r_a_1, __pyx_v_r_b_1))));
goto __pyx_L0;
/* "skimage/feature/_cascade.pyx":330
*
*
* cdef float rect_intersection_area(Detection rect_a, Detection rect_b): # <<<<<<<<<<<<<<
* """Computes the intersection area of two rectangles.
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage.feature._cascade.rect_intersection_area", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
__pyx_r = 0;
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":362
*
*
* cdef float rect_intersection_score(Detection rect_a, Detection rect_b): # <<<<<<<<<<<<<<
* """Computes the intersection score of two rectangles.
*
*/
static float __pyx_f_7skimage_7feature_8_cascade_rect_intersection_score(struct __pyx_t_7skimage_7feature_8_cascade_Detection __pyx_v_rect_a, struct __pyx_t_7skimage_7feature_8_cascade_Detection __pyx_v_rect_b) {
float __pyx_v_intersection_area;
float __pyx_v_smaller_area;
float __pyx_v_area_a;
float __pyx_v_area_b;
float __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
float __pyx_t_1;
__Pyx_RefNannySetupContext("rect_intersection_score", 0);
__Pyx_TraceCall("rect_intersection_score", __pyx_f[0], 362, 0, __PYX_ERR(0, 362, __pyx_L1_error));
/* "skimage/feature/_cascade.pyx":386
* float union_area
* float smaller_area
* float area_a = rect_a.height * rect_a.width # <<<<<<<<<<<<<<
* float area_b = rect_b.height * rect_b.width
*
*/
__Pyx_TraceLine(386,0,__PYX_ERR(0, 386, __pyx_L1_error))
__pyx_v_area_a = (__pyx_v_rect_a.height * __pyx_v_rect_a.width);
/* "skimage/feature/_cascade.pyx":387
* float smaller_area
* float area_a = rect_a.height * rect_a.width
* float area_b = rect_b.height * rect_b.width # <<<<<<<<<<<<<<
*
* intersection_area = rect_intersection_area(rect_a, rect_b)
*/
__Pyx_TraceLine(387,0,__PYX_ERR(0, 387, __pyx_L1_error))
__pyx_v_area_b = (__pyx_v_rect_b.height * __pyx_v_rect_b.width);
/* "skimage/feature/_cascade.pyx":389
* float area_b = rect_b.height * rect_b.width
*
* intersection_area = rect_intersection_area(rect_a, rect_b) # <<<<<<<<<<<<<<
*
* smaller_area = area_a if area_b > area_a else area_b
*/
__Pyx_TraceLine(389,0,__PYX_ERR(0, 389, __pyx_L1_error))
__pyx_v_intersection_area = __pyx_f_7skimage_7feature_8_cascade_rect_intersection_area(__pyx_v_rect_a, __pyx_v_rect_b);
/* "skimage/feature/_cascade.pyx":391
* intersection_area = rect_intersection_area(rect_a, rect_b)
*
* smaller_area = area_a if area_b > area_a else area_b # <<<<<<<<<<<<<<
*
* return intersection_area / smaller_area
*/
__Pyx_TraceLine(391,0,__PYX_ERR(0, 391, __pyx_L1_error))
if (((__pyx_v_area_b > __pyx_v_area_a) != 0)) {
__pyx_t_1 = __pyx_v_area_a;
} else {
__pyx_t_1 = __pyx_v_area_b;
}
__pyx_v_smaller_area = __pyx_t_1;
/* "skimage/feature/_cascade.pyx":393
* smaller_area = area_a if area_b > area_a else area_b
*
* return intersection_area / smaller_area # <<<<<<<<<<<<<<
*
*
*/
__Pyx_TraceLine(393,0,__PYX_ERR(0, 393, __pyx_L1_error))
__pyx_r = (__pyx_v_intersection_area / __pyx_v_smaller_area);
goto __pyx_L0;
/* "skimage/feature/_cascade.pyx":362
*
*
* cdef float rect_intersection_score(Detection rect_a, Detection rect_b): # <<<<<<<<<<<<<<
* """Computes the intersection score of two rectangles.
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage.feature._cascade.rect_intersection_score", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
__pyx_r = 0;
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":447
* cnp.uint32_t* LUTs
*
* def __dealloc__(self): # <<<<<<<<<<<<<<
*
* # Free the memory that was used for c-arrays.
*/
/* Python wrapper */
static void __pyx_pw_7skimage_7feature_8_cascade_7Cascade_1__dealloc__(PyObject *__pyx_v_self); /*proto*/
static void __pyx_pw_7skimage_7feature_8_cascade_7Cascade_1__dealloc__(PyObject *__pyx_v_self) {
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__dealloc__ (wrapper)", 0);
__pyx_pf_7skimage_7feature_8_cascade_7Cascade___dealloc__(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self));
/* function exit code */
__Pyx_RefNannyFinishContext();
}
static void __pyx_pf_7skimage_7feature_8_cascade_7Cascade___dealloc__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self) {
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__dealloc__", 0);
__Pyx_TraceCall("__dealloc__", __pyx_f[0], 447, 0, __PYX_ERR(0, 447, __pyx_L1_error));
/* "skimage/feature/_cascade.pyx":450
*
* # Free the memory that was used for c-arrays.
* free(self.stages) # <<<<<<<<<<<<<<
* free(self.stumps)
* free(self.features)
*/
__Pyx_TraceLine(450,0,__PYX_ERR(0, 450, __pyx_L1_error))
free(__pyx_v_self->stages);
/* "skimage/feature/_cascade.pyx":451
* # Free the memory that was used for c-arrays.
* free(self.stages)
* free(self.stumps) # <<<<<<<<<<<<<<
* free(self.features)
* free(self.LUTs)
*/
__Pyx_TraceLine(451,0,__PYX_ERR(0, 451, __pyx_L1_error))
free(__pyx_v_self->stumps);
/* "skimage/feature/_cascade.pyx":452
* free(self.stages)
* free(self.stumps)
* free(self.features) # <<<<<<<<<<<<<<
* free(self.LUTs)
*
*/
__Pyx_TraceLine(452,0,__PYX_ERR(0, 452, __pyx_L1_error))
free(__pyx_v_self->features);
/* "skimage/feature/_cascade.pyx":453
* free(self.stumps)
* free(self.features)
* free(self.LUTs) # <<<<<<<<<<<<<<
*
* def __init__(self, xml_file, eps=1e-5):
*/
__Pyx_TraceLine(453,0,__PYX_ERR(0, 453, __pyx_L1_error))
free(__pyx_v_self->LUTs);
/* "skimage/feature/_cascade.pyx":447
* cnp.uint32_t* LUTs
*
* def __dealloc__(self): # <<<<<<<<<<<<<<
*
* # Free the memory that was used for c-arrays.
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage.feature._cascade.Cascade.__dealloc__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
}
/* "skimage/feature/_cascade.pyx":455
* free(self.LUTs)
*
* def __init__(self, xml_file, eps=1e-5): # <<<<<<<<<<<<<<
* """Initialize cascade classifier.
*
*/
/* Python wrapper */
static int __pyx_pw_7skimage_7feature_8_cascade_7Cascade_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_7skimage_7feature_8_cascade_7Cascade_2__init__[] = "Initialize cascade classifier.\n\n Parameters\n ----------\n xml_file : file's path or file's object\n A file in a OpenCv format from which all the cascade classifier's\n parameters are loaded.\n eps : float\n Accuracy parameter. Increasing it, makes the classifier detect less\n false positives but at the same time the false negative score increases.\n ";
#if CYTHON_COMPILING_IN_CPYTHON
struct wrapperbase __pyx_wrapperbase_7skimage_7feature_8_cascade_7Cascade_2__init__;
#endif
static int __pyx_pw_7skimage_7feature_8_cascade_7Cascade_3__init__(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
PyObject *__pyx_v_xml_file = 0;
PyObject *__pyx_v_eps = 0;
int __pyx_r;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__init__ (wrapper)", 0);
{
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_xml_file,&__pyx_n_s_eps,0};
PyObject* values[2] = {0,0};
values[1] = ((PyObject *)__pyx_float_1eneg_5);
if (unlikely(__pyx_kwds)) {
Py_ssize_t kw_args;
const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
switch (pos_args) {
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
CYTHON_FALLTHROUGH;
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
CYTHON_FALLTHROUGH;
case 0: break;
default: goto __pyx_L5_argtuple_error;
}
kw_args = PyDict_Size(__pyx_kwds);
switch (pos_args) {
case 0:
if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xml_file)) != 0)) kw_args--;
else goto __pyx_L5_argtuple_error;
CYTHON_FALLTHROUGH;
case 1:
if (kw_args > 0) {
PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps);
if (value) { values[1] = value; kw_args--; }
}
}
if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__init__") < 0)) __PYX_ERR(0, 455, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
CYTHON_FALLTHROUGH;
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
break;
default: goto __pyx_L5_argtuple_error;
}
}
__pyx_v_xml_file = values[0];
__pyx_v_eps = values[1];
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("__init__", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 455, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("skimage.feature._cascade.Cascade.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return -1;
__pyx_L4_argument_unpacking_done:;
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_2__init__(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self), __pyx_v_xml_file, __pyx_v_eps);
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static int __pyx_pf_7skimage_7feature_8_cascade_7Cascade_2__init__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_xml_file, PyObject *__pyx_v_eps) {
int __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
int __pyx_t_4;
PyObject *__pyx_t_5 = NULL;
__Pyx_RefNannySetupContext("__init__", 0);
__Pyx_TraceCall("__init__", __pyx_f[0], 455, 0, __PYX_ERR(0, 455, __pyx_L1_error));
/* "skimage/feature/_cascade.pyx":468
* """
*
* self._load_xml(xml_file, eps) # <<<<<<<<<<<<<<
*
* cdef bint classify(self, float[:, ::1] int_img, Py_ssize_t row, Py_ssize_t col, float scale) nogil:
*/
__Pyx_TraceLine(468,0,__PYX_ERR(0, 468, __pyx_L1_error))
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_load_xml); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 468, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = NULL;
__pyx_t_4 = 0;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
__pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
if (likely(__pyx_t_3)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_2, function);
__pyx_t_4 = 1;
}
}
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_2)) {
PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_xml_file, __pyx_v_eps};
__pyx_t_1 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 468, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_GOTREF(__pyx_t_1);
} else
#endif
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_v_xml_file, __pyx_v_eps};
__pyx_t_1 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_4, 2+__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 468, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_GOTREF(__pyx_t_1);
} else
#endif
{
__pyx_t_5 = PyTuple_New(2+__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 468, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
if (__pyx_t_3) {
__Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3); __pyx_t_3 = NULL;
}
__Pyx_INCREF(__pyx_v_xml_file);
__Pyx_GIVEREF(__pyx_v_xml_file);
PyTuple_SET_ITEM(__pyx_t_5, 0+__pyx_t_4, __pyx_v_xml_file);
__Pyx_INCREF(__pyx_v_eps);
__Pyx_GIVEREF(__pyx_v_eps);
PyTuple_SET_ITEM(__pyx_t_5, 1+__pyx_t_4, __pyx_v_eps);
__pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 468, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
}
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "skimage/feature/_cascade.pyx":455
* free(self.LUTs)
*
* def __init__(self, xml_file, eps=1e-5): # <<<<<<<<<<<<<<
* """Initialize cascade classifier.
*
*/
/* function exit code */
__pyx_r = 0;
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_XDECREF(__pyx_t_2);
__Pyx_XDECREF(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_5);
__Pyx_AddTraceback("skimage.feature._cascade.Cascade.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = -1;
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":470
* self._load_xml(xml_file, eps)
*
* cdef bint classify(self, float[:, ::1] int_img, Py_ssize_t row, Py_ssize_t col, float scale) nogil: # <<<<<<<<<<<<<<
* """Classify the provided image patch i.e. check if the classifier
* detects an object in the given image patch.
*/
static int __pyx_f_7skimage_7feature_8_cascade_7Cascade_classify(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, __Pyx_memviewslice __pyx_v_int_img, Py_ssize_t __pyx_v_row, Py_ssize_t __pyx_v_col, float __pyx_v_scale) {
float __pyx_v_stage_points;
int __pyx_v_lbp_code;
int __pyx_v_bit;
Py_ssize_t __pyx_v_stage_number;
Py_ssize_t __pyx_v_weak_classifier_number;
Py_ssize_t __pyx_v_first_stump_idx;
Py_ssize_t __pyx_v_lut_idx;
Py_ssize_t __pyx_v_r;
Py_ssize_t __pyx_v_c;
Py_ssize_t __pyx_v_height;
struct __pyx_t_7skimage_7feature_8_cascade_Stage __pyx_v_current_stage;
struct __pyx_t_7skimage_7feature_8_cascade_MBLBPStump __pyx_v_current_stump;
struct __pyx_t_7skimage_7feature_8_cascade_MBLBP __pyx_v_current_feature;
Py_ssize_t __pyx_v_width;
int __pyx_r;
__Pyx_TraceDeclarations
Py_ssize_t __pyx_t_1;
Py_ssize_t __pyx_t_2;
Py_ssize_t __pyx_t_3;
Py_ssize_t __pyx_t_4;
Py_ssize_t __pyx_t_5;
Py_ssize_t __pyx_t_6;
Py_ssize_t __pyx_t_7;
float __pyx_t_8;
int __pyx_t_9;
__Pyx_TraceCall("classify", __pyx_f[0], 470, 1, __PYX_ERR(0, 470, __pyx_L1_error));
/* "skimage/feature/_cascade.pyx":518
*
*
* for stage_number in range(self.stages_number): # <<<<<<<<<<<<<<
*
* current_stage = self.stages[stage_number]
*/
__Pyx_TraceLine(518,1,__PYX_ERR(0, 518, __pyx_L1_error))
__pyx_t_1 = __pyx_v_self->stages_number;
__pyx_t_2 = __pyx_t_1;
for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) {
__pyx_v_stage_number = __pyx_t_3;
/* "skimage/feature/_cascade.pyx":520
* for stage_number in range(self.stages_number):
*
* current_stage = self.stages[stage_number] # <<<<<<<<<<<<<<
* first_stump_idx = current_stage.first_idx
* stage_points = 0
*/
__Pyx_TraceLine(520,1,__PYX_ERR(0, 520, __pyx_L1_error))
__pyx_v_current_stage = (__pyx_v_self->stages[__pyx_v_stage_number]);
/* "skimage/feature/_cascade.pyx":521
*
* current_stage = self.stages[stage_number]
* first_stump_idx = current_stage.first_idx # <<<<<<<<<<<<<<
* stage_points = 0
*
*/
__Pyx_TraceLine(521,1,__PYX_ERR(0, 521, __pyx_L1_error))
__pyx_t_4 = __pyx_v_current_stage.first_idx;
__pyx_v_first_stump_idx = __pyx_t_4;
/* "skimage/feature/_cascade.pyx":522
* current_stage = self.stages[stage_number]
* first_stump_idx = current_stage.first_idx
* stage_points = 0 # <<<<<<<<<<<<<<
*
* for weak_classifier_number in range(current_stage.amount):
*/
__Pyx_TraceLine(522,1,__PYX_ERR(0, 522, __pyx_L1_error))
__pyx_v_stage_points = 0.0;
/* "skimage/feature/_cascade.pyx":524
* stage_points = 0
*
* for weak_classifier_number in range(current_stage.amount): # <<<<<<<<<<<<<<
*
* current_stump = self.stumps[first_stump_idx + weak_classifier_number]
*/
__Pyx_TraceLine(524,1,__PYX_ERR(0, 524, __pyx_L1_error))
__pyx_t_4 = __pyx_v_current_stage.amount;
__pyx_t_5 = __pyx_t_4;
for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
__pyx_v_weak_classifier_number = __pyx_t_6;
/* "skimage/feature/_cascade.pyx":526
* for weak_classifier_number in range(current_stage.amount):
*
* current_stump = self.stumps[first_stump_idx + weak_classifier_number] # <<<<<<<<<<<<<<
*
* current_feature = self.features[current_stump.feature_id]
*/
__Pyx_TraceLine(526,1,__PYX_ERR(0, 526, __pyx_L1_error))
__pyx_v_current_stump = (__pyx_v_self->stumps[(__pyx_v_first_stump_idx + __pyx_v_weak_classifier_number)]);
/* "skimage/feature/_cascade.pyx":528
* current_stump = self.stumps[first_stump_idx + weak_classifier_number]
*
* current_feature = self.features[current_stump.feature_id] # <<<<<<<<<<<<<<
*
* r = <Py_ssize_t>(current_feature.r * scale)
*/
__Pyx_TraceLine(528,1,__PYX_ERR(0, 528, __pyx_L1_error))
__pyx_v_current_feature = (__pyx_v_self->features[__pyx_v_current_stump.feature_id]);
/* "skimage/feature/_cascade.pyx":530
* current_feature = self.features[current_stump.feature_id]
*
* r = <Py_ssize_t>(current_feature.r * scale) # <<<<<<<<<<<<<<
* c = <Py_ssize_t>(current_feature.c * scale)
* width = <Py_ssize_t>(current_feature.width * scale)
*/
__Pyx_TraceLine(530,1,__PYX_ERR(0, 530, __pyx_L1_error))
__pyx_v_r = ((Py_ssize_t)(__pyx_v_current_feature.r * __pyx_v_scale));
/* "skimage/feature/_cascade.pyx":531
*
* r = <Py_ssize_t>(current_feature.r * scale)
* c = <Py_ssize_t>(current_feature.c * scale) # <<<<<<<<<<<<<<
* width = <Py_ssize_t>(current_feature.width * scale)
* height = <Py_ssize_t>(current_feature.height * scale)
*/
__Pyx_TraceLine(531,1,__PYX_ERR(0, 531, __pyx_L1_error))
__pyx_v_c = ((Py_ssize_t)(__pyx_v_current_feature.c * __pyx_v_scale));
/* "skimage/feature/_cascade.pyx":532
* r = <Py_ssize_t>(current_feature.r * scale)
* c = <Py_ssize_t>(current_feature.c * scale)
* width = <Py_ssize_t>(current_feature.width * scale) # <<<<<<<<<<<<<<
* height = <Py_ssize_t>(current_feature.height * scale)
*
*/
__Pyx_TraceLine(532,1,__PYX_ERR(0, 532, __pyx_L1_error))
__pyx_v_width = ((Py_ssize_t)(__pyx_v_current_feature.width * __pyx_v_scale));
/* "skimage/feature/_cascade.pyx":533
* c = <Py_ssize_t>(current_feature.c * scale)
* width = <Py_ssize_t>(current_feature.width * scale)
* height = <Py_ssize_t>(current_feature.height * scale) # <<<<<<<<<<<<<<
*
*
*/
__Pyx_TraceLine(533,1,__PYX_ERR(0, 533, __pyx_L1_error))
__pyx_v_height = ((Py_ssize_t)(__pyx_v_current_feature.height * __pyx_v_scale));
/* "skimage/feature/_cascade.pyx":536
*
*
* lbp_code = _multiblock_lbp(int_img, row + r, col + c, # <<<<<<<<<<<<<<
* width, height)
*
*/
__Pyx_TraceLine(536,1,__PYX_ERR(0, 536, __pyx_L1_error))
__pyx_v_lbp_code = __pyx_f_7skimage_7feature_8_texture__multiblock_lbp(__pyx_v_int_img, (__pyx_v_row + __pyx_v_r), (__pyx_v_col + __pyx_v_c), __pyx_v_width, __pyx_v_height, 0);
/* "skimage/feature/_cascade.pyx":539
* width, height)
*
* lut_idx = current_stump.lut_idx # <<<<<<<<<<<<<<
*
* bit = (self.LUTs[lut_idx + (lbp_code >> 5)] >> (lbp_code & 31)) & 1
*/
__Pyx_TraceLine(539,1,__PYX_ERR(0, 539, __pyx_L1_error))
__pyx_t_7 = __pyx_v_current_stump.lut_idx;
__pyx_v_lut_idx = __pyx_t_7;
/* "skimage/feature/_cascade.pyx":541
* lut_idx = current_stump.lut_idx
*
* bit = (self.LUTs[lut_idx + (lbp_code >> 5)] >> (lbp_code & 31)) & 1 # <<<<<<<<<<<<<<
*
* stage_points += current_stump.left if bit else current_stump.right
*/
__Pyx_TraceLine(541,1,__PYX_ERR(0, 541, __pyx_L1_error))
__pyx_v_bit = (((__pyx_v_self->LUTs[(__pyx_v_lut_idx + (__pyx_v_lbp_code >> 5))]) >> (__pyx_v_lbp_code & 31)) & 1);
/* "skimage/feature/_cascade.pyx":543
* bit = (self.LUTs[lut_idx + (lbp_code >> 5)] >> (lbp_code & 31)) & 1
*
* stage_points += current_stump.left if bit else current_stump.right # <<<<<<<<<<<<<<
*
* if stage_points < (current_stage.threshold - self.eps):
*/
__Pyx_TraceLine(543,1,__PYX_ERR(0, 543, __pyx_L1_error))
if ((__pyx_v_bit != 0)) {
__pyx_t_8 = __pyx_v_current_stump.left;
} else {
__pyx_t_8 = __pyx_v_current_stump.right;
}
__pyx_v_stage_points = (__pyx_v_stage_points + __pyx_t_8);
}
/* "skimage/feature/_cascade.pyx":545
* stage_points += current_stump.left if bit else current_stump.right
*
* if stage_points < (current_stage.threshold - self.eps): # <<<<<<<<<<<<<<
*
* return False
*/
__Pyx_TraceLine(545,1,__PYX_ERR(0, 545, __pyx_L1_error))
__pyx_t_9 = ((__pyx_v_stage_points < (__pyx_v_current_stage.threshold - __pyx_v_self->eps)) != 0);
if (__pyx_t_9) {
/* "skimage/feature/_cascade.pyx":547
* if stage_points < (current_stage.threshold - self.eps):
*
* return False # <<<<<<<<<<<<<<
*
* return True
*/
__Pyx_TraceLine(547,1,__PYX_ERR(0, 547, __pyx_L1_error))
__pyx_r = 0;
goto __pyx_L0;
/* "skimage/feature/_cascade.pyx":545
* stage_points += current_stump.left if bit else current_stump.right
*
* if stage_points < (current_stage.threshold - self.eps): # <<<<<<<<<<<<<<
*
* return False
*/
}
}
/* "skimage/feature/_cascade.pyx":549
* return False
*
* return True # <<<<<<<<<<<<<<
*
* def _get_valid_scale_factors(self, min_size, max_size, scale_step):
*/
__Pyx_TraceLine(549,1,__PYX_ERR(0, 549, __pyx_L1_error))
__pyx_r = 1;
goto __pyx_L0;
/* "skimage/feature/_cascade.pyx":470
* self._load_xml(xml_file, eps)
*
* cdef bint classify(self, float[:, ::1] int_img, Py_ssize_t row, Py_ssize_t col, float scale) nogil: # <<<<<<<<<<<<<<
* """Classify the provided image patch i.e. check if the classifier
* detects an object in the given image patch.
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage.feature._cascade.Cascade.classify", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_r = 0;
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":551
* return True
*
* def _get_valid_scale_factors(self, min_size, max_size, scale_step): # <<<<<<<<<<<<<<
* """Get the valid scale multipliers for the original window size.
*
*/
/* Python wrapper */
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_5_get_valid_scale_factors(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_7skimage_7feature_8_cascade_7Cascade_4_get_valid_scale_factors[] = "Get the valid scale multipliers for the original window size.\n\n The function takes the minimal size of window and maximum size of\n window as interval and finds all the multipliers that will give the\n windows which sizes will be not less than the min_size and not bigger\n than the max_size.\n\n Parameters\n ----------\n min_size : typle (int, int)\n Minimum size of window for which to search the scale factor.\n max_size : typle (int, int)\n Maximum size of window for which to search the scale factor.\n scale_step : float\n The scale by which the search window is multiplied\n on each iteration.\n\n Returns\n -------\n scale_factors : 1-D floats ndarray\n The scale factors that give the window sizes that are in the\n specified interval after multiplying the search window.\n ";
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_5_get_valid_scale_factors(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
PyObject *__pyx_v_min_size = 0;
PyObject *__pyx_v_max_size = 0;
PyObject *__pyx_v_scale_step = 0;
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("_get_valid_scale_factors (wrapper)", 0);
{
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_min_size,&__pyx_n_s_max_size,&__pyx_n_s_scale_step,0};
PyObject* values[3] = {0,0,0};
if (unlikely(__pyx_kwds)) {
Py_ssize_t kw_args;
const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
switch (pos_args) {
case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
CYTHON_FALLTHROUGH;
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
CYTHON_FALLTHROUGH;
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
CYTHON_FALLTHROUGH;
case 0: break;
default: goto __pyx_L5_argtuple_error;
}
kw_args = PyDict_Size(__pyx_kwds);
switch (pos_args) {
case 0:
if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_size)) != 0)) kw_args--;
else goto __pyx_L5_argtuple_error;
CYTHON_FALLTHROUGH;
case 1:
if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_size)) != 0)) kw_args--;
else {
__Pyx_RaiseArgtupleInvalid("_get_valid_scale_factors", 1, 3, 3, 1); __PYX_ERR(0, 551, __pyx_L3_error)
}
CYTHON_FALLTHROUGH;
case 2:
if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_step)) != 0)) kw_args--;
else {
__Pyx_RaiseArgtupleInvalid("_get_valid_scale_factors", 1, 3, 3, 2); __PYX_ERR(0, 551, __pyx_L3_error)
}
}
if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_get_valid_scale_factors") < 0)) __PYX_ERR(0, 551, __pyx_L3_error)
}
} else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
goto __pyx_L5_argtuple_error;
} else {
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
}
__pyx_v_min_size = values[0];
__pyx_v_max_size = values[1];
__pyx_v_scale_step = values[2];
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("_get_valid_scale_factors", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 551, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("skimage.feature._cascade.Cascade._get_valid_scale_factors", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_4_get_valid_scale_factors(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self), __pyx_v_min_size, __pyx_v_max_size, __pyx_v_scale_step);
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_4_get_valid_scale_factors(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_min_size, PyObject *__pyx_v_max_size, PyObject *__pyx_v_scale_step) {
PyObject *__pyx_v_current_size = NULL;
PyObject *__pyx_v_row_power_max = NULL;
PyObject *__pyx_v_col_power_max = NULL;
PyObject *__pyx_v_row_power_min = NULL;
PyObject *__pyx_v_col_power_min = NULL;
PyObject *__pyx_v_mn = NULL;
PyObject *__pyx_v_mx = NULL;
PyObject *__pyx_v_powers = NULL;
PyObject *__pyx_v_scale_factors = NULL;
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
PyObject *__pyx_t_4 = NULL;
PyObject *__pyx_t_5 = NULL;
int __pyx_t_6;
long __pyx_t_7;
int __pyx_t_8;
__Pyx_RefNannySetupContext("_get_valid_scale_factors", 0);
__Pyx_TraceCall("_get_valid_scale_factors", __pyx_f[0], 551, 0, __PYX_ERR(0, 551, __pyx_L1_error));
__Pyx_INCREF(__pyx_v_min_size);
__Pyx_INCREF(__pyx_v_max_size);
/* "skimage/feature/_cascade.pyx":576
* """
*
* current_size = np.array((self.window_height, self.window_width)) # <<<<<<<<<<<<<<
* min_size = np.array(min_size, dtype=np.float32)
* max_size = np.array(max_size, dtype=np.float32)
*/
__Pyx_TraceLine(576,0,__PYX_ERR(0, 576, __pyx_L1_error))
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 576, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_array); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 576, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = PyInt_FromSsize_t(__pyx_v_self->window_height); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 576, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_4 = PyInt_FromSsize_t(__pyx_v_self->window_width); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 576, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 576, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_GIVEREF(__pyx_t_2);
PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2);
__Pyx_GIVEREF(__pyx_t_4);
PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4);
__pyx_t_2 = 0;
__pyx_t_4 = 0;
__pyx_t_4 = NULL;
if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
__pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
if (likely(__pyx_t_4)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
__Pyx_INCREF(__pyx_t_4);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_3, function);
}
}
__pyx_t_1 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_t_5) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5);
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 576, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_v_current_size = __pyx_t_1;
__pyx_t_1 = 0;
/* "skimage/feature/_cascade.pyx":577
*
* current_size = np.array((self.window_height, self.window_width))
* min_size = np.array(min_size, dtype=np.float32) # <<<<<<<<<<<<<<
* max_size = np.array(max_size, dtype=np.float32)
*
*/
__Pyx_TraceLine(577,0,__PYX_ERR(0, 577, __pyx_L1_error))
__Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 577, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_array); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 577, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 577, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_v_min_size);
__Pyx_GIVEREF(__pyx_v_min_size);
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_min_size);
__pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 577, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 577, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_float32); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 577, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_dtype, __pyx_t_2) < 0) __PYX_ERR(0, 577, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 577, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_DECREF_SET(__pyx_v_min_size, __pyx_t_2);
__pyx_t_2 = 0;
/* "skimage/feature/_cascade.pyx":578
* current_size = np.array((self.window_height, self.window_width))
* min_size = np.array(min_size, dtype=np.float32)
* max_size = np.array(max_size, dtype=np.float32) # <<<<<<<<<<<<<<
*
* row_power_max = math.log(max_size[0]/current_size[0], scale_step)
*/
__Pyx_TraceLine(578,0,__PYX_ERR(0, 578, __pyx_L1_error))
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 578, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_array); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 578, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 578, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_INCREF(__pyx_v_max_size);
__Pyx_GIVEREF(__pyx_v_max_size);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_max_size);
__pyx_t_1 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 578, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_n_s_np); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 578, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_float32); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 578, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_dtype, __pyx_t_4) < 0) __PYX_ERR(0, 578, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 578, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF_SET(__pyx_v_max_size, __pyx_t_4);
__pyx_t_4 = 0;
/* "skimage/feature/_cascade.pyx":580
* max_size = np.array(max_size, dtype=np.float32)
*
* row_power_max = math.log(max_size[0]/current_size[0], scale_step) # <<<<<<<<<<<<<<
* col_power_max = math.log(max_size[1]/current_size[1], scale_step)
*
*/
__Pyx_TraceLine(580,0,__PYX_ERR(0, 580, __pyx_L1_error))
__Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_math); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 580, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_log); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 580, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_1 = __Pyx_GetItemInt(__pyx_v_max_size, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 580, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_5 = __Pyx_GetItemInt(__pyx_v_current_size, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 580, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 580, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_5 = NULL;
__pyx_t_6 = 0;
if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
__pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
if (likely(__pyx_t_5)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
__Pyx_INCREF(__pyx_t_5);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_2, function);
__pyx_t_6 = 1;
}
}
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_2)) {
PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_3, __pyx_v_scale_step};
__pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 580, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
} else
#endif
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_3, __pyx_v_scale_step};
__pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 580, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
} else
#endif
{
__pyx_t_1 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 580, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
if (__pyx_t_5) {
__Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5); __pyx_t_5 = NULL;
}
__Pyx_GIVEREF(__pyx_t_3);
PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_6, __pyx_t_3);
__Pyx_INCREF(__pyx_v_scale_step);
__Pyx_GIVEREF(__pyx_v_scale_step);
PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_6, __pyx_v_scale_step);
__pyx_t_3 = 0;
__pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 580, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
}
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_v_row_power_max = __pyx_t_4;
__pyx_t_4 = 0;
/* "skimage/feature/_cascade.pyx":581
*
* row_power_max = math.log(max_size[0]/current_size[0], scale_step)
* col_power_max = math.log(max_size[1]/current_size[1], scale_step) # <<<<<<<<<<<<<<
*
* row_power_min = math.log(min_size[0]/current_size[0], scale_step)
*/
__Pyx_TraceLine(581,0,__PYX_ERR(0, 581, __pyx_L1_error))
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_math); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 581, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_log); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 581, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = __Pyx_GetItemInt(__pyx_v_max_size, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 581, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = __Pyx_GetItemInt(__pyx_v_current_size, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 581, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_5 = __Pyx_PyNumber_Divide(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 581, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_3 = NULL;
__pyx_t_6 = 0;
if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
__pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
if (likely(__pyx_t_3)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_1, function);
__pyx_t_6 = 1;
}
}
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_1)) {
PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_t_5, __pyx_v_scale_step};
__pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 581, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
} else
#endif
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_t_5, __pyx_v_scale_step};
__pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 581, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
} else
#endif
{
__pyx_t_2 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 581, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
if (__pyx_t_3) {
__Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); __pyx_t_3 = NULL;
}
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_6, __pyx_t_5);
__Pyx_INCREF(__pyx_v_scale_step);
__Pyx_GIVEREF(__pyx_v_scale_step);
PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_6, __pyx_v_scale_step);
__pyx_t_5 = 0;
__pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 581, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
}
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_v_col_power_max = __pyx_t_4;
__pyx_t_4 = 0;
/* "skimage/feature/_cascade.pyx":583
* col_power_max = math.log(max_size[1]/current_size[1], scale_step)
*
* row_power_min = math.log(min_size[0]/current_size[0], scale_step) # <<<<<<<<<<<<<<
* col_power_min = math.log(min_size[1]/current_size[1], scale_step)
*
*/
__Pyx_TraceLine(583,0,__PYX_ERR(0, 583, __pyx_L1_error))
__Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_math); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 583, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_log); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 583, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_1 = __Pyx_GetItemInt(__pyx_v_min_size, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 583, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_5 = __Pyx_GetItemInt(__pyx_v_current_size, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 583, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_3 = __Pyx_PyNumber_Divide(__pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 583, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_5 = NULL;
__pyx_t_6 = 0;
if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
__pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2);
if (likely(__pyx_t_5)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
__Pyx_INCREF(__pyx_t_5);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_2, function);
__pyx_t_6 = 1;
}
}
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_2)) {
PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_3, __pyx_v_scale_step};
__pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 583, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
} else
#endif
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
PyObject *__pyx_temp[3] = {__pyx_t_5, __pyx_t_3, __pyx_v_scale_step};
__pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 583, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
} else
#endif
{
__pyx_t_1 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 583, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
if (__pyx_t_5) {
__Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5); __pyx_t_5 = NULL;
}
__Pyx_GIVEREF(__pyx_t_3);
PyTuple_SET_ITEM(__pyx_t_1, 0+__pyx_t_6, __pyx_t_3);
__Pyx_INCREF(__pyx_v_scale_step);
__Pyx_GIVEREF(__pyx_v_scale_step);
PyTuple_SET_ITEM(__pyx_t_1, 1+__pyx_t_6, __pyx_v_scale_step);
__pyx_t_3 = 0;
__pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_1, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 583, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
}
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_v_row_power_min = __pyx_t_4;
__pyx_t_4 = 0;
/* "skimage/feature/_cascade.pyx":584
*
* row_power_min = math.log(min_size[0]/current_size[0], scale_step)
* col_power_min = math.log(min_size[1]/current_size[1], scale_step) # <<<<<<<<<<<<<<
*
* mn = max(row_power_min, col_power_min, 0)
*/
__Pyx_TraceLine(584,0,__PYX_ERR(0, 584, __pyx_L1_error))
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_math); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 584, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_log); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 584, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = __Pyx_GetItemInt(__pyx_v_min_size, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 584, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = __Pyx_GetItemInt(__pyx_v_current_size, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 584, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_5 = __Pyx_PyNumber_Divide(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 584, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_3 = NULL;
__pyx_t_6 = 0;
if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_1))) {
__pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
if (likely(__pyx_t_3)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_1, function);
__pyx_t_6 = 1;
}
}
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_1)) {
PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_t_5, __pyx_v_scale_step};
__pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 584, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
} else
#endif
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_1)) {
PyObject *__pyx_temp[3] = {__pyx_t_3, __pyx_t_5, __pyx_v_scale_step};
__pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_1, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 584, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
} else
#endif
{
__pyx_t_2 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 584, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
if (__pyx_t_3) {
__Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3); __pyx_t_3 = NULL;
}
__Pyx_GIVEREF(__pyx_t_5);
PyTuple_SET_ITEM(__pyx_t_2, 0+__pyx_t_6, __pyx_t_5);
__Pyx_INCREF(__pyx_v_scale_step);
__Pyx_GIVEREF(__pyx_v_scale_step);
PyTuple_SET_ITEM(__pyx_t_2, 1+__pyx_t_6, __pyx_v_scale_step);
__pyx_t_5 = 0;
__pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 584, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
}
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_v_col_power_min = __pyx_t_4;
__pyx_t_4 = 0;
/* "skimage/feature/_cascade.pyx":586
* col_power_min = math.log(min_size[1]/current_size[1], scale_step)
*
* mn = max(row_power_min, col_power_min, 0) # <<<<<<<<<<<<<<
* mx = min(row_power_max, col_power_max)
*
*/
__Pyx_TraceLine(586,0,__PYX_ERR(0, 586, __pyx_L1_error))
__Pyx_INCREF(__pyx_v_col_power_min);
__pyx_t_4 = __pyx_v_col_power_min;
__pyx_t_7 = 0;
__Pyx_INCREF(__pyx_v_row_power_min);
__pyx_t_1 = __pyx_v_row_power_min;
__pyx_t_5 = PyObject_RichCompare(__pyx_t_4, __pyx_t_1, Py_GT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 586, __pyx_L1_error)
__pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 586, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
if (__pyx_t_8) {
__Pyx_INCREF(__pyx_t_4);
__pyx_t_2 = __pyx_t_4;
} else {
__Pyx_INCREF(__pyx_t_1);
__pyx_t_2 = __pyx_t_1;
}
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_INCREF(__pyx_t_2);
__pyx_t_1 = __pyx_t_2;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_5 = __Pyx_PyInt_From_long(__pyx_t_7); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 586, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__pyx_t_3 = PyObject_RichCompare(__pyx_t_5, __pyx_t_1, Py_GT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 586, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 586, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_8) {
__pyx_t_3 = __Pyx_PyInt_From_long(__pyx_t_7); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 586, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_2 = __pyx_t_3;
__pyx_t_3 = 0;
} else {
__Pyx_INCREF(__pyx_t_1);
__pyx_t_2 = __pyx_t_1;
}
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_4 = __pyx_t_2;
__Pyx_INCREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_v_mn = __pyx_t_4;
__pyx_t_4 = 0;
/* "skimage/feature/_cascade.pyx":587
*
* mn = max(row_power_min, col_power_min, 0)
* mx = min(row_power_max, col_power_max) # <<<<<<<<<<<<<<
*
* powers = np.arange(mn, mx)
*/
__Pyx_TraceLine(587,0,__PYX_ERR(0, 587, __pyx_L1_error))
__Pyx_INCREF(__pyx_v_col_power_max);
__pyx_t_4 = __pyx_v_col_power_max;
__Pyx_INCREF(__pyx_v_row_power_max);
__pyx_t_2 = __pyx_v_row_power_max;
__pyx_t_3 = PyObject_RichCompare(__pyx_t_4, __pyx_t_2, Py_LT); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 587, __pyx_L1_error)
__pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(0, 587, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_8) {
__Pyx_INCREF(__pyx_t_4);
__pyx_t_1 = __pyx_t_4;
} else {
__Pyx_INCREF(__pyx_t_2);
__pyx_t_1 = __pyx_t_2;
}
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_4 = __pyx_t_1;
__Pyx_INCREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_v_mx = __pyx_t_4;
__pyx_t_4 = 0;
/* "skimage/feature/_cascade.pyx":589
* mx = min(row_power_max, col_power_max)
*
* powers = np.arange(mn, mx) # <<<<<<<<<<<<<<
*
* scale_factors = np.power(scale_step, powers, dtype=np.float32)
*/
__Pyx_TraceLine(589,0,__PYX_ERR(0, 589, __pyx_L1_error))
__Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 589, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_arange); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 589, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_1 = NULL;
__pyx_t_6 = 0;
if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_2))) {
__pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
if (likely(__pyx_t_1)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
__Pyx_INCREF(__pyx_t_1);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_2, function);
__pyx_t_6 = 1;
}
}
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_2)) {
PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_v_mn, __pyx_v_mx};
__pyx_t_4 = __Pyx_PyFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 589, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_GOTREF(__pyx_t_4);
} else
#endif
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_2)) {
PyObject *__pyx_temp[3] = {__pyx_t_1, __pyx_v_mn, __pyx_v_mx};
__pyx_t_4 = __Pyx_PyCFunction_FastCall(__pyx_t_2, __pyx_temp+1-__pyx_t_6, 2+__pyx_t_6); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 589, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_GOTREF(__pyx_t_4);
} else
#endif
{
__pyx_t_3 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 589, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
if (__pyx_t_1) {
__Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1); __pyx_t_1 = NULL;
}
__Pyx_INCREF(__pyx_v_mn);
__Pyx_GIVEREF(__pyx_v_mn);
PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_6, __pyx_v_mn);
__Pyx_INCREF(__pyx_v_mx);
__Pyx_GIVEREF(__pyx_v_mx);
PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_6, __pyx_v_mx);
__pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 589, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
}
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_v_powers = __pyx_t_4;
__pyx_t_4 = 0;
/* "skimage/feature/_cascade.pyx":591
* powers = np.arange(mn, mx)
*
* scale_factors = np.power(scale_step, powers, dtype=np.float32) # <<<<<<<<<<<<<<
*
* return scale_factors
*/
__Pyx_TraceLine(591,0,__PYX_ERR(0, 591, __pyx_L1_error))
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_np); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 591, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_power); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 591, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 591, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_INCREF(__pyx_v_scale_step);
__Pyx_GIVEREF(__pyx_v_scale_step);
PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_scale_step);
__Pyx_INCREF(__pyx_v_powers);
__Pyx_GIVEREF(__pyx_v_powers);
PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_v_powers);
__pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 591, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 591, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_float32); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 591, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtype, __pyx_t_5) < 0) __PYX_ERR(0, 591, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, __pyx_t_3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 591, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_v_scale_factors = __pyx_t_5;
__pyx_t_5 = 0;
/* "skimage/feature/_cascade.pyx":593
* scale_factors = np.power(scale_step, powers, dtype=np.float32)
*
* return scale_factors # <<<<<<<<<<<<<<
*
* def _get_contiguous_integral_image(self, img):
*/
__Pyx_TraceLine(593,0,__PYX_ERR(0, 593, __pyx_L1_error))
__Pyx_XDECREF(__pyx_r);
__Pyx_INCREF(__pyx_v_scale_factors);
__pyx_r = __pyx_v_scale_factors;
goto __pyx_L0;
/* "skimage/feature/_cascade.pyx":551
* return True
*
* def _get_valid_scale_factors(self, min_size, max_size, scale_step): # <<<<<<<<<<<<<<
* """Get the valid scale multipliers for the original window size.
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_XDECREF(__pyx_t_2);
__Pyx_XDECREF(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4);
__Pyx_XDECREF(__pyx_t_5);
__Pyx_AddTraceback("skimage.feature._cascade.Cascade._get_valid_scale_factors", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XDECREF(__pyx_v_current_size);
__Pyx_XDECREF(__pyx_v_row_power_max);
__Pyx_XDECREF(__pyx_v_col_power_max);
__Pyx_XDECREF(__pyx_v_row_power_min);
__Pyx_XDECREF(__pyx_v_col_power_min);
__Pyx_XDECREF(__pyx_v_mn);
__Pyx_XDECREF(__pyx_v_mx);
__Pyx_XDECREF(__pyx_v_powers);
__Pyx_XDECREF(__pyx_v_scale_factors);
__Pyx_XDECREF(__pyx_v_min_size);
__Pyx_XDECREF(__pyx_v_max_size);
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":595
* return scale_factors
*
* def _get_contiguous_integral_image(self, img): # <<<<<<<<<<<<<<
* """Get a c-contiguous array that represents the integral image.
*
*/
/* Python wrapper */
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_7_get_contiguous_integral_image(PyObject *__pyx_v_self, PyObject *__pyx_v_img); /*proto*/
static char __pyx_doc_7skimage_7feature_8_cascade_7Cascade_6_get_contiguous_integral_image[] = "Get a c-contiguous array that represents the integral image.\n\n The function converts the input image into the integral image in\n a format that is suitable for work of internal functions of\n the cascade classifier class. The function converts the image\n to gray-scale float representation, computes the integral image\n and makes it c-contiguous.\n\n Parameters\n ----------\n img : 2-D or 3-D ndarray\n Ndarray that represents the input image.\n\n Returns\n -------\n int_img : 2-D floats ndarray\n C-contiguous integral image of the input image.\n ";
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_7_get_contiguous_integral_image(PyObject *__pyx_v_self, PyObject *__pyx_v_img) {
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("_get_contiguous_integral_image (wrapper)", 0);
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_6_get_contiguous_integral_image(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self), ((PyObject *)__pyx_v_img));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_6_get_contiguous_integral_image(CYTHON_UNUSED struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_img) {
PyObject *__pyx_v_int_img = NULL;
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
Py_ssize_t __pyx_t_2;
int __pyx_t_3;
PyObject *__pyx_t_4 = NULL;
PyObject *__pyx_t_5 = NULL;
PyObject *__pyx_t_6 = NULL;
PyObject *__pyx_t_7 = NULL;
__Pyx_RefNannySetupContext("_get_contiguous_integral_image", 0);
__Pyx_TraceCall("_get_contiguous_integral_image", __pyx_f[0], 595, 0, __PYX_ERR(0, 595, __pyx_L1_error));
__Pyx_INCREF(__pyx_v_img);
/* "skimage/feature/_cascade.pyx":614
* C-contiguous integral image of the input image.
* """
* if len(img.shape) > 2: # <<<<<<<<<<<<<<
* img = rgb2gray(img)
* int_img = integral_image(img)
*/
__Pyx_TraceLine(614,0,__PYX_ERR(0, 614, __pyx_L1_error))
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_img, __pyx_n_s_shape); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 614, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_2 = PyObject_Length(__pyx_t_1); if (unlikely(__pyx_t_2 == ((Py_ssize_t)-1))) __PYX_ERR(0, 614, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_3 = ((__pyx_t_2 > 2) != 0);
if (__pyx_t_3) {
/* "skimage/feature/_cascade.pyx":615
* """
* if len(img.shape) > 2:
* img = rgb2gray(img) # <<<<<<<<<<<<<<
* int_img = integral_image(img)
* int_img = np.ascontiguousarray(int_img, dtype=np.float32)
*/
__Pyx_TraceLine(615,0,__PYX_ERR(0, 615, __pyx_L1_error))
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_rgb2gray); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 615, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = NULL;
if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
__pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
if (likely(__pyx_t_5)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
__Pyx_INCREF(__pyx_t_5);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_4, function);
}
}
__pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_img) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_img);
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 615, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF_SET(__pyx_v_img, __pyx_t_1);
__pyx_t_1 = 0;
/* "skimage/feature/_cascade.pyx":614
* C-contiguous integral image of the input image.
* """
* if len(img.shape) > 2: # <<<<<<<<<<<<<<
* img = rgb2gray(img)
* int_img = integral_image(img)
*/
}
/* "skimage/feature/_cascade.pyx":616
* if len(img.shape) > 2:
* img = rgb2gray(img)
* int_img = integral_image(img) # <<<<<<<<<<<<<<
* int_img = np.ascontiguousarray(int_img, dtype=np.float32)
*
*/
__Pyx_TraceLine(616,0,__PYX_ERR(0, 616, __pyx_L1_error))
__Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_n_s_integral_image); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 616, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_5 = NULL;
if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_4))) {
__pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4);
if (likely(__pyx_t_5)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4);
__Pyx_INCREF(__pyx_t_5);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_4, function);
}
}
__pyx_t_1 = (__pyx_t_5) ? __Pyx_PyObject_Call2Args(__pyx_t_4, __pyx_t_5, __pyx_v_img) : __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_v_img);
__Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 616, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_v_int_img = __pyx_t_1;
__pyx_t_1 = 0;
/* "skimage/feature/_cascade.pyx":617
* img = rgb2gray(img)
* int_img = integral_image(img)
* int_img = np.ascontiguousarray(int_img, dtype=np.float32) # <<<<<<<<<<<<<<
*
* return int_img
*/
__Pyx_TraceLine(617,0,__PYX_ERR(0, 617, __pyx_L1_error))
__Pyx_GetModuleGlobalName(__pyx_t_1, __pyx_n_s_np); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 617, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_ascontiguousarray); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 617, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 617, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_INCREF(__pyx_v_int_img);
__Pyx_GIVEREF(__pyx_v_int_img);
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_int_img);
__pyx_t_5 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 617, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_n_s_np); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 617, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_6);
__pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_6, __pyx_n_s_float32); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 617, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_dtype, __pyx_t_7) < 0) __PYX_ERR(0, 617, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
__pyx_t_7 = __Pyx_PyObject_Call(__pyx_t_4, __pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 617, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_7);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
__Pyx_DECREF_SET(__pyx_v_int_img, __pyx_t_7);
__pyx_t_7 = 0;
/* "skimage/feature/_cascade.pyx":619
* int_img = np.ascontiguousarray(int_img, dtype=np.float32)
*
* return int_img # <<<<<<<<<<<<<<
*
*
*/
__Pyx_TraceLine(619,0,__PYX_ERR(0, 619, __pyx_L1_error))
__Pyx_XDECREF(__pyx_r);
__Pyx_INCREF(__pyx_v_int_img);
__pyx_r = __pyx_v_int_img;
goto __pyx_L0;
/* "skimage/feature/_cascade.pyx":595
* return scale_factors
*
* def _get_contiguous_integral_image(self, img): # <<<<<<<<<<<<<<
* """Get a c-contiguous array that represents the integral image.
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_XDECREF(__pyx_t_4);
__Pyx_XDECREF(__pyx_t_5);
__Pyx_XDECREF(__pyx_t_6);
__Pyx_XDECREF(__pyx_t_7);
__Pyx_AddTraceback("skimage.feature._cascade.Cascade._get_contiguous_integral_image", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XDECREF(__pyx_v_int_img);
__Pyx_XDECREF(__pyx_v_img);
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":622
*
*
* def detect_multi_scale(self, img, float scale_factor, float step_ratio, # <<<<<<<<<<<<<<
* min_size, max_size, min_neighbour_number=4,
* intersection_score_threshold=0.5):
*/
/* Python wrapper */
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_9detect_multi_scale(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_7skimage_7feature_8_cascade_7Cascade_8detect_multi_scale[] = "Search for the object on multiple scales of input image.\n\n The function takes the input image, the scale factor by which the\n searching window is multiplied on each step, minimum window size\n and maximum window size that specify the interval for the search\n windows that are applied to the input image to detect objects.\n\n Parameters\n ----------\n img : 2-D or 3-D ndarray\n Ndarray that represents the input image.\n scale_factor : float\n The scale by which searching window is multiplied on each step.\n step_ratio : float\n The ratio by which the search step in multiplied on each scale\n of the image. 1 represents the exaustive search and usually is\n slow. By setting this parameter to higher values the results will\n be worse but the computation will be much faster. Usually, values\n in the interval [1, 1.5] give good results.\n min_size : typle (int, int)\n Minimum size of the search window.\n max_size : typle (int, int)\n Maximum size of the search window.\n min_neighbour_number : int\n Minimum amount of intersecting detections in order for detection\n to be approved by the function.\n intersection_score_threshold : float\n The minimum value of value of ratio\n (intersection area) / (small rectangle ratio) in order to merge\n two detections into one.\n\n Returns\n -------\n output : list of dicts\n Dict have form {'r': int, 'c': int, 'width': int, 'height': int},\n where 'r' represents row position of top left corner of detected\n window, 'c' - col position, 'width' - width of detected window,\n 'height' - height of detected window.\n ";
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_9detect_multi_scale(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
PyObject *__pyx_v_img = 0;
float __pyx_v_scale_factor;
float __pyx_v_step_ratio;
PyObject *__pyx_v_min_size = 0;
PyObject *__pyx_v_max_size = 0;
PyObject *__pyx_v_min_neighbour_number = 0;
PyObject *__pyx_v_intersection_score_threshold = 0;
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("detect_multi_scale (wrapper)", 0);
{
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_img,&__pyx_n_s_scale_factor,&__pyx_n_s_step_ratio,&__pyx_n_s_min_size,&__pyx_n_s_max_size,&__pyx_n_s_min_neighbour_number,&__pyx_n_s_intersection_score_threshold,0};
PyObject* values[7] = {0,0,0,0,0,0,0};
values[5] = ((PyObject *)__pyx_int_4);
values[6] = ((PyObject *)__pyx_float_0_5);
if (unlikely(__pyx_kwds)) {
Py_ssize_t kw_args;
const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
switch (pos_args) {
case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
CYTHON_FALLTHROUGH;
case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
CYTHON_FALLTHROUGH;
case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
CYTHON_FALLTHROUGH;
case 4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
CYTHON_FALLTHROUGH;
case 3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
CYTHON_FALLTHROUGH;
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
CYTHON_FALLTHROUGH;
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
CYTHON_FALLTHROUGH;
case 0: break;
default: goto __pyx_L5_argtuple_error;
}
kw_args = PyDict_Size(__pyx_kwds);
switch (pos_args) {
case 0:
if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_img)) != 0)) kw_args--;
else goto __pyx_L5_argtuple_error;
CYTHON_FALLTHROUGH;
case 1:
if (likely((values[1] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_scale_factor)) != 0)) kw_args--;
else {
__Pyx_RaiseArgtupleInvalid("detect_multi_scale", 0, 5, 7, 1); __PYX_ERR(0, 622, __pyx_L3_error)
}
CYTHON_FALLTHROUGH;
case 2:
if (likely((values[2] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_step_ratio)) != 0)) kw_args--;
else {
__Pyx_RaiseArgtupleInvalid("detect_multi_scale", 0, 5, 7, 2); __PYX_ERR(0, 622, __pyx_L3_error)
}
CYTHON_FALLTHROUGH;
case 3:
if (likely((values[3] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_size)) != 0)) kw_args--;
else {
__Pyx_RaiseArgtupleInvalid("detect_multi_scale", 0, 5, 7, 3); __PYX_ERR(0, 622, __pyx_L3_error)
}
CYTHON_FALLTHROUGH;
case 4:
if (likely((values[4] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_max_size)) != 0)) kw_args--;
else {
__Pyx_RaiseArgtupleInvalid("detect_multi_scale", 0, 5, 7, 4); __PYX_ERR(0, 622, __pyx_L3_error)
}
CYTHON_FALLTHROUGH;
case 5:
if (kw_args > 0) {
PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_min_neighbour_number);
if (value) { values[5] = value; kw_args--; }
}
CYTHON_FALLTHROUGH;
case 6:
if (kw_args > 0) {
PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_intersection_score_threshold);
if (value) { values[6] = value; kw_args--; }
}
}
if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "detect_multi_scale") < 0)) __PYX_ERR(0, 622, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
case 7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
CYTHON_FALLTHROUGH;
case 6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
CYTHON_FALLTHROUGH;
case 5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
break;
default: goto __pyx_L5_argtuple_error;
}
}
__pyx_v_img = values[0];
__pyx_v_scale_factor = __pyx_PyFloat_AsFloat(values[1]); if (unlikely((__pyx_v_scale_factor == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 622, __pyx_L3_error)
__pyx_v_step_ratio = __pyx_PyFloat_AsFloat(values[2]); if (unlikely((__pyx_v_step_ratio == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 622, __pyx_L3_error)
__pyx_v_min_size = values[3];
__pyx_v_max_size = values[4];
__pyx_v_min_neighbour_number = values[5];
__pyx_v_intersection_score_threshold = values[6];
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("detect_multi_scale", 0, 5, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 622, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("skimage.feature._cascade.Cascade.detect_multi_scale", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_8detect_multi_scale(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self), __pyx_v_img, __pyx_v_scale_factor, __pyx_v_step_ratio, __pyx_v_min_size, __pyx_v_max_size, __pyx_v_min_neighbour_number, __pyx_v_intersection_score_threshold);
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_8detect_multi_scale(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_img, float __pyx_v_scale_factor, float __pyx_v_step_ratio, PyObject *__pyx_v_min_size, PyObject *__pyx_v_max_size, PyObject *__pyx_v_min_neighbour_number, PyObject *__pyx_v_intersection_score_threshold) {
Py_ssize_t __pyx_v_max_row;
Py_ssize_t __pyx_v_max_col;
Py_ssize_t __pyx_v_current_height;
Py_ssize_t __pyx_v_current_width;
Py_ssize_t __pyx_v_current_row;
Py_ssize_t __pyx_v_current_col;
Py_ssize_t __pyx_v_current_step;
CYTHON_UNUSED Py_ssize_t __pyx_v_number_of_scales;
Py_ssize_t __pyx_v_img_height;
Py_ssize_t __pyx_v_img_width;
Py_ssize_t __pyx_v_scale_number;
Py_ssize_t __pyx_v_window_height;
Py_ssize_t __pyx_v_window_width;
int __pyx_v_result;
__Pyx_memviewslice __pyx_v_scale_factors = { 0, 0, { 0 }, { 0 }, { 0 } };
__Pyx_memviewslice __pyx_v_int_img = { 0, 0, { 0 }, { 0 }, { 0 } };
float __pyx_v_current_scale_factor;
std::vector<struct __pyx_t_7skimage_7feature_8_cascade_Detection> __pyx_v_output;
struct __pyx_t_7skimage_7feature_8_cascade_Detection __pyx_v_new_detection;
omp_lock_t __pyx_v_mylock;
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
Py_ssize_t __pyx_t_1;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
PyObject *__pyx_t_4 = NULL;
__Pyx_memviewslice __pyx_t_5 = { 0, 0, { 0 }, { 0 }, { 0 } };
PyObject *__pyx_t_6 = NULL;
int __pyx_t_7;
PyObject *__pyx_t_8 = NULL;
__Pyx_memviewslice __pyx_t_9 = { 0, 0, { 0 }, { 0 }, { 0 } };
int __pyx_t_10;
Py_ssize_t __pyx_t_11;
Py_ssize_t __pyx_t_12;
Py_ssize_t __pyx_t_13;
int __pyx_t_14;
Py_ssize_t __pyx_t_15;
struct __pyx_t_7skimage_7feature_8_cascade_Detection __pyx_t_16;
float __pyx_t_17;
std::vector<struct __pyx_t_7skimage_7feature_8_cascade_Detection> __pyx_t_18;
struct __pyx_opt_args_7skimage_7feature_8_cascade__group_detections __pyx_t_19;
__Pyx_RefNannySetupContext("detect_multi_scale", 0);
__Pyx_TraceCall("detect_multi_scale", __pyx_f[0], 622, 0, __PYX_ERR(0, 622, __pyx_L1_error));
/* "skimage/feature/_cascade.pyx":677
* Py_ssize_t img_width
* Py_ssize_t scale_number
* Py_ssize_t window_height = self.window_height # <<<<<<<<<<<<<<
* Py_ssize_t window_width = self.window_width
* int result
*/
__Pyx_TraceLine(677,0,__PYX_ERR(0, 677, __pyx_L1_error))
__pyx_t_1 = __pyx_v_self->window_height;
__pyx_v_window_height = __pyx_t_1;
/* "skimage/feature/_cascade.pyx":678
* Py_ssize_t scale_number
* Py_ssize_t window_height = self.window_height
* Py_ssize_t window_width = self.window_width # <<<<<<<<<<<<<<
* int result
* float[::1] scale_factors
*/
__Pyx_TraceLine(678,0,__PYX_ERR(0, 678, __pyx_L1_error))
__pyx_t_1 = __pyx_v_self->window_width;
__pyx_v_window_width = __pyx_t_1;
/* "skimage/feature/_cascade.pyx":686
* Detection new_detection
*
* int_img = self._get_contiguous_integral_image(img) # <<<<<<<<<<<<<<
* img_height = int_img.shape[0]
* img_width = int_img.shape[1]
*/
__Pyx_TraceLine(686,0,__PYX_ERR(0, 686, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_contiguous_integral_image); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 686, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
__pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3);
if (likely(__pyx_t_4)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
__Pyx_INCREF(__pyx_t_4);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_3, function);
}
}
__pyx_t_2 = (__pyx_t_4) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_4, __pyx_v_img) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_img);
__Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 686, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_5 = __Pyx_PyObject_to_MemoryviewSlice_d_dc_float(__pyx_t_2, PyBUF_WRITABLE); if (unlikely(!__pyx_t_5.memview)) __PYX_ERR(0, 686, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_v_int_img = __pyx_t_5;
__pyx_t_5.memview = NULL;
__pyx_t_5.data = NULL;
/* "skimage/feature/_cascade.pyx":687
*
* int_img = self._get_contiguous_integral_image(img)
* img_height = int_img.shape[0] # <<<<<<<<<<<<<<
* img_width = int_img.shape[1]
*
*/
__Pyx_TraceLine(687,0,__PYX_ERR(0, 687, __pyx_L1_error))
__pyx_v_img_height = (__pyx_v_int_img.shape[0]);
/* "skimage/feature/_cascade.pyx":688
* int_img = self._get_contiguous_integral_image(img)
* img_height = int_img.shape[0]
* img_width = int_img.shape[1] # <<<<<<<<<<<<<<
*
* scale_factors = self._get_valid_scale_factors(min_size, max_size, scale_factor)
*/
__Pyx_TraceLine(688,0,__PYX_ERR(0, 688, __pyx_L1_error))
__pyx_v_img_width = (__pyx_v_int_img.shape[1]);
/* "skimage/feature/_cascade.pyx":690
* img_width = int_img.shape[1]
*
* scale_factors = self._get_valid_scale_factors(min_size, max_size, scale_factor) # <<<<<<<<<<<<<<
* number_of_scales = scale_factors.shape[0]
*
*/
__Pyx_TraceLine(690,0,__PYX_ERR(0, 690, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(((PyObject *)__pyx_v_self), __pyx_n_s_get_valid_scale_factors); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 690, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyFloat_FromDouble(__pyx_v_scale_factor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 690, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_6 = NULL;
__pyx_t_7 = 0;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
__pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3);
if (likely(__pyx_t_6)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
__Pyx_INCREF(__pyx_t_6);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_3, function);
__pyx_t_7 = 1;
}
}
#if CYTHON_FAST_PYCALL
if (PyFunction_Check(__pyx_t_3)) {
PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_min_size, __pyx_v_max_size, __pyx_t_4};
__pyx_t_2 = __Pyx_PyFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 690, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
} else
#endif
#if CYTHON_FAST_PYCCALL
if (__Pyx_PyFastCFunction_Check(__pyx_t_3)) {
PyObject *__pyx_temp[4] = {__pyx_t_6, __pyx_v_min_size, __pyx_v_max_size, __pyx_t_4};
__pyx_t_2 = __Pyx_PyCFunction_FastCall(__pyx_t_3, __pyx_temp+1-__pyx_t_7, 3+__pyx_t_7); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 690, __pyx_L1_error)
__Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0;
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
} else
#endif
{
__pyx_t_8 = PyTuple_New(3+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 690, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_8);
if (__pyx_t_6) {
__Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL;
}
__Pyx_INCREF(__pyx_v_min_size);
__Pyx_GIVEREF(__pyx_v_min_size);
PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_v_min_size);
__Pyx_INCREF(__pyx_v_max_size);
__Pyx_GIVEREF(__pyx_v_max_size);
PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_v_max_size);
__Pyx_GIVEREF(__pyx_t_4);
PyTuple_SET_ITEM(__pyx_t_8, 2+__pyx_t_7, __pyx_t_4);
__pyx_t_4 = 0;
__pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 690, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
}
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_9 = __Pyx_PyObject_to_MemoryviewSlice_dc_float(__pyx_t_2, PyBUF_WRITABLE); if (unlikely(!__pyx_t_9.memview)) __PYX_ERR(0, 690, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_v_scale_factors = __pyx_t_9;
__pyx_t_9.memview = NULL;
__pyx_t_9.data = NULL;
/* "skimage/feature/_cascade.pyx":691
*
* scale_factors = self._get_valid_scale_factors(min_size, max_size, scale_factor)
* number_of_scales = scale_factors.shape[0] # <<<<<<<<<<<<<<
*
* # Initialize lock to enable thread-safe writes to the array
*/
__Pyx_TraceLine(691,0,__PYX_ERR(0, 691, __pyx_L1_error))
__pyx_v_number_of_scales = (__pyx_v_scale_factors.shape[0]);
/* "skimage/feature/_cascade.pyx":697
* cdef openmp.omp_lock_t mylock
*
* if have_openmp: # <<<<<<<<<<<<<<
* openmp.omp_init_lock(&mylock)
*
*/
__Pyx_TraceLine(697,0,__PYX_ERR(0, 697, __pyx_L1_error))
__pyx_t_10 = (have_openmp != 0);
if (__pyx_t_10) {
/* "skimage/feature/_cascade.pyx":698
*
* if have_openmp:
* openmp.omp_init_lock(&mylock) # <<<<<<<<<<<<<<
*
*
*/
__Pyx_TraceLine(698,0,__PYX_ERR(0, 698, __pyx_L1_error))
omp_init_lock((&__pyx_v_mylock));
/* "skimage/feature/_cascade.pyx":697
* cdef openmp.omp_lock_t mylock
*
* if have_openmp: # <<<<<<<<<<<<<<
* openmp.omp_init_lock(&mylock)
*
*/
}
/* "skimage/feature/_cascade.pyx":703
* # As the amount of work between the threads is not equal we use `dynamic`
* # schedule which enables them to use computing power on demand.
* for scale_number in prange(0, number_of_scales, schedule='dynamic', nogil=True): # <<<<<<<<<<<<<<
*
* current_scale_factor = scale_factors[scale_number]
*/
__Pyx_TraceLine(703,0,__PYX_ERR(0, 703, __pyx_L1_error))
{
#ifdef WITH_THREAD
PyThreadState *_save;
Py_UNBLOCK_THREADS
__Pyx_FastGIL_Remember();
#endif
/*try:*/ {
__pyx_t_1 = __pyx_v_number_of_scales;
if ((1 == 0)) abort();
{
Py_ssize_t __pyx_parallel_temp0 = ((Py_ssize_t)0xbad0bad0);
Py_ssize_t __pyx_parallel_temp1 = ((Py_ssize_t)0xbad0bad0);
Py_ssize_t __pyx_parallel_temp2 = ((Py_ssize_t)0xbad0bad0);
float __pyx_parallel_temp3 = ((float)__PYX_NAN());
Py_ssize_t __pyx_parallel_temp4 = ((Py_ssize_t)0xbad0bad0);
Py_ssize_t __pyx_parallel_temp5 = ((Py_ssize_t)0xbad0bad0);
Py_ssize_t __pyx_parallel_temp6 = ((Py_ssize_t)0xbad0bad0);
Py_ssize_t __pyx_parallel_temp7 = ((Py_ssize_t)0xbad0bad0);
struct __pyx_t_7skimage_7feature_8_cascade_Detection __pyx_parallel_temp8;
int __pyx_parallel_temp9 = ((int)0xbad0bad0);
Py_ssize_t __pyx_parallel_temp10 = ((Py_ssize_t)0xbad0bad0);
const char *__pyx_parallel_filename = NULL; int __pyx_parallel_lineno = 0, __pyx_parallel_clineno = 0;
PyObject *__pyx_parallel_exc_type = NULL, *__pyx_parallel_exc_value = NULL, *__pyx_parallel_exc_tb = NULL;
int __pyx_parallel_why;
__pyx_parallel_why = 0;
#if ((defined(__APPLE__) || defined(__OSX__)) && (defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))))
#undef likely
#undef unlikely
#define likely(x) (x)
#define unlikely(x) (x)
#endif
__pyx_t_12 = (__pyx_t_1 - 0 + 1 - 1/abs(1)) / 1;
if (__pyx_t_12 > 0)
{
#ifdef _OPENMP
#pragma omp parallel private(__pyx_t_10, __pyx_t_13, __pyx_t_14, __pyx_t_15, __pyx_t_16) private(__pyx_filename, __pyx_lineno, __pyx_clineno) shared(__pyx_parallel_why, __pyx_parallel_exc_type, __pyx_parallel_exc_value, __pyx_parallel_exc_tb)
#endif /* _OPENMP */
{
#ifdef _OPENMP
#ifdef WITH_THREAD
PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
#endif
Py_BEGIN_ALLOW_THREADS
#endif /* _OPENMP */
#ifdef _OPENMP
#pragma omp for lastprivate(__pyx_v_current_col) lastprivate(__pyx_v_current_height) lastprivate(__pyx_v_current_row) lastprivate(__pyx_v_current_scale_factor) lastprivate(__pyx_v_current_step) lastprivate(__pyx_v_current_width) lastprivate(__pyx_v_max_col) lastprivate(__pyx_v_max_row) lastprivate(__pyx_v_new_detection) lastprivate(__pyx_v_result) firstprivate(__pyx_v_scale_number) lastprivate(__pyx_v_scale_number) schedule(dynamic)
#endif /* _OPENMP */
for (__pyx_t_11 = 0; __pyx_t_11 < __pyx_t_12; __pyx_t_11++){
if (__pyx_parallel_why < 2)
{
__pyx_v_scale_number = (Py_ssize_t)(0 + 1 * __pyx_t_11);
/* Initialize private variables to invalid values */
__pyx_v_current_col = ((Py_ssize_t)0xbad0bad0);
__pyx_v_current_height = ((Py_ssize_t)0xbad0bad0);
__pyx_v_current_row = ((Py_ssize_t)0xbad0bad0);
__pyx_v_current_scale_factor = ((float)__PYX_NAN());
__pyx_v_current_step = ((Py_ssize_t)0xbad0bad0);
__pyx_v_current_width = ((Py_ssize_t)0xbad0bad0);
__pyx_v_max_col = ((Py_ssize_t)0xbad0bad0);
__pyx_v_max_row = ((Py_ssize_t)0xbad0bad0);
__pyx_v_result = ((int)0xbad0bad0);
/* "skimage/feature/_cascade.pyx":705
* for scale_number in prange(0, number_of_scales, schedule='dynamic', nogil=True):
*
* current_scale_factor = scale_factors[scale_number] # <<<<<<<<<<<<<<
* current_step = <Py_ssize_t>round(current_scale_factor * step_ratio)
* current_height = <Py_ssize_t>(window_height * current_scale_factor)
*/
__Pyx_TraceLine(705,1,__PYX_ERR(0, 705, __pyx_L9_error))
__pyx_t_13 = __pyx_v_scale_number;
__pyx_v_current_scale_factor = (*((float *) ( /* dim=0 */ ((char *) (((float *) __pyx_v_scale_factors.data) + __pyx_t_13)) )));
/* "skimage/feature/_cascade.pyx":706
*
* current_scale_factor = scale_factors[scale_number]
* current_step = <Py_ssize_t>round(current_scale_factor * step_ratio) # <<<<<<<<<<<<<<
* current_height = <Py_ssize_t>(window_height * current_scale_factor)
* current_width = <Py_ssize_t>(window_width * current_scale_factor)
*/
__Pyx_TraceLine(706,1,__PYX_ERR(0, 706, __pyx_L9_error))
__pyx_v_current_step = ((Py_ssize_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round((__pyx_v_current_scale_factor * __pyx_v_step_ratio)));
/* "skimage/feature/_cascade.pyx":707
* current_scale_factor = scale_factors[scale_number]
* current_step = <Py_ssize_t>round(current_scale_factor * step_ratio)
* current_height = <Py_ssize_t>(window_height * current_scale_factor) # <<<<<<<<<<<<<<
* current_width = <Py_ssize_t>(window_width * current_scale_factor)
* max_row = img_height - current_height
*/
__Pyx_TraceLine(707,1,__PYX_ERR(0, 707, __pyx_L9_error))
__pyx_v_current_height = ((Py_ssize_t)(__pyx_v_window_height * __pyx_v_current_scale_factor));
/* "skimage/feature/_cascade.pyx":708
* current_step = <Py_ssize_t>round(current_scale_factor * step_ratio)
* current_height = <Py_ssize_t>(window_height * current_scale_factor)
* current_width = <Py_ssize_t>(window_width * current_scale_factor) # <<<<<<<<<<<<<<
* max_row = img_height - current_height
* max_col = img_width - current_width
*/
__Pyx_TraceLine(708,1,__PYX_ERR(0, 708, __pyx_L9_error))
__pyx_v_current_width = ((Py_ssize_t)(__pyx_v_window_width * __pyx_v_current_scale_factor));
/* "skimage/feature/_cascade.pyx":709
* current_height = <Py_ssize_t>(window_height * current_scale_factor)
* current_width = <Py_ssize_t>(window_width * current_scale_factor)
* max_row = img_height - current_height # <<<<<<<<<<<<<<
* max_col = img_width - current_width
*
*/
__Pyx_TraceLine(709,1,__PYX_ERR(0, 709, __pyx_L9_error))
__pyx_v_max_row = (__pyx_v_img_height - __pyx_v_current_height);
/* "skimage/feature/_cascade.pyx":710
* current_width = <Py_ssize_t>(window_width * current_scale_factor)
* max_row = img_height - current_height
* max_col = img_width - current_width # <<<<<<<<<<<<<<
*
* # Check if scaled detection window fits in image.
*/
__Pyx_TraceLine(710,1,__PYX_ERR(0, 710, __pyx_L9_error))
__pyx_v_max_col = (__pyx_v_img_width - __pyx_v_current_width);
/* "skimage/feature/_cascade.pyx":713
*
* # Check if scaled detection window fits in image.
* if (max_row < 0) or (max_col < 0): # <<<<<<<<<<<<<<
* continue
*
*/
__Pyx_TraceLine(713,1,__PYX_ERR(0, 713, __pyx_L9_error))
__pyx_t_14 = ((__pyx_v_max_row < 0) != 0);
if (!__pyx_t_14) {
} else {
__pyx_t_10 = __pyx_t_14;
goto __pyx_L12_bool_binop_done;
}
__pyx_t_14 = ((__pyx_v_max_col < 0) != 0);
__pyx_t_10 = __pyx_t_14;
__pyx_L12_bool_binop_done:;
if (__pyx_t_10) {
/* "skimage/feature/_cascade.pyx":714
* # Check if scaled detection window fits in image.
* if (max_row < 0) or (max_col < 0):
* continue # <<<<<<<<<<<<<<
*
* current_row = 0
*/
__Pyx_TraceLine(714,1,__PYX_ERR(0, 714, __pyx_L9_error))
goto __pyx_L7_continue;
/* "skimage/feature/_cascade.pyx":713
*
* # Check if scaled detection window fits in image.
* if (max_row < 0) or (max_col < 0): # <<<<<<<<<<<<<<
* continue
*
*/
}
/* "skimage/feature/_cascade.pyx":716
* continue
*
* current_row = 0 # <<<<<<<<<<<<<<
* current_col = 0
*
*/
__Pyx_TraceLine(716,1,__PYX_ERR(0, 716, __pyx_L9_error))
__pyx_v_current_row = 0;
/* "skimage/feature/_cascade.pyx":717
*
* current_row = 0
* current_col = 0 # <<<<<<<<<<<<<<
*
* while current_row < max_row:
*/
__Pyx_TraceLine(717,1,__PYX_ERR(0, 717, __pyx_L9_error))
__pyx_v_current_col = 0;
/* "skimage/feature/_cascade.pyx":719
* current_col = 0
*
* while current_row < max_row: # <<<<<<<<<<<<<<
* while current_col < max_col:
*
*/
__Pyx_TraceLine(719,1,__PYX_ERR(0, 719, __pyx_L9_error))
while (1) {
__pyx_t_10 = ((__pyx_v_current_row < __pyx_v_max_row) != 0);
if (!__pyx_t_10) break;
/* "skimage/feature/_cascade.pyx":720
*
* while current_row < max_row:
* while current_col < max_col: # <<<<<<<<<<<<<<
*
* result = self.classify(int_img, current_row, current_col, scale_factors[scale_number])
*/
__Pyx_TraceLine(720,1,__PYX_ERR(0, 720, __pyx_L9_error))
while (1) {
__pyx_t_10 = ((__pyx_v_current_col < __pyx_v_max_col) != 0);
if (!__pyx_t_10) break;
/* "skimage/feature/_cascade.pyx":722
* while current_col < max_col:
*
* result = self.classify(int_img, current_row, current_col, scale_factors[scale_number]) # <<<<<<<<<<<<<<
*
* if result:
*/
__Pyx_TraceLine(722,1,__PYX_ERR(0, 722, __pyx_L9_error))
__pyx_t_15 = __pyx_v_scale_number;
__pyx_v_result = ((struct __pyx_vtabstruct_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self->__pyx_vtab)->classify(__pyx_v_self, __pyx_v_int_img, __pyx_v_current_row, __pyx_v_current_col, (*((float *) ( /* dim=0 */ ((char *) (((float *) __pyx_v_scale_factors.data) + __pyx_t_15)) ))));
/* "skimage/feature/_cascade.pyx":724
* result = self.classify(int_img, current_row, current_col, scale_factors[scale_number])
*
* if result: # <<<<<<<<<<<<<<
*
* new_detection = Detection()
*/
__Pyx_TraceLine(724,1,__PYX_ERR(0, 724, __pyx_L9_error))
__pyx_t_10 = (__pyx_v_result != 0);
if (__pyx_t_10) {
/* "skimage/feature/_cascade.pyx":726
* if result:
*
* new_detection = Detection() # <<<<<<<<<<<<<<
* new_detection.r = current_row
* new_detection.c = current_col
*/
__Pyx_TraceLine(726,1,__PYX_ERR(0, 726, __pyx_L9_error))
__pyx_v_new_detection = __pyx_t_16;
/* "skimage/feature/_cascade.pyx":727
*
* new_detection = Detection()
* new_detection.r = current_row # <<<<<<<<<<<<<<
* new_detection.c = current_col
* new_detection.width = current_width
*/
__Pyx_TraceLine(727,1,__PYX_ERR(0, 727, __pyx_L9_error))
__pyx_v_new_detection.r = __pyx_v_current_row;
/* "skimage/feature/_cascade.pyx":728
* new_detection = Detection()
* new_detection.r = current_row
* new_detection.c = current_col # <<<<<<<<<<<<<<
* new_detection.width = current_width
* new_detection.height = current_height
*/
__Pyx_TraceLine(728,1,__PYX_ERR(0, 728, __pyx_L9_error))
__pyx_v_new_detection.c = __pyx_v_current_col;
/* "skimage/feature/_cascade.pyx":729
* new_detection.r = current_row
* new_detection.c = current_col
* new_detection.width = current_width # <<<<<<<<<<<<<<
* new_detection.height = current_height
*
*/
__Pyx_TraceLine(729,1,__PYX_ERR(0, 729, __pyx_L9_error))
__pyx_v_new_detection.width = __pyx_v_current_width;
/* "skimage/feature/_cascade.pyx":730
* new_detection.c = current_col
* new_detection.width = current_width
* new_detection.height = current_height # <<<<<<<<<<<<<<
*
* if have_openmp:
*/
__Pyx_TraceLine(730,1,__PYX_ERR(0, 730, __pyx_L9_error))
__pyx_v_new_detection.height = __pyx_v_current_height;
/* "skimage/feature/_cascade.pyx":732
* new_detection.height = current_height
*
* if have_openmp: # <<<<<<<<<<<<<<
* openmp.omp_set_lock(&mylock)
*
*/
__Pyx_TraceLine(732,1,__PYX_ERR(0, 732, __pyx_L9_error))
__pyx_t_10 = (have_openmp != 0);
if (__pyx_t_10) {
/* "skimage/feature/_cascade.pyx":733
*
* if have_openmp:
* openmp.omp_set_lock(&mylock) # <<<<<<<<<<<<<<
*
* output.push_back(new_detection)
*/
__Pyx_TraceLine(733,1,__PYX_ERR(0, 733, __pyx_L9_error))
omp_set_lock((&__pyx_v_mylock));
/* "skimage/feature/_cascade.pyx":732
* new_detection.height = current_height
*
* if have_openmp: # <<<<<<<<<<<<<<
* openmp.omp_set_lock(&mylock)
*
*/
}
/* "skimage/feature/_cascade.pyx":735
* openmp.omp_set_lock(&mylock)
*
* output.push_back(new_detection) # <<<<<<<<<<<<<<
*
* if have_openmp:
*/
__Pyx_TraceLine(735,1,__PYX_ERR(0, 735, __pyx_L9_error))
try {
__pyx_v_output.push_back(__pyx_v_new_detection);
} catch(...) {
#ifdef WITH_THREAD
PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
#endif
__Pyx_CppExn2PyErr();
#ifdef WITH_THREAD
__Pyx_PyGILState_Release(__pyx_gilstate_save);
#endif
__PYX_ERR(0, 735, __pyx_L9_error)
}
/* "skimage/feature/_cascade.pyx":737
* output.push_back(new_detection)
*
* if have_openmp: # <<<<<<<<<<<<<<
* openmp.omp_unset_lock(&mylock)
*
*/
__Pyx_TraceLine(737,1,__PYX_ERR(0, 737, __pyx_L9_error))
__pyx_t_10 = (have_openmp != 0);
if (__pyx_t_10) {
/* "skimage/feature/_cascade.pyx":738
*
* if have_openmp:
* openmp.omp_unset_lock(&mylock) # <<<<<<<<<<<<<<
*
* current_col = current_col + current_step
*/
__Pyx_TraceLine(738,1,__PYX_ERR(0, 738, __pyx_L9_error))
omp_unset_lock((&__pyx_v_mylock));
/* "skimage/feature/_cascade.pyx":737
* output.push_back(new_detection)
*
* if have_openmp: # <<<<<<<<<<<<<<
* openmp.omp_unset_lock(&mylock)
*
*/
}
/* "skimage/feature/_cascade.pyx":724
* result = self.classify(int_img, current_row, current_col, scale_factors[scale_number])
*
* if result: # <<<<<<<<<<<<<<
*
* new_detection = Detection()
*/
}
/* "skimage/feature/_cascade.pyx":740
* openmp.omp_unset_lock(&mylock)
*
* current_col = current_col + current_step # <<<<<<<<<<<<<<
*
* current_row = current_row + current_step
*/
__Pyx_TraceLine(740,1,__PYX_ERR(0, 740, __pyx_L9_error))
__pyx_v_current_col = (__pyx_v_current_col + __pyx_v_current_step);
}
/* "skimage/feature/_cascade.pyx":742
* current_col = current_col + current_step
*
* current_row = current_row + current_step # <<<<<<<<<<<<<<
* current_col = 0
*
*/
__Pyx_TraceLine(742,1,__PYX_ERR(0, 742, __pyx_L9_error))
__pyx_v_current_row = (__pyx_v_current_row + __pyx_v_current_step);
/* "skimage/feature/_cascade.pyx":743
*
* current_row = current_row + current_step
* current_col = 0 # <<<<<<<<<<<<<<
*
* if have_openmp:
*/
__Pyx_TraceLine(743,1,__PYX_ERR(0, 743, __pyx_L9_error))
__pyx_v_current_col = 0;
}
goto __pyx_L22;
__pyx_L7_continue:;
goto __pyx_L22;
__pyx_L9_error:;
{
#ifdef WITH_THREAD
PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
#endif
#ifdef _OPENMP
#pragma omp flush(__pyx_parallel_exc_type)
#endif /* _OPENMP */
if (!__pyx_parallel_exc_type) {
__Pyx_ErrFetchWithState(&__pyx_parallel_exc_type, &__pyx_parallel_exc_value, &__pyx_parallel_exc_tb);
__pyx_parallel_filename = __pyx_filename; __pyx_parallel_lineno = __pyx_lineno; __pyx_parallel_clineno = __pyx_clineno;
__Pyx_GOTREF(__pyx_parallel_exc_type);
}
#ifdef WITH_THREAD
__Pyx_PyGILState_Release(__pyx_gilstate_save);
#endif
}
__pyx_parallel_why = 4;
goto __pyx_L21;
__pyx_L21:;
#ifdef _OPENMP
#pragma omp critical(__pyx_parallel_lastprivates0)
#endif /* _OPENMP */
{
__pyx_parallel_temp0 = __pyx_v_current_col;
__pyx_parallel_temp1 = __pyx_v_current_height;
__pyx_parallel_temp2 = __pyx_v_current_row;
__pyx_parallel_temp3 = __pyx_v_current_scale_factor;
__pyx_parallel_temp4 = __pyx_v_current_step;
__pyx_parallel_temp5 = __pyx_v_current_width;
__pyx_parallel_temp6 = __pyx_v_max_col;
__pyx_parallel_temp7 = __pyx_v_max_row;
__pyx_parallel_temp8 = __pyx_v_new_detection;
__pyx_parallel_temp9 = __pyx_v_result;
__pyx_parallel_temp10 = __pyx_v_scale_number;
}
__pyx_L22:;
#ifdef _OPENMP
#pragma omp flush(__pyx_parallel_why)
#endif /* _OPENMP */
}
}
#ifdef _OPENMP
Py_END_ALLOW_THREADS
#else
{
#ifdef WITH_THREAD
PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
#endif
#endif /* _OPENMP */
/* Clean up any temporaries */
#ifdef WITH_THREAD
__Pyx_PyGILState_Release(__pyx_gilstate_save);
#endif
#ifndef _OPENMP
}
#endif /* _OPENMP */
}
}
if (__pyx_parallel_exc_type) {
/* This may have been overridden by a continue, break or return in another thread. Prefer the error. */
__pyx_parallel_why = 4;
}
if (__pyx_parallel_why) {
__pyx_v_current_col = __pyx_parallel_temp0;
__pyx_v_current_height = __pyx_parallel_temp1;
__pyx_v_current_row = __pyx_parallel_temp2;
__pyx_v_current_scale_factor = __pyx_parallel_temp3;
__pyx_v_current_step = __pyx_parallel_temp4;
__pyx_v_current_width = __pyx_parallel_temp5;
__pyx_v_max_col = __pyx_parallel_temp6;
__pyx_v_max_row = __pyx_parallel_temp7;
__pyx_v_new_detection = __pyx_parallel_temp8;
__pyx_v_result = __pyx_parallel_temp9;
__pyx_v_scale_number = __pyx_parallel_temp10;
switch (__pyx_parallel_why) {
case 4:
{
#ifdef WITH_THREAD
PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
#endif
__Pyx_GIVEREF(__pyx_parallel_exc_type);
__Pyx_ErrRestoreWithState(__pyx_parallel_exc_type, __pyx_parallel_exc_value, __pyx_parallel_exc_tb);
__pyx_filename = __pyx_parallel_filename; __pyx_lineno = __pyx_parallel_lineno; __pyx_clineno = __pyx_parallel_clineno;
#ifdef WITH_THREAD
__Pyx_PyGILState_Release(__pyx_gilstate_save);
#endif
}
goto __pyx_L5_error;
}
}
}
#if ((defined(__APPLE__) || defined(__OSX__)) && (defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))))
#undef likely
#undef unlikely
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
#endif
}
/* "skimage/feature/_cascade.pyx":703
* # As the amount of work between the threads is not equal we use `dynamic`
* # schedule which enables them to use computing power on demand.
* for scale_number in prange(0, number_of_scales, schedule='dynamic', nogil=True): # <<<<<<<<<<<<<<
*
* current_scale_factor = scale_factors[scale_number]
*/
__Pyx_TraceLine(703,1,__PYX_ERR(0, 703, __pyx_L5_error))
/*finally:*/ {
/*normal exit:*/{
#ifdef WITH_THREAD
__Pyx_FastGIL_Forget();
Py_BLOCK_THREADS
#endif
goto __pyx_L6;
}
__pyx_L5_error: {
#ifdef WITH_THREAD
__Pyx_FastGIL_Forget();
Py_BLOCK_THREADS
#endif
goto __pyx_L1_error;
}
__pyx_L6:;
}
}
/* "skimage/feature/_cascade.pyx":745
* current_col = 0
*
* if have_openmp: # <<<<<<<<<<<<<<
* openmp.omp_destroy_lock(&mylock)
*
*/
__Pyx_TraceLine(745,0,__PYX_ERR(0, 745, __pyx_L1_error))
__pyx_t_10 = (have_openmp != 0);
if (__pyx_t_10) {
/* "skimage/feature/_cascade.pyx":746
*
* if have_openmp:
* openmp.omp_destroy_lock(&mylock) # <<<<<<<<<<<<<<
*
* return list(_group_detections(output, intersection_score_threshold,
*/
__Pyx_TraceLine(746,0,__PYX_ERR(0, 746, __pyx_L1_error))
omp_destroy_lock((&__pyx_v_mylock));
/* "skimage/feature/_cascade.pyx":745
* current_col = 0
*
* if have_openmp: # <<<<<<<<<<<<<<
* openmp.omp_destroy_lock(&mylock)
*
*/
}
/* "skimage/feature/_cascade.pyx":748
* openmp.omp_destroy_lock(&mylock)
*
* return list(_group_detections(output, intersection_score_threshold, # <<<<<<<<<<<<<<
* min_neighbour_number))
*
*/
__Pyx_TraceLine(748,0,__PYX_ERR(0, 748, __pyx_L1_error))
__Pyx_XDECREF(__pyx_r);
__pyx_t_17 = __pyx_PyFloat_AsFloat(__pyx_v_intersection_score_threshold); if (unlikely((__pyx_t_17 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 748, __pyx_L1_error)
/* "skimage/feature/_cascade.pyx":749
*
* return list(_group_detections(output, intersection_score_threshold,
* min_neighbour_number)) # <<<<<<<<<<<<<<
*
* def _load_xml(self, xml_file, eps=1e-5):
*/
__Pyx_TraceLine(749,0,__PYX_ERR(0, 749, __pyx_L1_error))
__pyx_t_7 = __Pyx_PyInt_As_int(__pyx_v_min_neighbour_number); if (unlikely((__pyx_t_7 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 749, __pyx_L1_error)
/* "skimage/feature/_cascade.pyx":748
* openmp.omp_destroy_lock(&mylock)
*
* return list(_group_detections(output, intersection_score_threshold, # <<<<<<<<<<<<<<
* min_neighbour_number))
*
*/
__Pyx_TraceLine(748,0,__PYX_ERR(0, 748, __pyx_L1_error))
__pyx_t_19.__pyx_n = 2;
__pyx_t_19.intersection_score_threshold = __pyx_t_17;
__pyx_t_19.min_neighbour_number = __pyx_t_7;
__pyx_t_18 = __pyx_f_7skimage_7feature_8_cascade__group_detections(__pyx_v_output, &__pyx_t_19);
__pyx_t_2 = __pyx_convert_vector_to_py_struct____pyx_t_7skimage_7feature_8_cascade_Detection(__pyx_t_18); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 748, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = PySequence_List(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 748, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_r = __pyx_t_3;
__pyx_t_3 = 0;
goto __pyx_L0;
/* "skimage/feature/_cascade.pyx":622
*
*
* def detect_multi_scale(self, img, float scale_factor, float step_ratio, # <<<<<<<<<<<<<<
* min_size, max_size, min_neighbour_number=4,
* intersection_score_threshold=0.5):
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_2);
__Pyx_XDECREF(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4);
__PYX_XDEC_MEMVIEW(&__pyx_t_5, 1);
__Pyx_XDECREF(__pyx_t_6);
__Pyx_XDECREF(__pyx_t_8);
__PYX_XDEC_MEMVIEW(&__pyx_t_9, 1);
__Pyx_AddTraceback("skimage.feature._cascade.Cascade.detect_multi_scale", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL;
__pyx_L0:;
__PYX_XDEC_MEMVIEW(&__pyx_v_scale_factors, 1);
__PYX_XDEC_MEMVIEW(&__pyx_v_int_img, 1);
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":751
* min_neighbour_number))
*
* def _load_xml(self, xml_file, eps=1e-5): # <<<<<<<<<<<<<<
* """Load the parameters of cascade classifier into the class.
*
*/
/* Python wrapper */
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_11_load_xml(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_7skimage_7feature_8_cascade_7Cascade_10_load_xml[] = "Load the parameters of cascade classifier into the class.\n\n The function takes the file with the parameters that represent\n trained cascade classifier and loads them into class for later\n use.\n\n Parameters\n ----------\n xml_file : filename or file object\n File that contains the cascade classifier.\n eps : float\n Accuracy parameter. Increasing it, makes the classifier detect less\n false positives but at the same time the false negative score increases.\n ";
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_11_load_xml(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
PyObject *__pyx_v_xml_file = 0;
PyObject *__pyx_v_eps = 0;
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("_load_xml (wrapper)", 0);
{
static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_xml_file,&__pyx_n_s_eps,0};
PyObject* values[2] = {0,0};
values[1] = ((PyObject *)__pyx_float_1eneg_5);
if (unlikely(__pyx_kwds)) {
Py_ssize_t kw_args;
const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
switch (pos_args) {
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
CYTHON_FALLTHROUGH;
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
CYTHON_FALLTHROUGH;
case 0: break;
default: goto __pyx_L5_argtuple_error;
}
kw_args = PyDict_Size(__pyx_kwds);
switch (pos_args) {
case 0:
if (likely((values[0] = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_xml_file)) != 0)) kw_args--;
else goto __pyx_L5_argtuple_error;
CYTHON_FALLTHROUGH;
case 1:
if (kw_args > 0) {
PyObject* value = __Pyx_PyDict_GetItemStr(__pyx_kwds, __pyx_n_s_eps);
if (value) { values[1] = value; kw_args--; }
}
}
if (unlikely(kw_args > 0)) {
if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_load_xml") < 0)) __PYX_ERR(0, 751, __pyx_L3_error)
}
} else {
switch (PyTuple_GET_SIZE(__pyx_args)) {
case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
CYTHON_FALLTHROUGH;
case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
break;
default: goto __pyx_L5_argtuple_error;
}
}
__pyx_v_xml_file = values[0];
__pyx_v_eps = values[1];
}
goto __pyx_L4_argument_unpacking_done;
__pyx_L5_argtuple_error:;
__Pyx_RaiseArgtupleInvalid("_load_xml", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 751, __pyx_L3_error)
__pyx_L3_error:;
__Pyx_AddTraceback("skimage.feature._cascade.Cascade._load_xml", __pyx_clineno, __pyx_lineno, __pyx_filename);
__Pyx_RefNannyFinishContext();
return NULL;
__pyx_L4_argument_unpacking_done:;
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_10_load_xml(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self), __pyx_v_xml_file, __pyx_v_eps);
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":833
* params = features[feature_number][0].text.split()
* # list() is for Python3 fix here
* params = list(map(lambda x: int(x), params)) # <<<<<<<<<<<<<<
* new_feature = MBLBP(params[1], params[0], params[2], params[3])
* features_carr[feature_number] = new_feature
*/
/* Python wrapper */
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_9_load_xml_lambda(PyObject *__pyx_self, PyObject *__pyx_v_x); /*proto*/
static PyMethodDef __pyx_mdef_7skimage_7feature_8_cascade_7Cascade_9_load_xml_lambda = {"lambda", (PyCFunction)__pyx_pw_7skimage_7feature_8_cascade_7Cascade_9_load_xml_lambda, METH_O, 0};
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_9_load_xml_lambda(PyObject *__pyx_self, PyObject *__pyx_v_x) {
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("lambda (wrapper)", 0);
__pyx_r = __pyx_lambda_funcdef_lambda(__pyx_self, ((PyObject *)__pyx_v_x));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static PyObject *__pyx_lambda_funcdef_lambda(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_x) {
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("lambda", 0);
__Pyx_TraceCall("lambda", __pyx_f[0], 833, 0, __PYX_ERR(0, 833, __pyx_L1_error));
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 833, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("skimage.feature._cascade.Cascade._load_xml.lambda", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":861
* leaf_values = current_weak_classifier.find('leafValues').text
* # list() is for Python3 fix here
* leaf_values = list(map(lambda x: float(x), leaf_values.split())) # <<<<<<<<<<<<<<
*
* # Extract the elements only starting from second.
*/
/* Python wrapper */
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_9_load_xml_1lambda1(PyObject *__pyx_self, PyObject *__pyx_v_x); /*proto*/
static PyMethodDef __pyx_mdef_7skimage_7feature_8_cascade_7Cascade_9_load_xml_1lambda1 = {"lambda1", (PyCFunction)__pyx_pw_7skimage_7feature_8_cascade_7Cascade_9_load_xml_1lambda1, METH_O, 0};
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_9_load_xml_1lambda1(PyObject *__pyx_self, PyObject *__pyx_v_x) {
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("lambda1 (wrapper)", 0);
__pyx_r = __pyx_lambda_funcdef_lambda1(__pyx_self, ((PyObject *)__pyx_v_x));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static PyObject *__pyx_lambda_funcdef_lambda1(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_x) {
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("lambda1", 0);
__Pyx_TraceCall("lambda1", __pyx_f[0], 861, 0, __PYX_ERR(0, 861, __pyx_L1_error));
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = __Pyx_PyNumber_Float(__pyx_v_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 861, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("skimage.feature._cascade.Cascade._load_xml.lambda1", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":872
* feature_number = int(internal_nodes[0])
* # list() is for Python3 fix here
* lut_array = list(map(lambda x: int(x), internal_nodes[1:])) # <<<<<<<<<<<<<<
* lut = np.asarray(lut_array, dtype='uint32')
*
*/
/* Python wrapper */
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_9_load_xml_2lambda2(PyObject *__pyx_self, PyObject *__pyx_v_x); /*proto*/
static PyMethodDef __pyx_mdef_7skimage_7feature_8_cascade_7Cascade_9_load_xml_2lambda2 = {"lambda2", (PyCFunction)__pyx_pw_7skimage_7feature_8_cascade_7Cascade_9_load_xml_2lambda2, METH_O, 0};
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_9_load_xml_2lambda2(PyObject *__pyx_self, PyObject *__pyx_v_x) {
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("lambda2 (wrapper)", 0);
__pyx_r = __pyx_lambda_funcdef_lambda2(__pyx_self, ((PyObject *)__pyx_v_x));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static PyObject *__pyx_lambda_funcdef_lambda2(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_x) {
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("lambda2", 0);
__Pyx_TraceCall("lambda2", __pyx_f[0], 872, 0, __PYX_ERR(0, 872, __pyx_L1_error));
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = __Pyx_PyNumber_Int(__pyx_v_x); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 872, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("skimage.feature._cascade.Cascade._load_xml.lambda2", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":751
* min_neighbour_number))
*
* def _load_xml(self, xml_file, eps=1e-5): # <<<<<<<<<<<<<<
* """Load the parameters of cascade classifier into the class.
*
*/
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_10_load_xml(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_xml_file, PyObject *__pyx_v_eps) {
struct __pyx_t_7skimage_7feature_8_cascade_Stage *__pyx_v_stages_carr;
struct __pyx_t_7skimage_7feature_8_cascade_MBLBPStump *__pyx_v_stumps_carr;
struct __pyx_t_7skimage_7feature_8_cascade_MBLBP *__pyx_v_features_carr;
__pyx_t_5numpy_uint32_t *__pyx_v_LUTs_carr;
float __pyx_v_stage_threshold;
Py_ssize_t __pyx_v_stage_number;
Py_ssize_t __pyx_v_stages_number;
Py_ssize_t __pyx_v_window_height;
Py_ssize_t __pyx_v_window_width;
Py_ssize_t __pyx_v_weak_classifiers_amount;
Py_ssize_t __pyx_v_weak_classifier_number;
Py_ssize_t __pyx_v_feature_number;
Py_ssize_t __pyx_v_features_number;
Py_ssize_t __pyx_v_stump_lut_idx;
Py_ssize_t __pyx_v_stump_idx;
Py_ssize_t __pyx_v_i;
__Pyx_memviewslice __pyx_v_lut = { 0, 0, { 0 }, { 0 }, { 0 } };
struct __pyx_t_7skimage_7feature_8_cascade_MBLBP __pyx_v_new_feature;
struct __pyx_t_7skimage_7feature_8_cascade_MBLBPStump __pyx_v_new_stump;
struct __pyx_t_7skimage_7feature_8_cascade_Stage __pyx_v_new_stage;
PyObject *__pyx_v_tree = NULL;
PyObject *__pyx_v_features = NULL;
PyObject *__pyx_v_stages = NULL;
PyObject *__pyx_v_stumps_number = NULL;
PyObject *__pyx_v_current_stage = NULL;
PyObject *__pyx_v_params = NULL;
PyObject *__pyx_v_weak_classifiers = NULL;
PyObject *__pyx_v_current_weak_classifier = NULL;
PyObject *__pyx_v_leaf_values = NULL;
PyObject *__pyx_v_internal_nodes = NULL;
PyObject *__pyx_v_lut_array = NULL;
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
Py_ssize_t __pyx_t_4;
Py_ssize_t __pyx_t_5;
Py_ssize_t __pyx_t_6;
Py_ssize_t __pyx_t_7;
size_t __pyx_t_8;
int __pyx_t_9;
int __pyx_t_10;
struct __pyx_t_7skimage_7feature_8_cascade_MBLBP __pyx_t_11;
double __pyx_t_12;
struct __pyx_t_7skimage_7feature_8_cascade_Stage __pyx_t_13;
Py_ssize_t __pyx_t_14;
Py_ssize_t __pyx_t_15;
PyObject *__pyx_t_16 = NULL;
Py_ssize_t __pyx_t_17;
__Pyx_memviewslice __pyx_t_18 = { 0, 0, { 0 }, { 0 }, { 0 } };
Py_ssize_t __pyx_t_19;
struct __pyx_t_7skimage_7feature_8_cascade_MBLBPStump __pyx_t_20;
float __pyx_t_21;
__Pyx_RefNannySetupContext("_load_xml", 0);
__Pyx_TraceCall("_load_xml", __pyx_f[0], 751, 0, __PYX_ERR(0, 751, __pyx_L1_error));
/* "skimage/feature/_cascade.pyx":795
* Stage new_stage
*
* tree = ET.parse(xml_file) # <<<<<<<<<<<<<<
*
* # Load entities.
*/
__Pyx_TraceLine(795,0,__PYX_ERR(0, 795, __pyx_L1_error))
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_ET); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 795, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_parse); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 795, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = NULL;
if (CYTHON_UNPACK_METHODS && unlikely(PyMethod_Check(__pyx_t_3))) {
__pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
if (likely(__pyx_t_2)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
__Pyx_INCREF(__pyx_t_2);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_3, function);
}
}
__pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_v_xml_file) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_xml_file);
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 795, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_v_tree = __pyx_t_1;
__pyx_t_1 = 0;
/* "skimage/feature/_cascade.pyx":798
*
* # Load entities.
* features = tree.find('.//features') # <<<<<<<<<<<<<<
* stages = tree.find('.//stages')
*
*/
__Pyx_TraceLine(798,0,__PYX_ERR(0, 798, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_tree, __pyx_n_s_find); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 798, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_2 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
__pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
if (likely(__pyx_t_2)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
__Pyx_INCREF(__pyx_t_2);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_3, function);
}
}
__pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_kp_u_features) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_kp_u_features);
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 798, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_v_features = __pyx_t_1;
__pyx_t_1 = 0;
/* "skimage/feature/_cascade.pyx":799
* # Load entities.
* features = tree.find('.//features')
* stages = tree.find('.//stages') # <<<<<<<<<<<<<<
*
* # Get the respective amounts.
*/
__Pyx_TraceLine(799,0,__PYX_ERR(0, 799, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_tree, __pyx_n_s_find); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 799, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_2 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
__pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
if (likely(__pyx_t_2)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
__Pyx_INCREF(__pyx_t_2);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_3, function);
}
}
__pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_kp_u_stages) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_kp_u_stages);
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 799, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_v_stages = __pyx_t_1;
__pyx_t_1 = 0;
/* "skimage/feature/_cascade.pyx":802
*
* # Get the respective amounts.
* stages_number = int(tree.find('.//stageNum').text) # <<<<<<<<<<<<<<
* window_height = int(tree.find('.//height').text)
* window_width = int(tree.find('.//width').text)
*/
__Pyx_TraceLine(802,0,__PYX_ERR(0, 802, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_tree, __pyx_n_s_find); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 802, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_2 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
__pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
if (likely(__pyx_t_2)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
__Pyx_INCREF(__pyx_t_2);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_3, function);
}
}
__pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_kp_u_stageNum) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_kp_u_stageNum);
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 802, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_text); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 802, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 802, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 802, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_v_stages_number = __pyx_t_4;
/* "skimage/feature/_cascade.pyx":803
* # Get the respective amounts.
* stages_number = int(tree.find('.//stageNum').text)
* window_height = int(tree.find('.//height').text) # <<<<<<<<<<<<<<
* window_width = int(tree.find('.//width').text)
* features_number = len(features)
*/
__Pyx_TraceLine(803,0,__PYX_ERR(0, 803, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_tree, __pyx_n_s_find); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 803, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_2 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
__pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
if (likely(__pyx_t_2)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
__Pyx_INCREF(__pyx_t_2);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_3, function);
}
}
__pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_kp_u_height) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_kp_u_height);
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 803, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_text); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 803, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 803, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 803, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_v_window_height = __pyx_t_4;
/* "skimage/feature/_cascade.pyx":804
* stages_number = int(tree.find('.//stageNum').text)
* window_height = int(tree.find('.//height').text)
* window_width = int(tree.find('.//width').text) # <<<<<<<<<<<<<<
* features_number = len(features)
*
*/
__Pyx_TraceLine(804,0,__PYX_ERR(0, 804, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_tree, __pyx_n_s_find); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 804, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_2 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
__pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
if (likely(__pyx_t_2)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
__Pyx_INCREF(__pyx_t_2);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_3, function);
}
}
__pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_kp_u_width) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_kp_u_width);
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 804, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_text); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 804, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 804, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 804, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_v_window_width = __pyx_t_4;
/* "skimage/feature/_cascade.pyx":805
* window_height = int(tree.find('.//height').text)
* window_width = int(tree.find('.//width').text)
* features_number = len(features) # <<<<<<<<<<<<<<
*
* # Count the stumps.
*/
__Pyx_TraceLine(805,0,__PYX_ERR(0, 805, __pyx_L1_error))
__pyx_t_4 = PyObject_Length(__pyx_v_features); if (unlikely(__pyx_t_4 == ((Py_ssize_t)-1))) __PYX_ERR(0, 805, __pyx_L1_error)
__pyx_v_features_number = __pyx_t_4;
/* "skimage/feature/_cascade.pyx":808
*
* # Count the stumps.
* stumps_number = 0 # <<<<<<<<<<<<<<
* for stage_number in range(stages_number):
* current_stage = stages[stage_number]
*/
__Pyx_TraceLine(808,0,__PYX_ERR(0, 808, __pyx_L1_error))
__Pyx_INCREF(__pyx_int_0);
__pyx_v_stumps_number = __pyx_int_0;
/* "skimage/feature/_cascade.pyx":809
* # Count the stumps.
* stumps_number = 0
* for stage_number in range(stages_number): # <<<<<<<<<<<<<<
* current_stage = stages[stage_number]
* weak_classifiers_amount = int(current_stage.find('maxWeakCount').text)
*/
__Pyx_TraceLine(809,0,__PYX_ERR(0, 809, __pyx_L1_error))
__pyx_t_4 = __pyx_v_stages_number;
__pyx_t_5 = __pyx_t_4;
for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
__pyx_v_stage_number = __pyx_t_6;
/* "skimage/feature/_cascade.pyx":810
* stumps_number = 0
* for stage_number in range(stages_number):
* current_stage = stages[stage_number] # <<<<<<<<<<<<<<
* weak_classifiers_amount = int(current_stage.find('maxWeakCount').text)
* stumps_number += weak_classifiers_amount
*/
__Pyx_TraceLine(810,0,__PYX_ERR(0, 810, __pyx_L1_error))
__pyx_t_1 = __Pyx_GetItemInt(__pyx_v_stages, __pyx_v_stage_number, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 810, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_XDECREF_SET(__pyx_v_current_stage, __pyx_t_1);
__pyx_t_1 = 0;
/* "skimage/feature/_cascade.pyx":811
* for stage_number in range(stages_number):
* current_stage = stages[stage_number]
* weak_classifiers_amount = int(current_stage.find('maxWeakCount').text) # <<<<<<<<<<<<<<
* stumps_number += weak_classifiers_amount
*
*/
__Pyx_TraceLine(811,0,__PYX_ERR(0, 811, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_current_stage, __pyx_n_s_find); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 811, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_2 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
__pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
if (likely(__pyx_t_2)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
__Pyx_INCREF(__pyx_t_2);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_3, function);
}
}
__pyx_t_1 = (__pyx_t_2) ? __Pyx_PyObject_Call2Args(__pyx_t_3, __pyx_t_2, __pyx_n_u_maxWeakCount) : __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_n_u_maxWeakCount);
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 811, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_text); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 811, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_1 = __Pyx_PyNumber_Int(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 811, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 811, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_v_weak_classifiers_amount = __pyx_t_7;
/* "skimage/feature/_cascade.pyx":812
* current_stage = stages[stage_number]
* weak_classifiers_amount = int(current_stage.find('maxWeakCount').text)
* stumps_number += weak_classifiers_amount # <<<<<<<<<<<<<<
*
* # Allocate memory for data.
*/
__Pyx_TraceLine(812,0,__PYX_ERR(0, 812, __pyx_L1_error))
__pyx_t_1 = PyInt_FromSsize_t(__pyx_v_weak_classifiers_amount); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 812, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_3 = PyNumber_InPlaceAdd(__pyx_v_stumps_number, __pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 812, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF_SET(__pyx_v_stumps_number, __pyx_t_3);
__pyx_t_3 = 0;
}
/* "skimage/feature/_cascade.pyx":815
*
* # Allocate memory for data.
* features_carr = <MBLBP*>malloc(features_number * sizeof(MBLBP)) # <<<<<<<<<<<<<<
* stumps_carr = <MBLBPStump*>malloc(stumps_number * sizeof(MBLBPStump))
* stages_carr = <Stage*>malloc(stages_number*sizeof(Stage))
*/
__Pyx_TraceLine(815,0,__PYX_ERR(0, 815, __pyx_L1_error))
__pyx_v_features_carr = ((struct __pyx_t_7skimage_7feature_8_cascade_MBLBP *)malloc((__pyx_v_features_number * (sizeof(struct __pyx_t_7skimage_7feature_8_cascade_MBLBP)))));
/* "skimage/feature/_cascade.pyx":816
* # Allocate memory for data.
* features_carr = <MBLBP*>malloc(features_number * sizeof(MBLBP))
* stumps_carr = <MBLBPStump*>malloc(stumps_number * sizeof(MBLBPStump)) # <<<<<<<<<<<<<<
* stages_carr = <Stage*>malloc(stages_number*sizeof(Stage))
* # Each look-up table consists of 8 u-int numbers.
*/
__Pyx_TraceLine(816,0,__PYX_ERR(0, 816, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(struct __pyx_t_7skimage_7feature_8_cascade_MBLBPStump))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 816, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_1 = PyNumber_Multiply(__pyx_v_stumps_number, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 816, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_8 = __Pyx_PyInt_As_size_t(__pyx_t_1); if (unlikely((__pyx_t_8 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 816, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_v_stumps_carr = ((struct __pyx_t_7skimage_7feature_8_cascade_MBLBPStump *)malloc(__pyx_t_8));
/* "skimage/feature/_cascade.pyx":817
* features_carr = <MBLBP*>malloc(features_number * sizeof(MBLBP))
* stumps_carr = <MBLBPStump*>malloc(stumps_number * sizeof(MBLBPStump))
* stages_carr = <Stage*>malloc(stages_number*sizeof(Stage)) # <<<<<<<<<<<<<<
* # Each look-up table consists of 8 u-int numbers.
* LUTs_carr = <cnp.uint32_t*>malloc(8*stumps_number * sizeof(cnp.uint32_t))
*/
__Pyx_TraceLine(817,0,__PYX_ERR(0, 817, __pyx_L1_error))
__pyx_v_stages_carr = ((struct __pyx_t_7skimage_7feature_8_cascade_Stage *)malloc((__pyx_v_stages_number * (sizeof(struct __pyx_t_7skimage_7feature_8_cascade_Stage)))));
/* "skimage/feature/_cascade.pyx":819
* stages_carr = <Stage*>malloc(stages_number*sizeof(Stage))
* # Each look-up table consists of 8 u-int numbers.
* LUTs_carr = <cnp.uint32_t*>malloc(8*stumps_number * sizeof(cnp.uint32_t)) # <<<<<<<<<<<<<<
*
* # Check if memory was allocated.
*/
__Pyx_TraceLine(819,0,__PYX_ERR(0, 819, __pyx_L1_error))
__pyx_t_1 = PyNumber_Multiply(__pyx_int_8, __pyx_v_stumps_number); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 819, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_3 = __Pyx_PyInt_FromSize_t((sizeof(__pyx_t_5numpy_uint32_t))); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 819, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_2 = PyNumber_Multiply(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 819, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_8 = __Pyx_PyInt_As_size_t(__pyx_t_2); if (unlikely((__pyx_t_8 == (size_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 819, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_v_LUTs_carr = ((__pyx_t_5numpy_uint32_t *)malloc(__pyx_t_8));
/* "skimage/feature/_cascade.pyx":822
*
* # Check if memory was allocated.
* if not (features_carr and stumps_carr and stages_carr and LUTs_carr): # <<<<<<<<<<<<<<
* free(features_carr)
* free(stumps_carr)
*/
__Pyx_TraceLine(822,0,__PYX_ERR(0, 822, __pyx_L1_error))
__pyx_t_10 = (__pyx_v_features_carr != 0);
if (__pyx_t_10) {
} else {
__pyx_t_9 = __pyx_t_10;
goto __pyx_L6_bool_binop_done;
}
__pyx_t_10 = (__pyx_v_stumps_carr != 0);
if (__pyx_t_10) {
} else {
__pyx_t_9 = __pyx_t_10;
goto __pyx_L6_bool_binop_done;
}
__pyx_t_10 = (__pyx_v_stages_carr != 0);
if (__pyx_t_10) {
} else {
__pyx_t_9 = __pyx_t_10;
goto __pyx_L6_bool_binop_done;
}
__pyx_t_10 = (__pyx_v_LUTs_carr != 0);
__pyx_t_9 = __pyx_t_10;
__pyx_L6_bool_binop_done:;
__pyx_t_10 = ((!__pyx_t_9) != 0);
if (unlikely(__pyx_t_10)) {
/* "skimage/feature/_cascade.pyx":823
* # Check if memory was allocated.
* if not (features_carr and stumps_carr and stages_carr and LUTs_carr):
* free(features_carr) # <<<<<<<<<<<<<<
* free(stumps_carr)
* free(stages_carr)
*/
__Pyx_TraceLine(823,0,__PYX_ERR(0, 823, __pyx_L1_error))
free(__pyx_v_features_carr);
/* "skimage/feature/_cascade.pyx":824
* if not (features_carr and stumps_carr and stages_carr and LUTs_carr):
* free(features_carr)
* free(stumps_carr) # <<<<<<<<<<<<<<
* free(stages_carr)
* free(LUTs_carr)
*/
__Pyx_TraceLine(824,0,__PYX_ERR(0, 824, __pyx_L1_error))
free(__pyx_v_stumps_carr);
/* "skimage/feature/_cascade.pyx":825
* free(features_carr)
* free(stumps_carr)
* free(stages_carr) # <<<<<<<<<<<<<<
* free(LUTs_carr)
* raise MemoryError("Failed to allocate memory while parsing XML.")
*/
__Pyx_TraceLine(825,0,__PYX_ERR(0, 825, __pyx_L1_error))
free(__pyx_v_stages_carr);
/* "skimage/feature/_cascade.pyx":826
* free(stumps_carr)
* free(stages_carr)
* free(LUTs_carr) # <<<<<<<<<<<<<<
* raise MemoryError("Failed to allocate memory while parsing XML.")
*
*/
__Pyx_TraceLine(826,0,__PYX_ERR(0, 826, __pyx_L1_error))
free(__pyx_v_LUTs_carr);
/* "skimage/feature/_cascade.pyx":827
* free(stages_carr)
* free(LUTs_carr)
* raise MemoryError("Failed to allocate memory while parsing XML.") # <<<<<<<<<<<<<<
*
* # Parse and load features in memory.
*/
__Pyx_TraceLine(827,0,__PYX_ERR(0, 827, __pyx_L1_error))
__pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_MemoryError, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 827, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_Raise(__pyx_t_2, 0, 0, 0);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__PYX_ERR(0, 827, __pyx_L1_error)
/* "skimage/feature/_cascade.pyx":822
*
* # Check if memory was allocated.
* if not (features_carr and stumps_carr and stages_carr and LUTs_carr): # <<<<<<<<<<<<<<
* free(features_carr)
* free(stumps_carr)
*/
}
/* "skimage/feature/_cascade.pyx":830
*
* # Parse and load features in memory.
* for feature_number in range(features_number): # <<<<<<<<<<<<<<
* params = features[feature_number][0].text.split()
* # list() is for Python3 fix here
*/
__Pyx_TraceLine(830,0,__PYX_ERR(0, 830, __pyx_L1_error))
__pyx_t_4 = __pyx_v_features_number;
__pyx_t_5 = __pyx_t_4;
for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
__pyx_v_feature_number = __pyx_t_6;
/* "skimage/feature/_cascade.pyx":831
* # Parse and load features in memory.
* for feature_number in range(features_number):
* params = features[feature_number][0].text.split() # <<<<<<<<<<<<<<
* # list() is for Python3 fix here
* params = list(map(lambda x: int(x), params))
*/
__Pyx_TraceLine(831,0,__PYX_ERR(0, 831, __pyx_L1_error))
__pyx_t_3 = __Pyx_GetItemInt(__pyx_v_features, __pyx_v_feature_number, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 0, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 831, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_1 = __Pyx_GetItemInt(__pyx_t_3, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 831, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_text); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 831, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_split); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 831, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_3 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
__pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
if (likely(__pyx_t_3)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_1, function);
}
}
__pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3) : __Pyx_PyObject_CallNoArg(__pyx_t_1);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 831, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_XDECREF_SET(__pyx_v_params, __pyx_t_2);
__pyx_t_2 = 0;
/* "skimage/feature/_cascade.pyx":833
* params = features[feature_number][0].text.split()
* # list() is for Python3 fix here
* params = list(map(lambda x: int(x), params)) # <<<<<<<<<<<<<<
* new_feature = MBLBP(params[1], params[0], params[2], params[3])
* features_carr[feature_number] = new_feature
*/
__Pyx_TraceLine(833,0,__PYX_ERR(0, 833, __pyx_L1_error))
__pyx_t_2 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7skimage_7feature_8_cascade_7Cascade_9_load_xml_lambda, 0, __pyx_n_s_load_xml_locals_lambda, NULL, __pyx_n_s_skimage_feature__cascade, __pyx_d, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 833, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 833, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_GIVEREF(__pyx_t_2);
PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
__Pyx_INCREF(__pyx_v_params);
__Pyx_GIVEREF(__pyx_v_params);
PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_params);
__pyx_t_2 = 0;
__pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_map, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 833, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_1 = PySequence_List(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 833, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF_SET(__pyx_v_params, __pyx_t_1);
__pyx_t_1 = 0;
/* "skimage/feature/_cascade.pyx":834
* # list() is for Python3 fix here
* params = list(map(lambda x: int(x), params))
* new_feature = MBLBP(params[1], params[0], params[2], params[3]) # <<<<<<<<<<<<<<
* features_carr[feature_number] = new_feature
*
*/
__Pyx_TraceLine(834,0,__PYX_ERR(0, 834, __pyx_L1_error))
__pyx_t_1 = __Pyx_GetItemInt(__pyx_v_params, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 834, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 834, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_11.r = __pyx_t_7;
__pyx_t_1 = __Pyx_GetItemInt(__pyx_v_params, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 834, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 834, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_11.c = __pyx_t_7;
__pyx_t_1 = __Pyx_GetItemInt(__pyx_v_params, 2, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 834, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 834, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_11.width = __pyx_t_7;
__pyx_t_1 = __Pyx_GetItemInt(__pyx_v_params, 3, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 834, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_t_1); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 834, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_11.height = __pyx_t_7;
__pyx_v_new_feature = __pyx_t_11;
/* "skimage/feature/_cascade.pyx":835
* params = list(map(lambda x: int(x), params))
* new_feature = MBLBP(params[1], params[0], params[2], params[3])
* features_carr[feature_number] = new_feature # <<<<<<<<<<<<<<
*
* stump_lut_idx = 0
*/
__Pyx_TraceLine(835,0,__PYX_ERR(0, 835, __pyx_L1_error))
(__pyx_v_features_carr[__pyx_v_feature_number]) = __pyx_v_new_feature;
}
/* "skimage/feature/_cascade.pyx":837
* features_carr[feature_number] = new_feature
*
* stump_lut_idx = 0 # <<<<<<<<<<<<<<
* stump_idx = 0
*
*/
__Pyx_TraceLine(837,0,__PYX_ERR(0, 837, __pyx_L1_error))
__pyx_v_stump_lut_idx = 0;
/* "skimage/feature/_cascade.pyx":838
*
* stump_lut_idx = 0
* stump_idx = 0 # <<<<<<<<<<<<<<
*
* # Parse and load stumps, stages.
*/
__Pyx_TraceLine(838,0,__PYX_ERR(0, 838, __pyx_L1_error))
__pyx_v_stump_idx = 0;
/* "skimage/feature/_cascade.pyx":841
*
* # Parse and load stumps, stages.
* for stage_number in range(stages_number): # <<<<<<<<<<<<<<
*
* current_stage = stages[stage_number]
*/
__Pyx_TraceLine(841,0,__PYX_ERR(0, 841, __pyx_L1_error))
__pyx_t_4 = __pyx_v_stages_number;
__pyx_t_5 = __pyx_t_4;
for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
__pyx_v_stage_number = __pyx_t_6;
/* "skimage/feature/_cascade.pyx":843
* for stage_number in range(stages_number):
*
* current_stage = stages[stage_number] # <<<<<<<<<<<<<<
*
* # Parse and load current stage.
*/
__Pyx_TraceLine(843,0,__PYX_ERR(0, 843, __pyx_L1_error))
__pyx_t_1 = __Pyx_GetItemInt(__pyx_v_stages, __pyx_v_stage_number, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 843, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_XDECREF_SET(__pyx_v_current_stage, __pyx_t_1);
__pyx_t_1 = 0;
/* "skimage/feature/_cascade.pyx":846
*
* # Parse and load current stage.
* stage_threshold = float(current_stage.find('stageThreshold').text) # <<<<<<<<<<<<<<
* weak_classifiers_amount = int(current_stage.find('maxWeakCount').text)
* new_stage = Stage(stump_idx, weak_classifiers_amount, stage_threshold)
*/
__Pyx_TraceLine(846,0,__PYX_ERR(0, 846, __pyx_L1_error))
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_current_stage, __pyx_n_s_find); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 846, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_3 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
__pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
if (likely(__pyx_t_3)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_2, function);
}
}
__pyx_t_1 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_3, __pyx_n_u_stageThreshold) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_n_u_stageThreshold);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 846, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_text); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 846, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_12 = __Pyx_PyObject_AsDouble(__pyx_t_2); if (unlikely(__pyx_t_12 == ((double)((double)-1)) && PyErr_Occurred())) __PYX_ERR(0, 846, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_v_stage_threshold = __pyx_t_12;
/* "skimage/feature/_cascade.pyx":847
* # Parse and load current stage.
* stage_threshold = float(current_stage.find('stageThreshold').text)
* weak_classifiers_amount = int(current_stage.find('maxWeakCount').text) # <<<<<<<<<<<<<<
* new_stage = Stage(stump_idx, weak_classifiers_amount, stage_threshold)
* stages_carr[stage_number] = new_stage
*/
__Pyx_TraceLine(847,0,__PYX_ERR(0, 847, __pyx_L1_error))
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_current_stage, __pyx_n_s_find); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 847, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_3 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
__pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
if (likely(__pyx_t_3)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_1, function);
}
}
__pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_3, __pyx_n_u_maxWeakCount) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_n_u_maxWeakCount);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 847, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 847, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 847, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_7 = __Pyx_PyIndex_AsSsize_t(__pyx_t_2); if (unlikely((__pyx_t_7 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 847, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_v_weak_classifiers_amount = __pyx_t_7;
/* "skimage/feature/_cascade.pyx":848
* stage_threshold = float(current_stage.find('stageThreshold').text)
* weak_classifiers_amount = int(current_stage.find('maxWeakCount').text)
* new_stage = Stage(stump_idx, weak_classifiers_amount, stage_threshold) # <<<<<<<<<<<<<<
* stages_carr[stage_number] = new_stage
*
*/
__Pyx_TraceLine(848,0,__PYX_ERR(0, 848, __pyx_L1_error))
__pyx_t_13.first_idx = __pyx_v_stump_idx;
__pyx_t_13.amount = __pyx_v_weak_classifiers_amount;
__pyx_t_13.threshold = __pyx_v_stage_threshold;
__pyx_v_new_stage = __pyx_t_13;
/* "skimage/feature/_cascade.pyx":849
* weak_classifiers_amount = int(current_stage.find('maxWeakCount').text)
* new_stage = Stage(stump_idx, weak_classifiers_amount, stage_threshold)
* stages_carr[stage_number] = new_stage # <<<<<<<<<<<<<<
*
* weak_classifiers = current_stage.find('weakClassifiers')
*/
__Pyx_TraceLine(849,0,__PYX_ERR(0, 849, __pyx_L1_error))
(__pyx_v_stages_carr[__pyx_v_stage_number]) = __pyx_v_new_stage;
/* "skimage/feature/_cascade.pyx":851
* stages_carr[stage_number] = new_stage
*
* weak_classifiers = current_stage.find('weakClassifiers') # <<<<<<<<<<<<<<
*
* for weak_classifier_number in range(weak_classifiers_amount):
*/
__Pyx_TraceLine(851,0,__PYX_ERR(0, 851, __pyx_L1_error))
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_current_stage, __pyx_n_s_find); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 851, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_3 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
__pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
if (likely(__pyx_t_3)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_1, function);
}
}
__pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_3, __pyx_n_u_weakClassifiers) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_n_u_weakClassifiers);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 851, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_XDECREF_SET(__pyx_v_weak_classifiers, __pyx_t_2);
__pyx_t_2 = 0;
/* "skimage/feature/_cascade.pyx":853
* weak_classifiers = current_stage.find('weakClassifiers')
*
* for weak_classifier_number in range(weak_classifiers_amount): # <<<<<<<<<<<<<<
*
* current_weak_classifier = weak_classifiers[weak_classifier_number]
*/
__Pyx_TraceLine(853,0,__PYX_ERR(0, 853, __pyx_L1_error))
__pyx_t_7 = __pyx_v_weak_classifiers_amount;
__pyx_t_14 = __pyx_t_7;
for (__pyx_t_15 = 0; __pyx_t_15 < __pyx_t_14; __pyx_t_15+=1) {
__pyx_v_weak_classifier_number = __pyx_t_15;
/* "skimage/feature/_cascade.pyx":855
* for weak_classifier_number in range(weak_classifiers_amount):
*
* current_weak_classifier = weak_classifiers[weak_classifier_number] # <<<<<<<<<<<<<<
*
* # Stump's leaf values. First negative if image is probably not
*/
__Pyx_TraceLine(855,0,__PYX_ERR(0, 855, __pyx_L1_error))
__pyx_t_2 = __Pyx_GetItemInt(__pyx_v_weak_classifiers, __pyx_v_weak_classifier_number, Py_ssize_t, 1, PyInt_FromSsize_t, 0, 0, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 855, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_XDECREF_SET(__pyx_v_current_weak_classifier, __pyx_t_2);
__pyx_t_2 = 0;
/* "skimage/feature/_cascade.pyx":859
* # Stump's leaf values. First negative if image is probably not
* # a face. Second positive if image is probably a face.
* leaf_values = current_weak_classifier.find('leafValues').text # <<<<<<<<<<<<<<
* # list() is for Python3 fix here
* leaf_values = list(map(lambda x: float(x), leaf_values.split()))
*/
__Pyx_TraceLine(859,0,__PYX_ERR(0, 859, __pyx_L1_error))
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_current_weak_classifier, __pyx_n_s_find); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 859, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_3 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
__pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1);
if (likely(__pyx_t_3)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_1, function);
}
}
__pyx_t_2 = (__pyx_t_3) ? __Pyx_PyObject_Call2Args(__pyx_t_1, __pyx_t_3, __pyx_n_u_leafValues) : __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_n_u_leafValues);
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 859, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_text); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 859, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_XDECREF_SET(__pyx_v_leaf_values, __pyx_t_1);
__pyx_t_1 = 0;
/* "skimage/feature/_cascade.pyx":861
* leaf_values = current_weak_classifier.find('leafValues').text
* # list() is for Python3 fix here
* leaf_values = list(map(lambda x: float(x), leaf_values.split())) # <<<<<<<<<<<<<<
*
* # Extract the elements only starting from second.
*/
__Pyx_TraceLine(861,0,__PYX_ERR(0, 861, __pyx_L1_error))
__pyx_t_1 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7skimage_7feature_8_cascade_7Cascade_9_load_xml_1lambda1, 0, __pyx_n_s_load_xml_locals_lambda, NULL, __pyx_n_s_skimage_feature__cascade, __pyx_d, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 861, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_leaf_values, __pyx_n_s_split); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 861, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_16 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_3))) {
__pyx_t_16 = PyMethod_GET_SELF(__pyx_t_3);
if (likely(__pyx_t_16)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3);
__Pyx_INCREF(__pyx_t_16);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_3, function);
}
}
__pyx_t_2 = (__pyx_t_16) ? __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_16) : __Pyx_PyObject_CallNoArg(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_16); __pyx_t_16 = 0;
if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 861, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 861, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_GIVEREF(__pyx_t_1);
PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
__Pyx_GIVEREF(__pyx_t_2);
PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
__pyx_t_1 = 0;
__pyx_t_2 = 0;
__pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_map, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 861, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_3 = PySequence_List(__pyx_t_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 861, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF_SET(__pyx_v_leaf_values, __pyx_t_3);
__pyx_t_3 = 0;
/* "skimage/feature/_cascade.pyx":865
* # Extract the elements only starting from second.
* # First two are useless
* internal_nodes = current_weak_classifier.find('internalNodes') # <<<<<<<<<<<<<<
* internal_nodes = internal_nodes.text.split()[2:]
*
*/
__Pyx_TraceLine(865,0,__PYX_ERR(0, 865, __pyx_L1_error))
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_current_weak_classifier, __pyx_n_s_find); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 865, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_1 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_2))) {
__pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2);
if (likely(__pyx_t_1)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2);
__Pyx_INCREF(__pyx_t_1);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_2, function);
}
}
__pyx_t_3 = (__pyx_t_1) ? __Pyx_PyObject_Call2Args(__pyx_t_2, __pyx_t_1, __pyx_n_u_internalNodes) : __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_n_u_internalNodes);
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 865, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_XDECREF_SET(__pyx_v_internal_nodes, __pyx_t_3);
__pyx_t_3 = 0;
/* "skimage/feature/_cascade.pyx":866
* # First two are useless
* internal_nodes = current_weak_classifier.find('internalNodes')
* internal_nodes = internal_nodes.text.split()[2:] # <<<<<<<<<<<<<<
*
* # Extract the feature number and respective parameters.
*/
__Pyx_TraceLine(866,0,__PYX_ERR(0, 866, __pyx_L1_error))
__pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_internal_nodes, __pyx_n_s_text); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 866, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_split); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 866, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = NULL;
if (CYTHON_UNPACK_METHODS && likely(PyMethod_Check(__pyx_t_1))) {
__pyx_t_2 = PyMethod_GET_SELF(__pyx_t_1);
if (likely(__pyx_t_2)) {
PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1);
__Pyx_INCREF(__pyx_t_2);
__Pyx_INCREF(function);
__Pyx_DECREF_SET(__pyx_t_1, function);
}
}
__pyx_t_3 = (__pyx_t_2) ? __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_2) : __Pyx_PyObject_CallNoArg(__pyx_t_1);
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 866, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_t_3, 2, 0, NULL, NULL, &__pyx_slice__2, 1, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 866, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_DECREF_SET(__pyx_v_internal_nodes, __pyx_t_1);
__pyx_t_1 = 0;
/* "skimage/feature/_cascade.pyx":870
* # Extract the feature number and respective parameters.
* # The MBLBP position and size.
* feature_number = int(internal_nodes[0]) # <<<<<<<<<<<<<<
* # list() is for Python3 fix here
* lut_array = list(map(lambda x: int(x), internal_nodes[1:]))
*/
__Pyx_TraceLine(870,0,__PYX_ERR(0, 870, __pyx_L1_error))
__pyx_t_1 = __Pyx_GetItemInt(__pyx_v_internal_nodes, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 870, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_3 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 870, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__pyx_t_17 = __Pyx_PyIndex_AsSsize_t(__pyx_t_3); if (unlikely((__pyx_t_17 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 870, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_v_feature_number = __pyx_t_17;
/* "skimage/feature/_cascade.pyx":872
* feature_number = int(internal_nodes[0])
* # list() is for Python3 fix here
* lut_array = list(map(lambda x: int(x), internal_nodes[1:])) # <<<<<<<<<<<<<<
* lut = np.asarray(lut_array, dtype='uint32')
*
*/
__Pyx_TraceLine(872,0,__PYX_ERR(0, 872, __pyx_L1_error))
__pyx_t_3 = __Pyx_CyFunction_NewEx(&__pyx_mdef_7skimage_7feature_8_cascade_7Cascade_9_load_xml_2lambda2, 0, __pyx_n_s_load_xml_locals_lambda, NULL, __pyx_n_s_skimage_feature__cascade, __pyx_d, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 872, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_v_internal_nodes, 1, 0, NULL, NULL, &__pyx_slice__3, 1, 0, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 872, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 872, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_GIVEREF(__pyx_t_3);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
__Pyx_GIVEREF(__pyx_t_1);
PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
__pyx_t_3 = 0;
__pyx_t_1 = 0;
__pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_map, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 872, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = PySequence_List(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 872, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_XDECREF_SET(__pyx_v_lut_array, ((PyObject*)__pyx_t_2));
__pyx_t_2 = 0;
/* "skimage/feature/_cascade.pyx":873
* # list() is for Python3 fix here
* lut_array = list(map(lambda x: int(x), internal_nodes[1:]))
* lut = np.asarray(lut_array, dtype='uint32') # <<<<<<<<<<<<<<
*
* # Copy array to the main LUT array
*/
__Pyx_TraceLine(873,0,__PYX_ERR(0, 873, __pyx_L1_error))
__Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_n_s_np); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 873, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_asarray); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 873, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 873, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_2);
__Pyx_INCREF(__pyx_v_lut_array);
__Pyx_GIVEREF(__pyx_v_lut_array);
PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_lut_array);
__pyx_t_3 = __Pyx_PyDict_NewPresized(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 873, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
if (PyDict_SetItem(__pyx_t_3, __pyx_n_s_dtype, __pyx_n_u_uint32) < 0) __PYX_ERR(0, 873, __pyx_L1_error)
__pyx_t_16 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 873, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_16);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_18 = __Pyx_PyObject_to_MemoryviewSlice_dc_nn___pyx_t_5numpy_uint32_t(__pyx_t_16, PyBUF_WRITABLE); if (unlikely(!__pyx_t_18.memview)) __PYX_ERR(0, 873, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
__PYX_XDEC_MEMVIEW(&__pyx_v_lut, 1);
__pyx_v_lut = __pyx_t_18;
__pyx_t_18.memview = NULL;
__pyx_t_18.data = NULL;
/* "skimage/feature/_cascade.pyx":876
*
* # Copy array to the main LUT array
* for i in range(8): # <<<<<<<<<<<<<<
* LUTs_carr[stump_lut_idx + i] = lut[i]
*
*/
__Pyx_TraceLine(876,0,__PYX_ERR(0, 876, __pyx_L1_error))
for (__pyx_t_17 = 0; __pyx_t_17 < 8; __pyx_t_17+=1) {
__pyx_v_i = __pyx_t_17;
/* "skimage/feature/_cascade.pyx":877
* # Copy array to the main LUT array
* for i in range(8):
* LUTs_carr[stump_lut_idx + i] = lut[i] # <<<<<<<<<<<<<<
*
* new_stump = MBLBPStump(feature_number, stump_lut_idx, leaf_values[0], leaf_values[1])
*/
__Pyx_TraceLine(877,0,__PYX_ERR(0, 877, __pyx_L1_error))
__pyx_t_19 = __pyx_v_i;
(__pyx_v_LUTs_carr[(__pyx_v_stump_lut_idx + __pyx_v_i)]) = (*((__pyx_t_5numpy_uint32_t *) ( /* dim=0 */ ((char *) (((__pyx_t_5numpy_uint32_t *) __pyx_v_lut.data) + __pyx_t_19)) )));
}
/* "skimage/feature/_cascade.pyx":879
* LUTs_carr[stump_lut_idx + i] = lut[i]
*
* new_stump = MBLBPStump(feature_number, stump_lut_idx, leaf_values[0], leaf_values[1]) # <<<<<<<<<<<<<<
* stumps_carr[stump_idx] = new_stump
*
*/
__Pyx_TraceLine(879,0,__PYX_ERR(0, 879, __pyx_L1_error))
__pyx_t_20.feature_id = __pyx_v_feature_number;
__pyx_t_20.lut_idx = __pyx_v_stump_lut_idx;
__pyx_t_16 = __Pyx_GetItemInt(__pyx_v_leaf_values, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 879, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_16);
__pyx_t_21 = __pyx_PyFloat_AsFloat(__pyx_t_16); if (unlikely((__pyx_t_21 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 879, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
__pyx_t_20.left = __pyx_t_21;
__pyx_t_16 = __Pyx_GetItemInt(__pyx_v_leaf_values, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 0); if (unlikely(!__pyx_t_16)) __PYX_ERR(0, 879, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_16);
__pyx_t_21 = __pyx_PyFloat_AsFloat(__pyx_t_16); if (unlikely((__pyx_t_21 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 879, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_16); __pyx_t_16 = 0;
__pyx_t_20.right = __pyx_t_21;
__pyx_v_new_stump = __pyx_t_20;
/* "skimage/feature/_cascade.pyx":880
*
* new_stump = MBLBPStump(feature_number, stump_lut_idx, leaf_values[0], leaf_values[1])
* stumps_carr[stump_idx] = new_stump # <<<<<<<<<<<<<<
*
* stump_lut_idx += 8
*/
__Pyx_TraceLine(880,0,__PYX_ERR(0, 880, __pyx_L1_error))
(__pyx_v_stumps_carr[__pyx_v_stump_idx]) = __pyx_v_new_stump;
/* "skimage/feature/_cascade.pyx":882
* stumps_carr[stump_idx] = new_stump
*
* stump_lut_idx += 8 # <<<<<<<<<<<<<<
* stump_idx += 1
*
*/
__Pyx_TraceLine(882,0,__PYX_ERR(0, 882, __pyx_L1_error))
__pyx_v_stump_lut_idx = (__pyx_v_stump_lut_idx + 8);
/* "skimage/feature/_cascade.pyx":883
*
* stump_lut_idx += 8
* stump_idx += 1 # <<<<<<<<<<<<<<
*
* self.eps = eps
*/
__Pyx_TraceLine(883,0,__PYX_ERR(0, 883, __pyx_L1_error))
__pyx_v_stump_idx = (__pyx_v_stump_idx + 1);
}
}
/* "skimage/feature/_cascade.pyx":885
* stump_idx += 1
*
* self.eps = eps # <<<<<<<<<<<<<<
* self.window_height = window_height
* self.window_width = window_width
*/
__Pyx_TraceLine(885,0,__PYX_ERR(0, 885, __pyx_L1_error))
__pyx_t_21 = __pyx_PyFloat_AsFloat(__pyx_v_eps); if (unlikely((__pyx_t_21 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 885, __pyx_L1_error)
__pyx_v_self->eps = __pyx_t_21;
/* "skimage/feature/_cascade.pyx":886
*
* self.eps = eps
* self.window_height = window_height # <<<<<<<<<<<<<<
* self.window_width = window_width
* self.features = features_carr
*/
__Pyx_TraceLine(886,0,__PYX_ERR(0, 886, __pyx_L1_error))
__pyx_v_self->window_height = __pyx_v_window_height;
/* "skimage/feature/_cascade.pyx":887
* self.eps = eps
* self.window_height = window_height
* self.window_width = window_width # <<<<<<<<<<<<<<
* self.features = features_carr
* self.stumps = stumps_carr
*/
__Pyx_TraceLine(887,0,__PYX_ERR(0, 887, __pyx_L1_error))
__pyx_v_self->window_width = __pyx_v_window_width;
/* "skimage/feature/_cascade.pyx":888
* self.window_height = window_height
* self.window_width = window_width
* self.features = features_carr # <<<<<<<<<<<<<<
* self.stumps = stumps_carr
* self.stages = stages_carr
*/
__Pyx_TraceLine(888,0,__PYX_ERR(0, 888, __pyx_L1_error))
__pyx_v_self->features = __pyx_v_features_carr;
/* "skimage/feature/_cascade.pyx":889
* self.window_width = window_width
* self.features = features_carr
* self.stumps = stumps_carr # <<<<<<<<<<<<<<
* self.stages = stages_carr
* self.LUTs = LUTs_carr
*/
__Pyx_TraceLine(889,0,__PYX_ERR(0, 889, __pyx_L1_error))
__pyx_v_self->stumps = __pyx_v_stumps_carr;
/* "skimage/feature/_cascade.pyx":890
* self.features = features_carr
* self.stumps = stumps_carr
* self.stages = stages_carr # <<<<<<<<<<<<<<
* self.LUTs = LUTs_carr
* self.stages_number = stages_number
*/
__Pyx_TraceLine(890,0,__PYX_ERR(0, 890, __pyx_L1_error))
__pyx_v_self->stages = __pyx_v_stages_carr;
/* "skimage/feature/_cascade.pyx":891
* self.stumps = stumps_carr
* self.stages = stages_carr
* self.LUTs = LUTs_carr # <<<<<<<<<<<<<<
* self.stages_number = stages_number
* self.features_number = features_number
*/
__Pyx_TraceLine(891,0,__PYX_ERR(0, 891, __pyx_L1_error))
__pyx_v_self->LUTs = __pyx_v_LUTs_carr;
/* "skimage/feature/_cascade.pyx":892
* self.stages = stages_carr
* self.LUTs = LUTs_carr
* self.stages_number = stages_number # <<<<<<<<<<<<<<
* self.features_number = features_number
* self.stumps_number = stumps_number
*/
__Pyx_TraceLine(892,0,__PYX_ERR(0, 892, __pyx_L1_error))
__pyx_v_self->stages_number = __pyx_v_stages_number;
/* "skimage/feature/_cascade.pyx":893
* self.LUTs = LUTs_carr
* self.stages_number = stages_number
* self.features_number = features_number # <<<<<<<<<<<<<<
* self.stumps_number = stumps_number
*/
__Pyx_TraceLine(893,0,__PYX_ERR(0, 893, __pyx_L1_error))
__pyx_v_self->features_number = __pyx_v_features_number;
/* "skimage/feature/_cascade.pyx":894
* self.stages_number = stages_number
* self.features_number = features_number
* self.stumps_number = stumps_number # <<<<<<<<<<<<<<
*/
__Pyx_TraceLine(894,0,__PYX_ERR(0, 894, __pyx_L1_error))
__pyx_t_4 = __Pyx_PyIndex_AsSsize_t(__pyx_v_stumps_number); if (unlikely((__pyx_t_4 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 894, __pyx_L1_error)
__pyx_v_self->stumps_number = __pyx_t_4;
/* "skimage/feature/_cascade.pyx":751
* min_neighbour_number))
*
* def _load_xml(self, xml_file, eps=1e-5): # <<<<<<<<<<<<<<
* """Load the parameters of cascade classifier into the class.
*
*/
/* function exit code */
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_XDECREF(__pyx_t_2);
__Pyx_XDECREF(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_16);
__PYX_XDEC_MEMVIEW(&__pyx_t_18, 1);
__Pyx_AddTraceback("skimage.feature._cascade.Cascade._load_xml", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL;
__pyx_L0:;
__PYX_XDEC_MEMVIEW(&__pyx_v_lut, 1);
__Pyx_XDECREF(__pyx_v_tree);
__Pyx_XDECREF(__pyx_v_features);
__Pyx_XDECREF(__pyx_v_stages);
__Pyx_XDECREF(__pyx_v_stumps_number);
__Pyx_XDECREF(__pyx_v_current_stage);
__Pyx_XDECREF(__pyx_v_params);
__Pyx_XDECREF(__pyx_v_weak_classifiers);
__Pyx_XDECREF(__pyx_v_current_weak_classifier);
__Pyx_XDECREF(__pyx_v_leaf_values);
__Pyx_XDECREF(__pyx_v_internal_nodes);
__Pyx_XDECREF(__pyx_v_lut_array);
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":436
*
* cdef:
* public float eps # <<<<<<<<<<<<<<
* public Py_ssize_t stages_number
* public Py_ssize_t stumps_number
*/
/* Python wrapper */
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_3eps_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_3eps_1__get__(PyObject *__pyx_v_self) {
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_3eps___get__(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_3eps___get__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self) {
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("__get__", 0);
__Pyx_TraceCall("__get__", __pyx_f[0], 436, 0, __PYX_ERR(0, 436, __pyx_L1_error));
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = PyFloat_FromDouble(__pyx_v_self->eps); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 436, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("skimage.feature._cascade.Cascade.eps.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* Python wrapper */
static int __pyx_pw_7skimage_7feature_8_cascade_7Cascade_3eps_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_7skimage_7feature_8_cascade_7Cascade_3eps_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
int __pyx_r;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_3eps_2__set__(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self), ((PyObject *)__pyx_v_value));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static int __pyx_pf_7skimage_7feature_8_cascade_7Cascade_3eps_2__set__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_value) {
int __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
float __pyx_t_1;
__Pyx_RefNannySetupContext("__set__", 0);
__Pyx_TraceCall("__set__", __pyx_f[0], 436, 0, __PYX_ERR(0, 436, __pyx_L1_error));
__pyx_t_1 = __pyx_PyFloat_AsFloat(__pyx_v_value); if (unlikely((__pyx_t_1 == (float)-1) && PyErr_Occurred())) __PYX_ERR(0, 436, __pyx_L1_error)
__pyx_v_self->eps = __pyx_t_1;
/* function exit code */
__pyx_r = 0;
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("skimage.feature._cascade.Cascade.eps.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = -1;
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":437
* cdef:
* public float eps
* public Py_ssize_t stages_number # <<<<<<<<<<<<<<
* public Py_ssize_t stumps_number
* public Py_ssize_t features_number
*/
/* Python wrapper */
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_13stages_number_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_13stages_number_1__get__(PyObject *__pyx_v_self) {
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_13stages_number___get__(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_13stages_number___get__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self) {
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("__get__", 0);
__Pyx_TraceCall("__get__", __pyx_f[0], 437, 0, __PYX_ERR(0, 437, __pyx_L1_error));
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->stages_number); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 437, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("skimage.feature._cascade.Cascade.stages_number.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* Python wrapper */
static int __pyx_pw_7skimage_7feature_8_cascade_7Cascade_13stages_number_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_7skimage_7feature_8_cascade_7Cascade_13stages_number_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
int __pyx_r;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_13stages_number_2__set__(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self), ((PyObject *)__pyx_v_value));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static int __pyx_pf_7skimage_7feature_8_cascade_7Cascade_13stages_number_2__set__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_value) {
int __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
Py_ssize_t __pyx_t_1;
__Pyx_RefNannySetupContext("__set__", 0);
__Pyx_TraceCall("__set__", __pyx_f[0], 437, 0, __PYX_ERR(0, 437, __pyx_L1_error));
__pyx_t_1 = __Pyx_PyIndex_AsSsize_t(__pyx_v_value); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 437, __pyx_L1_error)
__pyx_v_self->stages_number = __pyx_t_1;
/* function exit code */
__pyx_r = 0;
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("skimage.feature._cascade.Cascade.stages_number.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = -1;
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":438
* public float eps
* public Py_ssize_t stages_number
* public Py_ssize_t stumps_number # <<<<<<<<<<<<<<
* public Py_ssize_t features_number
* public Py_ssize_t window_width
*/
/* Python wrapper */
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_13stumps_number_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_13stumps_number_1__get__(PyObject *__pyx_v_self) {
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_13stumps_number___get__(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_13stumps_number___get__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self) {
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("__get__", 0);
__Pyx_TraceCall("__get__", __pyx_f[0], 438, 0, __PYX_ERR(0, 438, __pyx_L1_error));
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->stumps_number); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 438, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("skimage.feature._cascade.Cascade.stumps_number.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* Python wrapper */
static int __pyx_pw_7skimage_7feature_8_cascade_7Cascade_13stumps_number_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_7skimage_7feature_8_cascade_7Cascade_13stumps_number_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
int __pyx_r;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_13stumps_number_2__set__(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self), ((PyObject *)__pyx_v_value));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static int __pyx_pf_7skimage_7feature_8_cascade_7Cascade_13stumps_number_2__set__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_value) {
int __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
Py_ssize_t __pyx_t_1;
__Pyx_RefNannySetupContext("__set__", 0);
__Pyx_TraceCall("__set__", __pyx_f[0], 438, 0, __PYX_ERR(0, 438, __pyx_L1_error));
__pyx_t_1 = __Pyx_PyIndex_AsSsize_t(__pyx_v_value); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 438, __pyx_L1_error)
__pyx_v_self->stumps_number = __pyx_t_1;
/* function exit code */
__pyx_r = 0;
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("skimage.feature._cascade.Cascade.stumps_number.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = -1;
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":439
* public Py_ssize_t stages_number
* public Py_ssize_t stumps_number
* public Py_ssize_t features_number # <<<<<<<<<<<<<<
* public Py_ssize_t window_width
* public Py_ssize_t window_height
*/
/* Python wrapper */
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_15features_number_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_15features_number_1__get__(PyObject *__pyx_v_self) {
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_15features_number___get__(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_15features_number___get__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self) {
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("__get__", 0);
__Pyx_TraceCall("__get__", __pyx_f[0], 439, 0, __PYX_ERR(0, 439, __pyx_L1_error));
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->features_number); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 439, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("skimage.feature._cascade.Cascade.features_number.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* Python wrapper */
static int __pyx_pw_7skimage_7feature_8_cascade_7Cascade_15features_number_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_7skimage_7feature_8_cascade_7Cascade_15features_number_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
int __pyx_r;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_15features_number_2__set__(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self), ((PyObject *)__pyx_v_value));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static int __pyx_pf_7skimage_7feature_8_cascade_7Cascade_15features_number_2__set__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_value) {
int __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
Py_ssize_t __pyx_t_1;
__Pyx_RefNannySetupContext("__set__", 0);
__Pyx_TraceCall("__set__", __pyx_f[0], 439, 0, __PYX_ERR(0, 439, __pyx_L1_error));
__pyx_t_1 = __Pyx_PyIndex_AsSsize_t(__pyx_v_value); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 439, __pyx_L1_error)
__pyx_v_self->features_number = __pyx_t_1;
/* function exit code */
__pyx_r = 0;
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("skimage.feature._cascade.Cascade.features_number.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = -1;
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":440
* public Py_ssize_t stumps_number
* public Py_ssize_t features_number
* public Py_ssize_t window_width # <<<<<<<<<<<<<<
* public Py_ssize_t window_height
* Stage* stages
*/
/* Python wrapper */
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_12window_width_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_12window_width_1__get__(PyObject *__pyx_v_self) {
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_12window_width___get__(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_12window_width___get__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self) {
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("__get__", 0);
__Pyx_TraceCall("__get__", __pyx_f[0], 440, 0, __PYX_ERR(0, 440, __pyx_L1_error));
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->window_width); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 440, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("skimage.feature._cascade.Cascade.window_width.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* Python wrapper */
static int __pyx_pw_7skimage_7feature_8_cascade_7Cascade_12window_width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_7skimage_7feature_8_cascade_7Cascade_12window_width_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
int __pyx_r;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_12window_width_2__set__(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self), ((PyObject *)__pyx_v_value));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static int __pyx_pf_7skimage_7feature_8_cascade_7Cascade_12window_width_2__set__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_value) {
int __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
Py_ssize_t __pyx_t_1;
__Pyx_RefNannySetupContext("__set__", 0);
__Pyx_TraceCall("__set__", __pyx_f[0], 440, 0, __PYX_ERR(0, 440, __pyx_L1_error));
__pyx_t_1 = __Pyx_PyIndex_AsSsize_t(__pyx_v_value); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 440, __pyx_L1_error)
__pyx_v_self->window_width = __pyx_t_1;
/* function exit code */
__pyx_r = 0;
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("skimage.feature._cascade.Cascade.window_width.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = -1;
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/feature/_cascade.pyx":441
* public Py_ssize_t features_number
* public Py_ssize_t window_width
* public Py_ssize_t window_height # <<<<<<<<<<<<<<
* Stage* stages
* MBLBPStump* stumps
*/
/* Python wrapper */
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_13window_height_1__get__(PyObject *__pyx_v_self); /*proto*/
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_13window_height_1__get__(PyObject *__pyx_v_self) {
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__get__ (wrapper)", 0);
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_13window_height___get__(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_13window_height___get__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self) {
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("__get__", 0);
__Pyx_TraceCall("__get__", __pyx_f[0], 441, 0, __PYX_ERR(0, 441, __pyx_L1_error));
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = PyInt_FromSsize_t(__pyx_v_self->window_height); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 441, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("skimage.feature._cascade.Cascade.window_height.__get__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* Python wrapper */
static int __pyx_pw_7skimage_7feature_8_cascade_7Cascade_13window_height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value); /*proto*/
static int __pyx_pw_7skimage_7feature_8_cascade_7Cascade_13window_height_3__set__(PyObject *__pyx_v_self, PyObject *__pyx_v_value) {
int __pyx_r;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__set__ (wrapper)", 0);
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_13window_height_2__set__(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self), ((PyObject *)__pyx_v_value));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static int __pyx_pf_7skimage_7feature_8_cascade_7Cascade_13window_height_2__set__(struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, PyObject *__pyx_v_value) {
int __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
Py_ssize_t __pyx_t_1;
__Pyx_RefNannySetupContext("__set__", 0);
__Pyx_TraceCall("__set__", __pyx_f[0], 441, 0, __PYX_ERR(0, 441, __pyx_L1_error));
__pyx_t_1 = __Pyx_PyIndex_AsSsize_t(__pyx_v_value); if (unlikely((__pyx_t_1 == (Py_ssize_t)-1) && PyErr_Occurred())) __PYX_ERR(0, 441, __pyx_L1_error)
__pyx_v_self->window_height = __pyx_t_1;
/* function exit code */
__pyx_r = 0;
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_AddTraceback("skimage.feature._cascade.Cascade.window_height.__set__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = -1;
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "(tree fragment)":1
* def __reduce_cython__(self): # <<<<<<<<<<<<<<
* raise TypeError("self.LUTs,self.features,self.stages,self.stumps cannot be converted to a Python object for pickling")
* def __setstate_cython__(self, __pyx_state):
*/
/* Python wrapper */
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_13__reduce_cython__(PyObject *__pyx_v_self, CYTHON_UNUSED PyObject *unused) {
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__reduce_cython__ (wrapper)", 0);
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_12__reduce_cython__(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_12__reduce_cython__(CYTHON_UNUSED struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self) {
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("__reduce_cython__", 0);
__Pyx_TraceCall("__reduce_cython__", __pyx_f[1], 1, 0, __PYX_ERR(1, 1, __pyx_L1_error));
/* "(tree fragment)":2
* def __reduce_cython__(self):
* raise TypeError("self.LUTs,self.features,self.stages,self.stumps cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<<
* def __setstate_cython__(self, __pyx_state):
* raise TypeError("self.LUTs,self.features,self.stages,self.stumps cannot be converted to a Python object for pickling")
*/
__Pyx_TraceLine(2,0,__PYX_ERR(1, 2, __pyx_L1_error))
__pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 2, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_Raise(__pyx_t_1, 0, 0, 0);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__PYX_ERR(1, 2, __pyx_L1_error)
/* "(tree fragment)":1
* def __reduce_cython__(self): # <<<<<<<<<<<<<<
* raise TypeError("self.LUTs,self.features,self.stages,self.stumps cannot be converted to a Python object for pickling")
* def __setstate_cython__(self, __pyx_state):
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("skimage.feature._cascade.Cascade.__reduce_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "(tree fragment)":3
* def __reduce_cython__(self):
* raise TypeError("self.LUTs,self.features,self.stages,self.stumps cannot be converted to a Python object for pickling")
* def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<<
* raise TypeError("self.LUTs,self.features,self.stages,self.stumps cannot be converted to a Python object for pickling")
*/
/* Python wrapper */
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state); /*proto*/
static PyObject *__pyx_pw_7skimage_7feature_8_cascade_7Cascade_15__setstate_cython__(PyObject *__pyx_v_self, PyObject *__pyx_v___pyx_state) {
PyObject *__pyx_r = 0;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__setstate_cython__ (wrapper)", 0);
__pyx_r = __pyx_pf_7skimage_7feature_8_cascade_7Cascade_14__setstate_cython__(((struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *)__pyx_v_self), ((PyObject *)__pyx_v___pyx_state));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static PyObject *__pyx_pf_7skimage_7feature_8_cascade_7Cascade_14__setstate_cython__(CYTHON_UNUSED struct __pyx_obj_7skimage_7feature_8_cascade_Cascade *__pyx_v_self, CYTHON_UNUSED PyObject *__pyx_v___pyx_state) {
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("__setstate_cython__", 0);
__Pyx_TraceCall("__setstate_cython__", __pyx_f[1], 3, 0, __PYX_ERR(1, 3, __pyx_L1_error));
/* "(tree fragment)":4
* raise TypeError("self.LUTs,self.features,self.stages,self.stumps cannot be converted to a Python object for pickling")
* def __setstate_cython__(self, __pyx_state):
* raise TypeError("self.LUTs,self.features,self.stages,self.stumps cannot be converted to a Python object for pickling") # <<<<<<<<<<<<<<
*/
__Pyx_TraceLine(4,0,__PYX_ERR(1, 4, __pyx_L1_error))
__pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_TypeError, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 4, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__Pyx_Raise(__pyx_t_1, 0, 0, 0);
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
__PYX_ERR(1, 4, __pyx_L1_error)
/* "(tree fragment)":3
* def __reduce_cython__(self):
* raise TypeError("self.LUTs,self.features,self.stages,self.stumps cannot be converted to a Python object for pickling")
* def __setstate_cython__(self, __pyx_state): # <<<<<<<<<<<<<<
* raise TypeError("self.LUTs,self.features,self.stages,self.stumps cannot be converted to a Python object for pickling")
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("skimage.feature._cascade.Cascade.__setstate_cython__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":258
* # experimental exception made for __getbuffer__ and __releasebuffer__
* # -- the details of this may change.
* def __getbuffer__(ndarray self, Py_buffer* info, int flags): # <<<<<<<<<<<<<<
* # This implementation of getbuffer is geared towards Cython
* # requirements, and does not yet fulfill the PEP.
*/
/* Python wrapper */
static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/
static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) {
int __pyx_r;
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0);
__pyx_r = __pyx_pf_5numpy_7ndarray___getbuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags));
/* function exit code */
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) {
int __pyx_v_i;
int __pyx_v_ndim;
int __pyx_v_endian_detector;
int __pyx_v_little_endian;
int __pyx_v_t;
char *__pyx_v_f;
PyArray_Descr *__pyx_v_descr = 0;
int __pyx_v_offset;
int __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
int __pyx_t_1;
int __pyx_t_2;
PyObject *__pyx_t_3 = NULL;
int __pyx_t_4;
int __pyx_t_5;
int __pyx_t_6;
PyArray_Descr *__pyx_t_7;
PyObject *__pyx_t_8 = NULL;
char *__pyx_t_9;
if (__pyx_v_info == NULL) {
PyErr_SetString(PyExc_BufferError, "PyObject_GetBuffer: view==NULL argument is obsolete");
return -1;
}
__Pyx_RefNannySetupContext("__getbuffer__", 0);
__pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None);
__Pyx_GIVEREF(__pyx_v_info->obj);
__Pyx_TraceCall("__getbuffer__", __pyx_f[2], 258, 0, __PYX_ERR(2, 258, __pyx_L1_error));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":265
*
* cdef int i, ndim
* cdef int endian_detector = 1 # <<<<<<<<<<<<<<
* cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)
*
*/
__Pyx_TraceLine(265,0,__PYX_ERR(2, 265, __pyx_L1_error))
__pyx_v_endian_detector = 1;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":266
* cdef int i, ndim
* cdef int endian_detector = 1
* cdef bint little_endian = ((<char*>&endian_detector)[0] != 0) # <<<<<<<<<<<<<<
*
* ndim = PyArray_NDIM(self)
*/
__Pyx_TraceLine(266,0,__PYX_ERR(2, 266, __pyx_L1_error))
__pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0);
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":268
* cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)
*
* ndim = PyArray_NDIM(self) # <<<<<<<<<<<<<<
*
* if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
*/
__Pyx_TraceLine(268,0,__PYX_ERR(2, 268, __pyx_L1_error))
__pyx_v_ndim = PyArray_NDIM(__pyx_v_self);
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":270
* ndim = PyArray_NDIM(self)
*
* if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) # <<<<<<<<<<<<<<
* and not PyArray_CHKFLAGS(self, NPY_ARRAY_C_CONTIGUOUS)):
* raise ValueError(u"ndarray is not C contiguous")
*/
__Pyx_TraceLine(270,0,__PYX_ERR(2, 270, __pyx_L1_error))
__pyx_t_2 = (((__pyx_v_flags & PyBUF_C_CONTIGUOUS) == PyBUF_C_CONTIGUOUS) != 0);
if (__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L4_bool_binop_done;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":271
*
* if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
* and not PyArray_CHKFLAGS(self, NPY_ARRAY_C_CONTIGUOUS)): # <<<<<<<<<<<<<<
* raise ValueError(u"ndarray is not C contiguous")
*
*/
__Pyx_TraceLine(271,0,__PYX_ERR(2, 271, __pyx_L1_error))
__pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_ARRAY_C_CONTIGUOUS) != 0)) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L4_bool_binop_done:;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":270
* ndim = PyArray_NDIM(self)
*
* if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) # <<<<<<<<<<<<<<
* and not PyArray_CHKFLAGS(self, NPY_ARRAY_C_CONTIGUOUS)):
* raise ValueError(u"ndarray is not C contiguous")
*/
__Pyx_TraceLine(270,0,__PYX_ERR(2, 270, __pyx_L1_error))
if (unlikely(__pyx_t_1)) {
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":272
* if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
* and not PyArray_CHKFLAGS(self, NPY_ARRAY_C_CONTIGUOUS)):
* raise ValueError(u"ndarray is not C contiguous") # <<<<<<<<<<<<<<
*
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
*/
__Pyx_TraceLine(272,0,__PYX_ERR(2, 272, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 272, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__PYX_ERR(2, 272, __pyx_L1_error)
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":270
* ndim = PyArray_NDIM(self)
*
* if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS) # <<<<<<<<<<<<<<
* and not PyArray_CHKFLAGS(self, NPY_ARRAY_C_CONTIGUOUS)):
* raise ValueError(u"ndarray is not C contiguous")
*/
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":274
* raise ValueError(u"ndarray is not C contiguous")
*
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) # <<<<<<<<<<<<<<
* and not PyArray_CHKFLAGS(self, NPY_ARRAY_F_CONTIGUOUS)):
* raise ValueError(u"ndarray is not Fortran contiguous")
*/
__Pyx_TraceLine(274,0,__PYX_ERR(2, 274, __pyx_L1_error))
__pyx_t_2 = (((__pyx_v_flags & PyBUF_F_CONTIGUOUS) == PyBUF_F_CONTIGUOUS) != 0);
if (__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L7_bool_binop_done;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":275
*
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
* and not PyArray_CHKFLAGS(self, NPY_ARRAY_F_CONTIGUOUS)): # <<<<<<<<<<<<<<
* raise ValueError(u"ndarray is not Fortran contiguous")
*
*/
__Pyx_TraceLine(275,0,__PYX_ERR(2, 275, __pyx_L1_error))
__pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_ARRAY_F_CONTIGUOUS) != 0)) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L7_bool_binop_done:;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":274
* raise ValueError(u"ndarray is not C contiguous")
*
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) # <<<<<<<<<<<<<<
* and not PyArray_CHKFLAGS(self, NPY_ARRAY_F_CONTIGUOUS)):
* raise ValueError(u"ndarray is not Fortran contiguous")
*/
__Pyx_TraceLine(274,0,__PYX_ERR(2, 274, __pyx_L1_error))
if (unlikely(__pyx_t_1)) {
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":276
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
* and not PyArray_CHKFLAGS(self, NPY_ARRAY_F_CONTIGUOUS)):
* raise ValueError(u"ndarray is not Fortran contiguous") # <<<<<<<<<<<<<<
*
* info.buf = PyArray_DATA(self)
*/
__Pyx_TraceLine(276,0,__PYX_ERR(2, 276, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 276, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__PYX_ERR(2, 276, __pyx_L1_error)
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":274
* raise ValueError(u"ndarray is not C contiguous")
*
* if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS) # <<<<<<<<<<<<<<
* and not PyArray_CHKFLAGS(self, NPY_ARRAY_F_CONTIGUOUS)):
* raise ValueError(u"ndarray is not Fortran contiguous")
*/
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":278
* raise ValueError(u"ndarray is not Fortran contiguous")
*
* info.buf = PyArray_DATA(self) # <<<<<<<<<<<<<<
* info.ndim = ndim
* if sizeof(npy_intp) != sizeof(Py_ssize_t):
*/
__Pyx_TraceLine(278,0,__PYX_ERR(2, 278, __pyx_L1_error))
__pyx_v_info->buf = PyArray_DATA(__pyx_v_self);
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":279
*
* info.buf = PyArray_DATA(self)
* info.ndim = ndim # <<<<<<<<<<<<<<
* if sizeof(npy_intp) != sizeof(Py_ssize_t):
* # Allocate new buffer for strides and shape info.
*/
__Pyx_TraceLine(279,0,__PYX_ERR(2, 279, __pyx_L1_error))
__pyx_v_info->ndim = __pyx_v_ndim;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":280
* info.buf = PyArray_DATA(self)
* info.ndim = ndim
* if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<<
* # Allocate new buffer for strides and shape info.
* # This is allocated as one block, strides first.
*/
__Pyx_TraceLine(280,0,__PYX_ERR(2, 280, __pyx_L1_error))
__pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0);
if (__pyx_t_1) {
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":283
* # Allocate new buffer for strides and shape info.
* # This is allocated as one block, strides first.
* info.strides = <Py_ssize_t*>PyObject_Malloc(sizeof(Py_ssize_t) * 2 * <size_t>ndim) # <<<<<<<<<<<<<<
* info.shape = info.strides + ndim
* for i in range(ndim):
*/
__Pyx_TraceLine(283,0,__PYX_ERR(2, 283, __pyx_L1_error))
__pyx_v_info->strides = ((Py_ssize_t *)PyObject_Malloc((((sizeof(Py_ssize_t)) * 2) * ((size_t)__pyx_v_ndim))));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":284
* # This is allocated as one block, strides first.
* info.strides = <Py_ssize_t*>PyObject_Malloc(sizeof(Py_ssize_t) * 2 * <size_t>ndim)
* info.shape = info.strides + ndim # <<<<<<<<<<<<<<
* for i in range(ndim):
* info.strides[i] = PyArray_STRIDES(self)[i]
*/
__Pyx_TraceLine(284,0,__PYX_ERR(2, 284, __pyx_L1_error))
__pyx_v_info->shape = (__pyx_v_info->strides + __pyx_v_ndim);
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":285
* info.strides = <Py_ssize_t*>PyObject_Malloc(sizeof(Py_ssize_t) * 2 * <size_t>ndim)
* info.shape = info.strides + ndim
* for i in range(ndim): # <<<<<<<<<<<<<<
* info.strides[i] = PyArray_STRIDES(self)[i]
* info.shape[i] = PyArray_DIMS(self)[i]
*/
__Pyx_TraceLine(285,0,__PYX_ERR(2, 285, __pyx_L1_error))
__pyx_t_4 = __pyx_v_ndim;
__pyx_t_5 = __pyx_t_4;
for (__pyx_t_6 = 0; __pyx_t_6 < __pyx_t_5; __pyx_t_6+=1) {
__pyx_v_i = __pyx_t_6;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":286
* info.shape = info.strides + ndim
* for i in range(ndim):
* info.strides[i] = PyArray_STRIDES(self)[i] # <<<<<<<<<<<<<<
* info.shape[i] = PyArray_DIMS(self)[i]
* else:
*/
__Pyx_TraceLine(286,0,__PYX_ERR(2, 286, __pyx_L1_error))
(__pyx_v_info->strides[__pyx_v_i]) = (PyArray_STRIDES(__pyx_v_self)[__pyx_v_i]);
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":287
* for i in range(ndim):
* info.strides[i] = PyArray_STRIDES(self)[i]
* info.shape[i] = PyArray_DIMS(self)[i] # <<<<<<<<<<<<<<
* else:
* info.strides = <Py_ssize_t*>PyArray_STRIDES(self)
*/
__Pyx_TraceLine(287,0,__PYX_ERR(2, 287, __pyx_L1_error))
(__pyx_v_info->shape[__pyx_v_i]) = (PyArray_DIMS(__pyx_v_self)[__pyx_v_i]);
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":280
* info.buf = PyArray_DATA(self)
* info.ndim = ndim
* if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<<
* # Allocate new buffer for strides and shape info.
* # This is allocated as one block, strides first.
*/
goto __pyx_L9;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":289
* info.shape[i] = PyArray_DIMS(self)[i]
* else:
* info.strides = <Py_ssize_t*>PyArray_STRIDES(self) # <<<<<<<<<<<<<<
* info.shape = <Py_ssize_t*>PyArray_DIMS(self)
* info.suboffsets = NULL
*/
__Pyx_TraceLine(289,0,__PYX_ERR(2, 289, __pyx_L1_error))
/*else*/ {
__pyx_v_info->strides = ((Py_ssize_t *)PyArray_STRIDES(__pyx_v_self));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":290
* else:
* info.strides = <Py_ssize_t*>PyArray_STRIDES(self)
* info.shape = <Py_ssize_t*>PyArray_DIMS(self) # <<<<<<<<<<<<<<
* info.suboffsets = NULL
* info.itemsize = PyArray_ITEMSIZE(self)
*/
__Pyx_TraceLine(290,0,__PYX_ERR(2, 290, __pyx_L1_error))
__pyx_v_info->shape = ((Py_ssize_t *)PyArray_DIMS(__pyx_v_self));
}
__pyx_L9:;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":291
* info.strides = <Py_ssize_t*>PyArray_STRIDES(self)
* info.shape = <Py_ssize_t*>PyArray_DIMS(self)
* info.suboffsets = NULL # <<<<<<<<<<<<<<
* info.itemsize = PyArray_ITEMSIZE(self)
* info.readonly = not PyArray_ISWRITEABLE(self)
*/
__Pyx_TraceLine(291,0,__PYX_ERR(2, 291, __pyx_L1_error))
__pyx_v_info->suboffsets = NULL;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":292
* info.shape = <Py_ssize_t*>PyArray_DIMS(self)
* info.suboffsets = NULL
* info.itemsize = PyArray_ITEMSIZE(self) # <<<<<<<<<<<<<<
* info.readonly = not PyArray_ISWRITEABLE(self)
*
*/
__Pyx_TraceLine(292,0,__PYX_ERR(2, 292, __pyx_L1_error))
__pyx_v_info->itemsize = PyArray_ITEMSIZE(__pyx_v_self);
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":293
* info.suboffsets = NULL
* info.itemsize = PyArray_ITEMSIZE(self)
* info.readonly = not PyArray_ISWRITEABLE(self) # <<<<<<<<<<<<<<
*
* cdef int t
*/
__Pyx_TraceLine(293,0,__PYX_ERR(2, 293, __pyx_L1_error))
__pyx_v_info->readonly = (!(PyArray_ISWRITEABLE(__pyx_v_self) != 0));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":296
*
* cdef int t
* cdef char* f = NULL # <<<<<<<<<<<<<<
* cdef dtype descr = <dtype>PyArray_DESCR(self)
* cdef int offset
*/
__Pyx_TraceLine(296,0,__PYX_ERR(2, 296, __pyx_L1_error))
__pyx_v_f = NULL;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":297
* cdef int t
* cdef char* f = NULL
* cdef dtype descr = <dtype>PyArray_DESCR(self) # <<<<<<<<<<<<<<
* cdef int offset
*
*/
__Pyx_TraceLine(297,0,__PYX_ERR(2, 297, __pyx_L1_error))
__pyx_t_7 = PyArray_DESCR(__pyx_v_self);
__pyx_t_3 = ((PyObject *)__pyx_t_7);
__Pyx_INCREF(__pyx_t_3);
__pyx_v_descr = ((PyArray_Descr *)__pyx_t_3);
__pyx_t_3 = 0;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":300
* cdef int offset
*
* info.obj = self # <<<<<<<<<<<<<<
*
* if not PyDataType_HASFIELDS(descr):
*/
__Pyx_TraceLine(300,0,__PYX_ERR(2, 300, __pyx_L1_error))
__Pyx_INCREF(((PyObject *)__pyx_v_self));
__Pyx_GIVEREF(((PyObject *)__pyx_v_self));
__Pyx_GOTREF(__pyx_v_info->obj);
__Pyx_DECREF(__pyx_v_info->obj);
__pyx_v_info->obj = ((PyObject *)__pyx_v_self);
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":302
* info.obj = self
*
* if not PyDataType_HASFIELDS(descr): # <<<<<<<<<<<<<<
* t = descr.type_num
* if ((descr.byteorder == c'>' and little_endian) or
*/
__Pyx_TraceLine(302,0,__PYX_ERR(2, 302, __pyx_L1_error))
__pyx_t_1 = ((!(PyDataType_HASFIELDS(__pyx_v_descr) != 0)) != 0);
if (__pyx_t_1) {
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":303
*
* if not PyDataType_HASFIELDS(descr):
* t = descr.type_num # <<<<<<<<<<<<<<
* if ((descr.byteorder == c'>' and little_endian) or
* (descr.byteorder == c'<' and not little_endian)):
*/
__Pyx_TraceLine(303,0,__PYX_ERR(2, 303, __pyx_L1_error))
__pyx_t_4 = __pyx_v_descr->type_num;
__pyx_v_t = __pyx_t_4;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":304
* if not PyDataType_HASFIELDS(descr):
* t = descr.type_num
* if ((descr.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<<
* (descr.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported")
*/
__Pyx_TraceLine(304,0,__PYX_ERR(2, 304, __pyx_L1_error))
__pyx_t_2 = ((__pyx_v_descr->byteorder == '>') != 0);
if (!__pyx_t_2) {
goto __pyx_L15_next_or;
} else {
}
__pyx_t_2 = (__pyx_v_little_endian != 0);
if (!__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L14_bool_binop_done;
}
__pyx_L15_next_or:;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":305
* t = descr.type_num
* if ((descr.byteorder == c'>' and little_endian) or
* (descr.byteorder == c'<' and not little_endian)): # <<<<<<<<<<<<<<
* raise ValueError(u"Non-native byte order not supported")
* if t == NPY_BYTE: f = "b"
*/
__Pyx_TraceLine(305,0,__PYX_ERR(2, 305, __pyx_L1_error))
__pyx_t_2 = ((__pyx_v_descr->byteorder == '<') != 0);
if (__pyx_t_2) {
} else {
__pyx_t_1 = __pyx_t_2;
goto __pyx_L14_bool_binop_done;
}
__pyx_t_2 = ((!(__pyx_v_little_endian != 0)) != 0);
__pyx_t_1 = __pyx_t_2;
__pyx_L14_bool_binop_done:;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":304
* if not PyDataType_HASFIELDS(descr):
* t = descr.type_num
* if ((descr.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<<
* (descr.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported")
*/
__Pyx_TraceLine(304,0,__PYX_ERR(2, 304, __pyx_L1_error))
if (unlikely(__pyx_t_1)) {
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":306
* if ((descr.byteorder == c'>' and little_endian) or
* (descr.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<<
* if t == NPY_BYTE: f = "b"
* elif t == NPY_UBYTE: f = "B"
*/
__Pyx_TraceLine(306,0,__PYX_ERR(2, 306, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 306, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__PYX_ERR(2, 306, __pyx_L1_error)
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":304
* if not PyDataType_HASFIELDS(descr):
* t = descr.type_num
* if ((descr.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<<
* (descr.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported")
*/
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":307
* (descr.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported")
* if t == NPY_BYTE: f = "b" # <<<<<<<<<<<<<<
* elif t == NPY_UBYTE: f = "B"
* elif t == NPY_SHORT: f = "h"
*/
__Pyx_TraceLine(307,0,__PYX_ERR(2, 307, __pyx_L1_error))
switch (__pyx_v_t) {
case NPY_BYTE:
__pyx_v_f = ((char *)"b");
break;
case NPY_UBYTE:
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":308
* raise ValueError(u"Non-native byte order not supported")
* if t == NPY_BYTE: f = "b"
* elif t == NPY_UBYTE: f = "B" # <<<<<<<<<<<<<<
* elif t == NPY_SHORT: f = "h"
* elif t == NPY_USHORT: f = "H"
*/
__Pyx_TraceLine(308,0,__PYX_ERR(2, 308, __pyx_L1_error))
__pyx_v_f = ((char *)"B");
break;
case NPY_SHORT:
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":309
* if t == NPY_BYTE: f = "b"
* elif t == NPY_UBYTE: f = "B"
* elif t == NPY_SHORT: f = "h" # <<<<<<<<<<<<<<
* elif t == NPY_USHORT: f = "H"
* elif t == NPY_INT: f = "i"
*/
__Pyx_TraceLine(309,0,__PYX_ERR(2, 309, __pyx_L1_error))
__pyx_v_f = ((char *)"h");
break;
case NPY_USHORT:
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":310
* elif t == NPY_UBYTE: f = "B"
* elif t == NPY_SHORT: f = "h"
* elif t == NPY_USHORT: f = "H" # <<<<<<<<<<<<<<
* elif t == NPY_INT: f = "i"
* elif t == NPY_UINT: f = "I"
*/
__Pyx_TraceLine(310,0,__PYX_ERR(2, 310, __pyx_L1_error))
__pyx_v_f = ((char *)"H");
break;
case NPY_INT:
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":311
* elif t == NPY_SHORT: f = "h"
* elif t == NPY_USHORT: f = "H"
* elif t == NPY_INT: f = "i" # <<<<<<<<<<<<<<
* elif t == NPY_UINT: f = "I"
* elif t == NPY_LONG: f = "l"
*/
__Pyx_TraceLine(311,0,__PYX_ERR(2, 311, __pyx_L1_error))
__pyx_v_f = ((char *)"i");
break;
case NPY_UINT:
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":312
* elif t == NPY_USHORT: f = "H"
* elif t == NPY_INT: f = "i"
* elif t == NPY_UINT: f = "I" # <<<<<<<<<<<<<<
* elif t == NPY_LONG: f = "l"
* elif t == NPY_ULONG: f = "L"
*/
__Pyx_TraceLine(312,0,__PYX_ERR(2, 312, __pyx_L1_error))
__pyx_v_f = ((char *)"I");
break;
case NPY_LONG:
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":313
* elif t == NPY_INT: f = "i"
* elif t == NPY_UINT: f = "I"
* elif t == NPY_LONG: f = "l" # <<<<<<<<<<<<<<
* elif t == NPY_ULONG: f = "L"
* elif t == NPY_LONGLONG: f = "q"
*/
__Pyx_TraceLine(313,0,__PYX_ERR(2, 313, __pyx_L1_error))
__pyx_v_f = ((char *)"l");
break;
case NPY_ULONG:
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":314
* elif t == NPY_UINT: f = "I"
* elif t == NPY_LONG: f = "l"
* elif t == NPY_ULONG: f = "L" # <<<<<<<<<<<<<<
* elif t == NPY_LONGLONG: f = "q"
* elif t == NPY_ULONGLONG: f = "Q"
*/
__Pyx_TraceLine(314,0,__PYX_ERR(2, 314, __pyx_L1_error))
__pyx_v_f = ((char *)"L");
break;
case NPY_LONGLONG:
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":315
* elif t == NPY_LONG: f = "l"
* elif t == NPY_ULONG: f = "L"
* elif t == NPY_LONGLONG: f = "q" # <<<<<<<<<<<<<<
* elif t == NPY_ULONGLONG: f = "Q"
* elif t == NPY_FLOAT: f = "f"
*/
__Pyx_TraceLine(315,0,__PYX_ERR(2, 315, __pyx_L1_error))
__pyx_v_f = ((char *)"q");
break;
case NPY_ULONGLONG:
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":316
* elif t == NPY_ULONG: f = "L"
* elif t == NPY_LONGLONG: f = "q"
* elif t == NPY_ULONGLONG: f = "Q" # <<<<<<<<<<<<<<
* elif t == NPY_FLOAT: f = "f"
* elif t == NPY_DOUBLE: f = "d"
*/
__Pyx_TraceLine(316,0,__PYX_ERR(2, 316, __pyx_L1_error))
__pyx_v_f = ((char *)"Q");
break;
case NPY_FLOAT:
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":317
* elif t == NPY_LONGLONG: f = "q"
* elif t == NPY_ULONGLONG: f = "Q"
* elif t == NPY_FLOAT: f = "f" # <<<<<<<<<<<<<<
* elif t == NPY_DOUBLE: f = "d"
* elif t == NPY_LONGDOUBLE: f = "g"
*/
__Pyx_TraceLine(317,0,__PYX_ERR(2, 317, __pyx_L1_error))
__pyx_v_f = ((char *)"f");
break;
case NPY_DOUBLE:
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":318
* elif t == NPY_ULONGLONG: f = "Q"
* elif t == NPY_FLOAT: f = "f"
* elif t == NPY_DOUBLE: f = "d" # <<<<<<<<<<<<<<
* elif t == NPY_LONGDOUBLE: f = "g"
* elif t == NPY_CFLOAT: f = "Zf"
*/
__Pyx_TraceLine(318,0,__PYX_ERR(2, 318, __pyx_L1_error))
__pyx_v_f = ((char *)"d");
break;
case NPY_LONGDOUBLE:
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":319
* elif t == NPY_FLOAT: f = "f"
* elif t == NPY_DOUBLE: f = "d"
* elif t == NPY_LONGDOUBLE: f = "g" # <<<<<<<<<<<<<<
* elif t == NPY_CFLOAT: f = "Zf"
* elif t == NPY_CDOUBLE: f = "Zd"
*/
__Pyx_TraceLine(319,0,__PYX_ERR(2, 319, __pyx_L1_error))
__pyx_v_f = ((char *)"g");
break;
case NPY_CFLOAT:
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":320
* elif t == NPY_DOUBLE: f = "d"
* elif t == NPY_LONGDOUBLE: f = "g"
* elif t == NPY_CFLOAT: f = "Zf" # <<<<<<<<<<<<<<
* elif t == NPY_CDOUBLE: f = "Zd"
* elif t == NPY_CLONGDOUBLE: f = "Zg"
*/
__Pyx_TraceLine(320,0,__PYX_ERR(2, 320, __pyx_L1_error))
__pyx_v_f = ((char *)"Zf");
break;
case NPY_CDOUBLE:
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":321
* elif t == NPY_LONGDOUBLE: f = "g"
* elif t == NPY_CFLOAT: f = "Zf"
* elif t == NPY_CDOUBLE: f = "Zd" # <<<<<<<<<<<<<<
* elif t == NPY_CLONGDOUBLE: f = "Zg"
* elif t == NPY_OBJECT: f = "O"
*/
__Pyx_TraceLine(321,0,__PYX_ERR(2, 321, __pyx_L1_error))
__pyx_v_f = ((char *)"Zd");
break;
case NPY_CLONGDOUBLE:
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":322
* elif t == NPY_CFLOAT: f = "Zf"
* elif t == NPY_CDOUBLE: f = "Zd"
* elif t == NPY_CLONGDOUBLE: f = "Zg" # <<<<<<<<<<<<<<
* elif t == NPY_OBJECT: f = "O"
* else:
*/
__Pyx_TraceLine(322,0,__PYX_ERR(2, 322, __pyx_L1_error))
__pyx_v_f = ((char *)"Zg");
break;
case NPY_OBJECT:
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":323
* elif t == NPY_CDOUBLE: f = "Zd"
* elif t == NPY_CLONGDOUBLE: f = "Zg"
* elif t == NPY_OBJECT: f = "O" # <<<<<<<<<<<<<<
* else:
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
*/
__Pyx_TraceLine(323,0,__PYX_ERR(2, 323, __pyx_L1_error))
__pyx_v_f = ((char *)"O");
break;
default:
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":325
* elif t == NPY_OBJECT: f = "O"
* else:
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<<
* info.format = f
* return
*/
__Pyx_TraceLine(325,0,__PYX_ERR(2, 325, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 325, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_8 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_t_3); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 325, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_8);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 325, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__PYX_ERR(2, 325, __pyx_L1_error)
break;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":326
* else:
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
* info.format = f # <<<<<<<<<<<<<<
* return
* else:
*/
__Pyx_TraceLine(326,0,__PYX_ERR(2, 326, __pyx_L1_error))
__pyx_v_info->format = __pyx_v_f;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":327
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
* info.format = f
* return # <<<<<<<<<<<<<<
* else:
* info.format = <char*>PyObject_Malloc(_buffer_format_string_len)
*/
__Pyx_TraceLine(327,0,__PYX_ERR(2, 327, __pyx_L1_error))
__pyx_r = 0;
goto __pyx_L0;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":302
* info.obj = self
*
* if not PyDataType_HASFIELDS(descr): # <<<<<<<<<<<<<<
* t = descr.type_num
* if ((descr.byteorder == c'>' and little_endian) or
*/
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":329
* return
* else:
* info.format = <char*>PyObject_Malloc(_buffer_format_string_len) # <<<<<<<<<<<<<<
* info.format[0] = c'^' # Native data types, manual alignment
* offset = 0
*/
__Pyx_TraceLine(329,0,__PYX_ERR(2, 329, __pyx_L1_error))
/*else*/ {
__pyx_v_info->format = ((char *)PyObject_Malloc(0xFF));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":330
* else:
* info.format = <char*>PyObject_Malloc(_buffer_format_string_len)
* info.format[0] = c'^' # Native data types, manual alignment # <<<<<<<<<<<<<<
* offset = 0
* f = _util_dtypestring(descr, info.format + 1,
*/
__Pyx_TraceLine(330,0,__PYX_ERR(2, 330, __pyx_L1_error))
(__pyx_v_info->format[0]) = '^';
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":331
* info.format = <char*>PyObject_Malloc(_buffer_format_string_len)
* info.format[0] = c'^' # Native data types, manual alignment
* offset = 0 # <<<<<<<<<<<<<<
* f = _util_dtypestring(descr, info.format + 1,
* info.format + _buffer_format_string_len,
*/
__Pyx_TraceLine(331,0,__PYX_ERR(2, 331, __pyx_L1_error))
__pyx_v_offset = 0;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":332
* info.format[0] = c'^' # Native data types, manual alignment
* offset = 0
* f = _util_dtypestring(descr, info.format + 1, # <<<<<<<<<<<<<<
* info.format + _buffer_format_string_len,
* &offset)
*/
__Pyx_TraceLine(332,0,__PYX_ERR(2, 332, __pyx_L1_error))
__pyx_t_9 = __pyx_f_5numpy__util_dtypestring(__pyx_v_descr, (__pyx_v_info->format + 1), (__pyx_v_info->format + 0xFF), (&__pyx_v_offset)); if (unlikely(__pyx_t_9 == ((char *)NULL))) __PYX_ERR(2, 332, __pyx_L1_error)
__pyx_v_f = __pyx_t_9;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":335
* info.format + _buffer_format_string_len,
* &offset)
* f[0] = c'\0' # Terminate format string # <<<<<<<<<<<<<<
*
* def __releasebuffer__(ndarray self, Py_buffer* info):
*/
__Pyx_TraceLine(335,0,__PYX_ERR(2, 335, __pyx_L1_error))
(__pyx_v_f[0]) = '\x00';
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":258
* # experimental exception made for __getbuffer__ and __releasebuffer__
* # -- the details of this may change.
* def __getbuffer__(ndarray self, Py_buffer* info, int flags): # <<<<<<<<<<<<<<
* # This implementation of getbuffer is geared towards Cython
* # requirements, and does not yet fulfill the PEP.
*/
/* function exit code */
__pyx_r = 0;
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_8);
__Pyx_AddTraceback("numpy.ndarray.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = -1;
if (__pyx_v_info->obj != NULL) {
__Pyx_GOTREF(__pyx_v_info->obj);
__Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0;
}
goto __pyx_L2;
__pyx_L0:;
if (__pyx_v_info->obj == Py_None) {
__Pyx_GOTREF(__pyx_v_info->obj);
__Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = 0;
}
__pyx_L2:;
__Pyx_XDECREF((PyObject *)__pyx_v_descr);
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":337
* f[0] = c'\0' # Terminate format string
*
* def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<<
* if PyArray_HASFIELDS(self):
* PyObject_Free(info.format)
*/
/* Python wrapper */
static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/
static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) {
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0);
__pyx_pf_5numpy_7ndarray_2__releasebuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info));
/* function exit code */
__Pyx_RefNannyFinishContext();
}
static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info) {
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
int __pyx_t_1;
__Pyx_RefNannySetupContext("__releasebuffer__", 0);
__Pyx_TraceCall("__releasebuffer__", __pyx_f[2], 337, 0, __PYX_ERR(2, 337, __pyx_L1_error));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":338
*
* def __releasebuffer__(ndarray self, Py_buffer* info):
* if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<<
* PyObject_Free(info.format)
* if sizeof(npy_intp) != sizeof(Py_ssize_t):
*/
__Pyx_TraceLine(338,0,__PYX_ERR(2, 338, __pyx_L1_error))
__pyx_t_1 = (PyArray_HASFIELDS(__pyx_v_self) != 0);
if (__pyx_t_1) {
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":339
* def __releasebuffer__(ndarray self, Py_buffer* info):
* if PyArray_HASFIELDS(self):
* PyObject_Free(info.format) # <<<<<<<<<<<<<<
* if sizeof(npy_intp) != sizeof(Py_ssize_t):
* PyObject_Free(info.strides)
*/
__Pyx_TraceLine(339,0,__PYX_ERR(2, 339, __pyx_L1_error))
PyObject_Free(__pyx_v_info->format);
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":338
*
* def __releasebuffer__(ndarray self, Py_buffer* info):
* if PyArray_HASFIELDS(self): # <<<<<<<<<<<<<<
* PyObject_Free(info.format)
* if sizeof(npy_intp) != sizeof(Py_ssize_t):
*/
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":340
* if PyArray_HASFIELDS(self):
* PyObject_Free(info.format)
* if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<<
* PyObject_Free(info.strides)
* # info.shape was stored after info.strides in the same block
*/
__Pyx_TraceLine(340,0,__PYX_ERR(2, 340, __pyx_L1_error))
__pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0);
if (__pyx_t_1) {
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":341
* PyObject_Free(info.format)
* if sizeof(npy_intp) != sizeof(Py_ssize_t):
* PyObject_Free(info.strides) # <<<<<<<<<<<<<<
* # info.shape was stored after info.strides in the same block
*
*/
__Pyx_TraceLine(341,0,__PYX_ERR(2, 341, __pyx_L1_error))
PyObject_Free(__pyx_v_info->strides);
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":340
* if PyArray_HASFIELDS(self):
* PyObject_Free(info.format)
* if sizeof(npy_intp) != sizeof(Py_ssize_t): # <<<<<<<<<<<<<<
* PyObject_Free(info.strides)
* # info.shape was stored after info.strides in the same block
*/
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":337
* f[0] = c'\0' # Terminate format string
*
* def __releasebuffer__(ndarray self, Py_buffer* info): # <<<<<<<<<<<<<<
* if PyArray_HASFIELDS(self):
* PyObject_Free(info.format)
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("numpy.ndarray.__releasebuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":821
* ctypedef npy_cdouble complex_t
*
* cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(1, <void*>a)
*
*/
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 0);
__Pyx_TraceCall("PyArray_MultiIterNew1", __pyx_f[2], 821, 0, __PYX_ERR(2, 821, __pyx_L1_error));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":822
*
* cdef inline object PyArray_MultiIterNew1(a):
* return PyArray_MultiIterNew(1, <void*>a) # <<<<<<<<<<<<<<
*
* cdef inline object PyArray_MultiIterNew2(a, b):
*/
__Pyx_TraceLine(822,0,__PYX_ERR(2, 822, __pyx_L1_error))
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 822, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":821
* ctypedef npy_cdouble complex_t
*
* cdef inline object PyArray_MultiIterNew1(a): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(1, <void*>a)
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = 0;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":824
* return PyArray_MultiIterNew(1, <void*>a)
*
* cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
*
*/
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 0);
__Pyx_TraceCall("PyArray_MultiIterNew2", __pyx_f[2], 824, 0, __PYX_ERR(2, 824, __pyx_L1_error));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":825
*
* cdef inline object PyArray_MultiIterNew2(a, b):
* return PyArray_MultiIterNew(2, <void*>a, <void*>b) # <<<<<<<<<<<<<<
*
* cdef inline object PyArray_MultiIterNew3(a, b, c):
*/
__Pyx_TraceLine(825,0,__PYX_ERR(2, 825, __pyx_L1_error))
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 825, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":824
* return PyArray_MultiIterNew(1, <void*>a)
*
* cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = 0;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":827
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
*
* cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
*
*/
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) {
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 0);
__Pyx_TraceCall("PyArray_MultiIterNew3", __pyx_f[2], 827, 0, __PYX_ERR(2, 827, __pyx_L1_error));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":828
*
* cdef inline object PyArray_MultiIterNew3(a, b, c):
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c) # <<<<<<<<<<<<<<
*
* cdef inline object PyArray_MultiIterNew4(a, b, c, d):
*/
__Pyx_TraceLine(828,0,__PYX_ERR(2, 828, __pyx_L1_error))
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 828, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":827
* return PyArray_MultiIterNew(2, <void*>a, <void*>b)
*
* cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = 0;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":830
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
*
* cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
*
*/
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) {
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 0);
__Pyx_TraceCall("PyArray_MultiIterNew4", __pyx_f[2], 830, 0, __PYX_ERR(2, 830, __pyx_L1_error));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":831
*
* cdef inline object PyArray_MultiIterNew4(a, b, c, d):
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d) # <<<<<<<<<<<<<<
*
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
*/
__Pyx_TraceLine(831,0,__PYX_ERR(2, 831, __pyx_L1_error))
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = PyArray_MultiIterNew(4, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 831, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":830
* return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
*
* cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = 0;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":833
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
*
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
*
*/
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) {
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
__Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 0);
__Pyx_TraceCall("PyArray_MultiIterNew5", __pyx_f[2], 833, 0, __PYX_ERR(2, 833, __pyx_L1_error));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":834
*
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e) # <<<<<<<<<<<<<<
*
* cdef inline tuple PyDataType_SHAPE(dtype d):
*/
__Pyx_TraceLine(834,0,__PYX_ERR(2, 834, __pyx_L1_error))
__Pyx_XDECREF(__pyx_r);
__pyx_t_1 = PyArray_MultiIterNew(5, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d), ((void *)__pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(2, 834, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_1);
__pyx_r = __pyx_t_1;
__pyx_t_1 = 0;
goto __pyx_L0;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":833
* return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
*
* cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<<
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_AddTraceback("numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = 0;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":836
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
*
* cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<<
* if PyDataType_HASSUBARRAY(d):
* return <tuple>d.subarray.shape
*/
static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyDataType_SHAPE(PyArray_Descr *__pyx_v_d) {
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
int __pyx_t_1;
__Pyx_RefNannySetupContext("PyDataType_SHAPE", 0);
__Pyx_TraceCall("PyDataType_SHAPE", __pyx_f[2], 836, 0, __PYX_ERR(2, 836, __pyx_L1_error));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":837
*
* cdef inline tuple PyDataType_SHAPE(dtype d):
* if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<<
* return <tuple>d.subarray.shape
* else:
*/
__Pyx_TraceLine(837,0,__PYX_ERR(2, 837, __pyx_L1_error))
__pyx_t_1 = (PyDataType_HASSUBARRAY(__pyx_v_d) != 0);
if (__pyx_t_1) {
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":838
* cdef inline tuple PyDataType_SHAPE(dtype d):
* if PyDataType_HASSUBARRAY(d):
* return <tuple>d.subarray.shape # <<<<<<<<<<<<<<
* else:
* return ()
*/
__Pyx_TraceLine(838,0,__PYX_ERR(2, 838, __pyx_L1_error))
__Pyx_XDECREF(__pyx_r);
__Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
__pyx_r = ((PyObject*)__pyx_v_d->subarray->shape);
goto __pyx_L0;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":837
*
* cdef inline tuple PyDataType_SHAPE(dtype d):
* if PyDataType_HASSUBARRAY(d): # <<<<<<<<<<<<<<
* return <tuple>d.subarray.shape
* else:
*/
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":840
* return <tuple>d.subarray.shape
* else:
* return () # <<<<<<<<<<<<<<
*
* cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL:
*/
__Pyx_TraceLine(840,0,__PYX_ERR(2, 840, __pyx_L1_error))
/*else*/ {
__Pyx_XDECREF(__pyx_r);
__Pyx_INCREF(__pyx_empty_tuple);
__pyx_r = __pyx_empty_tuple;
goto __pyx_L0;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":836
* return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
*
* cdef inline tuple PyDataType_SHAPE(dtype d): # <<<<<<<<<<<<<<
* if PyDataType_HASSUBARRAY(d):
* return <tuple>d.subarray.shape
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_AddTraceback("numpy.PyDataType_SHAPE", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = 0;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":842
* return ()
*
* cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<<
* # Recursive utility function used in __getbuffer__ to get format
* # string. The new location in the format string is returned.
*/
static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx_v_descr, char *__pyx_v_f, char *__pyx_v_end, int *__pyx_v_offset) {
PyArray_Descr *__pyx_v_child = 0;
int __pyx_v_endian_detector;
int __pyx_v_little_endian;
PyObject *__pyx_v_fields = 0;
PyObject *__pyx_v_childname = NULL;
PyObject *__pyx_v_new_offset = NULL;
PyObject *__pyx_v_t = NULL;
char *__pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
Py_ssize_t __pyx_t_2;
PyObject *__pyx_t_3 = NULL;
PyObject *__pyx_t_4 = NULL;
int __pyx_t_5;
int __pyx_t_6;
int __pyx_t_7;
long __pyx_t_8;
char *__pyx_t_9;
__Pyx_RefNannySetupContext("_util_dtypestring", 0);
__Pyx_TraceCall("_util_dtypestring", __pyx_f[2], 842, 0, __PYX_ERR(2, 842, __pyx_L1_error));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":847
*
* cdef dtype child
* cdef int endian_detector = 1 # <<<<<<<<<<<<<<
* cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)
* cdef tuple fields
*/
__Pyx_TraceLine(847,0,__PYX_ERR(2, 847, __pyx_L1_error))
__pyx_v_endian_detector = 1;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":848
* cdef dtype child
* cdef int endian_detector = 1
* cdef bint little_endian = ((<char*>&endian_detector)[0] != 0) # <<<<<<<<<<<<<<
* cdef tuple fields
*
*/
__Pyx_TraceLine(848,0,__PYX_ERR(2, 848, __pyx_L1_error))
__pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0);
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":851
* cdef tuple fields
*
* for childname in descr.names: # <<<<<<<<<<<<<<
* fields = descr.fields[childname]
* child, new_offset = fields
*/
__Pyx_TraceLine(851,0,__PYX_ERR(2, 851, __pyx_L1_error))
if (unlikely(__pyx_v_descr->names == Py_None)) {
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
__PYX_ERR(2, 851, __pyx_L1_error)
}
__pyx_t_1 = __pyx_v_descr->names; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
for (;;) {
if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
__pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(2, 851, __pyx_L1_error)
#else
__pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 851, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
#endif
__Pyx_XDECREF_SET(__pyx_v_childname, __pyx_t_3);
__pyx_t_3 = 0;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":852
*
* for childname in descr.names:
* fields = descr.fields[childname] # <<<<<<<<<<<<<<
* child, new_offset = fields
*
*/
__Pyx_TraceLine(852,0,__PYX_ERR(2, 852, __pyx_L1_error))
if (unlikely(__pyx_v_descr->fields == Py_None)) {
PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
__PYX_ERR(2, 852, __pyx_L1_error)
}
__pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 852, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
if (!(likely(PyTuple_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_t_3)->tp_name), 0))) __PYX_ERR(2, 852, __pyx_L1_error)
__Pyx_XDECREF_SET(__pyx_v_fields, ((PyObject*)__pyx_t_3));
__pyx_t_3 = 0;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":853
* for childname in descr.names:
* fields = descr.fields[childname]
* child, new_offset = fields # <<<<<<<<<<<<<<
*
* if (end - f) - <int>(new_offset - offset[0]) < 15:
*/
__Pyx_TraceLine(853,0,__PYX_ERR(2, 853, __pyx_L1_error))
if (likely(__pyx_v_fields != Py_None)) {
PyObject* sequence = __pyx_v_fields;
Py_ssize_t size = __Pyx_PySequence_SIZE(sequence);
if (unlikely(size != 2)) {
if (size > 2) __Pyx_RaiseTooManyValuesError(2);
else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
__PYX_ERR(2, 853, __pyx_L1_error)
}
#if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
__pyx_t_3 = PyTuple_GET_ITEM(sequence, 0);
__pyx_t_4 = PyTuple_GET_ITEM(sequence, 1);
__Pyx_INCREF(__pyx_t_3);
__Pyx_INCREF(__pyx_t_4);
#else
__pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 853, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 853, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
#endif
} else {
__Pyx_RaiseNoneNotIterableError(); __PYX_ERR(2, 853, __pyx_L1_error)
}
if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_dtype))))) __PYX_ERR(2, 853, __pyx_L1_error)
__Pyx_XDECREF_SET(__pyx_v_child, ((PyArray_Descr *)__pyx_t_3));
__pyx_t_3 = 0;
__Pyx_XDECREF_SET(__pyx_v_new_offset, __pyx_t_4);
__pyx_t_4 = 0;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":855
* child, new_offset = fields
*
* if (end - f) - <int>(new_offset - offset[0]) < 15: # <<<<<<<<<<<<<<
* raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
*
*/
__Pyx_TraceLine(855,0,__PYX_ERR(2, 855, __pyx_L1_error))
__pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 855, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyNumber_Subtract(__pyx_v_new_offset, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 855, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(2, 855, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = ((((__pyx_v_end - __pyx_v_f) - ((int)__pyx_t_5)) < 15) != 0);
if (unlikely(__pyx_t_6)) {
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":856
*
* if (end - f) - <int>(new_offset - offset[0]) < 15:
* raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd") # <<<<<<<<<<<<<<
*
* if ((child.byteorder == c'>' and little_endian) or
*/
__Pyx_TraceLine(856,0,__PYX_ERR(2, 856, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 856, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__PYX_ERR(2, 856, __pyx_L1_error)
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":855
* child, new_offset = fields
*
* if (end - f) - <int>(new_offset - offset[0]) < 15: # <<<<<<<<<<<<<<
* raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
*
*/
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":858
* raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
*
* if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<<
* (child.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported")
*/
__Pyx_TraceLine(858,0,__PYX_ERR(2, 858, __pyx_L1_error))
__pyx_t_7 = ((__pyx_v_child->byteorder == '>') != 0);
if (!__pyx_t_7) {
goto __pyx_L8_next_or;
} else {
}
__pyx_t_7 = (__pyx_v_little_endian != 0);
if (!__pyx_t_7) {
} else {
__pyx_t_6 = __pyx_t_7;
goto __pyx_L7_bool_binop_done;
}
__pyx_L8_next_or:;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":859
*
* if ((child.byteorder == c'>' and little_endian) or
* (child.byteorder == c'<' and not little_endian)): # <<<<<<<<<<<<<<
* raise ValueError(u"Non-native byte order not supported")
* # One could encode it in the format string and have Cython
*/
__Pyx_TraceLine(859,0,__PYX_ERR(2, 859, __pyx_L1_error))
__pyx_t_7 = ((__pyx_v_child->byteorder == '<') != 0);
if (__pyx_t_7) {
} else {
__pyx_t_6 = __pyx_t_7;
goto __pyx_L7_bool_binop_done;
}
__pyx_t_7 = ((!(__pyx_v_little_endian != 0)) != 0);
__pyx_t_6 = __pyx_t_7;
__pyx_L7_bool_binop_done:;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":858
* raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
*
* if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<<
* (child.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported")
*/
__Pyx_TraceLine(858,0,__PYX_ERR(2, 858, __pyx_L1_error))
if (unlikely(__pyx_t_6)) {
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":860
* if ((child.byteorder == c'>' and little_endian) or
* (child.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported") # <<<<<<<<<<<<<<
* # One could encode it in the format string and have Cython
* # complain instead, BUT: < and > in format strings also imply
*/
__Pyx_TraceLine(860,0,__PYX_ERR(2, 860, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 860, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__Pyx_Raise(__pyx_t_3, 0, 0, 0);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__PYX_ERR(2, 860, __pyx_L1_error)
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":858
* raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
*
* if ((child.byteorder == c'>' and little_endian) or # <<<<<<<<<<<<<<
* (child.byteorder == c'<' and not little_endian)):
* raise ValueError(u"Non-native byte order not supported")
*/
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":870
*
* # Output padding bytes
* while offset[0] < new_offset: # <<<<<<<<<<<<<<
* f[0] = 120 # "x"; pad byte
* f += 1
*/
__Pyx_TraceLine(870,0,__PYX_ERR(2, 870, __pyx_L1_error))
while (1) {
__pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 870, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_v_new_offset, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 870, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 870, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (!__pyx_t_6) break;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":871
* # Output padding bytes
* while offset[0] < new_offset:
* f[0] = 120 # "x"; pad byte # <<<<<<<<<<<<<<
* f += 1
* offset[0] += 1
*/
__Pyx_TraceLine(871,0,__PYX_ERR(2, 871, __pyx_L1_error))
(__pyx_v_f[0]) = 0x78;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":872
* while offset[0] < new_offset:
* f[0] = 120 # "x"; pad byte
* f += 1 # <<<<<<<<<<<<<<
* offset[0] += 1
*
*/
__Pyx_TraceLine(872,0,__PYX_ERR(2, 872, __pyx_L1_error))
__pyx_v_f = (__pyx_v_f + 1);
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":873
* f[0] = 120 # "x"; pad byte
* f += 1
* offset[0] += 1 # <<<<<<<<<<<<<<
*
* offset[0] += child.itemsize
*/
__Pyx_TraceLine(873,0,__PYX_ERR(2, 873, __pyx_L1_error))
__pyx_t_8 = 0;
(__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + 1);
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":875
* offset[0] += 1
*
* offset[0] += child.itemsize # <<<<<<<<<<<<<<
*
* if not PyDataType_HASFIELDS(child):
*/
__Pyx_TraceLine(875,0,__PYX_ERR(2, 875, __pyx_L1_error))
__pyx_t_8 = 0;
(__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + __pyx_v_child->elsize);
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":877
* offset[0] += child.itemsize
*
* if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<<
* t = child.type_num
* if end - f < 5:
*/
__Pyx_TraceLine(877,0,__PYX_ERR(2, 877, __pyx_L1_error))
__pyx_t_6 = ((!(PyDataType_HASFIELDS(__pyx_v_child) != 0)) != 0);
if (__pyx_t_6) {
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":878
*
* if not PyDataType_HASFIELDS(child):
* t = child.type_num # <<<<<<<<<<<<<<
* if end - f < 5:
* raise RuntimeError(u"Format string allocated too short.")
*/
__Pyx_TraceLine(878,0,__PYX_ERR(2, 878, __pyx_L1_error))
__pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_child->type_num); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 878, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_4);
__pyx_t_4 = 0;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":879
* if not PyDataType_HASFIELDS(child):
* t = child.type_num
* if end - f < 5: # <<<<<<<<<<<<<<
* raise RuntimeError(u"Format string allocated too short.")
*
*/
__Pyx_TraceLine(879,0,__PYX_ERR(2, 879, __pyx_L1_error))
__pyx_t_6 = (((__pyx_v_end - __pyx_v_f) < 5) != 0);
if (unlikely(__pyx_t_6)) {
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":880
* t = child.type_num
* if end - f < 5:
* raise RuntimeError(u"Format string allocated too short.") # <<<<<<<<<<<<<<
*
* # Until ticket #99 is fixed, use integers to avoid warnings
*/
__Pyx_TraceLine(880,0,__PYX_ERR(2, 880, __pyx_L1_error))
__pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 880, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_Raise(__pyx_t_4, 0, 0, 0);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__PYX_ERR(2, 880, __pyx_L1_error)
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":879
* if not PyDataType_HASFIELDS(child):
* t = child.type_num
* if end - f < 5: # <<<<<<<<<<<<<<
* raise RuntimeError(u"Format string allocated too short.")
*
*/
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":883
*
* # Until ticket #99 is fixed, use integers to avoid warnings
* if t == NPY_BYTE: f[0] = 98 #"b" # <<<<<<<<<<<<<<
* elif t == NPY_UBYTE: f[0] = 66 #"B"
* elif t == NPY_SHORT: f[0] = 104 #"h"
*/
__Pyx_TraceLine(883,0,__PYX_ERR(2, 883, __pyx_L1_error))
__pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_BYTE); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 883, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 883, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 883, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 98;
goto __pyx_L15;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":884
* # Until ticket #99 is fixed, use integers to avoid warnings
* if t == NPY_BYTE: f[0] = 98 #"b"
* elif t == NPY_UBYTE: f[0] = 66 #"B" # <<<<<<<<<<<<<<
* elif t == NPY_SHORT: f[0] = 104 #"h"
* elif t == NPY_USHORT: f[0] = 72 #"H"
*/
__Pyx_TraceLine(884,0,__PYX_ERR(2, 884, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UBYTE); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 884, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 884, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 884, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 66;
goto __pyx_L15;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":885
* if t == NPY_BYTE: f[0] = 98 #"b"
* elif t == NPY_UBYTE: f[0] = 66 #"B"
* elif t == NPY_SHORT: f[0] = 104 #"h" # <<<<<<<<<<<<<<
* elif t == NPY_USHORT: f[0] = 72 #"H"
* elif t == NPY_INT: f[0] = 105 #"i"
*/
__Pyx_TraceLine(885,0,__PYX_ERR(2, 885, __pyx_L1_error))
__pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_SHORT); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 885, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 885, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 885, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 0x68;
goto __pyx_L15;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":886
* elif t == NPY_UBYTE: f[0] = 66 #"B"
* elif t == NPY_SHORT: f[0] = 104 #"h"
* elif t == NPY_USHORT: f[0] = 72 #"H" # <<<<<<<<<<<<<<
* elif t == NPY_INT: f[0] = 105 #"i"
* elif t == NPY_UINT: f[0] = 73 #"I"
*/
__Pyx_TraceLine(886,0,__PYX_ERR(2, 886, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_USHORT); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 886, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 886, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 886, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 72;
goto __pyx_L15;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":887
* elif t == NPY_SHORT: f[0] = 104 #"h"
* elif t == NPY_USHORT: f[0] = 72 #"H"
* elif t == NPY_INT: f[0] = 105 #"i" # <<<<<<<<<<<<<<
* elif t == NPY_UINT: f[0] = 73 #"I"
* elif t == NPY_LONG: f[0] = 108 #"l"
*/
__Pyx_TraceLine(887,0,__PYX_ERR(2, 887, __pyx_L1_error))
__pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_INT); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 887, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 887, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 887, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 0x69;
goto __pyx_L15;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":888
* elif t == NPY_USHORT: f[0] = 72 #"H"
* elif t == NPY_INT: f[0] = 105 #"i"
* elif t == NPY_UINT: f[0] = 73 #"I" # <<<<<<<<<<<<<<
* elif t == NPY_LONG: f[0] = 108 #"l"
* elif t == NPY_ULONG: f[0] = 76 #"L"
*/
__Pyx_TraceLine(888,0,__PYX_ERR(2, 888, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 888, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 888, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 888, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 73;
goto __pyx_L15;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":889
* elif t == NPY_INT: f[0] = 105 #"i"
* elif t == NPY_UINT: f[0] = 73 #"I"
* elif t == NPY_LONG: f[0] = 108 #"l" # <<<<<<<<<<<<<<
* elif t == NPY_ULONG: f[0] = 76 #"L"
* elif t == NPY_LONGLONG: f[0] = 113 #"q"
*/
__Pyx_TraceLine(889,0,__PYX_ERR(2, 889, __pyx_L1_error))
__pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 889, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 889, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 889, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 0x6C;
goto __pyx_L15;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":890
* elif t == NPY_UINT: f[0] = 73 #"I"
* elif t == NPY_LONG: f[0] = 108 #"l"
* elif t == NPY_ULONG: f[0] = 76 #"L" # <<<<<<<<<<<<<<
* elif t == NPY_LONGLONG: f[0] = 113 #"q"
* elif t == NPY_ULONGLONG: f[0] = 81 #"Q"
*/
__Pyx_TraceLine(890,0,__PYX_ERR(2, 890, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 890, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 890, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 890, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 76;
goto __pyx_L15;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":891
* elif t == NPY_LONG: f[0] = 108 #"l"
* elif t == NPY_ULONG: f[0] = 76 #"L"
* elif t == NPY_LONGLONG: f[0] = 113 #"q" # <<<<<<<<<<<<<<
* elif t == NPY_ULONGLONG: f[0] = 81 #"Q"
* elif t == NPY_FLOAT: f[0] = 102 #"f"
*/
__Pyx_TraceLine(891,0,__PYX_ERR(2, 891, __pyx_L1_error))
__pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGLONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 891, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 891, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 891, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 0x71;
goto __pyx_L15;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":892
* elif t == NPY_ULONG: f[0] = 76 #"L"
* elif t == NPY_LONGLONG: f[0] = 113 #"q"
* elif t == NPY_ULONGLONG: f[0] = 81 #"Q" # <<<<<<<<<<<<<<
* elif t == NPY_FLOAT: f[0] = 102 #"f"
* elif t == NPY_DOUBLE: f[0] = 100 #"d"
*/
__Pyx_TraceLine(892,0,__PYX_ERR(2, 892, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONGLONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 892, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 892, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 892, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 81;
goto __pyx_L15;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":893
* elif t == NPY_LONGLONG: f[0] = 113 #"q"
* elif t == NPY_ULONGLONG: f[0] = 81 #"Q"
* elif t == NPY_FLOAT: f[0] = 102 #"f" # <<<<<<<<<<<<<<
* elif t == NPY_DOUBLE: f[0] = 100 #"d"
* elif t == NPY_LONGDOUBLE: f[0] = 103 #"g"
*/
__Pyx_TraceLine(893,0,__PYX_ERR(2, 893, __pyx_L1_error))
__pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_FLOAT); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 893, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 893, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 893, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 0x66;
goto __pyx_L15;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":894
* elif t == NPY_ULONGLONG: f[0] = 81 #"Q"
* elif t == NPY_FLOAT: f[0] = 102 #"f"
* elif t == NPY_DOUBLE: f[0] = 100 #"d" # <<<<<<<<<<<<<<
* elif t == NPY_LONGDOUBLE: f[0] = 103 #"g"
* elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf
*/
__Pyx_TraceLine(894,0,__PYX_ERR(2, 894, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_DOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 894, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 894, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 894, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 0x64;
goto __pyx_L15;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":895
* elif t == NPY_FLOAT: f[0] = 102 #"f"
* elif t == NPY_DOUBLE: f[0] = 100 #"d"
* elif t == NPY_LONGDOUBLE: f[0] = 103 #"g" # <<<<<<<<<<<<<<
* elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf
* elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd
*/
__Pyx_TraceLine(895,0,__PYX_ERR(2, 895, __pyx_L1_error))
__pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGDOUBLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 895, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 895, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 895, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 0x67;
goto __pyx_L15;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":896
* elif t == NPY_DOUBLE: f[0] = 100 #"d"
* elif t == NPY_LONGDOUBLE: f[0] = 103 #"g"
* elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf # <<<<<<<<<<<<<<
* elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd
* elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg
*/
__Pyx_TraceLine(896,0,__PYX_ERR(2, 896, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CFLOAT); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 896, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 896, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 896, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 90;
(__pyx_v_f[1]) = 0x66;
__pyx_v_f = (__pyx_v_f + 1);
goto __pyx_L15;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":897
* elif t == NPY_LONGDOUBLE: f[0] = 103 #"g"
* elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf
* elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd # <<<<<<<<<<<<<<
* elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg
* elif t == NPY_OBJECT: f[0] = 79 #"O"
*/
__Pyx_TraceLine(897,0,__PYX_ERR(2, 897, __pyx_L1_error))
__pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CDOUBLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 897, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 897, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 897, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 90;
(__pyx_v_f[1]) = 0x64;
__pyx_v_f = (__pyx_v_f + 1);
goto __pyx_L15;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":898
* elif t == NPY_CFLOAT: f[0] = 90; f[1] = 102; f += 1 # Zf
* elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd
* elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg # <<<<<<<<<<<<<<
* elif t == NPY_OBJECT: f[0] = 79 #"O"
* else:
*/
__Pyx_TraceLine(898,0,__PYX_ERR(2, 898, __pyx_L1_error))
__pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CLONGDOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 898, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 898, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 898, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
if (__pyx_t_6) {
(__pyx_v_f[0]) = 90;
(__pyx_v_f[1]) = 0x67;
__pyx_v_f = (__pyx_v_f + 1);
goto __pyx_L15;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":899
* elif t == NPY_CDOUBLE: f[0] = 90; f[1] = 100; f += 1 # Zd
* elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg
* elif t == NPY_OBJECT: f[0] = 79 #"O" # <<<<<<<<<<<<<<
* else:
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
*/
__Pyx_TraceLine(899,0,__PYX_ERR(2, 899, __pyx_L1_error))
__pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_OBJECT); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 899, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 899, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(2, 899, __pyx_L1_error)
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
if (likely(__pyx_t_6)) {
(__pyx_v_f[0]) = 79;
goto __pyx_L15;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":901
* elif t == NPY_OBJECT: f[0] = 79 #"O"
* else:
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t) # <<<<<<<<<<<<<<
* f += 1
* else:
*/
__Pyx_TraceLine(901,0,__PYX_ERR(2, 901, __pyx_L1_error))
/*else*/ {
__pyx_t_3 = __Pyx_PyUnicode_FormatSafe(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(2, 901, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_3);
__pyx_t_4 = __Pyx_PyObject_CallOneArg(__pyx_builtin_ValueError, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(2, 901, __pyx_L1_error)
__Pyx_GOTREF(__pyx_t_4);
__Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
__Pyx_Raise(__pyx_t_4, 0, 0, 0);
__Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
__PYX_ERR(2, 901, __pyx_L1_error)
}
__pyx_L15:;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":902
* else:
* raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
* f += 1 # <<<<<<<<<<<<<<
* else:
* # Cython ignores struct boundary information ("T{...}"),
*/
__Pyx_TraceLine(902,0,__PYX_ERR(2, 902, __pyx_L1_error))
__pyx_v_f = (__pyx_v_f + 1);
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":877
* offset[0] += child.itemsize
*
* if not PyDataType_HASFIELDS(child): # <<<<<<<<<<<<<<
* t = child.type_num
* if end - f < 5:
*/
goto __pyx_L13;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":906
* # Cython ignores struct boundary information ("T{...}"),
* # so don't output it
* f = _util_dtypestring(child, f, end, offset) # <<<<<<<<<<<<<<
* return f
*
*/
__Pyx_TraceLine(906,0,__PYX_ERR(2, 906, __pyx_L1_error))
/*else*/ {
__pyx_t_9 = __pyx_f_5numpy__util_dtypestring(__pyx_v_child, __pyx_v_f, __pyx_v_end, __pyx_v_offset); if (unlikely(__pyx_t_9 == ((char *)NULL))) __PYX_ERR(2, 906, __pyx_L1_error)
__pyx_v_f = __pyx_t_9;
}
__pyx_L13:;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":851
* cdef tuple fields
*
* for childname in descr.names: # <<<<<<<<<<<<<<
* fields = descr.fields[childname]
* child, new_offset = fields
*/
__Pyx_TraceLine(851,0,__PYX_ERR(2, 851, __pyx_L1_error))
}
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":907
* # so don't output it
* f = _util_dtypestring(child, f, end, offset)
* return f # <<<<<<<<<<<<<<
*
*
*/
__Pyx_TraceLine(907,0,__PYX_ERR(2, 907, __pyx_L1_error))
__pyx_r = __pyx_v_f;
goto __pyx_L0;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":842
* return ()
*
* cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL: # <<<<<<<<<<<<<<
* # Recursive utility function used in __getbuffer__ to get format
* # string. The new location in the format string is returned.
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_1);
__Pyx_XDECREF(__pyx_t_3);
__Pyx_XDECREF(__pyx_t_4);
__Pyx_AddTraceback("numpy._util_dtypestring", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = NULL;
__pyx_L0:;
__Pyx_XDECREF((PyObject *)__pyx_v_child);
__Pyx_XDECREF(__pyx_v_fields);
__Pyx_XDECREF(__pyx_v_childname);
__Pyx_XDECREF(__pyx_v_new_offset);
__Pyx_XDECREF(__pyx_v_t);
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1022
* int _import_umath() except -1
*
* cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<<
* Py_INCREF(base) # important to do this before stealing the reference below!
* PyArray_SetBaseObject(arr, base)
*/
static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) {
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
__Pyx_RefNannySetupContext("set_array_base", 0);
__Pyx_TraceCall("set_array_base", __pyx_f[2], 1022, 0, __PYX_ERR(2, 1022, __pyx_L1_error));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1023
*
* cdef inline void set_array_base(ndarray arr, object base):
* Py_INCREF(base) # important to do this before stealing the reference below! # <<<<<<<<<<<<<<
* PyArray_SetBaseObject(arr, base)
*
*/
__Pyx_TraceLine(1023,0,__PYX_ERR(2, 1023, __pyx_L1_error))
Py_INCREF(__pyx_v_base);
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1024
* cdef inline void set_array_base(ndarray arr, object base):
* Py_INCREF(base) # important to do this before stealing the reference below!
* PyArray_SetBaseObject(arr, base) # <<<<<<<<<<<<<<
*
* cdef inline object get_array_base(ndarray arr):
*/
__Pyx_TraceLine(1024,0,__PYX_ERR(2, 1024, __pyx_L1_error))
(void)(PyArray_SetBaseObject(__pyx_v_arr, __pyx_v_base));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1022
* int _import_umath() except -1
*
* cdef inline void set_array_base(ndarray arr, object base): # <<<<<<<<<<<<<<
* Py_INCREF(base) # important to do this before stealing the reference below!
* PyArray_SetBaseObject(arr, base)
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("numpy.set_array_base", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 0);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1026
* PyArray_SetBaseObject(arr, base)
*
* cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
* base = PyArray_BASE(arr)
* if base is NULL:
*/
static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) {
PyObject *__pyx_v_base;
PyObject *__pyx_r = NULL;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
int __pyx_t_1;
__Pyx_RefNannySetupContext("get_array_base", 0);
__Pyx_TraceCall("get_array_base", __pyx_f[2], 1026, 0, __PYX_ERR(2, 1026, __pyx_L1_error));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1027
*
* cdef inline object get_array_base(ndarray arr):
* base = PyArray_BASE(arr) # <<<<<<<<<<<<<<
* if base is NULL:
* return None
*/
__Pyx_TraceLine(1027,0,__PYX_ERR(2, 1027, __pyx_L1_error))
__pyx_v_base = PyArray_BASE(__pyx_v_arr);
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1028
* cdef inline object get_array_base(ndarray arr):
* base = PyArray_BASE(arr)
* if base is NULL: # <<<<<<<<<<<<<<
* return None
* return <object>base
*/
__Pyx_TraceLine(1028,0,__PYX_ERR(2, 1028, __pyx_L1_error))
__pyx_t_1 = ((__pyx_v_base == NULL) != 0);
if (__pyx_t_1) {
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1029
* base = PyArray_BASE(arr)
* if base is NULL:
* return None # <<<<<<<<<<<<<<
* return <object>base
*
*/
__Pyx_TraceLine(1029,0,__PYX_ERR(2, 1029, __pyx_L1_error))
__Pyx_XDECREF(__pyx_r);
__pyx_r = Py_None; __Pyx_INCREF(Py_None);
goto __pyx_L0;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1028
* cdef inline object get_array_base(ndarray arr):
* base = PyArray_BASE(arr)
* if base is NULL: # <<<<<<<<<<<<<<
* return None
* return <object>base
*/
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1030
* if base is NULL:
* return None
* return <object>base # <<<<<<<<<<<<<<
*
* # Versions of the import_* functions which are more suitable for
*/
__Pyx_TraceLine(1030,0,__PYX_ERR(2, 1030, __pyx_L1_error))
__Pyx_XDECREF(__pyx_r);
__Pyx_INCREF(((PyObject *)__pyx_v_base));
__pyx_r = ((PyObject *)__pyx_v_base);
goto __pyx_L0;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1026
* PyArray_SetBaseObject(arr, base)
*
* cdef inline object get_array_base(ndarray arr): # <<<<<<<<<<<<<<
* base = PyArray_BASE(arr)
* if base is NULL:
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_AddTraceback("numpy.get_array_base", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = 0;
__pyx_L0:;
__Pyx_XGIVEREF(__pyx_r);
__Pyx_TraceReturn(__pyx_r, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1034
* # Versions of the import_* functions which are more suitable for
* # Cython code.
* cdef inline int import_array() except -1: # <<<<<<<<<<<<<<
* try:
* _import_array()
*/
static CYTHON_INLINE int __pyx_f_5numpy_import_array(void) {
int __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
int __pyx_t_4;
PyObject *__pyx_t_5 = NULL;
PyObject *__pyx_t_6 = NULL;
PyObject *__pyx_t_7 = NULL;
PyObject *__pyx_t_8 = NULL;
__Pyx_RefNannySetupContext("import_array", 0);
__Pyx_TraceCall("import_array", __pyx_f[2], 1034, 0, __PYX_ERR(2, 1034, __pyx_L1_error));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1035
* # Cython code.
* cdef inline int import_array() except -1:
* try: # <<<<<<<<<<<<<<
* _import_array()
* except Exception:
*/
__Pyx_TraceLine(1035,0,__PYX_ERR(2, 1035, __pyx_L1_error))
{
__Pyx_PyThreadState_declare
__Pyx_PyThreadState_assign
__Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
__Pyx_XGOTREF(__pyx_t_1);
__Pyx_XGOTREF(__pyx_t_2);
__Pyx_XGOTREF(__pyx_t_3);
/*try:*/ {
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1036
* cdef inline int import_array() except -1:
* try:
* _import_array() # <<<<<<<<<<<<<<
* except Exception:
* raise ImportError("numpy.core.multiarray failed to import")
*/
__Pyx_TraceLine(1036,0,__PYX_ERR(2, 1036, __pyx_L3_error))
__pyx_t_4 = _import_array(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1036, __pyx_L3_error)
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1035
* # Cython code.
* cdef inline int import_array() except -1:
* try: # <<<<<<<<<<<<<<
* _import_array()
* except Exception:
*/
}
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
goto __pyx_L8_try_end;
__pyx_L3_error:;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1037
* try:
* _import_array()
* except Exception: # <<<<<<<<<<<<<<
* raise ImportError("numpy.core.multiarray failed to import")
*
*/
__Pyx_TraceLine(1037,0,__PYX_ERR(2, 1037, __pyx_L5_except_error))
__pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
if (__pyx_t_4) {
__Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1037, __pyx_L5_except_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_GOTREF(__pyx_t_6);
__Pyx_GOTREF(__pyx_t_7);
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1038
* _import_array()
* except Exception:
* raise ImportError("numpy.core.multiarray failed to import") # <<<<<<<<<<<<<<
*
* cdef inline int import_umath() except -1:
*/
__Pyx_TraceLine(1038,0,__PYX_ERR(2, 1038, __pyx_L5_except_error))
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1038, __pyx_L5_except_error)
__Pyx_GOTREF(__pyx_t_8);
__Pyx_Raise(__pyx_t_8, 0, 0, 0);
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
__PYX_ERR(2, 1038, __pyx_L5_except_error)
}
goto __pyx_L5_except_error;
__pyx_L5_except_error:;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1035
* # Cython code.
* cdef inline int import_array() except -1:
* try: # <<<<<<<<<<<<<<
* _import_array()
* except Exception:
*/
__Pyx_XGIVEREF(__pyx_t_1);
__Pyx_XGIVEREF(__pyx_t_2);
__Pyx_XGIVEREF(__pyx_t_3);
__Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
goto __pyx_L1_error;
__pyx_L8_try_end:;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1034
* # Versions of the import_* functions which are more suitable for
* # Cython code.
* cdef inline int import_array() except -1: # <<<<<<<<<<<<<<
* try:
* _import_array()
*/
/* function exit code */
__pyx_r = 0;
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_5);
__Pyx_XDECREF(__pyx_t_6);
__Pyx_XDECREF(__pyx_t_7);
__Pyx_XDECREF(__pyx_t_8);
__Pyx_AddTraceback("numpy.import_array", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = -1;
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1040
* raise ImportError("numpy.core.multiarray failed to import")
*
* cdef inline int import_umath() except -1: # <<<<<<<<<<<<<<
* try:
* _import_umath()
*/
static CYTHON_INLINE int __pyx_f_5numpy_import_umath(void) {
int __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
int __pyx_t_4;
PyObject *__pyx_t_5 = NULL;
PyObject *__pyx_t_6 = NULL;
PyObject *__pyx_t_7 = NULL;
PyObject *__pyx_t_8 = NULL;
__Pyx_RefNannySetupContext("import_umath", 0);
__Pyx_TraceCall("import_umath", __pyx_f[2], 1040, 0, __PYX_ERR(2, 1040, __pyx_L1_error));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1041
*
* cdef inline int import_umath() except -1:
* try: # <<<<<<<<<<<<<<
* _import_umath()
* except Exception:
*/
__Pyx_TraceLine(1041,0,__PYX_ERR(2, 1041, __pyx_L1_error))
{
__Pyx_PyThreadState_declare
__Pyx_PyThreadState_assign
__Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
__Pyx_XGOTREF(__pyx_t_1);
__Pyx_XGOTREF(__pyx_t_2);
__Pyx_XGOTREF(__pyx_t_3);
/*try:*/ {
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1042
* cdef inline int import_umath() except -1:
* try:
* _import_umath() # <<<<<<<<<<<<<<
* except Exception:
* raise ImportError("numpy.core.umath failed to import")
*/
__Pyx_TraceLine(1042,0,__PYX_ERR(2, 1042, __pyx_L3_error))
__pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1042, __pyx_L3_error)
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1041
*
* cdef inline int import_umath() except -1:
* try: # <<<<<<<<<<<<<<
* _import_umath()
* except Exception:
*/
}
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
goto __pyx_L8_try_end;
__pyx_L3_error:;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1043
* try:
* _import_umath()
* except Exception: # <<<<<<<<<<<<<<
* raise ImportError("numpy.core.umath failed to import")
*
*/
__Pyx_TraceLine(1043,0,__PYX_ERR(2, 1043, __pyx_L5_except_error))
__pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
if (__pyx_t_4) {
__Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1043, __pyx_L5_except_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_GOTREF(__pyx_t_6);
__Pyx_GOTREF(__pyx_t_7);
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1044
* _import_umath()
* except Exception:
* raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<<
*
* cdef inline int import_ufunc() except -1:
*/
__Pyx_TraceLine(1044,0,__PYX_ERR(2, 1044, __pyx_L5_except_error))
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1044, __pyx_L5_except_error)
__Pyx_GOTREF(__pyx_t_8);
__Pyx_Raise(__pyx_t_8, 0, 0, 0);
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
__PYX_ERR(2, 1044, __pyx_L5_except_error)
}
goto __pyx_L5_except_error;
__pyx_L5_except_error:;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1041
*
* cdef inline int import_umath() except -1:
* try: # <<<<<<<<<<<<<<
* _import_umath()
* except Exception:
*/
__Pyx_XGIVEREF(__pyx_t_1);
__Pyx_XGIVEREF(__pyx_t_2);
__Pyx_XGIVEREF(__pyx_t_3);
__Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
goto __pyx_L1_error;
__pyx_L8_try_end:;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1040
* raise ImportError("numpy.core.multiarray failed to import")
*
* cdef inline int import_umath() except -1: # <<<<<<<<<<<<<<
* try:
* _import_umath()
*/
/* function exit code */
__pyx_r = 0;
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_5);
__Pyx_XDECREF(__pyx_t_6);
__Pyx_XDECREF(__pyx_t_7);
__Pyx_XDECREF(__pyx_t_8);
__Pyx_AddTraceback("numpy.import_umath", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = -1;
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1046
* raise ImportError("numpy.core.umath failed to import")
*
* cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<<
* try:
* _import_umath()
*/
static CYTHON_INLINE int __pyx_f_5numpy_import_ufunc(void) {
int __pyx_r;
__Pyx_TraceDeclarations
__Pyx_RefNannyDeclarations
PyObject *__pyx_t_1 = NULL;
PyObject *__pyx_t_2 = NULL;
PyObject *__pyx_t_3 = NULL;
int __pyx_t_4;
PyObject *__pyx_t_5 = NULL;
PyObject *__pyx_t_6 = NULL;
PyObject *__pyx_t_7 = NULL;
PyObject *__pyx_t_8 = NULL;
__Pyx_RefNannySetupContext("import_ufunc", 0);
__Pyx_TraceCall("import_ufunc", __pyx_f[2], 1046, 0, __PYX_ERR(2, 1046, __pyx_L1_error));
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1047
*
* cdef inline int import_ufunc() except -1:
* try: # <<<<<<<<<<<<<<
* _import_umath()
* except Exception:
*/
__Pyx_TraceLine(1047,0,__PYX_ERR(2, 1047, __pyx_L1_error))
{
__Pyx_PyThreadState_declare
__Pyx_PyThreadState_assign
__Pyx_ExceptionSave(&__pyx_t_1, &__pyx_t_2, &__pyx_t_3);
__Pyx_XGOTREF(__pyx_t_1);
__Pyx_XGOTREF(__pyx_t_2);
__Pyx_XGOTREF(__pyx_t_3);
/*try:*/ {
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1048
* cdef inline int import_ufunc() except -1:
* try:
* _import_umath() # <<<<<<<<<<<<<<
* except Exception:
* raise ImportError("numpy.core.umath failed to import")
*/
__Pyx_TraceLine(1048,0,__PYX_ERR(2, 1048, __pyx_L3_error))
__pyx_t_4 = _import_umath(); if (unlikely(__pyx_t_4 == ((int)-1))) __PYX_ERR(2, 1048, __pyx_L3_error)
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1047
*
* cdef inline int import_ufunc() except -1:
* try: # <<<<<<<<<<<<<<
* _import_umath()
* except Exception:
*/
}
__Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0;
__Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
__Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
goto __pyx_L8_try_end;
__pyx_L3_error:;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1049
* try:
* _import_umath()
* except Exception: # <<<<<<<<<<<<<<
* raise ImportError("numpy.core.umath failed to import")
*/
__Pyx_TraceLine(1049,0,__PYX_ERR(2, 1049, __pyx_L5_except_error))
__pyx_t_4 = __Pyx_PyErr_ExceptionMatches(((PyObject *)(&((PyTypeObject*)PyExc_Exception)[0])));
if (__pyx_t_4) {
__Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
if (__Pyx_GetException(&__pyx_t_5, &__pyx_t_6, &__pyx_t_7) < 0) __PYX_ERR(2, 1049, __pyx_L5_except_error)
__Pyx_GOTREF(__pyx_t_5);
__Pyx_GOTREF(__pyx_t_6);
__Pyx_GOTREF(__pyx_t_7);
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1050
* _import_umath()
* except Exception:
* raise ImportError("numpy.core.umath failed to import") # <<<<<<<<<<<<<<
*/
__Pyx_TraceLine(1050,0,__PYX_ERR(2, 1050, __pyx_L5_except_error))
__pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_ImportError, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_8)) __PYX_ERR(2, 1050, __pyx_L5_except_error)
__Pyx_GOTREF(__pyx_t_8);
__Pyx_Raise(__pyx_t_8, 0, 0, 0);
__Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
__PYX_ERR(2, 1050, __pyx_L5_except_error)
}
goto __pyx_L5_except_error;
__pyx_L5_except_error:;
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1047
*
* cdef inline int import_ufunc() except -1:
* try: # <<<<<<<<<<<<<<
* _import_umath()
* except Exception:
*/
__Pyx_XGIVEREF(__pyx_t_1);
__Pyx_XGIVEREF(__pyx_t_2);
__Pyx_XGIVEREF(__pyx_t_3);
__Pyx_ExceptionReset(__pyx_t_1, __pyx_t_2, __pyx_t_3);
goto __pyx_L1_error;
__pyx_L8_try_end:;
}
/* "../../../../usr/local/Caskroom/miniconda/base/envs/scikit-image/lib/python3.8/site-packages/Cython/Includes/numpy/__init__.pxd":1046
* raise ImportError("numpy.core.umath failed to import")
*
* cdef inline int import_ufunc() except -1: # <<<<<<<<<<<<<<
* try:
* _import_umath()
*/
/* function exit code */
__pyx_r = 0;
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_XDECREF(__pyx_t_5);
__Pyx_XDECREF(__pyx_t_6);
__Pyx_XDECREF(__pyx_t_7);
__Pyx_XDECREF(__pyx_t_8);
__Pyx_AddTraceback("numpy.import_ufunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
__pyx_r = -1;
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 0);
__Pyx_RefNannyFinishContext();
return __pyx_r;
}
/* "skimage/_shared/interpolation.pxd":25
* from .fused_numerics cimport np_real_numeric, np_floats
*
* cdef inline Py_ssize_t round(np_floats r) nogil: # <<<<<<<<<<<<<<
* return <Py_ssize_t>(
* (r + <np_floats>0.5) if (r > <np_floats>0.0) else (r - <np_floats>0.5)
*/
static CYTHON_INLINE Py_ssize_t __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_t_5numpy_float32_t __pyx_v_r) {
Py_ssize_t __pyx_r;
__Pyx_TraceDeclarations
__pyx_t_5numpy_float32_t __pyx_t_1;
__Pyx_TraceCall("__pyx_fuse_0round", __pyx_f[3], 25, 1, __PYX_ERR(3, 25, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":27
* cdef inline Py_ssize_t round(np_floats r) nogil:
* return <Py_ssize_t>(
* (r + <np_floats>0.5) if (r > <np_floats>0.0) else (r - <np_floats>0.5) # <<<<<<<<<<<<<<
* )
*
*/
__Pyx_TraceLine(27,1,__PYX_ERR(3, 27, __pyx_L1_error))
if (((__pyx_v_r > ((__pyx_t_5numpy_float32_t)0.0)) != 0)) {
__pyx_t_1 = (__pyx_v_r + ((__pyx_t_5numpy_float32_t)0.5));
} else {
__pyx_t_1 = (__pyx_v_r - ((__pyx_t_5numpy_float32_t)0.5));
}
/* "skimage/_shared/interpolation.pxd":26
*
* cdef inline Py_ssize_t round(np_floats r) nogil:
* return <Py_ssize_t>( # <<<<<<<<<<<<<<
* (r + <np_floats>0.5) if (r > <np_floats>0.0) else (r - <np_floats>0.5)
* )
*/
__Pyx_TraceLine(26,1,__PYX_ERR(3, 26, __pyx_L1_error))
__pyx_r = ((Py_ssize_t)__pyx_t_1);
goto __pyx_L0;
/* "skimage/_shared/interpolation.pxd":25
* from .fused_numerics cimport np_real_numeric, np_floats
*
* cdef inline Py_ssize_t round(np_floats r) nogil: # <<<<<<<<<<<<<<
* return <Py_ssize_t>(
* (r + <np_floats>0.5) if (r > <np_floats>0.0) else (r - <np_floats>0.5)
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.round", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_r = 0;
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
return __pyx_r;
}
static CYTHON_INLINE Py_ssize_t __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_t_5numpy_float64_t __pyx_v_r) {
Py_ssize_t __pyx_r;
__Pyx_TraceDeclarations
__pyx_t_5numpy_float64_t __pyx_t_1;
__Pyx_TraceCall("__pyx_fuse_1round", __pyx_f[3], 25, 1, __PYX_ERR(3, 25, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":27
* cdef inline Py_ssize_t round(np_floats r) nogil:
* return <Py_ssize_t>(
* (r + <np_floats>0.5) if (r > <np_floats>0.0) else (r - <np_floats>0.5) # <<<<<<<<<<<<<<
* )
*
*/
__Pyx_TraceLine(27,1,__PYX_ERR(3, 27, __pyx_L1_error))
if (((__pyx_v_r > ((__pyx_t_5numpy_float64_t)0.0)) != 0)) {
__pyx_t_1 = (__pyx_v_r + ((__pyx_t_5numpy_float64_t)0.5));
} else {
__pyx_t_1 = (__pyx_v_r - ((__pyx_t_5numpy_float64_t)0.5));
}
/* "skimage/_shared/interpolation.pxd":26
*
* cdef inline Py_ssize_t round(np_floats r) nogil:
* return <Py_ssize_t>( # <<<<<<<<<<<<<<
* (r + <np_floats>0.5) if (r > <np_floats>0.0) else (r - <np_floats>0.5)
* )
*/
__Pyx_TraceLine(26,1,__PYX_ERR(3, 26, __pyx_L1_error))
__pyx_r = ((Py_ssize_t)__pyx_t_1);
goto __pyx_L0;
/* "skimage/_shared/interpolation.pxd":25
* from .fused_numerics cimport np_real_numeric, np_floats
*
* cdef inline Py_ssize_t round(np_floats r) nogil: # <<<<<<<<<<<<<<
* return <Py_ssize_t>(
* (r + <np_floats>0.5) if (r > <np_floats>0.0) else (r - <np_floats>0.5)
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.round", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_r = 0;
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
return __pyx_r;
}
/* "skimage/_shared/interpolation.pxd":30
* )
*
* cdef inline Py_ssize_t fmax(Py_ssize_t one, Py_ssize_t two) nogil: # <<<<<<<<<<<<<<
* return one if one > two else two
*
*/
static CYTHON_INLINE Py_ssize_t __pyx_f_7skimage_7_shared_13interpolation_fmax(Py_ssize_t __pyx_v_one, Py_ssize_t __pyx_v_two) {
Py_ssize_t __pyx_r;
__Pyx_TraceDeclarations
Py_ssize_t __pyx_t_1;
__Pyx_TraceCall("fmax", __pyx_f[3], 30, 1, __PYX_ERR(3, 30, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":31
*
* cdef inline Py_ssize_t fmax(Py_ssize_t one, Py_ssize_t two) nogil:
* return one if one > two else two # <<<<<<<<<<<<<<
*
* cdef inline Py_ssize_t fmin(Py_ssize_t one, Py_ssize_t two) nogil:
*/
__Pyx_TraceLine(31,1,__PYX_ERR(3, 31, __pyx_L1_error))
if (((__pyx_v_one > __pyx_v_two) != 0)) {
__pyx_t_1 = __pyx_v_one;
} else {
__pyx_t_1 = __pyx_v_two;
}
__pyx_r = __pyx_t_1;
goto __pyx_L0;
/* "skimage/_shared/interpolation.pxd":30
* )
*
* cdef inline Py_ssize_t fmax(Py_ssize_t one, Py_ssize_t two) nogil: # <<<<<<<<<<<<<<
* return one if one > two else two
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.fmax", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_r = 0;
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
return __pyx_r;
}
/* "skimage/_shared/interpolation.pxd":33
* return one if one > two else two
*
* cdef inline Py_ssize_t fmin(Py_ssize_t one, Py_ssize_t two) nogil: # <<<<<<<<<<<<<<
* return one if one < two else two
*
*/
static CYTHON_INLINE Py_ssize_t __pyx_f_7skimage_7_shared_13interpolation_fmin(Py_ssize_t __pyx_v_one, Py_ssize_t __pyx_v_two) {
Py_ssize_t __pyx_r;
__Pyx_TraceDeclarations
Py_ssize_t __pyx_t_1;
__Pyx_TraceCall("fmin", __pyx_f[3], 33, 1, __PYX_ERR(3, 33, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":34
*
* cdef inline Py_ssize_t fmin(Py_ssize_t one, Py_ssize_t two) nogil:
* return one if one < two else two # <<<<<<<<<<<<<<
*
* # Redefine np_real_numeric to force cross type compilation
*/
__Pyx_TraceLine(34,1,__PYX_ERR(3, 34, __pyx_L1_error))
if (((__pyx_v_one < __pyx_v_two) != 0)) {
__pyx_t_1 = __pyx_v_one;
} else {
__pyx_t_1 = __pyx_v_two;
}
__pyx_r = __pyx_t_1;
goto __pyx_L0;
/* "skimage/_shared/interpolation.pxd":33
* return one if one > two else two
*
* cdef inline Py_ssize_t fmin(Py_ssize_t one, Py_ssize_t two) nogil: # <<<<<<<<<<<<<<
* return one if one < two else two
*
*/
/* function exit code */
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.fmin", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_r = 0;
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
return __pyx_r;
}
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
static CYTHON_INLINE void __pyx_fuse_0_0_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_0_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_0_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_0_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_0_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_0_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_0_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_0_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_0_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_0_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_1_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_1_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_1_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_1_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_1_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_1_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_1_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_1_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_1_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_1_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_1_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_1_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_1_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_1_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_1_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_1_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_1_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_1_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_1_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_1_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_0_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_0_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_0_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_0_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_0_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_0_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_0_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_0_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_0_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_0_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_0_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_0_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_0_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_0_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_0_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_0_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_0_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_0_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_0_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_0_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_1_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_1_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_1_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_1_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_1_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_1_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_1_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_1_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_1_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_1_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_1_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_1_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_1_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_1_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_1_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_1_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_1_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_1_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_1_1_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint16_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_1_1_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_0_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_0_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_0_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_0_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_0_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_0_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_0_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_0_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_0_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_0_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_0_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_0_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_0_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_0_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_0_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_0_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_0_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_0_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_0_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_0_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_1_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_1_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_1_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_1_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_1_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_1_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_1_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_1_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_1_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_1_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_1_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_1_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_1_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_1_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_1_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_1_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_1_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_1_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_2_1_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint32_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_2_1_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_2__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_0_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_0_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_0_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_0_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_0_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_0_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_0_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_0_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_0_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_0_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_0_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_0_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_0_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_0_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_0_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_0_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_0_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_0_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_0_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_0_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_1_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_1_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_1_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_1_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_1_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_1_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_1_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_1_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_1_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_1_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_1_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_1_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_1_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_1_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_1_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_1_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_1_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_1_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_3_1_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_uint64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint64_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_3_1_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_3__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_0_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_0_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_0_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_0_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_0_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_0_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_0_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_0_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_0_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_0_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_0_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_0_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_0_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_0_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_0_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_0_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_0_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_0_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_0_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_0_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_1_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_1_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_1_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_1_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_1_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_1_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_1_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_1_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_1_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_1_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_1_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_1_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_1_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_1_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_1_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_1_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_1_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_1_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_4_1_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int8_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_4_1_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_4__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_0_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_0_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_0_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_0_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_0_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_0_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_0_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_0_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_0_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_0_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_0_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_0_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_0_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_0_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_0_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_0_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_0_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_0_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_0_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_0_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_1_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_1_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_1_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_1_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_1_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_1_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_1_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_1_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_1_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_1_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_1_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_1_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_1_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_1_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_1_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_1_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_1_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_1_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_5_1_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int16_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int16_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_5_1_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_5__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_0_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_0_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_0_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_0_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_0_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_0_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_0_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_0_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_0_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_0_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_0_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_0_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_0_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_0_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_0_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_0_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_0_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_0_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_0_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_0_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_1_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_1_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_1_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_1_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_1_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_1_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_1_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_1_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_1_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_1_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_1_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_1_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_1_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_1_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_1_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_1_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_1_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_1_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_6_1_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int32_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_6_1_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_6__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_0_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_0_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_0_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_0_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_0_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_0_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_0_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_0_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_0_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_0_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_0_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_0_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_0_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_0_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_0_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_0_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_0_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_0_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_0_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_0_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_1_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_1_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_1_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_1_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_1_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_1_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_1_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_1_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_1_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_1_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_1_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_1_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_1_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_1_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_1_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_1_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_1_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_1_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_7_1_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_int64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_int64_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_7_1_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_7__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_0_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_0_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_0_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_0_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_0_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_0_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_0_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_0_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_0_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_0_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_0_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_0_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_0_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_0_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_0_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_0_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_0_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_0_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_0_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_0_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_1_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_1_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_1_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_1_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_1_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_1_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_1_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_1_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_1_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_1_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_1_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_1_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_1_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_1_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_1_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_1_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_1_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_1_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_8_1_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float32_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float32_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_8_1_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_8__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_0_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_0_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_0_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_0_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_0_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_0_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_0_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_0_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_0_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_0_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_0_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_0_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_0_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_0_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_0_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_0_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_0_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_0_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_0_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_0_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_1_0__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_1_0nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_1_1__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_1_1nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_1_2__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_1_2nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_1_3__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_1_3nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_1_4__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_1_4nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_1_5__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_1_5nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_1_6__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_1_6nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_1_7__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_1_7nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_1_8__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_1_8nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float32_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_9_1_9__pyx_f_7skimage_7_shared_13interpolation_nearest_neighbour_interpolation(__pyx_t_5numpy_float64_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float64_t __pyx_v_r, __pyx_t_5numpy_float64_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_float64_t __pyx_v_cval, __pyx_t_5numpy_float64_t *__pyx_v_out) {
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_9_1_9nearest_neighbour_interpolation", __pyx_f[3], 42, 1, __PYX_ERR(3, 42, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":68
* """
*
* out[0] = <np_real_numeric_out>get_pixel2d( # <<<<<<<<<<<<<<
* image, rows, cols, round(r), round(c), mode, cval)
*
*/
__Pyx_TraceLine(68,1,__PYX_ERR(3, 68, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_float64_t)__pyx_fuse_9__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_r), __pyx_fuse_1__pyx_f_7skimage_7_shared_13interpolation_round(__pyx_v_c), __pyx_v_mode, __pyx_v_cval));
/* "skimage/_shared/interpolation.pxd":42
* np_real_numeric
*
* cdef inline void nearest_neighbour_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.nearest_neighbour_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
/* "skimage/_shared/interpolation.pxd":72
*
*
* cdef inline void bilinear_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
static CYTHON_INLINE void __pyx_fuse_0_0_0__pyx_f_7skimage_7_shared_13interpolation_bilinear_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_uint8_t *__pyx_v_out) {
__pyx_t_5numpy_float32_t __pyx_v_dr;
__pyx_t_5numpy_float32_t __pyx_v_dc;
long __pyx_v_minr;
long __pyx_v_minc;
long __pyx_v_maxr;
long __pyx_v_maxc;
__pyx_t_5numpy_float64_t __pyx_v_top;
__pyx_t_5numpy_float64_t __pyx_v_bottom;
__pyx_t_5numpy_uint8_t __pyx_v_top_left;
__pyx_t_5numpy_uint8_t __pyx_v_top_right;
__pyx_t_5numpy_uint8_t __pyx_v_bottom_left;
__pyx_t_5numpy_uint8_t __pyx_v_bottom_right;
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_0bilinear_interpolation", __pyx_f[3], 72, 1, __PYX_ERR(3, 72, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":100
* cdef long minr, minc, maxr, maxc
*
* minr = <long>floor(r) # <<<<<<<<<<<<<<
* minc = <long>floor(c)
* maxr = <long>ceil(r)
*/
__Pyx_TraceLine(100,1,__PYX_ERR(3, 100, __pyx_L1_error))
__pyx_v_minr = ((long)floor(__pyx_v_r));
/* "skimage/_shared/interpolation.pxd":101
*
* minr = <long>floor(r)
* minc = <long>floor(c) # <<<<<<<<<<<<<<
* maxr = <long>ceil(r)
* maxc = <long>ceil(c)
*/
__Pyx_TraceLine(101,1,__PYX_ERR(3, 101, __pyx_L1_error))
__pyx_v_minc = ((long)floor(__pyx_v_c));
/* "skimage/_shared/interpolation.pxd":102
* minr = <long>floor(r)
* minc = <long>floor(c)
* maxr = <long>ceil(r) # <<<<<<<<<<<<<<
* maxc = <long>ceil(c)
* dr = r - minr
*/
__Pyx_TraceLine(102,1,__PYX_ERR(3, 102, __pyx_L1_error))
__pyx_v_maxr = ((long)ceil(__pyx_v_r));
/* "skimage/_shared/interpolation.pxd":103
* minc = <long>floor(c)
* maxr = <long>ceil(r)
* maxc = <long>ceil(c) # <<<<<<<<<<<<<<
* dr = r - minr
* dc = c - minc
*/
__Pyx_TraceLine(103,1,__PYX_ERR(3, 103, __pyx_L1_error))
__pyx_v_maxc = ((long)ceil(__pyx_v_c));
/* "skimage/_shared/interpolation.pxd":104
* maxr = <long>ceil(r)
* maxc = <long>ceil(c)
* dr = r - minr # <<<<<<<<<<<<<<
* dc = c - minc
*
*/
__Pyx_TraceLine(104,1,__PYX_ERR(3, 104, __pyx_L1_error))
__pyx_v_dr = (__pyx_v_r - __pyx_v_minr);
/* "skimage/_shared/interpolation.pxd":105
* maxc = <long>ceil(c)
* dr = r - minr
* dc = c - minc # <<<<<<<<<<<<<<
*
* cdef np.float64_t top
*/
__Pyx_TraceLine(105,1,__PYX_ERR(3, 105, __pyx_L1_error))
__pyx_v_dc = (__pyx_v_c - __pyx_v_minc);
/* "skimage/_shared/interpolation.pxd":110
* cdef np.float64_t bottom
*
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
*/
__Pyx_TraceLine(110,1,__PYX_ERR(3, 110, __pyx_L1_error))
__pyx_v_top_left = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_minr, __pyx_v_minc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":111
*
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval)
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*/
__Pyx_TraceLine(111,1,__PYX_ERR(3, 111, __pyx_L1_error))
__pyx_v_top_right = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_minr, __pyx_v_maxc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":112
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval)
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*
*/
__Pyx_TraceLine(112,1,__PYX_ERR(3, 112, __pyx_L1_error))
__pyx_v_bottom_left = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_maxr, __pyx_v_minc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":113
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval) # <<<<<<<<<<<<<<
*
* top = (1 - dc) * top_left + dc * top_right
*/
__Pyx_TraceLine(113,1,__PYX_ERR(3, 113, __pyx_L1_error))
__pyx_v_bottom_right = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_maxr, __pyx_v_maxc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":115
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*
* top = (1 - dc) * top_left + dc * top_right # <<<<<<<<<<<<<<
* bottom = (1 - dc) * bottom_left + dc * bottom_right
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom)
*/
__Pyx_TraceLine(115,1,__PYX_ERR(3, 115, __pyx_L1_error))
__pyx_v_top = (((1.0 - __pyx_v_dc) * __pyx_v_top_left) + (__pyx_v_dc * __pyx_v_top_right));
/* "skimage/_shared/interpolation.pxd":116
*
* top = (1 - dc) * top_left + dc * top_right
* bottom = (1 - dc) * bottom_left + dc * bottom_right # <<<<<<<<<<<<<<
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom)
*
*/
__Pyx_TraceLine(116,1,__PYX_ERR(3, 116, __pyx_L1_error))
__pyx_v_bottom = (((1.0 - __pyx_v_dc) * __pyx_v_bottom_left) + (__pyx_v_dc * __pyx_v_bottom_right));
/* "skimage/_shared/interpolation.pxd":117
* top = (1 - dc) * top_left + dc * top_right
* bottom = (1 - dc) * bottom_left + dc * bottom_right
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom) # <<<<<<<<<<<<<<
*
* cdef inline np_floats quadratic_interpolation(np_floats x,
*/
__Pyx_TraceLine(117,1,__PYX_ERR(3, 117, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint8_t)(((1.0 - __pyx_v_dr) * __pyx_v_top) + (__pyx_v_dr * __pyx_v_bottom)));
/* "skimage/_shared/interpolation.pxd":72
*
*
* cdef inline void bilinear_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.bilinear_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_0_1__pyx_f_7skimage_7_shared_13interpolation_bilinear_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_uint16_t *__pyx_v_out) {
__pyx_t_5numpy_float32_t __pyx_v_dr;
__pyx_t_5numpy_float32_t __pyx_v_dc;
long __pyx_v_minr;
long __pyx_v_minc;
long __pyx_v_maxr;
long __pyx_v_maxc;
__pyx_t_5numpy_float64_t __pyx_v_top;
__pyx_t_5numpy_float64_t __pyx_v_bottom;
__pyx_t_5numpy_uint8_t __pyx_v_top_left;
__pyx_t_5numpy_uint8_t __pyx_v_top_right;
__pyx_t_5numpy_uint8_t __pyx_v_bottom_left;
__pyx_t_5numpy_uint8_t __pyx_v_bottom_right;
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_1bilinear_interpolation", __pyx_f[3], 72, 1, __PYX_ERR(3, 72, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":100
* cdef long minr, minc, maxr, maxc
*
* minr = <long>floor(r) # <<<<<<<<<<<<<<
* minc = <long>floor(c)
* maxr = <long>ceil(r)
*/
__Pyx_TraceLine(100,1,__PYX_ERR(3, 100, __pyx_L1_error))
__pyx_v_minr = ((long)floor(__pyx_v_r));
/* "skimage/_shared/interpolation.pxd":101
*
* minr = <long>floor(r)
* minc = <long>floor(c) # <<<<<<<<<<<<<<
* maxr = <long>ceil(r)
* maxc = <long>ceil(c)
*/
__Pyx_TraceLine(101,1,__PYX_ERR(3, 101, __pyx_L1_error))
__pyx_v_minc = ((long)floor(__pyx_v_c));
/* "skimage/_shared/interpolation.pxd":102
* minr = <long>floor(r)
* minc = <long>floor(c)
* maxr = <long>ceil(r) # <<<<<<<<<<<<<<
* maxc = <long>ceil(c)
* dr = r - minr
*/
__Pyx_TraceLine(102,1,__PYX_ERR(3, 102, __pyx_L1_error))
__pyx_v_maxr = ((long)ceil(__pyx_v_r));
/* "skimage/_shared/interpolation.pxd":103
* minc = <long>floor(c)
* maxr = <long>ceil(r)
* maxc = <long>ceil(c) # <<<<<<<<<<<<<<
* dr = r - minr
* dc = c - minc
*/
__Pyx_TraceLine(103,1,__PYX_ERR(3, 103, __pyx_L1_error))
__pyx_v_maxc = ((long)ceil(__pyx_v_c));
/* "skimage/_shared/interpolation.pxd":104
* maxr = <long>ceil(r)
* maxc = <long>ceil(c)
* dr = r - minr # <<<<<<<<<<<<<<
* dc = c - minc
*
*/
__Pyx_TraceLine(104,1,__PYX_ERR(3, 104, __pyx_L1_error))
__pyx_v_dr = (__pyx_v_r - __pyx_v_minr);
/* "skimage/_shared/interpolation.pxd":105
* maxc = <long>ceil(c)
* dr = r - minr
* dc = c - minc # <<<<<<<<<<<<<<
*
* cdef np.float64_t top
*/
__Pyx_TraceLine(105,1,__PYX_ERR(3, 105, __pyx_L1_error))
__pyx_v_dc = (__pyx_v_c - __pyx_v_minc);
/* "skimage/_shared/interpolation.pxd":110
* cdef np.float64_t bottom
*
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
*/
__Pyx_TraceLine(110,1,__PYX_ERR(3, 110, __pyx_L1_error))
__pyx_v_top_left = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_minr, __pyx_v_minc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":111
*
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval)
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*/
__Pyx_TraceLine(111,1,__PYX_ERR(3, 111, __pyx_L1_error))
__pyx_v_top_right = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_minr, __pyx_v_maxc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":112
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval)
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*
*/
__Pyx_TraceLine(112,1,__PYX_ERR(3, 112, __pyx_L1_error))
__pyx_v_bottom_left = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_maxr, __pyx_v_minc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":113
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval) # <<<<<<<<<<<<<<
*
* top = (1 - dc) * top_left + dc * top_right
*/
__Pyx_TraceLine(113,1,__PYX_ERR(3, 113, __pyx_L1_error))
__pyx_v_bottom_right = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_maxr, __pyx_v_maxc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":115
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*
* top = (1 - dc) * top_left + dc * top_right # <<<<<<<<<<<<<<
* bottom = (1 - dc) * bottom_left + dc * bottom_right
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom)
*/
__Pyx_TraceLine(115,1,__PYX_ERR(3, 115, __pyx_L1_error))
__pyx_v_top = (((1.0 - __pyx_v_dc) * __pyx_v_top_left) + (__pyx_v_dc * __pyx_v_top_right));
/* "skimage/_shared/interpolation.pxd":116
*
* top = (1 - dc) * top_left + dc * top_right
* bottom = (1 - dc) * bottom_left + dc * bottom_right # <<<<<<<<<<<<<<
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom)
*
*/
__Pyx_TraceLine(116,1,__PYX_ERR(3, 116, __pyx_L1_error))
__pyx_v_bottom = (((1.0 - __pyx_v_dc) * __pyx_v_bottom_left) + (__pyx_v_dc * __pyx_v_bottom_right));
/* "skimage/_shared/interpolation.pxd":117
* top = (1 - dc) * top_left + dc * top_right
* bottom = (1 - dc) * bottom_left + dc * bottom_right
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom) # <<<<<<<<<<<<<<
*
* cdef inline np_floats quadratic_interpolation(np_floats x,
*/
__Pyx_TraceLine(117,1,__PYX_ERR(3, 117, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint16_t)(((1.0 - __pyx_v_dr) * __pyx_v_top) + (__pyx_v_dr * __pyx_v_bottom)));
/* "skimage/_shared/interpolation.pxd":72
*
*
* cdef inline void bilinear_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.bilinear_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_0_2__pyx_f_7skimage_7_shared_13interpolation_bilinear_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_uint32_t *__pyx_v_out) {
__pyx_t_5numpy_float32_t __pyx_v_dr;
__pyx_t_5numpy_float32_t __pyx_v_dc;
long __pyx_v_minr;
long __pyx_v_minc;
long __pyx_v_maxr;
long __pyx_v_maxc;
__pyx_t_5numpy_float64_t __pyx_v_top;
__pyx_t_5numpy_float64_t __pyx_v_bottom;
__pyx_t_5numpy_uint8_t __pyx_v_top_left;
__pyx_t_5numpy_uint8_t __pyx_v_top_right;
__pyx_t_5numpy_uint8_t __pyx_v_bottom_left;
__pyx_t_5numpy_uint8_t __pyx_v_bottom_right;
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_2bilinear_interpolation", __pyx_f[3], 72, 1, __PYX_ERR(3, 72, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":100
* cdef long minr, minc, maxr, maxc
*
* minr = <long>floor(r) # <<<<<<<<<<<<<<
* minc = <long>floor(c)
* maxr = <long>ceil(r)
*/
__Pyx_TraceLine(100,1,__PYX_ERR(3, 100, __pyx_L1_error))
__pyx_v_minr = ((long)floor(__pyx_v_r));
/* "skimage/_shared/interpolation.pxd":101
*
* minr = <long>floor(r)
* minc = <long>floor(c) # <<<<<<<<<<<<<<
* maxr = <long>ceil(r)
* maxc = <long>ceil(c)
*/
__Pyx_TraceLine(101,1,__PYX_ERR(3, 101, __pyx_L1_error))
__pyx_v_minc = ((long)floor(__pyx_v_c));
/* "skimage/_shared/interpolation.pxd":102
* minr = <long>floor(r)
* minc = <long>floor(c)
* maxr = <long>ceil(r) # <<<<<<<<<<<<<<
* maxc = <long>ceil(c)
* dr = r - minr
*/
__Pyx_TraceLine(102,1,__PYX_ERR(3, 102, __pyx_L1_error))
__pyx_v_maxr = ((long)ceil(__pyx_v_r));
/* "skimage/_shared/interpolation.pxd":103
* minc = <long>floor(c)
* maxr = <long>ceil(r)
* maxc = <long>ceil(c) # <<<<<<<<<<<<<<
* dr = r - minr
* dc = c - minc
*/
__Pyx_TraceLine(103,1,__PYX_ERR(3, 103, __pyx_L1_error))
__pyx_v_maxc = ((long)ceil(__pyx_v_c));
/* "skimage/_shared/interpolation.pxd":104
* maxr = <long>ceil(r)
* maxc = <long>ceil(c)
* dr = r - minr # <<<<<<<<<<<<<<
* dc = c - minc
*
*/
__Pyx_TraceLine(104,1,__PYX_ERR(3, 104, __pyx_L1_error))
__pyx_v_dr = (__pyx_v_r - __pyx_v_minr);
/* "skimage/_shared/interpolation.pxd":105
* maxc = <long>ceil(c)
* dr = r - minr
* dc = c - minc # <<<<<<<<<<<<<<
*
* cdef np.float64_t top
*/
__Pyx_TraceLine(105,1,__PYX_ERR(3, 105, __pyx_L1_error))
__pyx_v_dc = (__pyx_v_c - __pyx_v_minc);
/* "skimage/_shared/interpolation.pxd":110
* cdef np.float64_t bottom
*
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
*/
__Pyx_TraceLine(110,1,__PYX_ERR(3, 110, __pyx_L1_error))
__pyx_v_top_left = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_minr, __pyx_v_minc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":111
*
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval)
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*/
__Pyx_TraceLine(111,1,__PYX_ERR(3, 111, __pyx_L1_error))
__pyx_v_top_right = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_minr, __pyx_v_maxc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":112
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval)
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*
*/
__Pyx_TraceLine(112,1,__PYX_ERR(3, 112, __pyx_L1_error))
__pyx_v_bottom_left = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_maxr, __pyx_v_minc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":113
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval) # <<<<<<<<<<<<<<
*
* top = (1 - dc) * top_left + dc * top_right
*/
__Pyx_TraceLine(113,1,__PYX_ERR(3, 113, __pyx_L1_error))
__pyx_v_bottom_right = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_maxr, __pyx_v_maxc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":115
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*
* top = (1 - dc) * top_left + dc * top_right # <<<<<<<<<<<<<<
* bottom = (1 - dc) * bottom_left + dc * bottom_right
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom)
*/
__Pyx_TraceLine(115,1,__PYX_ERR(3, 115, __pyx_L1_error))
__pyx_v_top = (((1.0 - __pyx_v_dc) * __pyx_v_top_left) + (__pyx_v_dc * __pyx_v_top_right));
/* "skimage/_shared/interpolation.pxd":116
*
* top = (1 - dc) * top_left + dc * top_right
* bottom = (1 - dc) * bottom_left + dc * bottom_right # <<<<<<<<<<<<<<
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom)
*
*/
__Pyx_TraceLine(116,1,__PYX_ERR(3, 116, __pyx_L1_error))
__pyx_v_bottom = (((1.0 - __pyx_v_dc) * __pyx_v_bottom_left) + (__pyx_v_dc * __pyx_v_bottom_right));
/* "skimage/_shared/interpolation.pxd":117
* top = (1 - dc) * top_left + dc * top_right
* bottom = (1 - dc) * bottom_left + dc * bottom_right
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom) # <<<<<<<<<<<<<<
*
* cdef inline np_floats quadratic_interpolation(np_floats x,
*/
__Pyx_TraceLine(117,1,__PYX_ERR(3, 117, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint32_t)(((1.0 - __pyx_v_dr) * __pyx_v_top) + (__pyx_v_dr * __pyx_v_bottom)));
/* "skimage/_shared/interpolation.pxd":72
*
*
* cdef inline void bilinear_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.bilinear_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_0_3__pyx_f_7skimage_7_shared_13interpolation_bilinear_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_uint64_t *__pyx_v_out) {
__pyx_t_5numpy_float32_t __pyx_v_dr;
__pyx_t_5numpy_float32_t __pyx_v_dc;
long __pyx_v_minr;
long __pyx_v_minc;
long __pyx_v_maxr;
long __pyx_v_maxc;
__pyx_t_5numpy_float64_t __pyx_v_top;
__pyx_t_5numpy_float64_t __pyx_v_bottom;
__pyx_t_5numpy_uint8_t __pyx_v_top_left;
__pyx_t_5numpy_uint8_t __pyx_v_top_right;
__pyx_t_5numpy_uint8_t __pyx_v_bottom_left;
__pyx_t_5numpy_uint8_t __pyx_v_bottom_right;
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_3bilinear_interpolation", __pyx_f[3], 72, 1, __PYX_ERR(3, 72, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":100
* cdef long minr, minc, maxr, maxc
*
* minr = <long>floor(r) # <<<<<<<<<<<<<<
* minc = <long>floor(c)
* maxr = <long>ceil(r)
*/
__Pyx_TraceLine(100,1,__PYX_ERR(3, 100, __pyx_L1_error))
__pyx_v_minr = ((long)floor(__pyx_v_r));
/* "skimage/_shared/interpolation.pxd":101
*
* minr = <long>floor(r)
* minc = <long>floor(c) # <<<<<<<<<<<<<<
* maxr = <long>ceil(r)
* maxc = <long>ceil(c)
*/
__Pyx_TraceLine(101,1,__PYX_ERR(3, 101, __pyx_L1_error))
__pyx_v_minc = ((long)floor(__pyx_v_c));
/* "skimage/_shared/interpolation.pxd":102
* minr = <long>floor(r)
* minc = <long>floor(c)
* maxr = <long>ceil(r) # <<<<<<<<<<<<<<
* maxc = <long>ceil(c)
* dr = r - minr
*/
__Pyx_TraceLine(102,1,__PYX_ERR(3, 102, __pyx_L1_error))
__pyx_v_maxr = ((long)ceil(__pyx_v_r));
/* "skimage/_shared/interpolation.pxd":103
* minc = <long>floor(c)
* maxr = <long>ceil(r)
* maxc = <long>ceil(c) # <<<<<<<<<<<<<<
* dr = r - minr
* dc = c - minc
*/
__Pyx_TraceLine(103,1,__PYX_ERR(3, 103, __pyx_L1_error))
__pyx_v_maxc = ((long)ceil(__pyx_v_c));
/* "skimage/_shared/interpolation.pxd":104
* maxr = <long>ceil(r)
* maxc = <long>ceil(c)
* dr = r - minr # <<<<<<<<<<<<<<
* dc = c - minc
*
*/
__Pyx_TraceLine(104,1,__PYX_ERR(3, 104, __pyx_L1_error))
__pyx_v_dr = (__pyx_v_r - __pyx_v_minr);
/* "skimage/_shared/interpolation.pxd":105
* maxc = <long>ceil(c)
* dr = r - minr
* dc = c - minc # <<<<<<<<<<<<<<
*
* cdef np.float64_t top
*/
__Pyx_TraceLine(105,1,__PYX_ERR(3, 105, __pyx_L1_error))
__pyx_v_dc = (__pyx_v_c - __pyx_v_minc);
/* "skimage/_shared/interpolation.pxd":110
* cdef np.float64_t bottom
*
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
*/
__Pyx_TraceLine(110,1,__PYX_ERR(3, 110, __pyx_L1_error))
__pyx_v_top_left = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_minr, __pyx_v_minc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":111
*
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval)
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*/
__Pyx_TraceLine(111,1,__PYX_ERR(3, 111, __pyx_L1_error))
__pyx_v_top_right = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_minr, __pyx_v_maxc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":112
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval)
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*
*/
__Pyx_TraceLine(112,1,__PYX_ERR(3, 112, __pyx_L1_error))
__pyx_v_bottom_left = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_maxr, __pyx_v_minc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":113
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval) # <<<<<<<<<<<<<<
*
* top = (1 - dc) * top_left + dc * top_right
*/
__Pyx_TraceLine(113,1,__PYX_ERR(3, 113, __pyx_L1_error))
__pyx_v_bottom_right = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_maxr, __pyx_v_maxc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":115
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*
* top = (1 - dc) * top_left + dc * top_right # <<<<<<<<<<<<<<
* bottom = (1 - dc) * bottom_left + dc * bottom_right
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom)
*/
__Pyx_TraceLine(115,1,__PYX_ERR(3, 115, __pyx_L1_error))
__pyx_v_top = (((1.0 - __pyx_v_dc) * __pyx_v_top_left) + (__pyx_v_dc * __pyx_v_top_right));
/* "skimage/_shared/interpolation.pxd":116
*
* top = (1 - dc) * top_left + dc * top_right
* bottom = (1 - dc) * bottom_left + dc * bottom_right # <<<<<<<<<<<<<<
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom)
*
*/
__Pyx_TraceLine(116,1,__PYX_ERR(3, 116, __pyx_L1_error))
__pyx_v_bottom = (((1.0 - __pyx_v_dc) * __pyx_v_bottom_left) + (__pyx_v_dc * __pyx_v_bottom_right));
/* "skimage/_shared/interpolation.pxd":117
* top = (1 - dc) * top_left + dc * top_right
* bottom = (1 - dc) * bottom_left + dc * bottom_right
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom) # <<<<<<<<<<<<<<
*
* cdef inline np_floats quadratic_interpolation(np_floats x,
*/
__Pyx_TraceLine(117,1,__PYX_ERR(3, 117, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_uint64_t)(((1.0 - __pyx_v_dr) * __pyx_v_top) + (__pyx_v_dr * __pyx_v_bottom)));
/* "skimage/_shared/interpolation.pxd":72
*
*
* cdef inline void bilinear_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.bilinear_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_0_4__pyx_f_7skimage_7_shared_13interpolation_bilinear_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_int8_t *__pyx_v_out) {
__pyx_t_5numpy_float32_t __pyx_v_dr;
__pyx_t_5numpy_float32_t __pyx_v_dc;
long __pyx_v_minr;
long __pyx_v_minc;
long __pyx_v_maxr;
long __pyx_v_maxc;
__pyx_t_5numpy_float64_t __pyx_v_top;
__pyx_t_5numpy_float64_t __pyx_v_bottom;
__pyx_t_5numpy_uint8_t __pyx_v_top_left;
__pyx_t_5numpy_uint8_t __pyx_v_top_right;
__pyx_t_5numpy_uint8_t __pyx_v_bottom_left;
__pyx_t_5numpy_uint8_t __pyx_v_bottom_right;
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_4bilinear_interpolation", __pyx_f[3], 72, 1, __PYX_ERR(3, 72, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":100
* cdef long minr, minc, maxr, maxc
*
* minr = <long>floor(r) # <<<<<<<<<<<<<<
* minc = <long>floor(c)
* maxr = <long>ceil(r)
*/
__Pyx_TraceLine(100,1,__PYX_ERR(3, 100, __pyx_L1_error))
__pyx_v_minr = ((long)floor(__pyx_v_r));
/* "skimage/_shared/interpolation.pxd":101
*
* minr = <long>floor(r)
* minc = <long>floor(c) # <<<<<<<<<<<<<<
* maxr = <long>ceil(r)
* maxc = <long>ceil(c)
*/
__Pyx_TraceLine(101,1,__PYX_ERR(3, 101, __pyx_L1_error))
__pyx_v_minc = ((long)floor(__pyx_v_c));
/* "skimage/_shared/interpolation.pxd":102
* minr = <long>floor(r)
* minc = <long>floor(c)
* maxr = <long>ceil(r) # <<<<<<<<<<<<<<
* maxc = <long>ceil(c)
* dr = r - minr
*/
__Pyx_TraceLine(102,1,__PYX_ERR(3, 102, __pyx_L1_error))
__pyx_v_maxr = ((long)ceil(__pyx_v_r));
/* "skimage/_shared/interpolation.pxd":103
* minc = <long>floor(c)
* maxr = <long>ceil(r)
* maxc = <long>ceil(c) # <<<<<<<<<<<<<<
* dr = r - minr
* dc = c - minc
*/
__Pyx_TraceLine(103,1,__PYX_ERR(3, 103, __pyx_L1_error))
__pyx_v_maxc = ((long)ceil(__pyx_v_c));
/* "skimage/_shared/interpolation.pxd":104
* maxr = <long>ceil(r)
* maxc = <long>ceil(c)
* dr = r - minr # <<<<<<<<<<<<<<
* dc = c - minc
*
*/
__Pyx_TraceLine(104,1,__PYX_ERR(3, 104, __pyx_L1_error))
__pyx_v_dr = (__pyx_v_r - __pyx_v_minr);
/* "skimage/_shared/interpolation.pxd":105
* maxc = <long>ceil(c)
* dr = r - minr
* dc = c - minc # <<<<<<<<<<<<<<
*
* cdef np.float64_t top
*/
__Pyx_TraceLine(105,1,__PYX_ERR(3, 105, __pyx_L1_error))
__pyx_v_dc = (__pyx_v_c - __pyx_v_minc);
/* "skimage/_shared/interpolation.pxd":110
* cdef np.float64_t bottom
*
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
*/
__Pyx_TraceLine(110,1,__PYX_ERR(3, 110, __pyx_L1_error))
__pyx_v_top_left = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_minr, __pyx_v_minc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":111
*
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval)
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*/
__Pyx_TraceLine(111,1,__PYX_ERR(3, 111, __pyx_L1_error))
__pyx_v_top_right = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_minr, __pyx_v_maxc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":112
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval)
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*
*/
__Pyx_TraceLine(112,1,__PYX_ERR(3, 112, __pyx_L1_error))
__pyx_v_bottom_left = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_maxr, __pyx_v_minc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":113
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval) # <<<<<<<<<<<<<<
*
* top = (1 - dc) * top_left + dc * top_right
*/
__Pyx_TraceLine(113,1,__PYX_ERR(3, 113, __pyx_L1_error))
__pyx_v_bottom_right = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_maxr, __pyx_v_maxc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":115
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*
* top = (1 - dc) * top_left + dc * top_right # <<<<<<<<<<<<<<
* bottom = (1 - dc) * bottom_left + dc * bottom_right
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom)
*/
__Pyx_TraceLine(115,1,__PYX_ERR(3, 115, __pyx_L1_error))
__pyx_v_top = (((1.0 - __pyx_v_dc) * __pyx_v_top_left) + (__pyx_v_dc * __pyx_v_top_right));
/* "skimage/_shared/interpolation.pxd":116
*
* top = (1 - dc) * top_left + dc * top_right
* bottom = (1 - dc) * bottom_left + dc * bottom_right # <<<<<<<<<<<<<<
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom)
*
*/
__Pyx_TraceLine(116,1,__PYX_ERR(3, 116, __pyx_L1_error))
__pyx_v_bottom = (((1.0 - __pyx_v_dc) * __pyx_v_bottom_left) + (__pyx_v_dc * __pyx_v_bottom_right));
/* "skimage/_shared/interpolation.pxd":117
* top = (1 - dc) * top_left + dc * top_right
* bottom = (1 - dc) * bottom_left + dc * bottom_right
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom) # <<<<<<<<<<<<<<
*
* cdef inline np_floats quadratic_interpolation(np_floats x,
*/
__Pyx_TraceLine(117,1,__PYX_ERR(3, 117, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int8_t)(((1.0 - __pyx_v_dr) * __pyx_v_top) + (__pyx_v_dr * __pyx_v_bottom)));
/* "skimage/_shared/interpolation.pxd":72
*
*
* cdef inline void bilinear_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.bilinear_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_0_5__pyx_f_7skimage_7_shared_13interpolation_bilinear_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_int16_t *__pyx_v_out) {
__pyx_t_5numpy_float32_t __pyx_v_dr;
__pyx_t_5numpy_float32_t __pyx_v_dc;
long __pyx_v_minr;
long __pyx_v_minc;
long __pyx_v_maxr;
long __pyx_v_maxc;
__pyx_t_5numpy_float64_t __pyx_v_top;
__pyx_t_5numpy_float64_t __pyx_v_bottom;
__pyx_t_5numpy_uint8_t __pyx_v_top_left;
__pyx_t_5numpy_uint8_t __pyx_v_top_right;
__pyx_t_5numpy_uint8_t __pyx_v_bottom_left;
__pyx_t_5numpy_uint8_t __pyx_v_bottom_right;
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_5bilinear_interpolation", __pyx_f[3], 72, 1, __PYX_ERR(3, 72, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":100
* cdef long minr, minc, maxr, maxc
*
* minr = <long>floor(r) # <<<<<<<<<<<<<<
* minc = <long>floor(c)
* maxr = <long>ceil(r)
*/
__Pyx_TraceLine(100,1,__PYX_ERR(3, 100, __pyx_L1_error))
__pyx_v_minr = ((long)floor(__pyx_v_r));
/* "skimage/_shared/interpolation.pxd":101
*
* minr = <long>floor(r)
* minc = <long>floor(c) # <<<<<<<<<<<<<<
* maxr = <long>ceil(r)
* maxc = <long>ceil(c)
*/
__Pyx_TraceLine(101,1,__PYX_ERR(3, 101, __pyx_L1_error))
__pyx_v_minc = ((long)floor(__pyx_v_c));
/* "skimage/_shared/interpolation.pxd":102
* minr = <long>floor(r)
* minc = <long>floor(c)
* maxr = <long>ceil(r) # <<<<<<<<<<<<<<
* maxc = <long>ceil(c)
* dr = r - minr
*/
__Pyx_TraceLine(102,1,__PYX_ERR(3, 102, __pyx_L1_error))
__pyx_v_maxr = ((long)ceil(__pyx_v_r));
/* "skimage/_shared/interpolation.pxd":103
* minc = <long>floor(c)
* maxr = <long>ceil(r)
* maxc = <long>ceil(c) # <<<<<<<<<<<<<<
* dr = r - minr
* dc = c - minc
*/
__Pyx_TraceLine(103,1,__PYX_ERR(3, 103, __pyx_L1_error))
__pyx_v_maxc = ((long)ceil(__pyx_v_c));
/* "skimage/_shared/interpolation.pxd":104
* maxr = <long>ceil(r)
* maxc = <long>ceil(c)
* dr = r - minr # <<<<<<<<<<<<<<
* dc = c - minc
*
*/
__Pyx_TraceLine(104,1,__PYX_ERR(3, 104, __pyx_L1_error))
__pyx_v_dr = (__pyx_v_r - __pyx_v_minr);
/* "skimage/_shared/interpolation.pxd":105
* maxc = <long>ceil(c)
* dr = r - minr
* dc = c - minc # <<<<<<<<<<<<<<
*
* cdef np.float64_t top
*/
__Pyx_TraceLine(105,1,__PYX_ERR(3, 105, __pyx_L1_error))
__pyx_v_dc = (__pyx_v_c - __pyx_v_minc);
/* "skimage/_shared/interpolation.pxd":110
* cdef np.float64_t bottom
*
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
*/
__Pyx_TraceLine(110,1,__PYX_ERR(3, 110, __pyx_L1_error))
__pyx_v_top_left = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_minr, __pyx_v_minc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":111
*
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval)
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*/
__Pyx_TraceLine(111,1,__PYX_ERR(3, 111, __pyx_L1_error))
__pyx_v_top_right = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_minr, __pyx_v_maxc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":112
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval)
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*
*/
__Pyx_TraceLine(112,1,__PYX_ERR(3, 112, __pyx_L1_error))
__pyx_v_bottom_left = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_maxr, __pyx_v_minc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":113
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval) # <<<<<<<<<<<<<<
*
* top = (1 - dc) * top_left + dc * top_right
*/
__Pyx_TraceLine(113,1,__PYX_ERR(3, 113, __pyx_L1_error))
__pyx_v_bottom_right = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_maxr, __pyx_v_maxc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":115
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*
* top = (1 - dc) * top_left + dc * top_right # <<<<<<<<<<<<<<
* bottom = (1 - dc) * bottom_left + dc * bottom_right
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom)
*/
__Pyx_TraceLine(115,1,__PYX_ERR(3, 115, __pyx_L1_error))
__pyx_v_top = (((1.0 - __pyx_v_dc) * __pyx_v_top_left) + (__pyx_v_dc * __pyx_v_top_right));
/* "skimage/_shared/interpolation.pxd":116
*
* top = (1 - dc) * top_left + dc * top_right
* bottom = (1 - dc) * bottom_left + dc * bottom_right # <<<<<<<<<<<<<<
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom)
*
*/
__Pyx_TraceLine(116,1,__PYX_ERR(3, 116, __pyx_L1_error))
__pyx_v_bottom = (((1.0 - __pyx_v_dc) * __pyx_v_bottom_left) + (__pyx_v_dc * __pyx_v_bottom_right));
/* "skimage/_shared/interpolation.pxd":117
* top = (1 - dc) * top_left + dc * top_right
* bottom = (1 - dc) * bottom_left + dc * bottom_right
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom) # <<<<<<<<<<<<<<
*
* cdef inline np_floats quadratic_interpolation(np_floats x,
*/
__Pyx_TraceLine(117,1,__PYX_ERR(3, 117, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int16_t)(((1.0 - __pyx_v_dr) * __pyx_v_top) + (__pyx_v_dr * __pyx_v_bottom)));
/* "skimage/_shared/interpolation.pxd":72
*
*
* cdef inline void bilinear_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.bilinear_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_0_6__pyx_f_7skimage_7_shared_13interpolation_bilinear_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_int32_t *__pyx_v_out) {
__pyx_t_5numpy_float32_t __pyx_v_dr;
__pyx_t_5numpy_float32_t __pyx_v_dc;
long __pyx_v_minr;
long __pyx_v_minc;
long __pyx_v_maxr;
long __pyx_v_maxc;
__pyx_t_5numpy_float64_t __pyx_v_top;
__pyx_t_5numpy_float64_t __pyx_v_bottom;
__pyx_t_5numpy_uint8_t __pyx_v_top_left;
__pyx_t_5numpy_uint8_t __pyx_v_top_right;
__pyx_t_5numpy_uint8_t __pyx_v_bottom_left;
__pyx_t_5numpy_uint8_t __pyx_v_bottom_right;
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_6bilinear_interpolation", __pyx_f[3], 72, 1, __PYX_ERR(3, 72, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":100
* cdef long minr, minc, maxr, maxc
*
* minr = <long>floor(r) # <<<<<<<<<<<<<<
* minc = <long>floor(c)
* maxr = <long>ceil(r)
*/
__Pyx_TraceLine(100,1,__PYX_ERR(3, 100, __pyx_L1_error))
__pyx_v_minr = ((long)floor(__pyx_v_r));
/* "skimage/_shared/interpolation.pxd":101
*
* minr = <long>floor(r)
* minc = <long>floor(c) # <<<<<<<<<<<<<<
* maxr = <long>ceil(r)
* maxc = <long>ceil(c)
*/
__Pyx_TraceLine(101,1,__PYX_ERR(3, 101, __pyx_L1_error))
__pyx_v_minc = ((long)floor(__pyx_v_c));
/* "skimage/_shared/interpolation.pxd":102
* minr = <long>floor(r)
* minc = <long>floor(c)
* maxr = <long>ceil(r) # <<<<<<<<<<<<<<
* maxc = <long>ceil(c)
* dr = r - minr
*/
__Pyx_TraceLine(102,1,__PYX_ERR(3, 102, __pyx_L1_error))
__pyx_v_maxr = ((long)ceil(__pyx_v_r));
/* "skimage/_shared/interpolation.pxd":103
* minc = <long>floor(c)
* maxr = <long>ceil(r)
* maxc = <long>ceil(c) # <<<<<<<<<<<<<<
* dr = r - minr
* dc = c - minc
*/
__Pyx_TraceLine(103,1,__PYX_ERR(3, 103, __pyx_L1_error))
__pyx_v_maxc = ((long)ceil(__pyx_v_c));
/* "skimage/_shared/interpolation.pxd":104
* maxr = <long>ceil(r)
* maxc = <long>ceil(c)
* dr = r - minr # <<<<<<<<<<<<<<
* dc = c - minc
*
*/
__Pyx_TraceLine(104,1,__PYX_ERR(3, 104, __pyx_L1_error))
__pyx_v_dr = (__pyx_v_r - __pyx_v_minr);
/* "skimage/_shared/interpolation.pxd":105
* maxc = <long>ceil(c)
* dr = r - minr
* dc = c - minc # <<<<<<<<<<<<<<
*
* cdef np.float64_t top
*/
__Pyx_TraceLine(105,1,__PYX_ERR(3, 105, __pyx_L1_error))
__pyx_v_dc = (__pyx_v_c - __pyx_v_minc);
/* "skimage/_shared/interpolation.pxd":110
* cdef np.float64_t bottom
*
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
*/
__Pyx_TraceLine(110,1,__PYX_ERR(3, 110, __pyx_L1_error))
__pyx_v_top_left = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_minr, __pyx_v_minc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":111
*
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval)
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*/
__Pyx_TraceLine(111,1,__PYX_ERR(3, 111, __pyx_L1_error))
__pyx_v_top_right = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_minr, __pyx_v_maxc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":112
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval)
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*
*/
__Pyx_TraceLine(112,1,__PYX_ERR(3, 112, __pyx_L1_error))
__pyx_v_bottom_left = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_maxr, __pyx_v_minc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":113
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval) # <<<<<<<<<<<<<<
*
* top = (1 - dc) * top_left + dc * top_right
*/
__Pyx_TraceLine(113,1,__PYX_ERR(3, 113, __pyx_L1_error))
__pyx_v_bottom_right = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_maxr, __pyx_v_maxc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":115
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*
* top = (1 - dc) * top_left + dc * top_right # <<<<<<<<<<<<<<
* bottom = (1 - dc) * bottom_left + dc * bottom_right
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom)
*/
__Pyx_TraceLine(115,1,__PYX_ERR(3, 115, __pyx_L1_error))
__pyx_v_top = (((1.0 - __pyx_v_dc) * __pyx_v_top_left) + (__pyx_v_dc * __pyx_v_top_right));
/* "skimage/_shared/interpolation.pxd":116
*
* top = (1 - dc) * top_left + dc * top_right
* bottom = (1 - dc) * bottom_left + dc * bottom_right # <<<<<<<<<<<<<<
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom)
*
*/
__Pyx_TraceLine(116,1,__PYX_ERR(3, 116, __pyx_L1_error))
__pyx_v_bottom = (((1.0 - __pyx_v_dc) * __pyx_v_bottom_left) + (__pyx_v_dc * __pyx_v_bottom_right));
/* "skimage/_shared/interpolation.pxd":117
* top = (1 - dc) * top_left + dc * top_right
* bottom = (1 - dc) * bottom_left + dc * bottom_right
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom) # <<<<<<<<<<<<<<
*
* cdef inline np_floats quadratic_interpolation(np_floats x,
*/
__Pyx_TraceLine(117,1,__PYX_ERR(3, 117, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int32_t)(((1.0 - __pyx_v_dr) * __pyx_v_top) + (__pyx_v_dr * __pyx_v_bottom)));
/* "skimage/_shared/interpolation.pxd":72
*
*
* cdef inline void bilinear_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.bilinear_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_0_7__pyx_f_7skimage_7_shared_13interpolation_bilinear_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_int64_t *__pyx_v_out) {
__pyx_t_5numpy_float32_t __pyx_v_dr;
__pyx_t_5numpy_float32_t __pyx_v_dc;
long __pyx_v_minr;
long __pyx_v_minc;
long __pyx_v_maxr;
long __pyx_v_maxc;
__pyx_t_5numpy_float64_t __pyx_v_top;
__pyx_t_5numpy_float64_t __pyx_v_bottom;
__pyx_t_5numpy_uint8_t __pyx_v_top_left;
__pyx_t_5numpy_uint8_t __pyx_v_top_right;
__pyx_t_5numpy_uint8_t __pyx_v_bottom_left;
__pyx_t_5numpy_uint8_t __pyx_v_bottom_right;
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_7bilinear_interpolation", __pyx_f[3], 72, 1, __PYX_ERR(3, 72, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":100
* cdef long minr, minc, maxr, maxc
*
* minr = <long>floor(r) # <<<<<<<<<<<<<<
* minc = <long>floor(c)
* maxr = <long>ceil(r)
*/
__Pyx_TraceLine(100,1,__PYX_ERR(3, 100, __pyx_L1_error))
__pyx_v_minr = ((long)floor(__pyx_v_r));
/* "skimage/_shared/interpolation.pxd":101
*
* minr = <long>floor(r)
* minc = <long>floor(c) # <<<<<<<<<<<<<<
* maxr = <long>ceil(r)
* maxc = <long>ceil(c)
*/
__Pyx_TraceLine(101,1,__PYX_ERR(3, 101, __pyx_L1_error))
__pyx_v_minc = ((long)floor(__pyx_v_c));
/* "skimage/_shared/interpolation.pxd":102
* minr = <long>floor(r)
* minc = <long>floor(c)
* maxr = <long>ceil(r) # <<<<<<<<<<<<<<
* maxc = <long>ceil(c)
* dr = r - minr
*/
__Pyx_TraceLine(102,1,__PYX_ERR(3, 102, __pyx_L1_error))
__pyx_v_maxr = ((long)ceil(__pyx_v_r));
/* "skimage/_shared/interpolation.pxd":103
* minc = <long>floor(c)
* maxr = <long>ceil(r)
* maxc = <long>ceil(c) # <<<<<<<<<<<<<<
* dr = r - minr
* dc = c - minc
*/
__Pyx_TraceLine(103,1,__PYX_ERR(3, 103, __pyx_L1_error))
__pyx_v_maxc = ((long)ceil(__pyx_v_c));
/* "skimage/_shared/interpolation.pxd":104
* maxr = <long>ceil(r)
* maxc = <long>ceil(c)
* dr = r - minr # <<<<<<<<<<<<<<
* dc = c - minc
*
*/
__Pyx_TraceLine(104,1,__PYX_ERR(3, 104, __pyx_L1_error))
__pyx_v_dr = (__pyx_v_r - __pyx_v_minr);
/* "skimage/_shared/interpolation.pxd":105
* maxc = <long>ceil(c)
* dr = r - minr
* dc = c - minc # <<<<<<<<<<<<<<
*
* cdef np.float64_t top
*/
__Pyx_TraceLine(105,1,__PYX_ERR(3, 105, __pyx_L1_error))
__pyx_v_dc = (__pyx_v_c - __pyx_v_minc);
/* "skimage/_shared/interpolation.pxd":110
* cdef np.float64_t bottom
*
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
*/
__Pyx_TraceLine(110,1,__PYX_ERR(3, 110, __pyx_L1_error))
__pyx_v_top_left = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_minr, __pyx_v_minc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":111
*
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval)
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*/
__Pyx_TraceLine(111,1,__PYX_ERR(3, 111, __pyx_L1_error))
__pyx_v_top_right = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_minr, __pyx_v_maxc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":112
* cdef np_real_numeric top_left = get_pixel2d(image, rows, cols, minr, minc, mode, cval)
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval) # <<<<<<<<<<<<<<
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*
*/
__Pyx_TraceLine(112,1,__PYX_ERR(3, 112, __pyx_L1_error))
__pyx_v_bottom_left = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_maxr, __pyx_v_minc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":113
* cdef np_real_numeric top_right = get_pixel2d(image, rows, cols, minr, maxc, mode, cval)
* cdef np_real_numeric bottom_left = get_pixel2d(image, rows, cols, maxr, minc, mode, cval)
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval) # <<<<<<<<<<<<<<
*
* top = (1 - dc) * top_left + dc * top_right
*/
__Pyx_TraceLine(113,1,__PYX_ERR(3, 113, __pyx_L1_error))
__pyx_v_bottom_right = __pyx_fuse_0__pyx_f_7skimage_7_shared_13interpolation_get_pixel2d(__pyx_v_image, __pyx_v_rows, __pyx_v_cols, __pyx_v_maxr, __pyx_v_maxc, __pyx_v_mode, __pyx_v_cval);
/* "skimage/_shared/interpolation.pxd":115
* cdef np_real_numeric bottom_right = get_pixel2d(image, rows, cols, maxr, maxc, mode, cval)
*
* top = (1 - dc) * top_left + dc * top_right # <<<<<<<<<<<<<<
* bottom = (1 - dc) * bottom_left + dc * bottom_right
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom)
*/
__Pyx_TraceLine(115,1,__PYX_ERR(3, 115, __pyx_L1_error))
__pyx_v_top = (((1.0 - __pyx_v_dc) * __pyx_v_top_left) + (__pyx_v_dc * __pyx_v_top_right));
/* "skimage/_shared/interpolation.pxd":116
*
* top = (1 - dc) * top_left + dc * top_right
* bottom = (1 - dc) * bottom_left + dc * bottom_right # <<<<<<<<<<<<<<
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom)
*
*/
__Pyx_TraceLine(116,1,__PYX_ERR(3, 116, __pyx_L1_error))
__pyx_v_bottom = (((1.0 - __pyx_v_dc) * __pyx_v_bottom_left) + (__pyx_v_dc * __pyx_v_bottom_right));
/* "skimage/_shared/interpolation.pxd":117
* top = (1 - dc) * top_left + dc * top_right
* bottom = (1 - dc) * bottom_left + dc * bottom_right
* out[0] = <np_real_numeric_out> ((1 - dr) * top + dr * bottom) # <<<<<<<<<<<<<<
*
* cdef inline np_floats quadratic_interpolation(np_floats x,
*/
__Pyx_TraceLine(117,1,__PYX_ERR(3, 117, __pyx_L1_error))
(__pyx_v_out[0]) = ((__pyx_t_5numpy_int64_t)(((1.0 - __pyx_v_dr) * __pyx_v_top) + (__pyx_v_dr * __pyx_v_bottom)));
/* "skimage/_shared/interpolation.pxd":72
*
*
* cdef inline void bilinear_interpolation( # <<<<<<<<<<<<<<
* np_real_numeric* image, Py_ssize_t rows, Py_ssize_t cols,
* np_floats r, np_floats c, char mode, np_real_numeric cval,
*/
/* function exit code */
goto __pyx_L0;
__pyx_L1_error:;
__Pyx_WriteUnraisable("skimage._shared.interpolation.bilinear_interpolation", __pyx_clineno, __pyx_lineno, __pyx_filename, 1, 1);
__pyx_L0:;
__Pyx_TraceReturn(Py_None, 1);
}
static CYTHON_INLINE void __pyx_fuse_0_0_8__pyx_f_7skimage_7_shared_13interpolation_bilinear_interpolation(__pyx_t_5numpy_uint8_t *__pyx_v_image, Py_ssize_t __pyx_v_rows, Py_ssize_t __pyx_v_cols, __pyx_t_5numpy_float32_t __pyx_v_r, __pyx_t_5numpy_float32_t __pyx_v_c, char __pyx_v_mode, __pyx_t_5numpy_uint8_t __pyx_v_cval, __pyx_t_5numpy_float32_t *__pyx_v_out) {
__pyx_t_5numpy_float32_t __pyx_v_dr;
__pyx_t_5numpy_float32_t __pyx_v_dc;
long __pyx_v_minr;
long __pyx_v_minc;
long __pyx_v_maxr;
long __pyx_v_maxc;
__pyx_t_5numpy_float64_t __pyx_v_top;
__pyx_t_5numpy_float64_t __pyx_v_bottom;
__pyx_t_5numpy_uint8_t __pyx_v_top_left;
__pyx_t_5numpy_uint8_t __pyx_v_top_right;
__pyx_t_5numpy_uint8_t __pyx_v_bottom_left;
__pyx_t_5numpy_uint8_t __pyx_v_bottom_right;
__Pyx_TraceDeclarations
__Pyx_TraceCall("__pyx_fuse_0_0_8bilinear_interpolation", __pyx_f[3], 72, 1, __PYX_ERR(3, 72, __pyx_L1_error));
/* "skimage/_shared/interpolation.pxd":100
* cdef long minr, minc, maxr, maxc
*
* minr = <long>floor(r) # <<<<<<<<<<<<<<
* minc = <long>floor(c)
* maxr = <long>ceil(r)
*/
__Pyx_TraceLine(100,1,__PYX_ERR(3, 100, __pyx_L1_error))
__pyx_v_minr = ((long)floor(__pyx_v_r));
/* "skimage/_shared/interpolation.pxd":101
*
* minr = <long>floor(r)
* minc = <long>floor(c) # <<<<<<<<<<<<<<
* maxr = <long>ceil(r)
* maxc = <long>ceil(c)
*/
__Pyx_TraceLine(101,1,__PYX_ERR(3, 101, __pyx_L1_error))
__pyx_v_minc = ((long)floor(__pyx_v_c));
/* "skimage/_shared/interpolation.pxd":102
* minr = <long>floor(r)
* minc = <long>floor(c)
* maxr = <long>ceil(r) # <<<<<<<<<<<<<<
* maxc = <long>ceil(c)
* dr = r - minr
*/
__Pyx_TraceLine(102,1,__PYX_ERR(3, 102, __pyx_L1_error))
__pyx_v_maxr = ((long)ceil(__pyx_v_r));
/* "skimage/_shared/interpolation.pxd":103
* minc = <long>floor(c)
* maxr = <long>ceil(r)
* maxc = <long>ceil(c) # <<<<<<<<<<<<<<
* dr = r - minr
* dc = c - minc
*/
__P
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment