|
| const std::vector< T > & | data () const |
| | Gets grid data. More...
|
| |
| std::size_t | height () const |
| | Gets grid height. More...
|
| |
| double | resolution () const |
| | Gets grid resolution. More...
|
| |
| std::size_t | size () const |
| | Gets grid size (ie. number of grid cells). More...
|
| |
| | ValueGrid2 (std::vector< T > data, std::size_t width, double resolution=1.) |
| | Constructs the grid. More...
|
| |
| std::size_t | width () const |
| | Gets grid width. More...
|
| |
| Eigen::Vector2d | coordinates_at (std::size_t index) const |
| | Compute plane coordinates given a grid cell index. More...
|
| |
| auto | data_at (std::size_t index) const |
| | Gets cell data, if included. More...
|
| |
| std::size_t | index_at (const Eigen::Vector2i &pi) const |
| | Computes index for given grid cell coordinates. More...
|
| |
| std::size_t | index_at (int xi, int yi) const |
| | Computes index for given grid cell coordinates. More...
|
| |
| auto | neighborhood4 (std::size_t index) const |
| | Computes 4-connected neighborhood for cell. More...
|
| |
| bool | contains (const Eigen::Vector2i &pi) const |
| | Checks if a cell is included in the grid. More...
|
| |
| bool | contains (int xi, int yi) const |
| | Checks if a cell is included in the grid. More...
|
| |
| auto | data_at (const Eigen::Vector2i &pi) const |
| | Gets cell data, if included. More...
|
| |
| auto | data_at (int xi, int yi) const |
| | Gets cell data, if included. More...
|
| |
| auto | data_near (const Eigen::Vector2d &p) const |
| | Gets nearest cell data, if included. More...
|
| |
| auto | data_near (double x, double y) const |
| | Gets nearest cell data, if included. More...
|
| |
| auto | neighborhood4 (const Eigen::Vector2i &pi) const |
| | Computes 4-connected neighborhood for cell. More...
|
| |
| auto | neighborhood4 (int xi, int yi) const |
| | Computes 4-connected neighborhood for cell. More...
|
| |
| Eigen::Vector< int, NDim > | cell_near (const Eigen::Vector< double, NDim > &p) const |
| | Compute nearest grid cell coordinates given plane coordinates. More...
|
| |
| Eigen::Vector< double, NDim > | coordinates_at (const Eigen::Vector< int, NDim > &pi) const |
| | Compute plane coordinates given grid cell coordinates. More...
|
| |
| template<class Range > |
| auto | coordinates_for (Range &&cells) const |
| | Compute plane coordinates given a range of cell coordinates. More...
|
| |
template<typename T>
class beluga::ValueGrid2< T >
Generic 2D linear value grid.
- Template Parameters
-
Definition at line 36 of file value_grid.hpp.