float*crms=port_weights+NUM_CAMS*(DTT_SIZE2*DTT_SIZE21);// calculated only if keep_weights
float*crms=port_weights+NUM_CAMS*(DTT_SIZE2*DTT_SIZE21);// calculated only if keep_weights
floatthreshold2=diff_sigma*diff_threshold;
floatthreshold2=diff_sigma*diff_threshold;// never used?
threshold2*=threshold2;// squared to compare with diff^2
threshold2*=threshold2;// squared to compare with diff^2
floatpair_dist2r[NUM_CAMS*(NUM_CAMS-1)/2];// new double [ports*(ports-1)/2]; // reversed squared distance between images - to be used with gaussian. Can be calculated once !
floatpair_dist2r[NUM_CAMS*(NUM_CAMS-1)/2];// new double [ports*(ports-1)/2]; // reversed squared distance between images - to be used with gaussian. Can be calculated once !
intpair_ports[NUM_CAMS*(NUM_CAMS-1)/2][2];// int [][] pair_ports = new int [ports*(ports-1)/2][2];
intpair_ports[NUM_CAMS*(NUM_CAMS-1)/2][2];// int [][] pair_ports = new int [ports*(ports-1)/2][2];
floatdelta_t=(pY_offset/(1.0-geometry_correction.line_time*ers_y))*geometry_correction.line_time;// positive for top cameras, negative - for bottom //disp_dist[2]=dd2.get(1, 0)
#ifdef DEBUG210
pXY[0]+=delta_t*ers_x*rD2rND;// added correction to pixel X
pXY[1]+=delta_t*ers_y*rD2rND;// added correction to pixel Y