28 #ifndef SHARED_BP_UTIL_FUNCTS_H_
29 #define SHARED_BP_UTIL_FUNCTS_H_
53 unsigned int x_val,
unsigned int y_val,
54 unsigned int width,
unsigned int height)
56 return ((x_val < width) && (y_val < height));
73 unsigned int x_val,
unsigned int y_val,
unsigned int width,
unsigned int height,
74 unsigned int current_disparity,
unsigned int total_num_disp_vals,
75 unsigned int offset_data = 0u)
79 return (y_val * width * total_num_disp_vals + width * current_disparity + x_val) + offset_data;
82 return ((y_val * width + x_val) * total_num_disp_vals + current_disparity);
File with namespace for enums, constants, structures, and functions specific to belief propagation pr...
Header file that contains information about the stereo sets used for evaluation of the bp implementat...
Declares class to store and retrieve properties of a bp processing level.
File with namespace for enums, constants, structures, and functions specific to belief propagation pr...
Declares and defines structure that stores settings for current implementation run as well as functio...
Define constraints for data type in processing.
Utility functions for belief propagation processing that are used in both optimized CPU and CUDA impl...
Contains namespace with utility functions for implementation.
#define ARCHITECTURE_ADDITION
Namespace for enums, constants, structures, and functions specific to belief propagation processing.
constexpr bool kOptimizedIndexingSetting
ARCHITECTURE_ADDITION bool WithinImageBounds(unsigned int x_val, unsigned int y_val, unsigned int width, unsigned int height)
Checks if the current point is within the image bounds Assumed that input x/y vals are above zero sin...
ARCHITECTURE_ADDITION unsigned int RetrieveIndexInDataAndMessage(unsigned int x_val, unsigned int y_val, unsigned int width, unsigned int height, unsigned int current_disparity, unsigned int total_num_disp_vals, unsigned int offset_data=0u)
Retrieve the current 1-D index value of the given point at the given disparity in the data cost and m...