97 const int disp_n,
const int block_size);
Image helper functions like resizing, color filter, converters...
unsigned short uint16_t
Typedef defining 16 bit unsigned short type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
short int16_t
Typedef defining 16 bit short type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
uint16_t K_median_h
Width of kernel for the median kernel.
void set_state(uint8_t _state, uint8_t change_allowed)
uint16_t threshold_median_depth
Below this distance (in meters) it is considered that the robot has reached the goal,...
int16_t max_heading_confidence
This is the max confidence that a specific position was reached.
float threshold_distance_to_angle
Below this distance (in meters) it is considered that the robot has reached the goal.
int heat_map_type
Variable to hold distance from robot to edge to goal (used in EDGE_SCAN (9) state)
int SE_closing_OCV
SE size for the opening operation.
int16_t max_edge_found_macro_confidence
This is the max confidence that edges (micro-see above) were found.
void * buf_weights
Kernel weight buffer.
uint32_t buf_size
Size of values of weight buffer and values buffer.
int16_t max_position_confidence
This is the max confidence that an obstacle was not spotted.
int SE_dilation_OCV_1
SE size for the closing operation.
int min_disparity
Block size used for the block matching (SBM) function.
float threshold_distance_to_goal
Above this disparity edges are eligible for WedgeBug algorithm (i.e. edges cannot be very far away)
int16_t max_edge_found_micro_confidence
This is the max confidence that a specific heading was reached.
int SE_erosion_OCV
SE size for the second dilation operation (see state 3 "WEDGEBUG_START" and state 6 "POSITION_EDGE" )
int SE_dilation_OCV_2
SE size for the first dilation operation.
uint8_t getMedian(uint8_t *a, uint32_t n)
int16_t max_free_path_confidence
This is the max confidence that an obstacle was spotted.
void post_disparity_crop_rect(struct crop_t *_img_cropped_info, struct img_size_t *_original_img_dims, const int disp_n, const int block_size)
int block_size_disparities
Number of disparity levels (0-this number)
uint16_t K_median_w
SE size for the Sobel operation, to detect edges.
int16_t max_no_edge_found_confidence
This is the max confidence that edges (macro-see above were found.
void kernel_free(struct kernel_C1 *kernel)
int N_disparities
Variable that saves previous mode to control the drone, for some memory.
int16_t max_obstacle_confidence
This is the confidence that no edge was found.
void * buf_values
Kernel value buffer. These are the values underneath the kernel.
void kernel_create(struct kernel_C1 *kernel, uint16_t width, uint16_t height, enum image_type type)
void wedgebug_periodic(void)
int threshold_edge_magnitude
Below this depth (cm) edges are eligible for the WedgeBug algorith.
uint16_t threshold_depth_of_edges
Below this median depth (cm), an obstacle is considered to block the way (i.e. the blocking obstacle ...
uint8_t save_images_flag
Set to 1 if control mode of drone is changed, 0 otherwise.