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
61820deb
Commit
61820deb
authored
Jun 26, 2019
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
committing w/o breaking - 1
parent
737075f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
Distortions.java
src/main/java/com/elphel/imagej/calibration/Distortions.java
+1
-1
SimulationPattern.java
...java/com/elphel/imagej/calibration/SimulationPattern.java
+13
-7
No files found.
src/main/java/com/elphel/imagej/calibration/Distortions.java
View file @
61820deb
...
...
@@ -4276,7 +4276,7 @@ List calibration
}
public
boolean
removeOutLierSets
(
int
numOutLiers
){
boolean
removeEmptySets
=
false
;
boolean
removeEmptySets
=
true
;
//
false;
if
(
numOutLiers
<
0
)
{
GenericDialog
gd
=
new
GenericDialog
(
"Select sets to process"
);
gd
.
addNumericField
(
"Series number (<0 - all images)"
,
-
1
,
0
);
...
...
src/main/java/com/elphel/imagej/calibration/SimulationPattern.java
View file @
61820deb
...
...
@@ -1105,21 +1105,27 @@ Cv=(Cy*x-Cx*y)+(-Cy*Dx+Cx*Dy)
result
[
index
]=
spixels
[(
ixi
+
iyi
)
&
1
][
iy
*
full_width
+
ix
];
}
}
else
{
// components 0..3
int
ser
;
if
(
colorComp
<
0
)
{
ser
=
1
;
// offset by 1/2 pix? should it be so? // FIXME: verify and fix if needed - compare to extractSimulMono()
}
else
{
ser
=
0
;
r
.
x
+=(
bayerPeriod
/
2
)*(
colorComp
&
1
);
r
.
y
+=(
bayerPeriod
/
2
)*((
colorComp
>>
1
)
&
1
);
}
if
(
debugLevel
>
2
)
System
.
out
.
println
(
">>> r.width="
+
r
.
width
+
" r.height="
+
r
.
height
+
" r.x="
+
r
.
x
+
" r.y="
+
r
.
y
+
" colorComp="
+
colorComp
);
for
(
index
=
0
;
index
<
result
.
length
;
index
++){
int
iy
=
r
.
y
+
(
index
/
r
.
width
);
int
ix
=
r
.
x
+
(
index
%
r
.
width
);
if
(
iy
<
0
)
iy
=
0
;
else
if
(
iy
>=
full_height
)
iy
=
full_height
-
1
;
if
(
ix
<
0
)
ix
=
0
;
else
if
(
ix
>=
full_width
)
iy
=
full_width
-
1
;
result
[
index
]
=
spixels
[
0
][
iy
*
full_width
+
ix
];
int
iy
=
r
.
y
+
(
index
/
r
.
width
);
int
ix
=
r
.
x
+
(
index
%
r
.
width
);
if
(
iy
<
0
)
iy
=
0
;
else
if
(
iy
>=
full_height
)
iy
=
full_height
-
1
;
if
(
ix
<
0
)
ix
=
0
;
else
if
(
ix
>=
full_width
)
iy
=
full_width
-
1
;
result
[
index
]
=
spixels
[
ser
][
iy
*
full_width
+
ix
];
}
}
return
result
;
...
...
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