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
252ebe07
Commit
252ebe07
authored
May 30, 2019
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Plain Diff
merged with master
parents
9f0c8d98
13959a97
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
5 deletions
+18
-5
Aberration_Calibration.java
...com/elphel/imagej/calibration/Aberration_Calibration.java
+0
-5
LwirReader.java
src/main/java/com/elphel/imagej/lwir/LwirReader.java
+8
-0
LwirReaderParameters.java
...ain/java/com/elphel/imagej/lwir/LwirReaderParameters.java
+10
-0
No files found.
src/main/java/com/elphel/imagej/calibration/Aberration_Calibration.java
View file @
252ebe07
...
...
@@ -9357,11 +9357,6 @@ if (MORE_BUTTONS) {
}
// ImagePlus [] imps = LWIR_READER.acquire(DISTORTION_PROCESS_CONFIGURATION.sourceDirectory); // directory to save
ImagePlus [] imps = LWIR_READER.acquire("attic/lwir_test_images"); // directory to save
if (imps != null) {
for (ImagePlus imp: imps) {
imp.show();
}
}
return;
}
src/main/java/com/elphel/imagej/lwir/LwirReader.java
View file @
252ebe07
...
...
@@ -566,6 +566,14 @@ public class LwirReader {
fs
.
saveAsTiff
(
path
);
}
}
if
(
lrp
.
isShowImages
())
{
if
(
imps_avg
!=
null
)
{
for
(
ImagePlus
imp:
imps_avg
)
{
imp
.
show
();
}
}
}
return
imps_avg
;
}
...
...
src/main/java/com/elphel/imagej/lwir/LwirReaderParameters.java
View file @
252ebe07
...
...
@@ -76,6 +76,7 @@ public class LwirReaderParameters {
protected
double
max_mismatch_ms
=
0.05
;
protected
int
max_frame_diff
=
2
;
// 1; // 2;
protected
int
debug_level
=
0
;
//-3: OFF, -2:Fatal, -1:ERROR, 0:WARN, 1:INFO,2:DEBUG
protected
boolean
show_images
=
false
;
// --- interface methods
public
int
getDebugLevel
()
{
...
...
@@ -85,6 +86,9 @@ public class LwirReaderParameters {
this
.
debug_level
=
level
;
}
public
boolean
isShowImages
()
{
return
show_images
;
}
public
void
setProperties
(
String
prefix
,
Properties
properties
){
properties
.
setProperty
(
prefix
+
"avg_number"
,
this
.
avg_number
+
""
);
properties
.
setProperty
(
prefix
+
"lwir_ffc"
,
this
.
lwir_ffc
+
""
);
...
...
@@ -111,6 +115,7 @@ public class LwirReaderParameters {
properties
.
setProperty
(
prefix
+
"max_frame_diff"
,
this
.
max_frame_diff
+
""
);
properties
.
setProperty
(
prefix
+
"debug_level"
,
this
.
debug_level
+
""
);
properties
.
setProperty
(
prefix
+
"selected_channels"
,
arr_to_str
(
this
.
selected_channels
));
properties
.
setProperty
(
prefix
+
"show_images"
,
this
.
show_images
+
""
);
}
...
...
@@ -140,6 +145,7 @@ public class LwirReaderParameters {
if
(
properties
.
getProperty
(
prefix
+
"max_frame_diff"
)!=
null
)
this
.
max_frame_diff
=
Integer
.
parseInt
(
properties
.
getProperty
(
prefix
+
"max_frame_diff"
));
if
(
properties
.
getProperty
(
prefix
+
"debug_level"
)!=
null
)
this
.
debug_level
=
Integer
.
parseInt
(
properties
.
getProperty
(
prefix
+
"debug_level"
));
if
(
properties
.
getProperty
(
prefix
+
"selected_channels"
)!=
null
)
this
.
selected_channels
=
str_to_barr
(
properties
.
getProperty
(
prefix
+
"selected_channels"
));
if
(
properties
.
getProperty
(
prefix
+
"show_images"
)!=
null
)
this
.
show_images
=
Boolean
.
parseBoolean
(
properties
.
getProperty
(
prefix
+
"show_images"
));
parameters_updated
=
true
;
}
@Override
...
...
@@ -170,6 +176,7 @@ public class LwirReaderParameters {
lrp
.
max_frame_diff
=
this
.
max_frame_diff
;
lrp
.
debug_level
=
this
.
debug_level
;
lrp
.
selected_channels
=
this
.
selected_channels
.
clone
();
lrp
.
show_images
=
this
.
show_images
;
return
lrp
;
}
...
...
@@ -207,6 +214,7 @@ public class LwirReaderParameters {
(
lrp
.
max_frame_diff
==
this
.
max_frame_diff
)
&&
(
lrp
.
debug_level
==
this
.
debug_level
)
&&
(
java
.
util
.
Arrays
.
equals
(
lrp
.
selected_channels
,
this
.
selected_channels
));
(
lrp
.
show_images
==
this
.
show_images
);
}
@Override
...
...
@@ -267,6 +275,7 @@ public class LwirReaderParameters {
gd
.
addNumericField
(
"Max frame diff"
,
this
.
max_frame_diff
,
0
,
3
,
""
,
"Maximal difference in frames between simultaneously acquired channels as calculated from the timestamps"
);
gd
.
addNumericField
(
"Debug level"
,
this
.
debug_level
,
0
,
3
,
""
,
"Image acquisition log level: -3: OFF, -2:FATAL, -1:ERROR, 0:WARN, 1:INFO, 2:DEBUG"
);
gd
.
addStringField
(
"Selected channels"
,
arr_to_str
(
this
.
selected_channels
),
20
,
"Space-separated channel selection (1 - selected, 0 - unselected)"
);
gd
.
addCheckbox
(
"Show images"
,
this
.
show_images
,
"Show acquired images after averaging)"
);
}
public
void
dialogAnswers
(
GenericJTabbedDialog
gd
)
{
...
...
@@ -295,6 +304,7 @@ public class LwirReaderParameters {
this
.
max_frame_diff
=
(
int
)
gd
.
getNextNumber
();
this
.
debug_level
=
(
int
)
gd
.
getNextNumber
();
this
.
selected_channels
=
str_to_barr
(
gd
.
getNextString
());
this
.
show_images
=
gd
.
getNextBoolean
();
parameters_updated
=
true
;
}
...
...
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