Skip to content

Add photoscan loading functionality #180

@ebrahimebrahim

Description

@ebrahimebrahim

Now that we have a concept of photoscans in the openlifu Database, let's add a method of loading the photoscan data into in-memory data structures so that openlifu-python can provide a common format for the 3D registration library and for SlicerOpenLIFU to work with.

This functionality should not be part of Database, but maybe somehting like openlifu.io? Maybe it's own module like openlifu.io.photoscans?

The goal is to have some functions that make it easy to take an openlifu Photoscan object and load the textured mesh into memory as some data structure (tuple, dict, custom class, whatver) that consists of a vtkPolyData and an image array of some kind (a numpy array? a vtkTexture?)

Design considerations include the following downstream applications:

  • SlicerOpenLIFU will use this to load the photoscan into memory and then it will construct a textured model node (S#147) . We know how to construct a textured model node from Sam's branch here
  • Kedar's library should interoperate with this format as well
  • Need to be able to convert between an openlifu photoscan object and the dictionary/json format so that the photocan "approval" status can be updated in memory and written to file.

Depends on #177


Traceability Information:

This information was populated automatically by a script on 2025-06-09T18:02:06Z.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions