This commit is contained in:
gac-x04sa
2018-10-30 16:10:29 +01:00
parent 4ce9f38134
commit 532e93e8b9
3 changed files with 87 additions and 0 deletions

11
script/cpython/wrapper.py Normal file
View File

@@ -0,0 +1,11 @@
from jeputils import *
def img_get_int(fname, header, width, height, depth, x1,y1,x2,y2, bx1,by1,bx2,by2 ):
ret = call_jep("CPython/image_functions", "img_get_int", [fname, header, width, height, depth, x1,y1,x2,y2, bx1,by1,bx2,by2])
return ret
#def hfitoff(data, xdeg):
# ret = call_jep("CPython/hfitoff", "hfitoff", [to_npa(data),to_npa(xdeg)])
# return (ret[0], ret[1], ret[2],ret[3], ret[4].data, ret[5].data)