System.out.println("Need a 3-layer stack (for color) or single (for mono) with interpolated PSF kernels");
continue;
}
ImageStackstack=reversePSFKernelStack(
impSpsf.getStack(),// stack of 3 32-bit (float) images, made of square kernels
inverseParameters,// size (side of square) of direct PSF kernel
...
...
@@ -142,7 +143,9 @@ public class EyesisAberrations {
if(saveResult){
if(globalDebugLevel>0)System.out.println((numProcessed+1)+" of "+numToProcess+": saving invered (of the file"+srcPaths[nChn]+") kernel to "+resultPaths[nChn]+" at "+IJ.d2s(0.000000001*(System.nanoTime()-startTime),3));
FileSaverfs=newFileSaver(impInvertedPSF);
fs.saveAsTiffStack(resultPaths[nChn]);
// fs.saveAsTiffStack(resultPaths[nChn]);
fs.saveAsTiff(resultPaths[nChn]);
}
numProcessed++;
if(stopRequested.get()>0){
...
...
@@ -714,8 +717,8 @@ public class EyesisAberrations {
System.out.println("Failed to open raw PSF kernel stack "+srcPaths[nChn]);
continue;
}
if(impSpsf.getStackSize()<3){
System.out.println("Need a 3-layer stack with raw PSF kernels");