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
227c8f63
Commit
227c8f63
authored
Sep 09, 2014
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More filtering modes
parent
3a766b8e
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
493 additions
and
170 deletions
+493
-170
pom.xml
pom.xml
+2
-2
Aberration_Calibration.java
src/main/java/Aberration_Calibration.java
+36
-3
FocusingField.java
src/main/java/FocusingField.java
+455
-165
No files found.
pom.xml
View file @
227c8f63
...
@@ -78,9 +78,8 @@
...
@@ -78,9 +78,8 @@
<artifactId>
maven-plugin-plugin
</artifactId>
<artifactId>
maven-plugin-plugin
</artifactId>
<configuration>
<configuration>
<!-- see http://jira.codehaus.org/browse/MNG-5346 -->
<!-- see http://jira.codehaus.org/browse/MNG-5346 -->
<skipErrorNoDescriptorsFound>
true
</skipErrorNoDescriptorsFound>
<skipErrorNoDescriptorsFound>
true
</skipErrorNoDescriptorsFound>
</configuration>
</configuration>
<executions>
<executions>
<execution>
<execution>
<id>
mojo-descriptor
</id>
<id>
mojo-descriptor
</id>
...
@@ -89,6 +88,7 @@
...
@@ -89,6 +88,7 @@
</goals>
</goals>
</execution>
</execution>
</executions>
</executions>
</plugin>
</plugin>
<plugin>
<plugin>
...
...
src/main/java/Aberration_Calibration.java
View file @
227c8f63
...
@@ -796,6 +796,7 @@ if (MORE_BUTTONS) {
...
@@ -796,6 +796,7 @@ if (MORE_BUTTONS) {
addButton
(
"Scan Calib LMA"
,
panelCurvature
,
color_process
);
addButton
(
"Scan Calib LMA"
,
panelCurvature
,
color_process
);
addButton
(
"Save History"
,
panelCurvature
,
color_debug
);
addButton
(
"Save History"
,
panelCurvature
,
color_debug
);
addButton
(
"Restore History"
,
panelCurvature
,
color_restore
);
addButton
(
"Restore History"
,
panelCurvature
,
color_restore
);
addButton
(
"History RMS"
,
panelCurvature
,
color_report
);
addButton
(
"Modify LMA"
,
panelCurvature
,
color_configure
);
addButton
(
"Modify LMA"
,
panelCurvature
,
color_configure
);
addButton
(
"Load strategies"
,
panelCurvature
,
color_restore
);
addButton
(
"Load strategies"
,
panelCurvature
,
color_restore
);
addButton
(
"Organize strategies"
,
panelCurvature
,
color_configure
);
addButton
(
"Organize strategies"
,
panelCurvature
,
color_configure
);
...
@@ -4088,7 +4089,12 @@ if (MORE_BUTTONS) {
...
@@ -4088,7 +4089,12 @@ if (MORE_BUTTONS) {
FOCUSING_FIELD
.
saveXML
(
path
);
FOCUSING_FIELD
.
saveXML
(
path
);
saveCurrentConfig
();
saveCurrentConfig
();
// for now just copying from "Restore History". TODO: Make both more automatic (move number of parameters outside?)
// for now just copying from "Restore History". TODO: Make both more automatic (move number of parameters outside?)
if
(!
FOCUSING_FIELD
.
configureDataVector
(
"Configure curvature - TODO: fix many settings restored from properties"
,
true
,
true
))
return
;
if
(!
FOCUSING_FIELD
.
configureDataVector
(
true
,
//boolean silent
"Configure curvature - TODO: fix many settings restored from properties"
,
// String title,
true
,
//boolean forcenew
true
)
// boolean enableReset
)
return
;
System
.
out
.
println
(
"TODO: fix many settings restored from properties, overwriting entered fields. Currently run \"Modify LMA\" to re-enter values"
);
System
.
out
.
println
(
"TODO: fix many settings restored from properties, overwriting entered fields. Currently run \"Modify LMA\" to re-enter values"
);
System
.
out
.
println
(
"TODO: Probably need to make a separate dialog that enters number of parameters."
);
System
.
out
.
println
(
"TODO: Probably need to make a separate dialog that enters number of parameters."
);
double
[]
sv
=
FOCUSING_FIELD
.
fieldFitting
.
createParameterVector
(
FOCUSING_FIELD
.
sagittalMaster
);
double
[]
sv
=
FOCUSING_FIELD
.
fieldFitting
.
createParameterVector
(
FOCUSING_FIELD
.
sagittalMaster
);
...
@@ -4419,7 +4425,12 @@ if (MORE_BUTTONS) {
...
@@ -4419,7 +4425,12 @@ if (MORE_BUTTONS) {
FOCUSING_FIELD
.
setAdjustMode
(
false
);
FOCUSING_FIELD
.
setAdjustMode
(
false
);
if
(
PROPERTIES
!=
null
)
FOCUSING_FIELD
.
getProperties
(
"FOCUSING_FIELD."
,
PROPERTIES
);
if
(
PROPERTIES
!=
null
)
FOCUSING_FIELD
.
getProperties
(
"FOCUSING_FIELD."
,
PROPERTIES
);
System
.
out
.
println
(
"Loaded FocusingField"
);
System
.
out
.
println
(
"Loaded FocusingField"
);
if
(!
FOCUSING_FIELD
.
configureDataVector
(
"Configure curvature - TODO: fix many settings restored from properties"
,
true
,
true
))
return
;
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
true
,
// boolean forcenew,
true
)
// boolean enableReset
)
return
;
System
.
out
.
println
(
"TODO: fix many settings restored from properties, overwriting entered fields. Currently run \"Modify LMA\" to re-enter values"
);
System
.
out
.
println
(
"TODO: fix many settings restored from properties, overwriting entered fields. Currently run \"Modify LMA\" to re-enter values"
);
System
.
out
.
println
(
"TODO: Probably need to make a separate dialog that enters number of parameters."
);
System
.
out
.
println
(
"TODO: Probably need to make a separate dialog that enters number of parameters."
);
double
[]
sv
=
FOCUSING_FIELD
.
fieldFitting
.
createParameterVector
(
FOCUSING_FIELD
.
sagittalMaster
);
double
[]
sv
=
FOCUSING_FIELD
.
fieldFitting
.
createParameterVector
(
FOCUSING_FIELD
.
sagittalMaster
);
...
@@ -4432,13 +4443,35 @@ if (MORE_BUTTONS) {
...
@@ -4432,13 +4443,35 @@ if (MORE_BUTTONS) {
System
.
out
.
println
(
"rms="
+
rms
+
", rms_pure="
+
rms_pure
);
System
.
out
.
println
(
"rms="
+
rms
+
", rms_pure="
+
rms_pure
);
return
;
return
;
}
}
/* ======================================================================== */
if
(
label
.
equals
(
"History RMS"
))
{
if
(
FOCUSING_FIELD
==
null
)
return
;
DEBUG_LEVEL
=
MASTER_DEBUG_LEVEL
;
FOCUSING_FIELD
.
setDebugLevel
(
DEBUG_LEVEL
);
// FOCUSING_FIELD.setAdjustMode(false);
double
[]
sv
=
FOCUSING_FIELD
.
fieldFitting
.
createParameterVector
(
FOCUSING_FIELD
.
sagittalMaster
);
FOCUSING_FIELD
.
setDataVector
(
true
,
// calibrate mode
FOCUSING_FIELD
.
createDataVector
());
double
[]
focusing_fx
=
FOCUSING_FIELD
.
createFXandJacobian
(
sv
,
false
);
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
);
FOCUSING_FIELD
.
printSetRMS
(
focusing_fx
);
return
;
}
/* ======================================================================== */
/* ======================================================================== */
if
(
label
.
equals
(
"Modify LMA"
))
{
if
(
label
.
equals
(
"Modify LMA"
))
{
DEBUG_LEVEL
=
MASTER_DEBUG_LEVEL
;
DEBUG_LEVEL
=
MASTER_DEBUG_LEVEL
;
if
(
FOCUSING_FIELD
==
null
)
return
;
if
(
FOCUSING_FIELD
==
null
)
return
;
FOCUSING_FIELD
.
setDebugLevel
(
DEBUG_LEVEL
);
FOCUSING_FIELD
.
setDebugLevel
(
DEBUG_LEVEL
);
FOCUSING_FIELD
.
setAdjustMode
(
false
);
FOCUSING_FIELD
.
setAdjustMode
(
false
);
if
(!
FOCUSING_FIELD
.
configureDataVector
(
"Re-configure curvature parameters"
,
false
,
true
))
return
;
if
(!
FOCUSING_FIELD
.
configureDataVector
(
false
,
// boolean silent,
"Re-configure curvature parameters"
,
// String title
false
,
// boolean forcenew
true
)
// boolean enableReset
)
return
;
FOCUSING_FIELD
.
setDataVector
(
FOCUSING_FIELD
.
setDataVector
(
true
,
// calibrate mode
true
,
// calibrate mode
FOCUSING_FIELD
.
createDataVector
());
FOCUSING_FIELD
.
createDataVector
());
...
...
src/main/java/FocusingField.java
View file @
227c8f63
This diff is collapsed.
Click to expand it.
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