From aab67c06f30c379c8dd24d61f092081a5dabaa4c Mon Sep 17 00:00:00 2001 From: Titus Date: Thu, 23 Mar 2017 15:22:03 +0100 Subject: [PATCH] in void calculate_edge_displacement, 1)corrected in/out comment 2)removed a pair of redundant {}'s --- sw/airborne/modules/computer_vision/lib/vision/edge_flow.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sw/airborne/modules/computer_vision/lib/vision/edge_flow.c b/sw/airborne/modules/computer_vision/lib/vision/edge_flow.c index db5304603db..681e09c7c11 100644 --- a/sw/airborne/modules/computer_vision/lib/vision/edge_flow.c +++ b/sw/airborne/modules/computer_vision/lib/vision/edge_flow.c @@ -159,7 +159,7 @@ void calculate_edge_histogram(struct image_t *img, int32_t edge_histogram[], * Calculate_displacement calculates the displacement between two histograms * @param[in] *edge_histogram The edge histogram from the current frame_step * @param[in] *edge_histogram_prev The edge histogram from the previous frame_step - * @param[in] *displacement array with pixel displacement of the sequential edge histograms + * @param[out] *displacement array with pixel displacement of the sequential edge histograms * @param[in] size Indicating the size of the displacement array * @param[in] window Indicating the search window size * @param[in] disp_range Indicating the maximum disparity range for the block matching @@ -196,7 +196,6 @@ void calculate_edge_displacement(int32_t *edge_histogram, int32_t *edge_histogra if (border[0] >= border[1] || abs(der_shift) >= 10) { SHIFT_TOO_FAR = 1; } - { // TODO: replace with arm offset subtract for (x = border[0]; x < border[1]; x++) { displacement[x] = 0; @@ -211,8 +210,6 @@ void calculate_edge_displacement(int32_t *edge_histogram, int32_t *edge_histogra } else { } } - } - } /**