Searched refs:np_img (Results 1 – 6 of 6) sorted by relevance
/dports/astro/astrometry/astrometry.net-0.85/plot/ |
H A D | plotstuff.i | 344 PyArrayObject *np_img=NULL; 346 np_img = (PyArrayObject*)PyArray_FromAny(py_img, dtype, 3, 3, req, NULL); 347 if ((PyArray_DIM(np_img, 0) != self->H) || 348 (PyArray_DIM(np_img, 1) != self->W) || 349 (PyArray_DIM(np_img, 2) != 4)) { 353 if (!np_img) { 358 inimg = PyArray_DATA(np_img); 365 Py_DECREF(np_img);
|
H A D | plotstuff_wrap.c | 3274 PyArrayObject *np_img=NULL; in plot_args_set_image_from_numpy() local 3276 np_img = (PyArrayObject*)PyArray_FromAny(py_img, dtype, 3, 3, req, NULL); in plot_args_set_image_from_numpy() 3277 if ((PyArray_DIM(np_img, 0) != self->H) || in plot_args_set_image_from_numpy() 3278 (PyArray_DIM(np_img, 1) != self->W) || in plot_args_set_image_from_numpy() 3279 (PyArray_DIM(np_img, 2) != 4)) { in plot_args_set_image_from_numpy() 3283 if (!np_img) { in plot_args_set_image_from_numpy() 3288 inimg = PyArray_DATA(np_img); in plot_args_set_image_from_numpy() 3295 Py_DECREF(np_img); in plot_args_set_image_from_numpy()
|
/dports/astro/astrometry/astrometry.net-0.85/util/ |
H A D | util.i | 780 if (!np_img || !np_outimg || in lanczos_shift_image_c() 783 np_img, np_outimg, np_outweight); in lanczos_shift_image_c() 787 H = (int)PyArray_DIM(np_img, 0); in lanczos_shift_image_c() 788 W = (int)PyArray_DIM(np_img, 1); in lanczos_shift_image_c() 824 img = PyArray_DATA(np_img); in lanczos_shift_image_c() 1771 PyArrayObject *np_img=NULL, *np_weight=NULL; 1774 np_img = (PyArrayObject*)PyArray_CheckFromAny(py_img, dtype, 2, 2, req, NULL); 1775 img = PyArray_DATA(np_img); 1776 if (!np_img) { 1778 Py_XDECREF(np_img); [all …]
|
H A D | util_wrap.c | 3718 if (!np_img || !np_outimg || in lanczos_shift_image_c() 3721 np_img, np_outimg, np_outweight); in lanczos_shift_image_c() 3725 H = (int)PyArray_DIM(np_img, 0); in lanczos_shift_image_c() 3726 W = (int)PyArray_DIM(np_img, 1); in lanczos_shift_image_c() 3762 img = PyArray_DATA(np_img); in lanczos_shift_image_c() 4402 PyArrayObject *np_img=NULL, *np_weight=NULL; in coadd_add_numpy() local 4405 np_img = (PyArrayObject*)PyArray_CheckFromAny(py_img, dtype, 2, 2, req, NULL); in coadd_add_numpy() 4406 img = PyArray_DATA(np_img); in coadd_add_numpy() 4407 if (!np_img) { in coadd_add_numpy() 4409 Py_XDECREF(np_img); in coadd_add_numpy() [all …]
|
/dports/misc/py-mxnet/incubator-mxnet-1.9.0/tests/python/unittest/ |
H A D | test_image.py | 378 np_img = np.expand_dims(xlin + ylin, axis=2) 380 nd_img = mx.nd.array(np_img.transpose((2, 0, 1))) # convert to CHW 386 scipy_rot = scipy.ndimage.rotate(np_img, rot_angle, axes=(1, 0), reshape=False,
|
/dports/misc/mxnet/incubator-mxnet-1.9.0/tests/python/unittest/ |
H A D | test_image.py | 378 np_img = np.expand_dims(xlin + ylin, axis=2) 380 nd_img = mx.nd.array(np_img.transpose((2, 0, 1))) # convert to CHW 386 scipy_rot = scipy.ndimage.rotate(np_img, rot_angle, axes=(1, 0), reshape=False,
|