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
8d207d39
Commit
8d207d39
authored
Aug 03, 2017
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed common_roll from where it does not belong
parent
ce4d91d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
GeometryCorrection.java
src/main/java/GeometryCorrection.java
+8
-5
No files found.
src/main/java/GeometryCorrection.java
View file @
8d207d39
...
...
@@ -982,7 +982,8 @@ matrix([[-0.125, -0.125, 0.125, 0.125, -0.125, 0.125, 0. , -0. , -0.
double
pXid
=
pXci
*
rD2rND
;
double
pYid
=
pYci
*
rD2rND
;
// individual rotate (check sign)
double
a_roll
=
(
this
.
roll
[
i
]
-
this
.
common_roll
)
*
Math
.
PI
/
180.0
;
// double a_roll = (this.roll[i] - this.common_roll) * Math.PI/180.0 ;
double
a_roll
=
(
this
.
roll
[
i
])
*
Math
.
PI
/
180.0
;
double
c_roll
=
Math
.
cos
(
a_roll
);
double
s_roll
=
Math
.
sin
(
a_roll
);
// double c_roll = Math.cos((this.roll[i] - this.common_roll) * Math.PI/180.0);
...
...
@@ -1045,7 +1046,8 @@ matrix([[-0.125, -0.125, 0.125, 0.125, -0.125, 0.125, 0. , -0. , -0.
double
pXid
=
pXci
*
rD2rND
;
double
pYid
=
pYci
*
rD2rND
;
// individual rotate (check sign)
double
a_roll
=
(
this
.
roll
[
i
]
-
this
.
common_roll
)
*
Math
.
PI
/
180.0
+
corr_vector
.
getRoll
(
i
)
;
// double a_roll = (this.roll[i] - this.common_roll) * Math.PI/180.0 + corr_vector.getRoll(i) ;
double
a_roll
=
(
this
.
roll
[
i
])
*
Math
.
PI
/
180.0
+
corr_vector
.
getRoll
(
i
)
;
double
c_roll
=
Math
.
cos
(
a_roll
);
double
s_roll
=
Math
.
sin
(
a_roll
);
pXY
[
i
][
0
]
=
c_roll
*
pXid
+
s_roll
*
pYid
+
this
.
pXY0
[
i
][
0
];
...
...
@@ -1151,7 +1153,8 @@ matrix([[-0.125, -0.125, 0.125, 0.125, -0.125, 0.125, 0. , -0. , -0.
double
pXid
=
pXci
*
rD2rND
;
double
pYid
=
pYci
*
rD2rND
;
// individual rotate (check sign)
double
a_roll
=
(
this
.
roll
[
i
]
-
this
.
common_roll
)
*
Math
.
PI
/
180.0
+
corr_vector
.
getRoll
(
i
)
;
// double a_roll = (this.roll[i] - this.common_roll) * Math.PI/180.0 + corr_vector.getRoll(i) ;
double
a_roll
=
(
this
.
roll
[
i
])
*
Math
.
PI
/
180.0
+
corr_vector
.
getRoll
(
i
)
;
double
c_roll
=
Math
.
cos
(
a_roll
);
double
s_roll
=
Math
.
sin
(
a_roll
);
pXY
[
i
][
0
]
=
c_roll
*
pXid
+
s_roll
*
pYid
+
this
.
pXY0
[
i
][
0
];
...
...
@@ -1285,8 +1288,8 @@ matrix([[-0.125, -0.125, 0.125, 0.125, -0.125, 0.125, 0. , -0. , -0.
double
disparity
)
{
// reverse getPortsCoordinates
double
c_roll
=
Math
.
cos
((
-
this
.
common_roll
)
*
Math
.
PI
/
180.0
);
double
s_roll
=
Math
.
sin
((
-
this
.
common_roll
)
*
Math
.
PI
/
180.0
);
double
c_roll
=
1.0
;
//
Math.cos(( - this.common_roll) * Math.PI/180.0);
double
s_roll
=
0.0
;
//
Math.sin(( - this.common_roll) * Math.PI/180.0);
double
pXcd0
=
px
-
0.5
*
this
.
pixelCorrectionWidth
;
double
pYcd0
=
py
-
0.5
*
this
.
pixelCorrectionWidth
;
double
pXcd
=
c_roll
*
pXcd0
-
s_roll
*
pYcd0
;
...
...
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