Closedown
This commit is contained in:
@@ -21,5 +21,5 @@ def img_get_int(fname, thres1, thres2, thres3, thres4, header, width, height, d
|
||||
def img_read(fname, header, width, height, depth):
|
||||
img = numpy.fromfile(fname, dtype=numpy.uint32)
|
||||
img.shape = height, width
|
||||
return img.flat
|
||||
return img.flatten()
|
||||
|
||||
@@ -10,7 +10,7 @@ def img_get_int(fname, thres1, thres2, thres3, thres4, header, width, height, de
|
||||
|
||||
def img_read(fname, header, width, height, depth):
|
||||
ret = call_jep("cpython/image_functions", "img_read", [fname, header, width, height, depth])
|
||||
return ret
|
||||
return ret.data
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user