dicutil.hpp

namespace util

Enums

enum class ECorrCrit

Values:

enumerator SSD
enumerator NSSD
enumerator ZNSSD
enum class EShapeFunc

Values:

enumerator RIGID
enumerator AFFINE
enumerator QUAD
enum class EInterpRoutine

Values:

enumerator BSPLINE
enumerator HERMITE
enum class EScanMethod

Values:

enumerator MULTIWINDOW_RG
enumerator SINGLEWINDOW_RG
enumerator MULTIWINDOW
enumerator RASTER
enum class EIncrementalCond

Values:

enumerator IMAGE
enumerator ITER
enumerator COST
enum class EFFTPrecision

Values:

enumerator FLOAT32
enumerator FLOAT64

Functions

void extract_image(double *img_def_stack, int image_number, int px_hori, int px_vert)

Extracts a single image from a stacked image array and stores it in an Image object.

Takes a specific 2D image (identified by image_number) from a 3D image stack (img_def_stack) and stores its pixel values into the vals field of the provided util::Image structure.

Parameters:
  • img_def – Pointer to a util::Image object that will be populated with the extracted image data.

  • img_def_stack – Pointer to a flat array representing a stack of images stored sequentially (row-major order).

  • image_number – Index of the image to extract from the stack (0-based).

int next_pow2(int n)
void gen_size_and_step_vector(std::vector<int> &ss_sizes, std::vector<int> &ss_steps, const int ss_size, const int ss_step, const int max_disp)
struct PairHash

Public Functions

inline std::size_t operator()(const std::pair<int, int> &p) const
struct Config

Public Members

int ss_step
int ss_size
double partial_subset = 1.0
double partial_subset_multiwindow = 0.7
int max_iter
int px_hori
int px_vert
int num_def_img
int num_params
double precision
double threshold
int max_disp
int epi_search_distance
int epi_distance_threshold
std::vector<int> rg_seeds
ECorrCrit corr_crit
EShapeFunc shape_func
EInterpRoutine interp_routine
EScanMethod scan_method
std::vector<std::string> basenames
std::vector<std::string> fullpaths
bool fft_filter
bool fft_save
EFFTPrecision fft_precision
double fft_filter_threshold
int fft_filter_radius
double fft_filter_corr_power
unsigned int debug_level
bool stereo
bool incremental
EIncrementalCond incremental_update_cond
double incremental_update_val
int multiwindow_overlap
std::vector<int> multiwindow_subset_size
std::vector<int> multiwindow_search_area
int image_filter_kernel = 0
double image_filter_sigma = 1.0