OdimH5 rays matrix.
More...
#include <radarlib/odimh5v20_support.hpp>
|
| RayMatrix () |
| Create a matrix with no rays. More...
|
|
| RayMatrix (int rays, int bins) |
| Create a matrix to store a ray collection. More...
|
|
| RayMatrix (int rays, int bins, T fillvalue) |
| Create a matrix to store a ray collection. More...
|
|
void | resize (const int rays, const int bins) |
| Resize the matrix. More...
|
|
void | resize (const int rays, const int bins, const T fillvalue) |
| Resize the matrix. More...
|
|
int | getRayCount () const |
| Get the number of rays that can be store in the matrix (matrix rows num) More...
|
|
int | getBinCount () const |
| Get the number of bins that can be store in a single ray (matrix cols num) More...
|
|
void | erase () |
| Set all matrix values to the current fill value. More...
|
|
void | fill (T value) |
| Set all matrix values to the given value. More...
|
|
T & | elem (const int r, const int b) |
| Reference to the element (r,b) More...
|
|
const T * | get () const |
| Return the pointer to the underneath data buffer. More...
|
|
int | getRowCount () const |
| Return the number of rows. More...
|
|
int | getColCount () const |
| Return the number of cols. More...
|
|
template<class T>
class OdimH5v20::RayMatrix< T >
OdimH5 rays matrix.
This class represent a collection of rays stored as a matrix
The rows are the single rays. The rows elements are the bins values of the single ray The type of every value in the matrix is defined by the user using the template syntax
The internal data buffer is automatically allocated and deallocated The matrix can be resized but the previous values will be lost and the elements will be set to 0 or to the fill value specified in the constructor
- See Also
- PolarScanData
- Examples:
- create_odim_object.cpp, create_polar_volume.cpp, read_polar_volume.cpp, and read_polar_volume2.cpp.
Create a matrix with no rays.
Create an empty matrix with nor rays
The default fill value for resize operations will be 0
Create a matrix to store a ray collection.
Create an empty matrix large enough to store the given number of rays.
Each ray can store the given number of bins The default fill value for resize operations will be 0
- Parameters
-
rays | number of rays |
bins | number of bins in a single ray |
Create a matrix to store a ray collection.
Create an empty matrix large enough to store the given number of rays.
Each ray can store the given number of bins The given fillvalue will be used for resize operations
- Parameters
-
rays | number of rays |
bins | number of bins in a single ray |
fillvalue | number of bins in a single ray |
Resize the matrix.
Resize the ray matrix The previous matrix data will be erased and filled with the default fill value
- Parameters
-
rays | the new rows number |
bins | the new cols number |
Resize the matrix.
Resize the ray matrix and set the new default fill value The previous matrix data will be erased and filled with the new fill value
- Parameters
-
rays | the new rays number |
bins | the new bins number |
fillvalue | the new fill value to use |
Get the number of rays that can be store in the matrix (matrix rows num)
Get the number of bins that can be store in a single ray (matrix cols num)
Set all matrix values to the current fill value.
Set all matrix values to the given value.
Reference to the element (r,b)
- Parameters
-
r | row index from 0 to rows-1 |
b | col index from 0 to cols-1 |
Return the pointer to the underneath data buffer.
Return the number of rows.
Return the number of cols.
The documentation for this class was generated from the following file: