Loading src/main/java/EyesisCorrectionParameters.java +13 −1 Original line number Original line Diff line number Diff line Loading @@ -1801,6 +1801,9 @@ public class EyesisCorrectionParameters { public boolean skip_sym = false; // do not apply symmetrical correction public boolean skip_sym = false; // do not apply symmetrical correction public boolean convolve_direct = false; // do not apply symmetrical correction public boolean convolve_direct = false; // do not apply symmetrical correction public double vignetting_max = 0.4; // value in vignetting data to correspond to 1x in the kernel public double vignetting_range = 3.0; // do not try to correct vignetting less than vignetting_max/vignetting_range public DCTParameters( public DCTParameters( int dct_size, int dct_size, int asym_size, int asym_size, Loading Loading @@ -1852,6 +1855,8 @@ public class EyesisCorrectionParameters { properties.setProperty(prefix+"normalize", this.normalize+""); properties.setProperty(prefix+"normalize", this.normalize+""); properties.setProperty(prefix+"skip_sym", this.skip_sym+""); properties.setProperty(prefix+"skip_sym", this.skip_sym+""); properties.setProperty(prefix+"convolve_direct", this.convolve_direct+""); properties.setProperty(prefix+"convolve_direct", this.convolve_direct+""); properties.setProperty(prefix+"vignetting_max", this.vignetting_max+""); properties.setProperty(prefix+"vignetting_range", this.vignetting_range+""); } } public void getProperties(String prefix,Properties properties){ public void getProperties(String prefix,Properties properties){ Loading Loading @@ -1887,6 +1892,8 @@ public class EyesisCorrectionParameters { if (properties.getProperty(prefix+"normalize")!=null) this.normalize=Boolean.parseBoolean(properties.getProperty(prefix+"normalize")); if (properties.getProperty(prefix+"normalize")!=null) this.normalize=Boolean.parseBoolean(properties.getProperty(prefix+"normalize")); if (properties.getProperty(prefix+"skip_sym")!=null) this.skip_sym=Boolean.parseBoolean(properties.getProperty(prefix+"skip_sym")); if (properties.getProperty(prefix+"skip_sym")!=null) this.skip_sym=Boolean.parseBoolean(properties.getProperty(prefix+"skip_sym")); if (properties.getProperty(prefix+"convolve_direct")!=null) this.convolve_direct=Boolean.parseBoolean(properties.getProperty(prefix+"convolve_direct")); if (properties.getProperty(prefix+"convolve_direct")!=null) this.convolve_direct=Boolean.parseBoolean(properties.getProperty(prefix+"convolve_direct")); if (properties.getProperty(prefix+"vignetting_max")!=null) this.vignetting_max=Double.parseDouble(properties.getProperty(prefix+"vignetting_max")); if (properties.getProperty(prefix+"vignetting_range")!=null) this.vignetting_range=Double.parseDouble(properties.getProperty(prefix+"vignetting_range")); } } public boolean showDialog() { public boolean showDialog() { Loading Loading @@ -1923,7 +1930,10 @@ public class EyesisCorrectionParameters { gd.addCheckbox ("Normalize both sym and asym kernels ", this.normalize); gd.addCheckbox ("Normalize both sym and asym kernels ", this.normalize); gd.addCheckbox ("Do not apply symmetrical (DCT) correction ", this.skip_sym); gd.addCheckbox ("Do not apply symmetrical (DCT) correction ", this.skip_sym); gd.addCheckbox ("Convolve directly with symmetrical kernel (debug feature) ", this.convolve_direct); gd.addCheckbox ("Convolve directly with symmetrical kernel (debug feature) ", this.convolve_direct); gd.addNumericField("Value (max) in vignetting data to correspond to 1x in the kernel",this.vignetting_max, 3); gd.addNumericField("Do not try to correct vignetting smaller than this fraction of max",this.vignetting_range, 3); WindowTools.addScrollBars(gd); gd.showDialog(); gd.showDialog(); if (gd.wasCanceled()) return false; if (gd.wasCanceled()) return false; Loading Loading @@ -1959,6 +1969,8 @@ public class EyesisCorrectionParameters { this.normalize= gd.getNextBoolean(); this.normalize= gd.getNextBoolean(); this.skip_sym= gd.getNextBoolean(); this.skip_sym= gd.getNextBoolean(); this.convolve_direct= gd.getNextBoolean(); this.convolve_direct= gd.getNextBoolean(); this.vignetting_max= gd.getNextNumber(); this.vignetting_range= gd.getNextNumber(); // MASTER_DEBUG_LEVEL= (int) gd.getNextNumber(); // MASTER_DEBUG_LEVEL= (int) gd.getNextNumber(); return true; return true; } } Loading src/main/java/EyesisCorrections.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -2234,7 +2234,8 @@ public class EyesisCorrections { return mask; return mask; } } /* ======================================================================== */ /* ======================================================================== */ private void saveAndShow( // private void saveAndShow( public void saveAndShow( ImagePlus imp, ImagePlus imp, EyesisCorrectionParameters.CorrectionParameters correctionsParameters){ EyesisCorrectionParameters.CorrectionParameters correctionsParameters){ saveAndShowEnable( imp, correctionsParameters , true, true); saveAndShowEnable( imp, correctionsParameters , true, true); Loading @@ -2254,6 +2255,7 @@ public class EyesisCorrections { } } private void saveAndShow( private void saveAndShow( // public void saveAndShow( ImagePlus imp, ImagePlus imp, EyesisCorrectionParameters.CorrectionParameters correctionsParameters, EyesisCorrectionParameters.CorrectionParameters correctionsParameters, boolean save, boolean save, Loading Loading
src/main/java/EyesisCorrectionParameters.java +13 −1 Original line number Original line Diff line number Diff line Loading @@ -1801,6 +1801,9 @@ public class EyesisCorrectionParameters { public boolean skip_sym = false; // do not apply symmetrical correction public boolean skip_sym = false; // do not apply symmetrical correction public boolean convolve_direct = false; // do not apply symmetrical correction public boolean convolve_direct = false; // do not apply symmetrical correction public double vignetting_max = 0.4; // value in vignetting data to correspond to 1x in the kernel public double vignetting_range = 3.0; // do not try to correct vignetting less than vignetting_max/vignetting_range public DCTParameters( public DCTParameters( int dct_size, int dct_size, int asym_size, int asym_size, Loading Loading @@ -1852,6 +1855,8 @@ public class EyesisCorrectionParameters { properties.setProperty(prefix+"normalize", this.normalize+""); properties.setProperty(prefix+"normalize", this.normalize+""); properties.setProperty(prefix+"skip_sym", this.skip_sym+""); properties.setProperty(prefix+"skip_sym", this.skip_sym+""); properties.setProperty(prefix+"convolve_direct", this.convolve_direct+""); properties.setProperty(prefix+"convolve_direct", this.convolve_direct+""); properties.setProperty(prefix+"vignetting_max", this.vignetting_max+""); properties.setProperty(prefix+"vignetting_range", this.vignetting_range+""); } } public void getProperties(String prefix,Properties properties){ public void getProperties(String prefix,Properties properties){ Loading Loading @@ -1887,6 +1892,8 @@ public class EyesisCorrectionParameters { if (properties.getProperty(prefix+"normalize")!=null) this.normalize=Boolean.parseBoolean(properties.getProperty(prefix+"normalize")); if (properties.getProperty(prefix+"normalize")!=null) this.normalize=Boolean.parseBoolean(properties.getProperty(prefix+"normalize")); if (properties.getProperty(prefix+"skip_sym")!=null) this.skip_sym=Boolean.parseBoolean(properties.getProperty(prefix+"skip_sym")); if (properties.getProperty(prefix+"skip_sym")!=null) this.skip_sym=Boolean.parseBoolean(properties.getProperty(prefix+"skip_sym")); if (properties.getProperty(prefix+"convolve_direct")!=null) this.convolve_direct=Boolean.parseBoolean(properties.getProperty(prefix+"convolve_direct")); if (properties.getProperty(prefix+"convolve_direct")!=null) this.convolve_direct=Boolean.parseBoolean(properties.getProperty(prefix+"convolve_direct")); if (properties.getProperty(prefix+"vignetting_max")!=null) this.vignetting_max=Double.parseDouble(properties.getProperty(prefix+"vignetting_max")); if (properties.getProperty(prefix+"vignetting_range")!=null) this.vignetting_range=Double.parseDouble(properties.getProperty(prefix+"vignetting_range")); } } public boolean showDialog() { public boolean showDialog() { Loading Loading @@ -1923,7 +1930,10 @@ public class EyesisCorrectionParameters { gd.addCheckbox ("Normalize both sym and asym kernels ", this.normalize); gd.addCheckbox ("Normalize both sym and asym kernels ", this.normalize); gd.addCheckbox ("Do not apply symmetrical (DCT) correction ", this.skip_sym); gd.addCheckbox ("Do not apply symmetrical (DCT) correction ", this.skip_sym); gd.addCheckbox ("Convolve directly with symmetrical kernel (debug feature) ", this.convolve_direct); gd.addCheckbox ("Convolve directly with symmetrical kernel (debug feature) ", this.convolve_direct); gd.addNumericField("Value (max) in vignetting data to correspond to 1x in the kernel",this.vignetting_max, 3); gd.addNumericField("Do not try to correct vignetting smaller than this fraction of max",this.vignetting_range, 3); WindowTools.addScrollBars(gd); gd.showDialog(); gd.showDialog(); if (gd.wasCanceled()) return false; if (gd.wasCanceled()) return false; Loading Loading @@ -1959,6 +1969,8 @@ public class EyesisCorrectionParameters { this.normalize= gd.getNextBoolean(); this.normalize= gd.getNextBoolean(); this.skip_sym= gd.getNextBoolean(); this.skip_sym= gd.getNextBoolean(); this.convolve_direct= gd.getNextBoolean(); this.convolve_direct= gd.getNextBoolean(); this.vignetting_max= gd.getNextNumber(); this.vignetting_range= gd.getNextNumber(); // MASTER_DEBUG_LEVEL= (int) gd.getNextNumber(); // MASTER_DEBUG_LEVEL= (int) gd.getNextNumber(); return true; return true; } } Loading
src/main/java/EyesisCorrections.java +3 −1 Original line number Original line Diff line number Diff line Loading @@ -2234,7 +2234,8 @@ public class EyesisCorrections { return mask; return mask; } } /* ======================================================================== */ /* ======================================================================== */ private void saveAndShow( // private void saveAndShow( public void saveAndShow( ImagePlus imp, ImagePlus imp, EyesisCorrectionParameters.CorrectionParameters correctionsParameters){ EyesisCorrectionParameters.CorrectionParameters correctionsParameters){ saveAndShowEnable( imp, correctionsParameters , true, true); saveAndShowEnable( imp, correctionsParameters , true, true); Loading @@ -2254,6 +2255,7 @@ public class EyesisCorrections { } } private void saveAndShow( private void saveAndShow( // public void saveAndShow( ImagePlus imp, ImagePlus imp, EyesisCorrectionParameters.CorrectionParameters correctionsParameters, EyesisCorrectionParameters.CorrectionParameters correctionsParameters, boolean save, boolean save, Loading