-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnlos_dataset.hpp
50 lines (43 loc) · 1.92 KB
/
nlos_dataset.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef NLOS_DATASET_HPP
#define NLOS_DATASET_HPP
#include <string>
#include <xtensor/xarray.hpp>
#include "nlos_enums.hpp"
namespace nlos
{
/**
* @brief Represents an NLOS dataset and metadata
*/
class NLOSDataset
{
public:
// Spad capture volume
xt::xarray<float> data;
// Camera/Spad
xt::xarray<float> camera_grid_positions; // Position of every recorded point of the grid
xt::xarray<float> camera_grid_normals; // Normal of every recorded point of the grid
xt::xarray<float> camera_position; // Camera origin
xt::xarray<float> camera_grid_dimensions; // Dimensions of the camera point grid
xt::xarray<float> camera_grid_points; // Number of capture points in the grid in X and Y.
// Laser
xt::xarray<float> laser_grid_positions; // Position of every traced point of the grid
xt::xarray<float> laser_grid_normals; // Normal of every traced point of the grid
xt::xarray<float> laser_position; // Laser origin
xt::xarray<float> laser_grid_dimensions; // Dimensions of the laser point grid
xt::xarray<float> laser_grid_points; // Number of laser points in the grid in X and Y.
// Scene info
xt::xarray<float> hidden_volume_position; // Center of the hidden geometry
xt::xarray<float> hidden_volume_rotation; // Hidden geometry rotation with respect
// to the ground truth
/// These next are arrays for consistency, but they should be single values ///
xt::xarray<float> hidden_volume_size; // Dimensions of prism containing the hidden geometry
xt::xarray<int> t; // Time resolution
xt::xarray<float> t0; // Time at which the captures start
xt::xarray<int> bins; // Number of time instants recorded (number of columns in the data)
xt::xarray<float> deltat; // Per pixel aperture duration (time resolution)
CaptureStrategy capture;
DataOrder data_order = DataOrder::ColumnMajor;
std::string engine = "default";
};
}
#endif // NLOS_DATASET_HPP