Declaration of the Array class for 2D floating-point arrays with various mathematical operations and utilities.
More...
Go to the source code of this file.
|
| typedef unsigned int | uint |
| |
|
| Array | hmap::cv_mat_to_array (const cv::Mat &mat, bool remap_values=true, bool flip_j=false) |
| | Converts an OpenCV cv::Mat to a 2D Array with optional value scaling to [0, 1].
|
| |
| template<typename Fn > |
| void | hmap::for_each_cell (Array &a, Fn &&fn) |
| | Apply a function to every cell (mutable).
|
| |
| template<typename Fn > |
| void | hmap::for_each_cell (const Array &a, Fn &&fn) |
| | Apply a function to every cell (read-only).
|
| |
| template<typename T , typename Fn , typename Reduce > |
| T | hmap::reduce_cells (const Array &a, T init, Fn &&fn, Reduce &&reduce) |
| | Reduce all cells to a single value.
|
| |
| template<typename T , typename Fn , typename Reduce > |
| T | hmap::reduce_cells (const Array &a, T init, Reduce &&reduce) |
| | Reduce all cells to a single value.
|
| |
Declaration of the Array class for 2D floating-point arrays with various mathematical operations and utilities.
- Author
- Otto Link (otto..nosp@m.link.nosp@m..bv@g.nosp@m.mail.nosp@m..com)
- Copyright
- Copyright (c) 2023
◆ uint
| typedef unsigned int uint |