openlifu.nav.photoscan¶
Functions
|
Transforms an image array to undo or redo EXIF orientation. |
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. |
|
|
Converts a numpy array with dimensions [HxWx3] representing an RGB image into vtkImageData |
Get a list of names of valid meshroom pipelines that can be used in run_reconstruction |
|
Get the MODNet checkpoint path. |
|
|
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). |
|
param parent_dir: parent directory containing model and texture data filepaths Returns: Photoscan data as (model_vtkpolydata, texture_vtkimagedata) |
|
This function assumes that the model is saved to file in LPS coordinates. |
|
|
|
Runs MODNet on a list of image paths and saves the output masks. |
|
Merge the UDIM textures output by meshroom into a single large texture |
|
Preprocess an input image for MODNet inference. |
|
|
|
|
|
Run Meshroom with the given images and pipeline. :param images: List of image file paths. :type images: list[Path] :param pipeline_name: Name of the Meshroom pipeline in meshroom_pipelines folder. See also get_meshroom_pipeline_names. :type pipeline_name: str :param input_resize_width: Width to which input images will be resized, in pixels. :type input_resize_width: int :param use_masks: Whether to include a background removal step to filter the dense reconstruction. :type use_masks: bool. |
|
Run a subprocess and stream its stdout and stderr output to separate handlers/loggers. |
|
Convert UDIM string to tile coordinates |
Classes
|