#include <merl_linearizer.h>
|
| | BBM_IMPORT_CONFIG (CONF) |
| |
| | merl_linearizer (const vec2d< Size_t > &h=vec2d< Size_t >(1, 90), const vec2d< Size_t > &d=vec2d< Size_t >(180, 90)) |
| | Constructor.
|
| |
| Size_t | size (void) const |
| | Size of the linearized 'array' of direction pairs.
|
| |
| Vec3dPair | operator() (const Size_t &idx, Mask mask=true) const |
| | The in-out coordinate of the idx-th sample.
|
| |
| Size_t | operator() (const Vec3d &in, const Vec3d &out, Mask mask=true) const |
| | Map a coordinate to an linear index.
|
| |
◆ merl_linearizer()
| merl_linearizer |
( |
const vec2d< Size_t > & |
h = vec2d<Size_t>(1,90), |
|
|
const vec2d< Size_t > & |
d = vec2d<Size_t>(180,90) |
|
) |
| |
|
inline |
◆ BBM_IMPORT_CONFIG()
| BBM_IMPORT_CONFIG |
( |
CONF |
| ) |
|
◆ operator()() [1/2]
| Vec3dPair operator() |
( |
const Size_t & |
idx, |
|
|
Mask |
mask = true |
|
) |
| const |
|
inline |
The in-out coordinate of the idx-th sample.
- Parameters
-
| idx | = index of the sample (in [0, samples()-1] |
- Returns
- a Ve3dPair of the in and out direction of the sample. Will return {0,0} if the index is not valid.
Note: the sample direction is placed at the center of the index's bin, except for the top and bottom, where it is placed at the center of the top and bottom edge respectively.
◆ operator()() [2/2]
| Size_t operator() |
( |
const Vec3d & |
in, |
|
|
const Vec3d & |
out, |
|
|
Mask |
mask = true |
|
) |
| const |
|
inline |
Map a coordinate to an linear index.
- Parameters
-
| in | = incident direction |
| out | = outgoing direction |
- Returns
- linearized index
Invalid querries are set to 'size()'.
◆ size()
| Size_t size |
( |
void |
| ) |
const |
|
inline |
Size of the linearized 'array' of direction pairs.
◆ _samplesD
◆ _samplesH
The documentation for this struct was generated from the following file: