openlifu.photoscan

Functions

convert_between_ras_and_lps(mesh)

Converts a mesh (polydata, unstructured grid or even just a point cloud) between the LPS (left-posterior-superior) coordinate system and RAS (right-anterior-superior) coordinate system.

convert_numpy_to_vtkimage(image_numpy)

Converts a numpy array with dimensions [HxWx3] representing an RGB image into vtkImageData

load_data_from_filepaths(model_abspath, ...)

This function returns the data directly from the model and texture filepaths without requiring a photoscan object. param model_abspath: absolute filepath to model data texture abspath: absolute filepath to texture data Returns: Photoscan data as (model_vtkpolydata, texture_vtkimagedata).

load_data_from_photoscan(photoscan, parent_dir)

param parent_dir: parent directory containing model and texture data filepaths Returns: Photoscan data as (model_vtkpolydata, texture_vtkimagedata)

load_model(file_name)

This function assumes that the model is saved to file in LPS coordinates.

load_texture(file_name)

merge_textures(input_obj_path, output_path)

read_as_vtkimagedata(file_name)

read_as_vtkpolydata(file_name)

run_reconstruction(images[, pipeline])

Run Meshroom with the given images and pipeline.

udim_to_tile(udim_str)

Classes

Photoscan([id, name, model_filename, ...])