finalinttilesY=imgHeight/step-1;// vertical number of overlapping tiles in the source image (should be expanded from the registerd one by "step" in each direction)
finalintkernelWidth=kernelStack.getWidth();
finalintkernelNumHor=kernelWidth/(size/2);
finalintnChn=imageStack.getSize();
finalfloat[][]outPixels=newfloat[nChn][length];// GLOBAL same as input
// float [][] outPixels=new float[nChn][length]; // same as input
// System.out.println("----- physical camera #"+cam_port_arr[i].x+", sensor_port="+cam_port_arr[i].y);
// }
System.out.println("----- This filename subcamera "+subCamera+": physical camera "+cam_port_arr[subCamera].x+", sensor_port "+cam_port_arr[subCamera].y);
if(subCamera>=cam_port_arr.length){
System.out.println("Error: Subcamera "+subCamera+" > that total namera of sensor ports in the system = "+cam_port_arr.length);