Commit 33af9ebd authored by Gaetano Raffaele's avatar Gaetano Raffaele
Browse files

ENH: minor changes.

No related merge requests found
Showing with 3 additions and 3 deletions
+3 -3
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment