diff --git a/script/cpython/image_functions.py b/script/cpython/image_functions.py index 4e12689..6df00a7 100644 --- a/script/cpython/image_functions.py +++ b/script/cpython/image_functions.py @@ -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.flatten() + return img.flatten('l') \ No newline at end of file