Error compiling Cython file:
------------------------------------------------------------
...
]
@cython.boundscheck(False) # turn of bounds-checking for entire function
@cython.cdivision(True)
@cython.wraparound(False)
cdef inline double interpolate(image_t[:, :, :] V, double x, double y, double z)
nogil:
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:80:31: 'image_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
@cython.boundscheck(False) # turn of bounds-checking for entire function
@cython.cdivision(True)
@cython.wraparound(False)
cdef inline image_t _G(image_t[:, :, :] V, int x, int y, int z) nogil:
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:126:12: 'image_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
@cython.boundscheck(False) # turn of bounds-checking for entire function
@cython.cdivision(True)
@cython.wraparound(False)
cdef inline image_t _G(image_t[:, :, :] V, int x, int y, int z) nogil:
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:126:23: 'image_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
@cython.boundscheck(False) # turn of bounds-checking for entire function
@cython.cdivision(True)
@cython.wraparound(False)
cdef void calc_coef_tricub(image_t[:, :, :] V, double x, double y, double z, dou
ble [64] coef) nogil:
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:153:27: 'image_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
@cython.boundscheck(False) # turn of bounds-checking for entire function
@cython.cdivision(True)
@cython.wraparound(False)
cdef inline double tricub_interpolate(image_t[:, :, :] V, double x, double y, do
uble z) nogil:
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:239:38: 'image_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
@cython.boundscheck(False) # turn of bounds-checking for entire function
@cython.cdivision(True)
@cython.wraparound(False)
cdef inline double tricubicInterpolate(image_t[:, :, :] V, double x, double y, d
ouble z) nogil:
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:283:39: 'image_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
arr[2] = bicubicInterpolate(p[2], y-yi, z-zi)
arr[3] = bicubicInterpolate(p[3], y-yi, z-zi)
return cubicInterpolate(arr, x-xi)
def tricub_interpolate_py(image_t[:, :, :] V, double x, double y, double z):
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:306:26: 'image_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
def tricub_interpolate_py(image_t[:, :, :] V, double x, double y, double z):
return tricub_interpolate(V, x, y, z)
def tricub_interpolate2_py(image_t[:, :, :] V, double x, double y, double z):
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:309:27: 'image_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
return tricub_interpolate(V, x, y, z)
def tricub_interpolate2_py(image_t[:, :, :] V, double x, double y, double z):
return tricubicInterpolate(V, x, y, z)
def trilin_interpolate_py(image_t[:, :, :] V, double x, double y, double z):
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:312:26: 'image_t' is not a type identifier
Error compiling Cython file:
------------------------------------------------------------
...
@cython.boundscheck(False) # turn of bounds-checking for entire function
@cython.cdivision(True)
@cython.wraparound(False)
cdef inline image_t _G(image_t[:, :, :] V, int x, int y, int z) nogil:
cdef int dz, dy, dx
dz = V.shape[0] - 1
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:128:20: Coercion from Python not allowed witho
ut the GIL
Error compiling Cython file:
------------------------------------------------------------
...
@cython.boundscheck(False) # turn of bounds-checking for entire function
@cython.cdivision(True)
@cython.wraparound(False)
cdef inline image_t _G(image_t[:, :, :] V, int x, int y, int z) nogil:
cdef int dz, dy, dx
dz = V.shape[0] - 1
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:128:20: Calling gil-requiring function not all
owed without gil
Error compiling Cython file:
------------------------------------------------------------
...
@cython.boundscheck(False) # turn of bounds-checking for entire function
@cython.cdivision(True)
@cython.wraparound(False)
cdef inline image_t _G(image_t[:, :, :] V, int x, int y, int z) nogil:
cdef int dz, dy, dx
dz = V.shape[0] - 1
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:128:16: Indexing Python object not allowed wit
hout gil
Error compiling Cython file:
------------------------------------------------------------
...
@cython.boundscheck(False) # turn of bounds-checking for entire function
@cython.cdivision(True)
@cython.wraparound(False)
cdef inline image_t _G(image_t[:, :, :] V, int x, int y, int z) nogil:
cdef int dz, dy, dx
dz = V.shape[0] - 1
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:128:10: Accessing Python attribute not allowed
without gil
Error compiling Cython file:
------------------------------------------------------------
...
@cython.cdivision(True)
@cython.wraparound(False)
cdef inline image_t _G(image_t[:, :, :] V, int x, int y, int z) nogil:
cdef int dz, dy, dx
dz = V.shape[0] - 1
dy = V.shape[1] - 1
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:129:20: Coercion from Python not allowed witho
ut the GIL
Error compiling Cython file:
------------------------------------------------------------
...
@cython.cdivision(True)
@cython.wraparound(False)
cdef inline image_t _G(image_t[:, :, :] V, int x, int y, int z) nogil:
cdef int dz, dy, dx
dz = V.shape[0] - 1
dy = V.shape[1] - 1
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:129:20: Calling gil-requiring function not all
owed without gil
Error compiling Cython file:
------------------------------------------------------------
...
@cython.cdivision(True)
@cython.wraparound(False)
cdef inline image_t _G(image_t[:, :, :] V, int x, int y, int z) nogil:
cdef int dz, dy, dx
dz = V.shape[0] - 1
dy = V.shape[1] - 1
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:129:16: Indexing Python object not allowed wit
hout gil
Error compiling Cython file:
------------------------------------------------------------
...
@cython.cdivision(True)
@cython.wraparound(False)
cdef inline image_t _G(image_t[:, :, :] V, int x, int y, int z) nogil:
cdef int dz, dy, dx
dz = V.shape[0] - 1
dy = V.shape[1] - 1
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:129:10: Accessing Python attribute not allowed
without gil
Error compiling Cython file:
------------------------------------------------------------
...
@cython.wraparound(False)
cdef inline image_t _G(image_t[:, :, :] V, int x, int y, int z) nogil:
cdef int dz, dy, dx
dz = V.shape[0] - 1
dy = V.shape[1] - 1
dx = V.shape[2] - 1
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:130:20: Coercion from Python not allowed witho
ut the GIL
Error compiling Cython file:
------------------------------------------------------------
...
@cython.wraparound(False)
cdef inline image_t _G(image_t[:, :, :] V, int x, int y, int z) nogil:
cdef int dz, dy, dx
dz = V.shape[0] - 1
dy = V.shape[1] - 1
dx = V.shape[2] - 1
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:130:20: Calling gil-requiring function not all
owed without gil
Error compiling Cython file:
------------------------------------------------------------
...
@cython.wraparound(False)
cdef inline image_t _G(image_t[:, :, :] V, int x, int y, int z) nogil:
cdef int dz, dy, dx
dz = V.shape[0] - 1
dy = V.shape[1] - 1
dx = V.shape[2] - 1
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:130:16: Indexing Python object not allowed wit
hout gil
Error compiling Cython file:
------------------------------------------------------------
...
@cython.wraparound(False)
cdef inline image_t _G(image_t[:, :, :] V, int x, int y, int z) nogil:
cdef int dz, dy, dx
dz = V.shape[0] - 1
dy = V.shape[1] - 1
dx = V.shape[2] - 1
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:130:10: Accessing Python attribute not allowed
without gil
Error compiling Cython file:
------------------------------------------------------------
...
if z < 0:
z = dz + z + 1
elif z > dz:
z = z - dz - 1
return V[z, y, x]
^
------------------------------------------------------------
invesalius\data\interpolation.pyx:147:12: Constructing Python tuple not allowed
without gil
Traceback (most recent call last):
File "setup.py", line 44, in <module>
extra_compile_args=['/openmp'],),
File "C:\Python27\Lib\site-packages\Cython\Build\Dependencies.py", line 915, i
n cythonize
cythonize_one(*args)
File "C:\Python27\Lib\site-packages\Cython\Build\Dependencies.py", line 1037,
in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: invesalius/data/interpolation.pyx