Commit 52b6cf3c authored by Andrey Filippov's avatar Andrey Filippov

debugging

parent 5ca7d76c
...@@ -1089,12 +1089,22 @@ public class EyesisAberrations { ...@@ -1089,12 +1089,22 @@ public class EyesisAberrations {
boolean [] selectedChannels=this.aberrationParameters.getChannelSelection(distortions); boolean [] selectedChannels=this.aberrationParameters.getChannelSelection(distortions);
int numSelected=0; int numSelected=0;
int numDeselected=0; int numDeselected=0;
if (debugLevel>1){
for (int i=0;i<selectedChannels.length;i++){
System.out.println("Channel "+i+" is "+(selectedChannels[i]?"Enabled":"Disabled"));
}
}
for (int imgNum=0;imgNum<selectedImages.length;imgNum++) if (selectedImages[imgNum]) { for (int imgNum=0;imgNum<selectedImages.length;imgNum++) if (selectedImages[imgNum]) {
int numChannel=distortionCalibrationData.gIP[imgNum].channel; int numChannel=distortionCalibrationData.gIP[imgNum].channel;
if (debugLevel>1){
System.out.println("Image "+imgNum+" channel "+numChannel+" is "+(selectedChannels[numChannel]?"ENABLED":"DISABLED"));
}
if (!selectedChannels[numChannel]){ if (!selectedChannels[numChannel]){
selectedImages[imgNum]=false; selectedImages[imgNum]=false;
numDeselected++; numDeselected++;
} else numSelected++; } else numSelected++;
} else if (debugLevel>1){
System.out.println("Skipping disabled image "+imgNum);
} }
if (debugLevel>0)System.out.println("Enabled "+numSelected+" source files ("+numDeselected+") were removed by channel selection"); if (debugLevel>0)System.out.println("Enabled "+numSelected+" source files ("+numDeselected+") were removed by channel selection");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment