diff --git a/Common/geometry.py b/Common/geometry.py index 21622c636c41ac8c806278e17f720f550cf1cb3a..6d7397e9f97bd59ceb38ec0dc5de8b6abacf0f6d 100644 --- a/Common/geometry.py +++ b/Common/geometry.py @@ -252,7 +252,7 @@ def get_displacements_to_ref(_lst: List[otb.Application], _msk: List[otb.Applica geobin_spacing = floor((sz-geobin_size*ceil(sqrt(num_geobins))-2*margin) / 4) shifts = [] - for i in tqdm(range(0,len(_lst))): + for i in tqdm(range(0,len(_lst)), desc="Computing displacements"): if i != idx: if use_masks: sh = compute_displacement_with_masks(_lst[i], ref_img, _msk[i], ref_msk, @@ -324,8 +324,8 @@ def distance_constrained_2d_sampling(n, shape, min_dist): init_dist = np.min((x[1] - x[0], y[1] - y[0])) if init_dist <= min_dist: - print( - '[INFO] Grid too small for the requested number of patches, returning regular grid without distance constraint.') + #print( + # '[INFO] Grid too small for the requested number of patches, returning regular grid without distance constraint.') return np.round(coords).astype(np.int) # perturb points