thrownewIllegalArgumentException("Data size = "+data.length+" does not match dimensions "+width+"*"+height+"="+(width*height));
}
}
publicvoidcheckData(double[][]data){
if(data.length!=(width*height)){
thrownewIllegalArgumentException("Data size = "+data.length+" does not match dimensions "+width+"*"+height+"="+(width*height));
}
}
publicvoidcheckKernel(double[]kernel,intrad){
intkernel_size=2*rad+1;
if(kernel.length!=(kernel_size*kernel_size)){
thrownewIllegalArgumentException("Kernel length = "+kernel.length+" does not match kernel size (2*"+kernel2d_rad+"+1) * (2*"+kernel2d_rad+"+1) ="+(kernel_size*kernel_size));
}
}
/*
private void setupConvolve3d(
final double [] hist_weights, // same
final int decim_pix,
final int decim_vel,
final int rad_vel){
final int num_subpix = decim_pix * decim_pix;
final int num_layers = hist_weights.length;
final int num_src_vel = (2*this.kernel3d3_rad+1)*(2*this.kernel3d3_rad+1);
final int num_dst_vel = (2*rad_vel+1)*(2*rad_vel+1);
final double [][][][][] kern3d = new double [num_subpix][num_layers][][][];
for (int nsubpix_y = 0; nsubpix_y<decim_pix; nsubpix_y++) {
for (int nsubpix_x = 0; nsubpix_x<decim_pix; nsubpix_x++) {
int nsubpix = nsubpix_x + nsubpix_y * decim_pix;
for (int nlayer = 0; nlayer < num_layers; nlayer++) {
int pix_rng = 2 * nlayer; // from -pix_rng to +pix_rng+1 inclusive
int num_src_pix = 2 * pix_rng + 2;
kern3d[nsubpix][nlayer] = new double [num_src_pix * num_src_pix][num_src_vel][num_dst_vel];
// first calculate total energy, then how that apply this energy to specific velocity? how to mix mutual positions and
// source direction
// for nlayer > 0 use mutual position, for layer 0 use source direction
// Certain?
if (nlayer == 0) { // same layer - use source direction
} else { // one of the earliest layers - use mutual position
}
}
}
}
}
*/
publicdouble[][][]convolve3d(
finaldouble[][][]data,// outer index - historic layers, [0] - latest, second index - pixel, third - direction ([9])
System.out.println("Failed target detection. Probably, radar mode was selected but target file does not exist (created with \"CUAS Combine\" command)");
System.out.println("Failed target detection. Probably, radar mode was selected but target file does not exist (created with \"CUAS Combine\" command)");