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
f25142a1
Commit
f25142a1
authored
Apr 02, 2018
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing sensor geometric corrections
parent
484ec936
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1732 additions
and
1639 deletions
+1732
-1639
ImageDtt.java
src/main/java/ImageDtt.java
+14
-1
PixelMapping.java
src/main/java/PixelMapping.java
+960
-925
QuadCLT.java
src/main/java/QuadCLT.java
+758
-713
No files found.
src/main/java/ImageDtt.java
View file @
f25142a1
...
...
@@ -4042,7 +4042,7 @@ public class ImageDtt {
public
double
data_y
=
0.0
;
// kernel data is relative to this displacement Y (0.5 pixel increments)
public
double
center_x
=
0.0
;
// actual center X (use to find derivatives)
public
double
center_y
=
0.0
;
// actual center X (use to find derivatives)
public
double
dxc_dx
=
0.0
;
// add this to data_x per each pixel X-shift relative to the kernel cent
g
er location
public
double
dxc_dx
=
0.0
;
// add this to data_x per each pixel X-shift relative to the kernel center location
public
double
dxc_dy
=
0.0
;
// same per each Y-shift pixel
public
double
dyc_dx
=
0.0
;
public
double
dyc_dy
=
0.0
;
...
...
@@ -4075,6 +4075,17 @@ public class ImageDtt {
}
}
public
void
offsetKernelSensor
(
double
[][]
clt_tile
,
// clt tile, including [4] - metadata
double
dx
,
double
dy
)
{
CltExtra
ce
=
new
CltExtra
(
clt_tile
[
4
]);
ce
.
center_x
+=
dx
;
ce
.
center_y
+=
dy
;
ce
.
data_x
+=
dx
;
ce
.
data_y
+=
dy
;
clt_tile
[
4
]
=
ce
.
getArray
();
}
public
void
clt_fill_coord_corr
(
final
int
kern_step
,
// distance between kernel centers, in pixels.
final
double
[][][][][]
clt_data
,
...
...
@@ -4201,6 +4212,8 @@ public class ImageDtt {
// same with extra shift
px
=
centerX
-
transform_size
-
(
ce
.
data_x
+
ce
.
dxc_dx
*
kdx
+
ce
.
dxc_dy
*
kdy
)
;
// fractional left corner
py
=
centerY
-
transform_size
-
(
ce
.
data_y
+
ce
.
dyc_dx
*
kdx
+
ce
.
dyc_dy
*
kdy
)
;
// fractional top corner
}
else
{
System
.
out
.
println
(
"Skipping kernels!!!"
);
}
if
(
bdebug0
){
System
.
out
.
print
(
px
+
"\t"
+
py
+
"\t"
);
...
...
src/main/java/PixelMapping.java
View file @
f25142a1
This diff is collapsed.
Click to expand it.
src/main/java/QuadCLT.java
View file @
f25142a1
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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