Registry
|
2d raster with number values More...
Public Member Functions | |
void | blur (double alpha, _iterations, size_t unnamed) |
Smoothens the field by adjusting the value of each pixel towards the average of its neighbours. More... | |
bool | eliminate_invalid_cells () |
eliminates invalid cells by repeatedly filling those cells with averages of neighboring cells More... | |
Heightfield () | |
double | interpolate (double x, double y) const |
returns the height at the given coordinate using piecewise constant interpolation More... | |
double | no_data_value () const |
returns the value which represents an invalid height More... | |
2d raster with number values
Heightfield | ( | ) |
|
inline |
Smoothens the field by adjusting the value of each pixel towards the average of its neighbours.
[in] | alpha,_iterations | |
[in] | unnamed |
References alpha, and Heightfield::blur().
|
inline |
eliminates invalid cells by repeatedly filling those cells with averages of neighboring cells
References Heightfield::eliminate_invalid_cells().
|
inline |
returns the height at the given coordinate using piecewise constant interpolation
[in] | x | |
[in] | y |
References Heightfield::interpolate().
|
inline |
returns the value which represents an invalid height
References Heightfield::no_data_value().