Commit db4561f4 authored by Andrey Filippov's avatar Andrey Filippov

Added option to show each individual image in a set reprojection error

parent 452cab87
...@@ -4324,10 +4324,12 @@ List calibration ...@@ -4324,10 +4324,12 @@ List calibration
return totalBadNodes; return totalBadNodes;
} }
public boolean showImageReprojectionErrorsDialog( int debugLevel){ public boolean showImageReprojectionErrorsDialog( int debugLevel){
boolean eachImageInSet=false;
GenericDialog gd = new GenericDialog("Show Reprojection errors for image/image set/image selection"); GenericDialog gd = new GenericDialog("Show Reprojection errors for image/image set/image selection");
gd.addNumericField("Series number for image selection (-1 - all enabled images)", -1, 0); gd.addNumericField("Series number for image selection (-1 - all enabled images)", -1, 0);
gd.addNumericField("Single image number to show (<0 - do not select)", -1,0); gd.addNumericField("Single image number to show (<0 - do not select)", -1,0);
gd.addNumericField("Image set number to show (<0 - do not select)", -1,0); gd.addNumericField("Image set number to show (<0 - do not select)", -1,0);
gd.addCheckbox("Open each image in the set", eachImageInSet);
gd.addCheckbox("Ask for weight function filter", this.askFilter); gd.addCheckbox("Ask for weight function filter", this.askFilter);
// gd.addNumericField("Weight function filter (-1 - use default for all )",-1,0); // gd.addNumericField("Weight function filter (-1 - use default for all )",-1,0);
gd.showDialog(); gd.showDialog();
...@@ -4335,6 +4337,7 @@ List calibration ...@@ -4335,6 +4337,7 @@ List calibration
this.seriesNumber= (int) gd.getNextNumber(); this.seriesNumber= (int) gd.getNextNumber();
int singleImageNumber= (int) gd.getNextNumber(); int singleImageNumber= (int) gd.getNextNumber();
int imageSetNumber= (int) gd.getNextNumber(); int imageSetNumber= (int) gd.getNextNumber();
eachImageInSet= gd.getNextBoolean();
this.askFilter= gd.getNextBoolean(); this.askFilter= gd.getNextBoolean();
// int weightFunctionFilter= (int) gd.getNextNumber(); // int weightFunctionFilter= (int) gd.getNextNumber();
int filter=this.filterForAll; int filter=this.filterForAll;
...@@ -4355,6 +4358,16 @@ List calibration ...@@ -4355,6 +4358,16 @@ List calibration
imageNumbers[numInSet++]=this.fittingStrategy.distortionCalibrationData.gIS[imageSetNumber].imageSet[nChn].imgNumber; imageNumbers[numInSet++]=this.fittingStrategy.distortionCalibrationData.gIS[imageSetNumber].imageSet[nChn].imgNumber;
} }
} }
if (eachImageInSet){
for (int nChn=0;nChn<imageNumbers.length;nChn++){
int [] imageNumber={imageNumbers[nChn]};
showImageReprojectionErrors(
imageNumber, // if null - use all images in a series
filter, //weightFunctionFilter,
debugLevel);
}
// Do not exit, continue and show combine reprojection errors for all set
}
} }
showImageReprojectionErrors( showImageReprojectionErrors(
imageNumbers, // if null - use all images in a series imageNumbers, // if null - use all images in a series
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment