Script execution
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
def img_get_int(fname, thres1, thres2, thres3, thres4, header, width, height, depth, x1,y1,x2,y2, bx1,by1,bx2,by2 , filter_median = False, filter_nsigma = 0):
|
||||
reload=True
|
||||
ret = call_jep("cpython/image_functions", "img_get_int", [fname, thres1, thres2, thres3, thres4, header, width, height, depth, x1,y1,x2,y2, bx1,by1,bx2,by2, filter_median, filter_nsigma], reload)
|
||||
#return ret
|
||||
#TODO: Why I_sum ans I_sum_bgr are strings?
|
||||
(I_sum, area_I, thresh1_count, thresh2_count, thresh3_count, thresh4_count, I_sum_bgr, area_bgr) = ret
|
||||
return (int(I_sum), area_I, thresh1_count, thresh2_count, thresh3_count, thresh4_count, int(I_sum_bgr), area_bgr)
|
||||
|
||||
|
||||
tmp_file = get_context().setup.expandPath("{images}/px.img")
|
||||
threshold1, threshold2, threshold3, threshold4 = 40, 500, 8000, 100000
|
||||
PIX_COLOR_DEPTH = 32
|
||||
|
||||
Reference in New Issue
Block a user