Commit d7e96c38 authored by Andrey Filippov's avatar Andrey Filippov

renamed showDoubleFloatArrays to Upper case

parent 3344eaf3
......@@ -61,7 +61,7 @@ public class DoubleFHT {
private double [] translateFHTdXY=null;
private int translateFHTN=0;
public boolean debug=false;
private showDoubleFloatArrays SDFA_INSTANCE= new showDoubleFloatArrays(); // just for debugging?
private ShowDoubleFloatArrays SDFA_INSTANCE= new ShowDoubleFloatArrays(); // just for debugging?
public DoubleFHT() {
this.C = null;
this.S = null;
......
......@@ -10,7 +10,7 @@ import ij.process.ColorProcessor;
import ij.process.FloatProcessor;
import ij.process.ImageProcessor;
public class showDoubleFloatArrays {
public class ShowDoubleFloatArrays {
// defaults for color conversion
public int sliceRminusG=1;
public int sliceBminusG=2;
......
......@@ -62,7 +62,7 @@ import javax.swing.JFileChooser;
import com.elphel.imagej.common.DoubleFHT;
import com.elphel.imagej.common.DoubleGaussianBlur;
import com.elphel.imagej.common.showDoubleFloatArrays;
import com.elphel.imagej.common.ShowDoubleFloatArrays;
import com.elphel.imagej.jp4.JP46_Reader_camera;
import Jama.Matrix; // Download here: http://math.nist.gov/javanumerics/jama/
......@@ -96,7 +96,7 @@ public class Aberration_Calibration extends PlugInFrame implements ActionListene
private Panel panelGoniometer;
private Panel panelPixelMapping, panelStereo,panelStereo1;
private showDoubleFloatArrays SDFA_INSTANCE; // just for debugging?
private ShowDoubleFloatArrays SDFA_INSTANCE; // just for debugging?
JP46_Reader_camera JP4_INSTANCE;
static Frame instance;
static Properties PROPERTIES=new Properties();
......@@ -975,7 +975,7 @@ if (MORE_BUTTONS) {
GUI.center(this);
setVisible(true);
JP4_INSTANCE= new JP46_Reader_camera(false);
SDFA_INSTANCE= new showDoubleFloatArrays();
SDFA_INSTANCE= new ShowDoubleFloatArrays();
// main loop
while (true){
synchronized (this.SYNC_COMMAND) {
......@@ -15167,7 +15167,7 @@ private double [][] jacobianByJacobian(double [][] jacobian, boolean [] mask) {
EyesisAberrations.MultiFilePSF multiFilePSF , // MULTIFILE_PSF = new EyesisAberrations.MultiFilePSF(
String [] filenames,
String resultPath,
showDoubleFloatArrays sdfa_instance, // SDFA_INSTANCE
ShowDoubleFloatArrays sdfa_instance, // SDFA_INSTANCE
ImagePlus imp_sel,
boolean saveResult,
boolean showResult,
......@@ -54,7 +54,7 @@ import javax.swing.filechooser.FileFilter;
import com.elphel.imagej.common.DoubleFHT;
import com.elphel.imagej.common.DoubleGaussianBlur;
import com.elphel.imagej.common.showDoubleFloatArrays;
import com.elphel.imagej.common.ShowDoubleFloatArrays;
import com.elphel.imagej.jp4.JP46_Reader_camera;
//import javax.swing.SwingUtilities;
......@@ -69,7 +69,7 @@ private Panel panel1,panel2,panel3,panel4,panel5,panel5a, panel6;
JP46_Reader_camera JP4_INSTANCE=null;
// private deBayerScissors debayer_instance;
private showDoubleFloatArrays SDFA_INSTANCE; // just for debugging?
private ShowDoubleFloatArrays SDFA_INSTANCE; // just for debugging?
private DoubleFHT FHT_INSTANCE;
static Frame instance;
static Properties PROPERTIES=new Properties();
......@@ -351,7 +351,7 @@ private Panel panel1,panel2,panel3,panel4,panel5,panel5a, panel6;
GUI.center(this);
setVisible(true);
FHT_INSTANCE= new DoubleFHT();
SDFA_INSTANCE= new showDoubleFloatArrays();
SDFA_INSTANCE= new ShowDoubleFloatArrays();
}
void addButton(String label, Panel panel) {
Button b = new Button(label);
......@@ -2515,7 +2515,7 @@ if (PROCESS_PARAMETERS.saveSettings) saveProperties(FILE_PARAMETERS.resultsDirec
int chn,tileY,tileX,i;
for (chn=0;chn<nChn;chn++) pixels[chn]= (float[]) imageStack.getPixels(chn+1);
DoubleFHT fht_instance = new DoubleFHT(); // provide DoubleFHT instance to save on initializations (or null)
showDoubleFloatArrays SDFA_instance=null; // just for debugging?
ShowDoubleFloatArrays SDFA_instance=null; // just for debugging?
deBayerScissors debayer_instance=new deBayerScissors( debayerParameters.size, // size of the square array, centar is at size/2, size/2, only top half+line will be used
debayerParameters.polarStep, // maximal step in pixels on the maxRadius for 1 angular step (i.e. 0.5)
......@@ -2546,7 +2546,7 @@ if (PROCESS_PARAMETERS.saveSettings) saveProperties(FILE_PARAMETERS.resultsDirec
/* Scale green channel x0.5 as there are twice more pixels there as in red or blue. Or move it somewhere else and multiply to original range ? */
for (i=0;i<tile[greenChn].length;i++) tile[greenChn][i]*=0.5;
if ((tileY==yTileDebug) && (tileX==xTileDebug)) {
if (SDFA_instance==null) SDFA_instance= new showDoubleFloatArrays();
if (SDFA_instance==null) SDFA_instance= new ShowDoubleFloatArrays();
SDFA_instance.showArrays (tile.clone(),debayerParameters.size,debayerParameters.size, "x"+(tileX*step)+"_y"+(tileY*step));
}
for (chn=0;chn<nChn;chn++){
......
......@@ -23,7 +23,7 @@ import java.lang.Integer;
import javax.swing.*;
import com.elphel.imagej.common.DoubleFHT;
import com.elphel.imagej.common.showDoubleFloatArrays;
import com.elphel.imagej.common.ShowDoubleFloatArrays;
import com.elphel.imagej.jp4.JP46_Reader_camera;
......@@ -35,7 +35,7 @@ public class Aberrations_all extends PlugInFrame implements ActionListener {
Panel panel1,panel2;
// Panel panel;
JP46_Reader_camera jp4_instance;
showDoubleFloatArrays SDFA_instance;
ShowDoubleFloatArrays SDFA_instance;
DoubleFHT fht_instance;
static Frame instance;
public static int DEBUG_LEVEL = 2;
......@@ -339,7 +339,7 @@ Panel panel1,panel2;
setVisible(true);
jp4_instance= new JP46_Reader_camera();
fht_instance= new DoubleFHT();
SDFA_instance= new showDoubleFloatArrays();
SDFA_instance= new ShowDoubleFloatArrays();
Hamming=initHamming(FFTSize);
......
......@@ -24,7 +24,7 @@ package com.elphel.imagej.dp;
import java.util.ArrayList;
import com.elphel.imagej.common.showDoubleFloatArrays;
import com.elphel.imagej.common.ShowDoubleFloatArrays;
public class BiCamDSI {
......@@ -434,7 +434,7 @@ public class BiCamDSI {
double [][] weight_mask = get9weightMasks(
nd, // >=1int neib_dist, // >=1
rs);
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
weight_mask,
2*nd+1,
2*nd+1,
......@@ -565,7 +565,7 @@ public class BiCamDSI {
}
if (debugLevel > 0) {
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
weight_mask,
2*neib_dist+1,
2*neib_dist+1,
......@@ -576,7 +576,7 @@ public class BiCamDSI {
if (mean_to_rms != null) {
double [][] dbg_img = {disparity, strength, mean_to_rms[0], mean_to_rms[1], mean_to_rms[2], mean_to_rms[3]};
String [] titles = {"disparity", "strength", "mean_to_rms","mean","rms", "dir/10"};
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
dbg_img,
tilesX,
mean_to_rms[0].length/tilesX,
......@@ -589,7 +589,7 @@ public class BiCamDSI {
"dr0","dr1","dr2","dr3","dr4","dr5","dr6","dr7","dr8",
"m0","m1","m2","m3","m4","m5","m6","m7","m8",
"r0","r1","r2","r3","r4","r5","r6","r7","r8"};
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
dbg_dirs,
tilesX,
mean_to_rms[0].length/tilesX,
......@@ -940,7 +940,7 @@ public class BiCamDSI {
System.out.println ("Updated sigma in tiles:"+num_sigma+" (sigma = "+sigma+", sigma2 = "+sigma2);
System.out.println ("Tiles to meaure:"+num_to_measure);
disparity_bimap[ImageDtt.BI_DBG3_INDEX] = to_measure; // overwrites old debug data
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
disparity_bimap,
tnImage.sizeX,
tnImage.sizeY,
......
......@@ -26,7 +26,7 @@ import java.util.Collections;
import java.util.Comparator;
import java.util.concurrent.atomic.AtomicInteger;
import com.elphel.imagej.common.showDoubleFloatArrays;
import com.elphel.imagej.common.ShowDoubleFloatArrays;
public class BiScan {
final static double THRESHOLD_LIN = 1.0E-20; // threshold ratio of matrix determinant to norm for linear approximation (det too low - fail)
......@@ -358,7 +358,7 @@ public class BiScan {
if (this.target_disparity != null) {
dbg_data[7] = this.target_disparity.clone();
}
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
dbg_data,
biCamDSI.tnImage.getSizeX(),
biCamDSI.tnImage.getSizeY(),
......@@ -1798,7 +1798,7 @@ public class BiScan {
}
}
if (dbg_this) {
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
dbg_data,
smpl_side,
smpl_side,
......
......@@ -31,7 +31,7 @@ import java.util.Iterator;
import java.util.List;
import com.elphel.imagej.common.DoubleGaussianBlur;
import com.elphel.imagej.common.showDoubleFloatArrays;
import com.elphel.imagej.common.ShowDoubleFloatArrays;
public class BlueLeak {
private double [][] rgb_in;
......@@ -41,7 +41,7 @@ public class BlueLeak {
private int height;
private int length;
EyesisCorrectionParameters.ColorProcParameters colorProcParameters;
private showDoubleFloatArrays SDFA_INSTANCE;
private ShowDoubleFloatArrays SDFA_INSTANCE;
private int [] dirs20;
private double [] weights20;
private int [] dirs8;
......@@ -55,7 +55,7 @@ public class BlueLeak {
EyesisCorrectionParameters.ColorProcParameters colorProcParameters,
double [][] rgb,
int width,
showDoubleFloatArrays SDFA_INSTANCE,
ShowDoubleFloatArrays SDFA_INSTANCE,
String dbgImgTitle,
int debugLevel){
length=rgb[0].length;
......
......@@ -31,14 +31,14 @@ import java.util.concurrent.atomic.AtomicInteger;
import com.elphel.imagej.common.DoubleGaussianBlur;
import com.elphel.imagej.common.GenericJTabbedDialog;
import com.elphel.imagej.common.showDoubleFloatArrays;
import com.elphel.imagej.common.ShowDoubleFloatArrays;
import ij.ImageStack;
import ij.gui.GenericDialog;
public class CorrectionColorProc {
showDoubleFloatArrays SDFA_INSTANCE= new showDoubleFloatArrays();
ShowDoubleFloatArrays SDFA_INSTANCE= new ShowDoubleFloatArrays();
public AtomicInteger stopRequested=null; // 1 - stop now, 2 - when convenient
double [] denoiseMaskChroma;
int denoiseMaskChromaWidth;
......
......@@ -33,11 +33,11 @@ import java.util.concurrent.atomic.AtomicInteger;
import com.elphel.imagej.common.DoubleFHT;
import com.elphel.imagej.common.DoubleGaussianBlur;
import com.elphel.imagej.common.showDoubleFloatArrays;
import com.elphel.imagej.common.ShowDoubleFloatArrays;
public class CorrectionDenoise {
showDoubleFloatArrays SDFA_INSTANCE= new showDoubleFloatArrays();
ShowDoubleFloatArrays SDFA_INSTANCE= new ShowDoubleFloatArrays();
public AtomicInteger stopRequested=null; // 1 - stop now, 2 - when convenient
double [] denoiseMask;
int denoiseMaskWidth;
......
package com.elphel.imagej.dp;
import java.util.ArrayList;
import com.elphel.imagej.common.showDoubleFloatArrays;
import com.elphel.imagej.common.ShowDoubleFloatArrays;
/**
**
......@@ -964,7 +964,7 @@ public class Correlation2d {
dbg_data[1] = debugStrip3(data_0);
int long_width = 2 * (2 * transform_size-1);
if (dbg_data[0] != null) {
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
dbg_data,
long_width,
dbg_data[0].length/long_width,
......@@ -1885,7 +1885,7 @@ public class Correlation2d {
}
// String [] titles = {"ortho","diagonal"};
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
y_and_fx,
2 * transform_size-1,
2 * transform_size-1,
......@@ -1997,7 +1997,7 @@ public class Correlation2d {
}
// String [] titles = {"ortho","diagonal"};
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
y_and_fx,
2 * transform_size-1,
2 * transform_size-1,
......
......@@ -34,7 +34,7 @@ import java.util.concurrent.atomic.AtomicInteger;
import javax.swing.SwingUtilities;
import com.elphel.imagej.common.DoubleFHT;
import com.elphel.imagej.common.showDoubleFloatArrays;
import com.elphel.imagej.common.ShowDoubleFloatArrays;
public class DebayerScissors {
......@@ -134,7 +134,7 @@ public class DebayerScissors {
int chn,tileY,tileX,i;
for (chn=0;chn<nChn;chn++) pixels[chn]= (float[]) imageStack.getPixels(chn+1);
DoubleFHT fht_instance = new DoubleFHT(); // provide DoubleFHT instance to save on initializations (or null)
showDoubleFloatArrays SDFA_instance=null; // just for debugging?
ShowDoubleFloatArrays SDFA_instance=null; // just for debugging?
deBayerScissors debayer_instance=new deBayerScissors( debayerParameters.size, // size of the square array, centar is at size/2, size/2, only top half+line will be used
debayerParameters.polarStep, // maximal step in pixels on the maxRadius for 1 angular step (i.e. 0.5)
......@@ -167,7 +167,7 @@ public class DebayerScissors {
/* Scale green channel x0.5 as there are twice more pixels there as in red or blue. Or move it somewhere else and multiply to original range ? */
for (i=0;i<tile[greenChn].length;i++) tile[greenChn][i]*=0.5;
if ((tileY==yTileDebug) && (tileX==xTileDebug)) {
if (SDFA_instance==null) SDFA_instance= new showDoubleFloatArrays();
if (SDFA_instance==null) SDFA_instance= new ShowDoubleFloatArrays();
SDFA_instance.showArrays (tile.clone(),debayerParameters.size,debayerParameters.size, "x"+(tileX*step)+"_y"+(tileY*step));
}
for (chn=0;chn<nChn;chn++){
......
......@@ -14,7 +14,7 @@ import javax.swing.SwingUtilities;
import com.elphel.imagej.common.DoubleFHT;
import com.elphel.imagej.common.DoubleGaussianBlur;
import com.elphel.imagej.common.showDoubleFloatArrays;
import com.elphel.imagej.common.ShowDoubleFloatArrays;
public class DenseCorrespondence {
......@@ -141,7 +141,7 @@ public class DenseCorrespondence {
}
}
if (debugLevel>2){ // one per thread
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
window,
size,
size,
......@@ -192,7 +192,7 @@ public class DenseCorrespondence {
}
}
if (debugLevel>5){
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
visibility, // TODO: add slice names
paddedSize,
paddedSize,
......@@ -318,7 +318,7 @@ public class DenseCorrespondence {
debugTitles[iChn*imgList.length+nImg]=channelNames[channelIndex[iChn]]+"-"+nImg;
debugData[iChn*imgList.length+nImg]=imageTiles[nImg][iChn];
}
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
debugData,
scaledSize,
scaledSize,
......@@ -371,7 +371,7 @@ public class DenseCorrespondence {
debugTitles[channelIndex.length*imgList.length+nImg]="v-mask-"+nImg;
debugData[channelIndex.length*imgList.length+nImg]=visibilityMask[nImg];
}
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
debugData,
scaledSize,
scaledSize,
......@@ -460,7 +460,7 @@ public class DenseCorrespondence {
debugTitles[iChn+1]=channelNames[channelIndex[iChn]];
debugData[iChn+1]=corr[iChn];
}
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
debugData,
scaledSize,
scaledSize,
......@@ -488,7 +488,7 @@ public class DenseCorrespondence {
int interpolatedSize=scaledSize*refineUpsampleExtra;
int interpolatedCenter=(interpolatedSize+1)*interpolatedSize/2;
if (debugLevel>3) { // show upsampled combined for all channels) correlation for enabled pairs
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
upsampled,
interpolatedSize,
interpolatedSize,
......@@ -861,7 +861,7 @@ public class DenseCorrespondence {
System.out.print("getImageTile()");
if (debugLevel>3){
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
window,
size,
size,
......@@ -886,7 +886,7 @@ public class DenseCorrespondence {
ixc , //xc,
iyc); //yc);
if (debugLevel>4) {
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
sliceTile,
size,
size,
......@@ -897,7 +897,7 @@ public class DenseCorrespondence {
if (shift || scale){
dc=normalizeAndWindowGetDC (sliceTile, window); //windowInterpolation
if (debugLevel>4) {
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
sliceTile,
size,
size,
......@@ -906,7 +906,7 @@ public class DenseCorrespondence {
result[chn]=doubleFHT.shift(sliceTile, subpixel, -dxc, -dyc);
if (debugLevel>4) {
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
sliceTile,
size,
size,
......@@ -1866,7 +1866,7 @@ public class DenseCorrespondence {
}
}
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
debugData,
this.subdivAverage,
subdivDifference,
......
......@@ -26,7 +26,7 @@ package com.elphel.imagej.dp;
import java.util.ArrayList;
import java.util.concurrent.atomic.AtomicInteger;
import com.elphel.imagej.common.showDoubleFloatArrays;
import com.elphel.imagej.common.ShowDoubleFloatArrays;
public class DisparityProcessor {
static int [] corn_side_neib = { // of +1 - up (N), +2 - up-right - NE, ... +0x80 - NW
......@@ -276,8 +276,8 @@ public class DisparityProcessor {
final int debugLevel)
{
final int dbg_tile = -1; // 28643; // x=131, y=88
showDoubleFloatArrays sdfa_instance = null;
if (debugLevel > 0) sdfa_instance = new showDoubleFloatArrays(); // just for debugging?
ShowDoubleFloatArrays sdfa_instance = null;
if (debugLevel > 0) sdfa_instance = new ShowDoubleFloatArrays(); // just for debugging?
final Thread[] threads = ImageDtt.newThreadArray(threadsMax);
final int numThreads = threads.length;
if (debugLevel > 0) System.out.println("smoothDisparity(): using "+numThreads+" threads");
......
......@@ -36,7 +36,7 @@ import org.apache.commons.configuration.HierarchicalConfiguration;
import org.apache.commons.configuration.XMLConfiguration;
import com.elphel.imagej.common.DoubleGaussianBlur;
import com.elphel.imagej.common.showDoubleFloatArrays;
import com.elphel.imagej.common.ShowDoubleFloatArrays;
import com.elphel.imagej.jp4.JP46_Reader_camera;
import ij.IJ;
......@@ -80,7 +80,7 @@ import ij.text.TextWindow;
//pixelsXY, pixelsUV should match, second dimension is variable
public boolean updateStatus=true;
public int debugLevel=2;
private showDoubleFloatArrays SDFA_INSTANCE=null; // just for debugging
private ShowDoubleFloatArrays SDFA_INSTANCE=null; // just for debugging
public int getNumStations(){
return (eyesisCameraParameters==null)?0:eyesisCameraParameters.getNumStations();
}
......@@ -2795,7 +2795,7 @@ import ij.text.TextWindow;
}
String [] dbgTitles={"diff20","diff2Mod","localWorst", "old-X", "old-Y", "new-X", "new-Y","old-new-X","old-new-Y"};
if (dbgTitle!=null) (new showDoubleFloatArrays()).showArrays(dbgData, width, height, true, dbgTitle, dbgTitles);
if (dbgTitle!=null) (new ShowDoubleFloatArrays()).showArrays(dbgData, width, height, true, dbgTitle, dbgTitles);
}
return numBad;
}
......@@ -3364,7 +3364,7 @@ import ij.text.TextWindow;
int numChannels=getNumChannels();
this.sensorMasks=new double [numChannels][];
DoubleGaussianBlur gb=new DoubleGaussianBlur();
if ((this.debugLevel>1) && (SDFA_INSTANCE==null)) SDFA_INSTANCE=new showDoubleFloatArrays();
if ((this.debugLevel>1) && (SDFA_INSTANCE==null)) SDFA_INSTANCE=new ShowDoubleFloatArrays();
if (this.debugLevel>2)System.out.println("calculateSensorMasks("+width+","+height+","+shrinkGridForMask+","+sigmaUV+")");
for (int chNum=0;chNum<numChannels; chNum++){
this.sensorMasks[chNum]=new double[dWidth*dHeight];
......@@ -3466,7 +3466,7 @@ import ij.text.TextWindow;
int dWidth= (width -1)/decimate+1;
int dHeight= (height-1)/decimate+1;
DoubleGaussianBlur gb=new DoubleGaussianBlur();
if ((this.debugLevel>1) && (SDFA_INSTANCE==null)) SDFA_INSTANCE=new showDoubleFloatArrays();
if ((this.debugLevel>1) && (SDFA_INSTANCE==null)) SDFA_INSTANCE=new ShowDoubleFloatArrays();
if (this.debugLevel>2)System.out.println("calculateSensorMasks("+width+","+height+","+shrinkGridForMask+","+sigmaUV+")");
double [][] preMask=preCalculateSingleImageMask(imgNum, decimate, width, height, shrinkGridForMask);
if (preMask==null) return null; //nothing in this channel
......
......@@ -45,7 +45,7 @@ import java.util.concurrent.atomic.AtomicInteger;
import javax.swing.SwingUtilities;
import com.elphel.imagej.common.DoubleGaussianBlur;
import com.elphel.imagej.common.showDoubleFloatArrays;
import com.elphel.imagej.common.ShowDoubleFloatArrays;
import com.elphel.imagej.jp4.JP46_Reader_camera;
import Jama.LUDecomposition;
......@@ -56,7 +56,7 @@ import Jama.Matrix;
// 2 - in Eclipse project properties -> Build Path -> Libraries -> Add External jar
public class Distortions {
final public double hintedMaxRelativeRadius=1.2; // make adjustable?
private showDoubleFloatArrays SDFA_INSTANCE=new showDoubleFloatArrays(); // just for debugging?
private ShowDoubleFloatArrays SDFA_INSTANCE=new ShowDoubleFloatArrays(); // just for debugging?
// int numInputs=27; // with A8...// 24; // parameters in subcamera+...
// int numOutputs=16; // with A8...//13; // parameters in a single camera
public PatternParameters patternParameters;
......@@ -801,7 +801,7 @@ public class Distortions {
for (int nChn=0;nChn<masks.length;nChn++) if ((nChn<selectedChannels.length)&&!selectedChannels[nChn]) masks[nChn]=null;
}
*/
if (enableShow && this.refineParameters.flatFieldShowSensorMasks) (new showDoubleFloatArrays()).showArrays( //java.lang.ArrayIndexOutOfBoundsException: 313632
if (enableShow && this.refineParameters.flatFieldShowSensorMasks) (new ShowDoubleFloatArrays()).showArrays( //java.lang.ArrayIndexOutOfBoundsException: 313632
masks,
this.pixelCorrectionWidth/ this.pixelCorrectionDecimation,
this.pixelCorrectionHeight/this.pixelCorrectionDecimation,
......@@ -821,7 +821,7 @@ public class Distortions {
if (enableShow && this.refineParameters.flatFieldShowIndividual){
for (int station=0;station<sensorGrids.length;station++) if (sensorGrids[station]!=null){
for (int i=0;i<sensorGrids[station].length;i++) if (sensorGrids[station][i]!=null){
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
sensorGrids[station][i],
geometry[0].length,
geometry.length,
......@@ -842,7 +842,7 @@ public class Distortions {
String [] titles={"Alpha","Red","Green","Blue","Number of images used"};
for (int station=0;station<patternArray.length;station++) if (patternArray[station]!=null){
for (int nView=0;nView<patternArray[station].length;nView++) if (patternArray[station][nView]!=null){
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
patternArray[station][nView],
geometry[0].length,
geometry.length,
......@@ -1099,7 +1099,7 @@ public class Distortions {
worstImageNumber,
savedMask};
Rectangle gridDimensions=patternParameters.getUVDimensions();
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
debugData,
gridDimensions.width,
gridDimensions.height,
......@@ -1408,14 +1408,14 @@ public class Distortions {
margin); //mask; // replace with 0.0 .. 1.0 mask
if (extraShowDebug) debugMasks2[1]=gridPCorr[sensorNum][alphaIndex].clone();
if (extraShowDebug) {
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
debugMasks1,
width1,
height1,
true,
"M1-"+sensorNum,
debugMaskTitles);
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
debugMasks2,
width,
height,
......@@ -1735,7 +1735,7 @@ public class Distortions {
extrapolated[4],
extrapolated[5],
debugMask};
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
debugData,
width,
height,
......@@ -1813,7 +1813,7 @@ public class Distortions {
debugLevel);
if (showIntermediate){
String [] dbgTitles={"dPX","dPY","alpha","R","G","B"};
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
additionalCorrection,
sensorWidth/decimation,
sensorHeight/decimation,
......@@ -1951,7 +1951,7 @@ public class Distortions {
}
}
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
debugData,
width,
height,
......@@ -1959,7 +1959,7 @@ public class Distortions {
"PRE_EXP-"+imgNum+"-"+chnNum,
dbgTitles);
String [] dbgTitles1={"R-tar","R-grid","R-corr","R-FF","G-tar","G-grid","G-corr","G-FF","B-tar","B-grid","B-corr","B-FF",};//
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
debugRGB,
width,
height,
......@@ -2031,7 +2031,7 @@ public class Distortions {
debugData[7][i]= this.mask[i];
}
}
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
debugData,
this.uv0.width,
this.uv0.height,
......@@ -2511,7 +2511,7 @@ For each point in the image
}
index++;
}
(new showDoubleFloatArrays()).showArrays(pixels, hintGrid[0].length, hintGrid.length, true, "hintGrid", titles);
(new ShowDoubleFloatArrays()).showArrays(pixels, hintGrid[0].length, hintGrid.length, true, "hintGrid", titles);
}
......@@ -2881,7 +2881,7 @@ For each point in the image
pixels[3][index]=grid.pixelsUV_extra[i][1];
pixels[4][index]=1000.0;
}
(new showDoubleFloatArrays()).showArrays(pixels, width, height, true, "grid-"+numGridImage, titles);
(new ShowDoubleFloatArrays()).showArrays(pixels, width, height, true, "grid-"+numGridImage, titles);
}
public void showGridAndHint(){
GenericDialog gd=new GenericDialog("Show selected grid and/or hint grid");
......@@ -2950,7 +2950,7 @@ For each point in the image
}
index++;
}
(new showDoubleFloatArrays()).showArrays(pixels, hintGrid[0].length, hintGrid.length, true, title, titles);
(new ShowDoubleFloatArrays()).showArrays(pixels, hintGrid[0].length, hintGrid.length, true, title, titles);
}
/**
......@@ -3245,7 +3245,7 @@ For each point in the image
int uv=u+v*result[v].length;
debugPixels[5][uv]=(result[v][u]!=null)?3000:-3000; // masked
}
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
debugPixels,
result[0].length,
result.length,
......@@ -4603,7 +4603,7 @@ List calibration
String title="RPRJ";
int maxNumInTitle=10;
for (int i=0;(i<imageNumbers.length) && (i<maxNumInTitle); i++) title+="-"+imageNumbers[i];
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
imgData,
width,
height,
......@@ -6958,7 +6958,7 @@ List calibration
}
}
}
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
debugData,
width,
height,
......@@ -6976,14 +6976,14 @@ List calibration
debugLowpassDiffGreen[n]=lowPassDiff[station][nView][1];
}
}
if (this.debugLevel>=(debugThreshold+1)) (new showDoubleFloatArrays()).showArrays(
if (this.debugLevel>=(debugThreshold+1)) (new ShowDoubleFloatArrays()).showArrays(
debugDiffGreen,
width,
height,
true,
"DiffGreen"+nIter,
titles);
if (this.debugLevel>=(debugThreshold+1)) (new showDoubleFloatArrays()).showArrays(
if (this.debugLevel>=(debugThreshold+1)) (new ShowDoubleFloatArrays()).showArrays(
debugHighpassDiffGreen,
width,
height,
......@@ -6991,7 +6991,7 @@ List calibration
"HighpassGreen"+nIter,
titles);
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
debugLowpassDiffGreen,
width,
height,
......@@ -7000,7 +7000,7 @@ List calibration
titles);
String [] averageTitles={"Red","Green","Blue","Weight"};
(new showDoubleFloatArrays()).showArrays(
(new ShowDoubleFloatArrays()).showArrays(
average,
width,
height,