|
HighMap library (C++)
|
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.
Classes | |
| class | hmap::Array |
| Array class, helper to manipulate 2D float array with "(i, j)" indexing. More... | |
Namespaces | |
| namespace | hmap |
Functions | |
| size_t | hmap::count_non_zero (const Array &array) |
| Count the number of non-zero elements in the array. | |
| size_t | hmap::count_zero (const Array &array) |
| Count the number of zero elements in the array. | |
| 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]. | |
| std::string | hmap::get_opencv_build_information () |
| 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). | |
Declaration of the Array class for 2D floating-point arrays with various mathematical operations and utilities.