Skip to content

File grid_ops.hpp

FileList > grid > grid_ops.hpp

Go to the source code of this file

  • #include <cmath>
  • #include <limits>
  • #include <map>
  • #include <numeric>
  • #include <optional>
  • #include "grid.hpp"
  • #include "utilities/coordinate.hpp"
  • #include "utilities/timer.hpp"

Public Types

Type Name
enum DownsampleMethod

Public Functions

Type Name
GeoGrid< std::optional< std::byte > > bool_grid (const GeoGrid< T > & grid, T threshold)
GeoGrid< T > downsample (const GeoGrid< T > & grid, size_t factor, ProgressTracker && progress_tracker, DownsampleMethod method=DownsampleMethod::MEDIAN)
void interpolate_holes (GeoGrid< T > & grid, ProgressTracker progress_tracker)
void remove_outliers (GeoGrid< T > & grid, ProgressTracker progress_tracker, double z_threshold=1, bool z_only=false)

Public Static Functions

Type Name
bool has_value (double value)

Macros

Type Name
define SQ (x) ((x) \* (x))

Public Types Documentation

enum DownsampleMethod

enum DownsampleMethod {
    MEAN,
    MEDIAN
};

Public Functions Documentation

function bool_grid

template<typename T>
GeoGrid < std::optional< std::byte > > bool_grid (
    const  GeoGrid < T > & grid,
    T threshold
) 

function downsample

template<typename T>
GeoGrid < T > downsample (
    const  GeoGrid < T > & grid,
    size_t factor,
    ProgressTracker && progress_tracker,
    DownsampleMethod method=DownsampleMethod::MEDIAN
) 

function interpolate_holes

template<typename T>
void interpolate_holes (
    GeoGrid < T > & grid,
    ProgressTracker progress_tracker
) 

function remove_outliers

template<typename T>
void remove_outliers (
    GeoGrid < T > & grid,
    ProgressTracker progress_tracker,
    double z_threshold=1,
    bool z_only=false
) 

Public Static Functions Documentation

function has_value

static inline bool has_value (
    double value
) 

Macro Definition Documentation

define SQ

#define SQ (
    x
) `((x) * (x))`


The documentation for this class was generated from the following file /home/runner/work/Blaze/Blaze/src/lib/grid/grid_ops.hpp