ug4
field_util.h File Reference
#include "lib_grid/lg_base.h"
#include "common/util/field.h"
#include "field_util_impl.h"

Go to the source code of this file.

Namespaces

 ug
 the ug namespace
 

Functions

template<class T >
void ug::BlurField (Field< T > &field, number alpha, size_t numIterations, const T &noDataValue)
 Smoothens the field by adjusting the value of each pixel towards the average of its neighbours. More...
 
void ug::CreateGridFromField (Grid &grid, const Field< number > &field, const vector2 &cellSize, const vector2 &offset, number noDataValue, Grid::VertexAttachmentAccessor< APosition > aaPos)
 
void ug::CreateGridFromFieldBoundary (Grid &grid, const Field< number > &field, const vector2 &cellSize, const vector2 &offset, number noDataValue, Grid::VertexAttachmentAccessor< APosition > aaPos)
 
template<class T >
bool ug::EliminateInvalidCells (Field< T > &field, const T &noDataValue)
 eliminates invalid cells by repeatedly filling those cells with averages of neighboring cells More...
 
template<class T >
void ug::InvalidateSmallLenses (Field< T > &field, size_t thresholdCellCount, const T &noDataValue)
 invalidates cells that belong to a small lense More...