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

Go to the source code of this file.

Classes

struct  hmap::TerrainAlignment
 Elevation offset and tilt parameters for aligning an upper terrain. More...

Namespaces

namespace  hmap

Enumerations

enum class  hmap::TerrainAlignMode : int { hmap::TAM_OFFSET , hmap::TAM_PLANE , hmap::TAM_ROBUST_OFFSET , hmap::TAM_ROBUST_PLANE }
 Alignment modes for fitting an upper terrain to a lower terrain. More...

Functions

TerrainAlignment hmap::compute_terrain_alignment (const Array &lower, const CoordFrame &frame_lower, const Array &upper, const CoordFrame &frame_upper, TerrainAlignMode mode, float huber_delta=0.1f, int max_iterations=10)
 Compute alignment parameters to fit upper to lower over their common valid area.
TerrainAlignment hmap::compute_terrain_alignment (const VirtualArray &lower, const CoordFrame &frame_lower, const VirtualArray &upper, const CoordFrame &frame_upper, TerrainAlignMode mode, float huber_delta=0.1f, int max_iterations=10, int coarse_size=128)
 Compute alignment parameters for VirtualArray inputs using a coarse Array representation.
void hmap::apply_terrain_alignment (Array &upper, const TerrainAlignment &alignment)
 Apply precomputed alignment parameters to an Array in-place.
void hmap::apply_terrain_alignment (VirtualArray &upper, const TerrainAlignment &alignment, const ComputeMode &cm=ComputeMode{})
 Apply precomputed alignment parameters to a VirtualArray in-place.
void hmap::align_terrains (const Array &lower, const CoordFrame &frame_lower, Array &upper, const CoordFrame &frame_upper, TerrainAlignMode mode, float huber_delta=0.1f, int max_iterations=10)
 Align upper to lower in-place over their common valid area.
void hmap::align_terrains (const VirtualArray &lower, const CoordFrame &frame_lower, VirtualArray &upper, const CoordFrame &frame_upper, TerrainAlignMode mode, float huber_delta=0.1f, int max_iterations=10, int coarse_size=128, const ComputeMode &cm=ComputeMode{})
 Align upper VirtualArray to lower VirtualArray in-place.