Skip to content

Commit 098e976

Browse files
committed
cleaned
1 parent e02357b commit 098e976

1 file changed

Lines changed: 1 addition & 22 deletions

File tree

GEMstack/scripts/colorization.py

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -241,28 +241,7 @@ def main():
241241
if u_f.shape[0] == 0 or v_f.shape[0] == 0:
242242
print(f"❌ No visible points for {camera_type}")
243243
continue
244-
# # Step 5: Interpolate RGB
245-
# # map_x = u_f.reshape(-1, 1)
246-
# # map_y = v_f.reshape(-1, 1)
247-
# map_x = u_f.reshape(1, -1).astype(np.float32)
248-
# map_y = v_f.reshape(1, -1).astype(np.float32)
249-
250-
# print(f"map_x shape: {map_x.shape}, map_y shape: {map_y.shape}")
251-
# print(f"image shape: {image_undistorted.shape}")
252-
# # Per-channel remap
253-
# colors_interpolated = []
254-
# for c in range(3):
255-
# remapped = cv2.remap(
256-
# image_undistorted[:, :, c],
257-
# map_x,
258-
# map_y,
259-
# interpolation=cv2.INTER_LINEAR,
260-
# borderMode=cv2.BORDER_CONSTANT,
261-
# borderValue=0
262-
# )
263-
# # Result will be shape (1, N) → reshape to (N, 1)
264-
# colors_interpolated.append(remapped.reshape(-1, 1))
265-
244+
# Step 5: Interpolate RGB
266245
colors_interpolated = sample_rgb_colors(image_undistorted, u_f, v_f)
267246
# Step 6: Assign to full color array
268247
# colors_interpolated = np.concatenate(colors_interpolated, axis=1) # shape: (N, 3)

0 commit comments

Comments
 (0)