System.out.println("No files to process (of "+sourceFiles.length+")");
System.out.println("No files to process (of "+sourceFiles.length+")");
return;
returnnull;
}else{
}else{
if(debugLevel>0)System.out.println(numFilesToProcess+" files to process (of "+sourceFiles.length+"), "+numImagesToProcess+" images to process");
if(debugLevel>0)System.out.println(numFilesToProcess+" files to process (of "+sourceFiles.length+"), "+numImagesToProcess+" images to process");
}
}
double[]referenceExposures=eyesisCorrections.calcReferenceExposures(debugLevel);// multiply each image by this and divide by individual (if not NaN)
// double [] referenceExposures=eyesisCorrections.calcReferenceExposures(debugLevel); // multiply each image by this and divide by individual (if not NaN)
int[][]fileIndices=newint[numImagesToProcess][2];// file index, channel number
int[][]fileIndices=newint[numImagesToProcess][2];// file index, channel number
intindex=0;
intindex=0;
for(intnFile=0;nFile<enabledFiles.length;nFile++){// enabledFiles not used anymore?
for(intnFile=0;nFile<enabledFiles.length;nFile++){// enabledFiles not used anymore?
...
@@ -3109,267 +3105,336 @@ public class QuadCLT {
...
@@ -3109,267 +3105,336 @@ public class QuadCLT {
setNames.add(setName);
setNames.add(setName);
setFiles.add(newArrayList<Integer>());
setFiles.add(newArrayList<Integer>());
}
}
//FIXME - similar in other places, extract common code
System.out.println("Vignetting data for channel "+srcChannel+" has "+eyesisCorrections.channelVignettingCorrection[srcChannel].length+" pixels, image "+sourceFiles[nFile]+" has "+pixels.length);
System.out.println("Vignetting data for channel "+srcChannel+" has "+eyesisCorrections.channelVignettingCorrection[srcChannel].length+" pixels, image "+sourceFiles[nFile]+" has "+pixels.length);
System.out.println("No files to process (of "+sourceFiles.length+")");
return;
}
double[]referenceExposures_main=quadCLT_main.eyesisCorrections.calcReferenceExposures(debugLevel);// multiply each image by this and divide by individual (if not NaN)
double[]referenceExposures_aux=quadCLT_aux.eyesisCorrections.calcReferenceExposures(debugLevel);// multiply each image by this and divide by individual (if not NaN)
thrownewException("Set naims for cameras do not match: main camera: '"+set_channels_main[nSet].name()+"', aux. camera: '"+set_channels_main[nSet].name()+"'");