artist.data_parser.stral_scenario_parser
Attributes
A logger for the stral data loader. |
Functions
|
Extract deflectometry data from a |
Module Contents
- artist.data_parser.stral_scenario_parser.log
A logger for the stral data loader.
- artist.data_parser.stral_scenario_parser.extract_stral_deflectometry_data(stral_file_path: pathlib.Path, device: torch.device | None = None) tuple[torch.Tensor, torch.Tensor, list[torch.Tensor], list[torch.Tensor]]
Extract deflectometry data from a
STRALfile.Parameters
- stral_file_pathpathlib.Path
The file path to the
STRALdata that will be converted.- devicetorch.device | None
The device on which to perform computations or load tensors and models (default is None). If None,
ARTISTwill automatically select the most appropriate device (CUDA or CPU) based on availability and OS.
Returns
- torch.Tensor
The facet translation vectors. Tensor of shape [number_of_facets, 4].
- torch.Tensor
The facet canting vectors. Tensor of shape [number_of_facets, 2, 4].
- list[torch.Tensor]
The surface points per facet.
- list[torch.Tensor]
The surface normals per facet.