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
4e1e17b4
Commit
4e1e17b4
authored
Aug 24, 2021
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugging, will try to use earlier version
parent
0daef805
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
9 deletions
+19
-9
PixelMapping.java
...main/java/com/elphel/imagej/calibration/PixelMapping.java
+14
-0
EyesisCorrectionParameters.java
...com/elphel/imagej/cameras/EyesisCorrectionParameters.java
+1
-1
Eyesis_Correction.java
.../java/com/elphel/imagej/correction/Eyesis_Correction.java
+3
-0
QuadCLTCPU.java
...main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
+1
-8
No files found.
src/main/java/com/elphel/imagej/calibration/PixelMapping.java
View file @
4e1e17b4
...
@@ -38,6 +38,7 @@ import java.util.concurrent.atomic.AtomicInteger;
...
@@ -38,6 +38,7 @@ import java.util.concurrent.atomic.AtomicInteger;
import
javax.swing.SwingUtilities
;
import
javax.swing.SwingUtilities
;
import
com.elphel.imagej.cameras.EyesisCorrectionParameters
;
import
com.elphel.imagej.common.DoubleFHT
;
import
com.elphel.imagej.common.DoubleFHT
;
import
com.elphel.imagej.common.DoubleGaussianBlur
;
import
com.elphel.imagej.common.DoubleGaussianBlur
;
import
com.elphel.imagej.common.ShowDoubleFloatArrays
;
import
com.elphel.imagej.common.ShowDoubleFloatArrays
;
...
@@ -122,6 +123,19 @@ public class PixelMapping {
...
@@ -122,6 +123,19 @@ public class PixelMapping {
for
(
int
i
=
0
;
i
<
calibFiles
.
length
;
i
++){
for
(
int
i
=
0
;
i
<
calibFiles
.
length
;
i
++){
SensorData
sensorData
=
new
SensorData
(
calibFiles
[
i
],
this
.
debugLevel
);
SensorData
sensorData
=
new
SensorData
(
calibFiles
[
i
],
this
.
debugLevel
);
int
channel
=
sensorData
.
getChannel
();
// from Properties
int
channel
=
sensorData
.
getChannel
();
// from Properties
// Temporary to use old sensor files
// public static int getChannelFromTiff(String path, String [] suffixes){
int
channel_file
=
EyesisCorrectionParameters
.
CorrectionParameters
.
getChannelFromTiff
(
calibFiles
[
i
],
new
String
[]{
".calib-tiff"
});
// if ((i>=16) && (channel < 16)) {
if
(
channel_file
!=
channel
)
{
System
.
out
.
println
(
"****Temporary fix to use old sensor files, COMMENT OUT when done debugging****"
);
System
.
out
.
println
(
"i="
+
i
+
", channel_file="
+
channel_file
+
", channel ="
+
channel
+
" -> "
+
channel_file
);
channel
=
channel_file
;
// i;
}
if
((
channel
<
first_channel
)
||
((
num_channels
>
0
)
&&
(
channel
>=
(
first_channel
+
num_channels
))))
{
if
((
channel
<
first_channel
)
||
((
num_channels
>
0
)
&&
(
channel
>=
(
first_channel
+
num_channels
))))
{
continue
;
// wrong channels
continue
;
// wrong channels
}
}
...
...
src/main/java/com/elphel/imagej/cameras/EyesisCorrectionParameters.java
View file @
4e1e17b4
...
@@ -1134,7 +1134,7 @@ public class EyesisCorrectionParameters {
...
@@ -1134,7 +1134,7 @@ public class EyesisCorrectionParameters {
}
}
public
int
getChannelFromTiff
(
String
path
,
String
[]
suffixes
){
public
static
int
getChannelFromTiff
(
String
path
,
String
[]
suffixes
){
String
suffix
=
null
;
String
suffix
=
null
;
for
(
String
s:
suffixes
)
{
for
(
String
s:
suffixes
)
{
if
(
path
.
endsWith
(
s
))
{
if
(
path
.
endsWith
(
s
))
{
...
...
src/main/java/com/elphel/imagej/correction/Eyesis_Correction.java
View file @
4e1e17b4
...
@@ -771,6 +771,9 @@ private Panel panel1,
...
@@ -771,6 +771,9 @@ private Panel panel1,
panelLWIR16
=
new
Panel
();
panelLWIR16
=
new
Panel
();
panelLWIR16
.
setLayout
(
new
GridLayout
(
1
,
0
,
5
,
5
));
// rows, columns, vgap, hgap
panelLWIR16
.
setLayout
(
new
GridLayout
(
1
,
0
,
5
,
5
));
// rows, columns, vgap, hgap
addButton
(
"SHOW extrinsics"
,
panelLWIR16
,
color_report
);
addButton
(
"Reset Geometry"
,
panelLWIR16
,
color_stop
);
addButton
(
"Reset AUX Geometry"
,
panelLWIR16
,
color_stop
);
addButton
(
"Generate Sym Vectors"
,
panelLWIR16
,
color_configure
);
addButton
(
"Generate Sym Vectors"
,
panelLWIR16
,
color_configure
);
plugInFrame
.
add
(
panelLWIR16
);
plugInFrame
.
add
(
panelLWIR16
);
...
...
src/main/java/com/elphel/imagej/tileprocessor/QuadCLTCPU.java
View file @
4e1e17b4
...
@@ -951,14 +951,7 @@ public class QuadCLTCPU {
...
@@ -951,14 +951,7 @@ public class QuadCLTCPU {
// if (numSensors == 4){
// if (numSensors == 4){
geometryCorrection
.
adustSquare
();
geometryCorrection
.
adustSquare
();
System
.
out
.
println
(
"Adjusted camera to orient X Y along the sides of a square (now univerasal), numSensors = "
+
numSensors
);
System
.
out
.
println
(
"Adjusted camera to orient X Y along the sides of a square (now universal), numSensors = "
+
numSensors
);
/*
} else {
System.out.println("============= Cannot adustSquare() as it requires exactly 4 sensors, "+numSensors+" provided ==========");
System.out.println("Keeping as it was");
// return false; // not used in lwir
}
*/
// Print parameters
// Print parameters
if
(
debugLevel
>
0
){
if
(
debugLevel
>
0
){
geometryCorrection
.
listGeometryCorrection
(
debugLevel
>
1
);
geometryCorrection
.
listGeometryCorrection
(
debugLevel
>
1
);
...
...
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