In void calc_edgeflow_tot, change flow_x into div_x as it is the divergence being set.

This commit is contained in:
Titus
2017-03-23 16:04:01 +01:00
parent 2195de3af8
commit 14d5bfe24b
@@ -541,7 +541,7 @@ void calc_edgeflow_tot(struct opticflow_t *opticflow, struct opticflow_state_t *
result->flow_der_y = result->flow_y;
result->corner_cnt = getAmountPeaks(edge_hist_x, 500 , img->w);
result->tracked_cnt = getAmountPeaks(edge_hist_x, 500 , img->w);
result->divergence = (float)edgeflow.flow_x / RES;
result->divergence = (float)edgeflow.div_x / RES;
result->div_size = 0.0f;
result->noise_measurement = 0.0f;
result->surface_roughness = 0.0f;