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
65fd034d
Commit
65fd034d
authored
Jun 26, 2019
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
committing w/o breaking - 4
parent
323e10fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
MatchSimulatedPattern.java
.../com/elphel/imagej/calibration/MatchSimulatedPattern.java
+14
-8
No files found.
src/main/java/com/elphel/imagej/calibration/MatchSimulatedPattern.java
View file @
65fd034d
...
...
@@ -732,9 +732,15 @@ public class MatchSimulatedPattern {
boolean
greens
,
// this is a pattern for combined greens (diagonal), adjust results accordingly
String
title
){
// title prefix to use for debug images
if
(
bayer_mono_pixels
==
null
)
return
null
;
if
(
bayer_mono_pixels
.
length
<
4
)
return
null
;
if
(
bayer_mono_pixels
.
length
<
1
)
return
null
;
if
(
bayer_mono_pixels
[
0
]==
null
)
return
null
;
if
(
greens
)
{
if
(
bayer_mono_pixels
.
length
<
4
)
return
null
;
if
(
bayer_mono_pixels
[
3
]==
null
)
return
null
;
}
else
{
if
(
bayer_mono_pixels
.
length
>
1
)
return
null
;
}
boolean
is_mono
=
bayer_mono_pixels
.
length
==
1
;
int
tile_size2
=
bayer_mono_pixels
[
0
].
length
;
int
tile_size
=(
int
)
Math
.
sqrt
(
tile_size2
);
int
hsize
=
tile_size
/
2
;
...
...
@@ -747,14 +753,14 @@ public class MatchSimulatedPattern {
double
[][]
quarter_pixels
=
new
double
[
9
][];
double
[][][]
quarter_patterns
=
new
double
[
9
][][];
int
[]
quarterIndex
={
0
,
// top left
tile_size
/
2
,
// top right
tile_size
*
tile_size
/
2
,
// bottom left
(
tile_size
+
1
)*
tile_size
/
2
,
// bottom right
(
tile_size
+
1
)*
tile_size
/
4
,
// center
tile_size
/
2
,
// top right
tile_size
*
tile_size
/
2
,
// bottom left
(
tile_size
+
1
)
*
tile_size
/
2
,
// bottom right
(
tile_size
+
1
)
*
tile_size
/
4
,
// center
tile_size
/
4
,
// top
tile_size
*
tile_size
/
4
,
// left
(
tile_size
+
2
)*
tile_size
/
4
,
// right
(
2
*
tile_size
+
1
)*
tile_size
/
4
};
// bottom
tile_size
*
tile_size
/
4
,
// left
(
tile_size
+
2
)
*
tile_size
/
4
,
// right
(
2
*
tile_size
+
1
)
*
tile_size
/
4
};
// bottom
int
i
,
j
,
iq
;
int
index
,
qindex
;
...
...
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