Skip to content

Instantly share code, notes, and snippets.

View giorgioangel's full-sized avatar

Giorgio Angelotti giorgioangel

  • ISAE-SUPAERO
  • Toulouse
View GitHub Profile
@giorgioangel
giorgioangel / prediction_uv.py
Created May 1, 2024 08:53
Previewer of 3D Scroll ink predictions
import numpy as np
import zarr
from matplotlib import pyplot as plt
from PIL import Image
from tqdm import tqdm
import open3d as o3d
Image.MAX_IMAGE_PIXELS = None
# Taken from ThaumatoAnakalyptor by Julian Schiliger
def orient_uvs(vertices):
@giorgioangel
giorgioangel / mesh_merger.py
Created April 30, 2024 18:26
Script to merge triangular meshes from the surface of papyri sheets (Vesuvius Challenge)
import open3d as o3d
import numpy as np
import igl
from PIL import Image
from scipy.spatial import Delaunay
Image.MAX_IMAGE_PIXELS = None
def find_affine_2dtransform(src_pts, dst_pts):
"""