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