Skip to content

Commit

Permalink
in void calculate_edge_displacement, 1)corrected in/out comment 2)rem…
Browse files Browse the repository at this point in the history
…oved a pair of redundant {}'s
  • Loading branch information
TitusBraber committed Mar 23, 2017
1 parent cdf9b22 commit aab67c0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions sw/airborne/modules/computer_vision/lib/vision/edge_flow.c
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand All @@ -211,8 +210,6 @@ void calculate_edge_displacement(int32_t *edge_histogram, int32_t *edge_histogra
} else {
}
}
}

}

/**
Expand Down

0 comments on commit aab67c0

Please sign in to comment.