HighMap library (C++)
Loading...
Searching...
No Matches
gradient.cpp File Reference

Namespaces

namespace  hmap
 

Functions

void hmap::compute_gradient (const Array &array, Array &dx, Array &dy, float x_coeff[3], float y_coeff[3], float normalize_factor)
 
Array hmap::compute_gradient_norm (const Array &array, float x_coeff[3], float y_coeff[3], float normalize_factor, Array *p_dx=nullptr, Array *p_dy=nullptr)
 
Array hmap::gradient_angle (const Array &array, bool downward=false)
 Compute the polar angle of the gradient of a 2D array.
 
Array hmap::gradient_norm (const Array &array, Array *p_dx=nullptr, Array *p_dy=nullptr)
 Compute the gradient norm of a 2D array.
 
Array hmap::gradient_norm_prewitt (const Array &array, Array *p_dx=nullptr, Array *p_dy=nullptr)
 Compute the gradient norm of a 2D array using the Prewitt filter.
 
Array hmap::gradient_norm_sobel (const Array &array, Array *p_dx=nullptr, Array *p_dy=nullptr)
 Compute the gradient norm of a 2D array using the Sobel filter.
 
Array hmap::gradient_norm_scharr (const Array &array, Array *p_dx=nullptr, Array *p_dy=nullptr)
 Compute the gradient norm of a 2D array using the Scharr filter.
 
Array hmap::gradient_x (const Array &array)
 Compute the gradient in the x-direction of a 2D array.
 
void hmap::gradient_x (const Array &array, Array &dx)
 Compute the gradient in the x-direction of a 2D array and store it.
 
Array hmap::gradient_y (const Array &array)
 Compute the gradient in the y-direction of a 2D array.
 
void hmap::gradient_y (const Array &array, Array &dy)
 Compute the gradient in the y-direction of a 2D array and store it.
 
Array hmap::gradient_talus (const Array &array)
 Compute the gradient talus slope of a 2D array.
 
void hmap::gradient_talus (const Array &array, Array &talus)
 Compute the gradient talus slope and store it in the provided array.
 
Array hmap::laplacian (const Array &array)
 Compute the Laplacian of a 2D array.