Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
imagej-elphel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
imagej-elphel
Commits
71a02244
Commit
71a02244
authored
Sep 25, 2014
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating history path on load
parent
7b0865f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
Aberration_Calibration.java
src/main/java/Aberration_Calibration.java
+4
-3
FocusingField.java
src/main/java/FocusingField.java
+6
-0
No files found.
src/main/java/Aberration_Calibration.java
View file @
71a02244
...
...
@@ -9220,10 +9220,13 @@ if (MORE_BUTTONS) {
!interactive, // false, // true, // boolean smart, // do not open dialog if default matches
FOCUS_MEASUREMENT_PARAMETERS.focusingHistoryFile, // FOCUSING_FIELD_HISTORY_PATH, //"",//); //String defaultPath); // AtomicInteger stopRequested
this.SYNC_COMMAND.stopRequested);
String path=FOCUSING_FIELD.getHistoryPath();
if (path==null) return false; // did not load
FOCUS_MEASUREMENT_PARAMETERS.focusingHistoryFile=path;
FOCUSING_FIELD.setDebugLevel(DEBUG_LEVEL);
FOCUSING_FIELD.setAdjustMode(false);
if (PROPERTIES!=null) FOCUSING_FIELD.getProperties("FOCUSING_FIELD.", PROPERTIES,true); // keep distortions center from history
System
.
out
.
println
(
"Loaded FocusingField
"
);
System.out.println("Loaded FocusingField
from "+path
);
if (!FOCUSING_FIELD.configureDataVector(
true, // boolean silent (maybe add option with false to change number of parameters?)
"Configure curvature - TODO: fix many settings restored from properties", // String title
...
...
@@ -9240,8 +9243,6 @@ if (MORE_BUTTONS) {
double rms= FOCUSING_FIELD.calcErrorDiffY(focusing_fx, false);
double rms_pure= FOCUSING_FIELD.calcErrorDiffY(focusing_fx, true);
System.out.println("rms="+rms+", rms_pure="+rms_pure);
return true; // add OK/fail
}
...
...
src/main/java/FocusingField.java
View file @
71a02244
...
...
@@ -202,6 +202,7 @@ public class FocusingField {
public
String
serialNumber
;
public
String
lensSerial
;
// if null - do not add average
public
String
comment
;
public
String
historyPath
=
null
;
public
int
sensorWidth
;
public
int
sensorHeight
;
// public static final double PIXEL_SIZE=0.0022; // mm
...
...
@@ -4781,6 +4782,7 @@ public boolean LevenbergMarquardt(
if
(
debugLevel
>
0
){
System
.
out
.
println
(
"Loaded measurement history "
+
pathname
);
}
this
.
historyPath
=
pathname
;
return
true
;
}
public
void
saveXML
(
...
...
@@ -4831,6 +4833,10 @@ public boolean LevenbergMarquardt(
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
this
.
historyPath
=
path
;
}
public
String
getHistoryPath
(){
return
this
.
historyPath
;
}
public
void
testMeasurement
(){
GenericDialog
gd
=
new
GenericDialog
(
"Select measurement"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment