HighMap library (C++)
Loading...
Searching...
No Matches
array.hpp File Reference

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
 

Typedefs

typedef unsigned int uint
 

Functions

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 >
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 >
hmap::reduce_cells (const Array &a, T init, Reduce &&reduce)
 Reduce all cells to a single value.
 

Detailed Description

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)

Typedef Documentation

◆ uint

typedef unsigned int uint