if(properties.getProperty(prefix+"jpeg")!=null)this.jpeg=Boolean.parseBoolean(properties.getProperty(prefix+"jpeg"));// convert to RGB and save jpeg (if save is true)
if(properties.getProperty(prefix+"png")!=null)this.png=Boolean.parseBoolean(properties.getProperty(prefix+"png"));// convert to RGB and save jpeg (if save is true)
if(properties.getProperty(prefix+"save16")!=null)this.save16=Boolean.parseBoolean(properties.getProperty(prefix+"save16"));// save 16-bit tiff also if the end result is 8 bit
if(properties.getProperty(prefix+"save32")!=null)this.save32=Boolean.parseBoolean(properties.getProperty(prefix+"save32"));// save 32-bit tiff also if the end result is 8 or 16 bit
...
...
@@ -330,6 +333,7 @@ public class EyesisCorrectionParameters {
gd.addCheckbox("Convert to RGB48",this.toRGB);
gd.addCheckbox("Convert to 8 bit RGB (and save JPEG if save is enabled)",this.jpeg);
gd.addCheckbox("Use PNG instead of TIFF for 32 bit (8 per color) RGBA",this.png);
gd.addCheckbox("Save the result to file system",this.save);
gd.addCheckbox("Save 16-bit tiff if the result is 8 bit",this.save16);
gd.addCheckbox("Save 32-bit tiff if the result is 8 or 16 bit",this.save32);
...
...
@@ -421,6 +425,7 @@ public class EyesisCorrectionParameters {
this.imageJTags=gd.getNextBoolean();
this.toRGB=gd.getNextBoolean();
this.jpeg=gd.getNextBoolean();
this.png=gd.getNextBoolean();
this.save=gd.getNextBoolean();
this.save16=gd.getNextBoolean();
this.save32=gd.getNextBoolean();
...
...
@@ -1288,20 +1293,32 @@ public class EyesisCorrectionParameters {
//TODO: Add array of default disparity - use for combining images in force disparity mode (no correlation), when disparity is predicted from other tiles
...
...
@@ -4873,11 +4901,12 @@ public class EyesisDCT {
}
}
}
if(clt_parameters.corr_mismatch){
if(clt_parameters.corr_mismatch||apply_corr){
clt_mismatch=newdouble[12][];
}
}
double[][]disparity_map=newdouble[8][];//[0] -residual disparity, [1] - orthogonal (just for debugging)
// double [][] disparity_map = new double [8][]; //[0] -residual disparity, [1] - orthogonal (just for debugging)
double[][]disparity_map=newdouble[12][];//[0] -residual disparity, [1] - orthogonal (just for debugging) last 4 - max pixel differences
if(saveShowIntermediate)eyesisCorrections.saveAndShow(compositeImage,this.correctionsParameters,this.correctionsParameters.save16,false);// save, no show
}
result=eyesisCorrections.convertRGB48toRGB24(
stack,
name+"-RGB24"+suffix,
0,65536,// r range 0->0, 65536->256
0,65536,// g range
0,65536,// b range
0,65536);// alpha range
// next will save either JPEG (if no alpha) or RGBA tiff (if alpha is present). ImageJ shows just RGB (no alpha)
//TODO: Add array of default disparity - use for combining images in force disparity mode (no correlation), when disparity is predicted from other tiles
System.out.println("Vignetting data for channel "+srcChannel+" has "+eyesisCorrections.channelVignettingCorrection[srcChannel].length+" pixels, image "+sourceFiles[nFile]+" has "+pixels.length);
disparity_array,// clt_parameters.disparity, // final double disparity,
image_data,// final double [][][] imade_data, // first index - number of image in a quad
// correlation results - final and partial
clt_corr_combo,// [tilesY][tilesX][(2*transform_size-1)*(2*transform_size-1)] // if null - will not calculate
null,// clt_corr_partial, // [tilesY][tilesX][quad]color][(2*transform_size-1)*(2*transform_size-1)] // if null - will not calculate
null,// [tilesY][tilesX][pair]{dx,dy,weight}[(2*transform_size-1)*(2*transform_size-1)] // transpose unapplied. null - do not calculate
// Use it with disparity_maps[scan_step]? clt_mismatch, // [tilesY][tilesX][pair]{dx,dy,weight}[(2*transform_size-1)*(2*transform_size-1)] // transpose unapplied. null - do not calculate