mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-11 11:25:30 +08:00
added unit-tests for existing functions. and prelimenary docstrings
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Generated by Cython 0.11.3 on Sat Oct 10 21:52:16 2009 */
|
||||
/* Generated by Cython 0.11.3 on Sun Oct 11 23:48:22 2009 */
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
#include "Python.h"
|
||||
@@ -622,8 +622,8 @@ typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;
|
||||
|
||||
typedef npy_cdouble __pyx_t_5numpy_complex_t;
|
||||
|
||||
/* "/home/brucewayne/scikits_image/scikits.image/scikits/image/opencv/opencv_type.pxd":3
|
||||
* # a reimplementation of the opencv IplImage type.
|
||||
/* "/home/brucewayne/scikits_image/scikits.image/scikits/image/opencv/opencv_type.pxd":5
|
||||
* # available at build time.
|
||||
*
|
||||
* cdef struct _IplImage: # <<<<<<<<<<<<<<
|
||||
* int nSize # sizeof(_IplImage)
|
||||
@@ -657,6 +657,32 @@ struct __pyx_t_7scikits_5image_6opencv_11opencv_type__IplImage {
|
||||
|
||||
typedef struct __pyx_t_7scikits_5image_6opencv_11opencv_type__IplImage __pyx_t_7scikits_5image_6opencv_11opencv_type_IplImage;
|
||||
|
||||
/* "/home/brucewayne/scikits_image/scikits.image/scikits/image/opencv/opencv_type.pxd":38
|
||||
* ctypedef _IplImage IplImage
|
||||
*
|
||||
* ctypedef struct CvPoint2D32f: # <<<<<<<<<<<<<<
|
||||
* float x
|
||||
* float y
|
||||
*/
|
||||
|
||||
typedef struct {
|
||||
float x;
|
||||
float y;
|
||||
} __pyx_t_7scikits_5image_6opencv_11opencv_type_CvPoint2D32f;
|
||||
|
||||
/* "/home/brucewayne/scikits_image/scikits.image/scikits/image/opencv/opencv_type.pxd":42
|
||||
* float y
|
||||
*
|
||||
* ctypedef struct CvSize: # <<<<<<<<<<<<<<
|
||||
* int width
|
||||
* int height
|
||||
*/
|
||||
|
||||
typedef struct {
|
||||
int width;
|
||||
int height;
|
||||
} __pyx_t_7scikits_5image_6opencv_11opencv_type_CvSize;
|
||||
|
||||
typedef __pyx_t_5numpy_uint8_t __pyx_t_7scikits_5image_6opencv_14opencv_backend_UINT8_t;
|
||||
|
||||
typedef __pyx_t_5numpy_int8_t __pyx_t_7scikits_5image_6opencv_14opencv_backend_INT8_t;
|
||||
@@ -708,6 +734,7 @@ static int __pyx_f_7scikits_5image_6opencv_14opencv_backend_assert_not_sharing_d
|
||||
static PyArrayObject *__pyx_f_7scikits_5image_6opencv_14opencv_backend_new_array(int, npy_intp *, PyObject *); /*proto*/
|
||||
static PyArrayObject *__pyx_f_7scikits_5image_6opencv_14opencv_backend_new_array_like(PyArrayObject *); /*proto*/
|
||||
static PyArrayObject *__pyx_f_7scikits_5image_6opencv_14opencv_backend_new_array_like_diff_dtype(PyArrayObject *, PyObject *); /*proto*/
|
||||
static __pyx_t_7scikits_5image_6opencv_11opencv_type_CvPoint2D32f *__pyx_f_7scikits_5image_6opencv_14opencv_backend_as_2Dpoint_array(PyArrayObject *); /*proto*/
|
||||
#define __Pyx_MODULE_NAME "scikits.image.opencv.opencv_backend"
|
||||
int __pyx_module_is_main_scikits__image__opencv__opencv_backend = 0;
|
||||
|
||||
@@ -1977,7 +2004,7 @@ static PyArrayObject *__pyx_f_7scikits_5image_6opencv_14opencv_backend_new_arra
|
||||
* Py_INCREF(<object>dtype)
|
||||
* return PyArray_Empty(arr.ndim, arr.shape, dtype, 0) # <<<<<<<<<<<<<<
|
||||
*
|
||||
*
|
||||
* cdef CvPoint2D32f* as_2Dpoint_array(np.ndarray arr):
|
||||
*/
|
||||
__Pyx_XDECREF(((PyObject *)__pyx_r));
|
||||
__pyx_t_1 = PyArray_Empty(__pyx_v_arr->nd, __pyx_v_arr->dimensions, __pyx_v_dtype, 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||||
@@ -1999,6 +2026,44 @@ static PyArrayObject *__pyx_f_7scikits_5image_6opencv_14opencv_backend_new_arra
|
||||
return __pyx_r;
|
||||
}
|
||||
|
||||
/* "/home/brucewayne/scikits_image/scikits.image/scikits/image/opencv/opencv_backend.pyx":157
|
||||
* return PyArray_Empty(arr.ndim, arr.shape, dtype, 0)
|
||||
*
|
||||
* cdef CvPoint2D32f* as_2Dpoint_array(np.ndarray arr): # <<<<<<<<<<<<<<
|
||||
* cdef CvPoint2D32f* point2Darr
|
||||
* point2Darr = <CvPoint2D32f*>arr.data
|
||||
*/
|
||||
|
||||
static __pyx_t_7scikits_5image_6opencv_11opencv_type_CvPoint2D32f *__pyx_f_7scikits_5image_6opencv_14opencv_backend_as_2Dpoint_array(PyArrayObject *__pyx_v_arr) {
|
||||
__pyx_t_7scikits_5image_6opencv_11opencv_type_CvPoint2D32f *__pyx_v_point2Darr;
|
||||
__pyx_t_7scikits_5image_6opencv_11opencv_type_CvPoint2D32f *__pyx_r;
|
||||
__Pyx_SetupRefcountContext("as_2Dpoint_array");
|
||||
|
||||
/* "/home/brucewayne/scikits_image/scikits.image/scikits/image/opencv/opencv_backend.pyx":159
|
||||
* cdef CvPoint2D32f* as_2Dpoint_array(np.ndarray arr):
|
||||
* cdef CvPoint2D32f* point2Darr
|
||||
* point2Darr = <CvPoint2D32f*>arr.data # <<<<<<<<<<<<<<
|
||||
* return point2Darr
|
||||
*
|
||||
*/
|
||||
__pyx_v_point2Darr = ((__pyx_t_7scikits_5image_6opencv_11opencv_type_CvPoint2D32f *)__pyx_v_arr->data);
|
||||
|
||||
/* "/home/brucewayne/scikits_image/scikits.image/scikits/image/opencv/opencv_backend.pyx":160
|
||||
* cdef CvPoint2D32f* point2Darr
|
||||
* point2Darr = <CvPoint2D32f*>arr.data
|
||||
* return point2Darr # <<<<<<<<<<<<<<
|
||||
*
|
||||
*
|
||||
*/
|
||||
__pyx_r = __pyx_v_point2Darr;
|
||||
goto __pyx_L0;
|
||||
|
||||
__pyx_r = 0;
|
||||
__pyx_L0:;
|
||||
__Pyx_FinishRefcountContext();
|
||||
return __pyx_r;
|
||||
}
|
||||
|
||||
/* "/usr/local/lib/python2.6/dist-packages/Cython-0.11.3-py2.6-linux-x86_64.egg/Cython/Includes/numpy.pxd":152
|
||||
* # experimental exception made for __getbuffer__ and __releasebuffer__
|
||||
* # -- the details of this may change.
|
||||
@@ -3736,6 +3801,7 @@ PyMODINIT_FUNC PyInit_opencv_backend(void)
|
||||
if (__Pyx_ExportFunction("new_array", (void (*)(void))__pyx_f_7scikits_5image_6opencv_14opencv_backend_new_array, "PyArrayObject *(int, npy_intp *, PyObject *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||||
if (__Pyx_ExportFunction("new_array_like", (void (*)(void))__pyx_f_7scikits_5image_6opencv_14opencv_backend_new_array_like, "PyArrayObject *(PyArrayObject *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||||
if (__Pyx_ExportFunction("new_array_like_diff_dtype", (void (*)(void))__pyx_f_7scikits_5image_6opencv_14opencv_backend_new_array_like_diff_dtype, "PyArrayObject *(PyArrayObject *, PyObject *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||||
if (__Pyx_ExportFunction("as_2Dpoint_array", (void (*)(void))__pyx_f_7scikits_5image_6opencv_14opencv_backend_as_2Dpoint_array, "__pyx_t_7scikits_5image_6opencv_11opencv_type_CvPoint2D32f *(PyArrayObject *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||||
/*--- Type init code ---*/
|
||||
/*--- Type import code ---*/
|
||||
__pyx_ptype_5numpy_dtype = __Pyx_ImportType("numpy", "dtype", sizeof(PyArray_Descr)); if (unlikely(!__pyx_ptype_5numpy_dtype)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
|
||||
|
||||
Reference in New Issue
Block a user