mesh_map

Data structure for constructing and viewing a bathymetry mesh and for draping the mesh with sidescan data

auvlib.bathy_maps.mesh_map.compute_normals(arg0: numpy.ndarray[float64[m, n]], arg1: numpy.ndarray[int32[m, n]]) → numpy.ndarray[float64[m, n]]

Compute normals from the mesh, per vertex

auvlib.bathy_maps.mesh_map.cut_square_around_point(arg0: numpy.ndarray[float64[m, n]], arg1: numpy.ndarray[int32[m, n]], arg2: numpy.ndarray[float64[2, 1]], arg3: float) → Tuple[numpy.ndarray[float64[m, n]], numpy.ndarray[int32[m, n]]]

Cut out a square from within the mesh, around point p with side length

auvlib.bathy_maps.mesh_map.depth_at_point(arg0: numpy.ndarray[float64[m, n]], arg1: numpy.ndarray[int32[m, n]], arg2: numpy.ndarray[float64[3, 1]]) → float

Get the depth at point in the mesh, returns 0 if no mesh at point

auvlib.bathy_maps.mesh_map.height_map_from_cloud(arg0: List[numpy.ndarray[float64[3, 1]]], arg1: float) → Tuple[numpy.ndarray[float64[m, n]], numpy.ndarray[float64[2, 2]]]

Construct height map from vector<Eigen::Vector3d>

auvlib.bathy_maps.mesh_map.height_map_from_dtm_cloud(arg0: List[numpy.ndarray[float64[3, 1]]], arg1: float) → Tuple[numpy.ndarray[float64[m, n]], numpy.ndarray[float64[2, 2]]]

Construct height map from vector<Eigen::Vector3d>

auvlib.bathy_maps.mesh_map.height_map_from_pings(arg0: List[std_data::mbes_ping], arg1: float) → Tuple[numpy.ndarray[float64[m, n]], numpy.ndarray[float64[2, 2]]]

Construct height map from mbes_ping::PingsT

auvlib.bathy_maps.mesh_map.height_map_to_texture(arg0: numpy.ndarray[float64[m, n]]) → Tuple[numpy.ndarray[uint8[m, n]], numpy.ndarray[uint8[m, n]], numpy.ndarray[uint8[m, n]]]

Get R, G, B color textures from height map

auvlib.bathy_maps.mesh_map.mesh_and_normals_from_pings(arg0: List[std_data::mbes_ping], arg1: float) → Tuple[numpy.ndarray[float64[m, n]], numpy.ndarray[int32[m, n]], numpy.ndarray[float64[m, n]], numpy.ndarray[float64[2, 2]]]

Get vertices, faces, normals and bounds form mbes_ping::PingsT

auvlib.bathy_maps.mesh_map.mesh_from_cloud(arg0: List[numpy.ndarray[float64[3, 1]]], arg1: float) → Tuple[numpy.ndarray[float64[m, n]], numpy.ndarray[int32[m, n]], numpy.ndarray[float64[2, 2]]]

Construct mesh from vector<Eigen::Vector3d>

auvlib.bathy_maps.mesh_map.mesh_from_dtm_cloud(arg0: List[numpy.ndarray[float64[3, 1]]], arg1: float) → Tuple[numpy.ndarray[float64[m, n]], numpy.ndarray[int32[m, n]], numpy.ndarray[float64[2, 2]]]

Construct mesh from vector<Eigen::Vector3d>

auvlib.bathy_maps.mesh_map.mesh_from_height_map(arg0: numpy.ndarray[float64[m, n]], arg1: numpy.ndarray[float64[2, 2]]) → Tuple[numpy.ndarray[float64[m, n]], numpy.ndarray[int32[m, n]]]

Construct mesh from height map

auvlib.bathy_maps.mesh_map.mesh_from_pings(arg0: List[std_data::mbes_ping], arg1: float) → Tuple[numpy.ndarray[float64[m, n]], numpy.ndarray[int32[m, n]], numpy.ndarray[float64[2, 2]]]

Construct mesh from mbes_ping::PingsT

auvlib.bathy_maps.mesh_map.normals_at_points(arg0: numpy.ndarray[float64[m, n]], arg1: numpy.ndarray[float64[m, n]], arg2: numpy.ndarray[float64[2, 2]], arg3: float) → numpy.ndarray[float64[m, n]]

Get the normals at a set of points on the mesh

auvlib.bathy_maps.mesh_map.read_ply_mesh(arg0: unicode) → Tuple[numpy.ndarray[float64[m, n]], numpy.ndarray[int32[m, n]]]

Read vertices and faces from a .ply file

auvlib.bathy_maps.mesh_map.shade_image_from_normals(arg0: numpy.ndarray[float64[m, n]], arg1: numpy.ndarray[float64[2, 2]], arg2: float, arg3: numpy.ndarray[float64[3, 1]]) → numpy.ndarray[float64[m, n]]

Compute [0, 1] shade image from normals and lighting direction

auvlib.bathy_maps.mesh_map.show_height_map(arg0: numpy.ndarray[float64[m, n]]) → None

Display height map using opencv

auvlib.bathy_maps.mesh_map.show_mesh(arg0: numpy.ndarray[float64[m, n]], arg1: numpy.ndarray[int32[m, n]]) → None

Display mesh using igl viewer

auvlib.bathy_maps.mesh_map.show_textured_mesh(arg0: numpy.ndarray[float64[m, n]], arg1: numpy.ndarray[int32[m, n]], arg2: numpy.ndarray[uint8[m, n]], arg3: numpy.ndarray[uint8[m, n]], arg4: numpy.ndarray[uint8[m, n]], arg5: numpy.ndarray[float64[2, 2]]) → None

Display textured mesh using igl viewer

auvlib.bathy_maps.mesh_map.write_dae_mesh(arg0: numpy.ndarray[float64[m, n]], arg1: numpy.ndarray[int32[m, n]], arg2: unicode) → None

Write vertices and faces to a .dae file