bug in reading order is fixed

pull/28/head
vahidrezanezhad 4 years ago committed by GitHub
parent 73b7c780ab
commit 4b3c8a6707
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2155,13 +2155,17 @@ def return_boxes_of_images_by_order_of_reading_new(splitter_y_new, regions_witho
x_start_by_order=[] x_start_by_order=[]
x_end_by_order=[] x_end_by_order=[]
if len(x_starting)>0: if len(x_starting)>0:
all_columns = np.array(range(len(peaks_neg_tot)-1))
columns_covered_by_lines_covered_more_than_2col=[] columns_covered_by_lines_covered_more_than_2col=[]
for dj in range(len(x_starting)): for dj in range(len(x_starting)):
if set( list(np.array(range(x_starting[dj],x_ending[dj])) ) ) == set(all_columns):
pass
else:
columns_covered_by_lines_covered_more_than_2col=columns_covered_by_lines_covered_more_than_2col+list(np.array(range(x_starting[dj],x_ending[dj])) ) columns_covered_by_lines_covered_more_than_2col=columns_covered_by_lines_covered_more_than_2col+list(np.array(range(x_starting[dj],x_ending[dj])) )
columns_covered_by_lines_covered_more_than_2col=list(set(columns_covered_by_lines_covered_more_than_2col)) columns_covered_by_lines_covered_more_than_2col=list(set(columns_covered_by_lines_covered_more_than_2col))
all_columns=np.array(range(len(peaks_neg_tot)-1))
columns_not_covered=list( set(all_columns)-set(columns_covered_by_lines_covered_more_than_2col) ) columns_not_covered=list( set(all_columns)-set(columns_covered_by_lines_covered_more_than_2col) )

Loading…
Cancel
Save