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
ef835205
Commit
ef835205
authored
Dec 09, 2014
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing OOB bug
parent
8861303e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Distortions.java
src/main/java/Distortions.java
+2
-2
No files found.
src/main/java/Distortions.java
View file @
ef835205
...
...
@@ -3530,7 +3530,7 @@ For each point in the image
int
imgNumber
,
double
delta
){
// these parameters can work for one image only
int
doubleNumAllPoints
=
this
.
Y
.
length
;
// all points in all images multiplied by 2 (x and y error are separate)
double
[][]
jacobian16
=
new
double
[
16
][
doubleNumAllPoints
];
double
[][]
jacobian16
=
new
double
[
lensDistortionParameters
.
getNumOutputs
()
][
doubleNumAllPoints
];
double
[]
values
=
new
double
[
doubleNumAllPoints
];
for
(
int
i
=
0
;
i
<
jacobian16
.
length
;
i
++)
for
(
int
j
=
0
;
j
<
doubleNumAllPoints
;
j
++)
jacobian16
[
i
][
j
]=
0.0
;
...
...
@@ -3587,7 +3587,7 @@ For each point in the image
System
.
out
.
println
(
all
);
}
for
(
int
i
=
0
;
i
<
derivatives
.
length
;
i
++){
jacobian16
[
i
][
2
*
fullIndex
]=
derivatives
[
i
][
0
];
jacobian16
[
i
][
2
*
fullIndex
]=
derivatives
[
i
][
0
];
// oob 16
jacobian16
[
i
][
2
*
fullIndex
+
1
]=
derivatives
[
i
][
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