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
069dd00f
Commit
069dd00f
authored
Jun 26, 2019
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
committing w/o breaking - 5
parent
65fd034d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
2 deletions
+26
-2
MatchSimulatedPattern.java
.../com/elphel/imagej/calibration/MatchSimulatedPattern.java
+26
-2
No files found.
src/main/java/com/elphel/imagej/calibration/MatchSimulatedPattern.java
View file @
069dd00f
...
...
@@ -768,16 +768,39 @@ public class MatchSimulatedPattern {
for (iq=0; iq<9;iq++) {
index=quarterIndex[iq];
qindex=0;
if (is_mono) {
quarter_pixels[iq] = new double [hsize * hsize];
for (i=0;i<hsize;i++) {
for (j=0;j<hsize;j++) { //quarter_pixels[iq][qindex++]=input_pixels[index++];
quarter_pixels[iq][qindex++] = bayer_mono_pixels[0][index++];
}
index+=hsize; // jump to the next line
}
} else {
for (i=0;i<hsize;i++) {
for (j=0;j<hsize;j++) { //quarter_pixels[iq][qindex++]=input_pixels[index++];
green0[qindex]= bayer_mono_pixels[0][index];
green3[qindex++]=bayer_mono_pixels[3][index++];
}
quarter_pixels
[
iq
]=
combineDiagonalGreens
(
green0
,
green3
,
hsize
,
hsize
);
// quarter_pixels[iq]=combineDiagonalGreens (
// green0,
// green3,
// hsize,
// hsize);
index+=hsize; // jump to the next line
}
// Moved outside of the i-loop, that was wrong!
quarter_pixels[iq]=combineDiagonalGreens (
green0,
green3,
hsize,
hsize);
}
quarter_pixels[iq]= normalizeAndWindow (quarter_pixels[iq], quarterHamming);
if (this.debugLevel>2) SDFA_INSTANCE.showArrays(quarter_pixels[iq],hsize, hsize, title+"-new"+iq);
// findPattern - see MSP 3290:
quarter_patterns[iq] = findPattern(
null, // DoubleFHT doubleFHT,
quarter_pixels[iq],
...
...
@@ -787,9 +810,10 @@ public class MatchSimulatedPattern {
max_half_period,
greens,
title+"Q_"+iq);
if (quarter_patterns[iq]==null) return null;
}
if (this.debugLevel>2) {
for (iq=0; iq<9;iq++) {
System.out.println("Quarter="+iq+
...
...
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