Closedown

This commit is contained in:
gac-x04sa
2019-02-26 14:59:02 +01:00
parent 7344318aaf
commit 5797bb4b3c
4 changed files with 14 additions and 10 deletions

View File

@@ -3,6 +3,7 @@ import numpy
def img_get_int(fname, thres1, thres2, thres3, thres4, header, width, height, depth, x1,y1,x2,y2, bx1,by1,bx2,by2 ):
# read actual image file
img = numpy.fromfile(fname, dtype=numpy.uint32)
print len(img), height, width
img.shape = height, width
# signal roi
area_I = ( x2 - x1 + 1) * ( y2 - y1 + 1)