Menu

[09bd5b]: / pythonapi / imageproc.i  Maximize  Restore  History

Download this file

24 lines (22 with data), 645 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/** wrapping imageproc.h */
%typemap(in) (const Array *in, Array *dt) {
if(!PyArray_Check($input)){
PyErr_SetString(PyExc_ValueError, "Expecting a Numpy-Array");
return NULL;
}
$1 = pyarray_to_myarray($input);
if($1==NULL){
PyErr_SetString(PyExc_ValueError, "conversion from np to myarray failed");
return NULL;
}
$2 = NULL;
}
%typemap(out) Array* {
if( !$1 ){
PyErr_SetString(PyExc_ValueError, "Something wrong in function");
return NULL;
}
$result = myarray_to_pyarray($1);
}
Array* disttransform_deadreckoning( const Array *in, Array *dt );
%clear Array*;
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.