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
323e10fc
Commit
323e10fc
authored
Jun 26, 2019
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
committing w/o breaking - 3
parent
a9f8afde
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
MatchSimulatedPattern.java
.../com/elphel/imagej/calibration/MatchSimulatedPattern.java
+19
-2
No files found.
src/main/java/com/elphel/imagej/calibration/MatchSimulatedPattern.java
View file @
323e10fc
...
...
@@ -9232,6 +9232,12 @@ y=xy0[1] + dU*deltaUV[0]*(xy1[1]-xy0[1])+dV*deltaUV[1]*(xy2[1]-xy0[1])
boolean
is_lwir
=
((
lwirReaderParameters
!=
null
)
&&
lwirReaderParameters
.
is_LWIR
(
imp
));
int
correlation_size
=
is_lwir
?
distortionParameters
.
correlationSizeLwir
:
distortionParameters
.
correlationSize
;
int
max_correlation_size
=
is_lwir
?
distortionParameters
.
maximalCorrelationSizeLwir
:
distortionParameters
.
maximalCorrelationSize
;
boolean
is_mono
=
false
;
try
{
is_mono
=
Boolean
.
parseBoolean
((
String
)
imp
.
getProperty
(
"MONOCHROME"
));
}
catch
(
Exception
e
)
{
}
is_mono
|=
is_lwir
;
int
debug_threshold
=
3
;
// next print - same for good and bad, correction==null
...
...
@@ -9521,14 +9527,25 @@ y=xy0[1] + dU*deltaUV[0]*(xy1[1]-xy0[1])+dV*deltaUV[1]*(xy2[1]-xy0[1])
SDFA_INSTANCE
.
showArrays
(
barray
,
"barray"
+
ixc
+
":"
+
iyc
);
}
// double[][] sim_pix;
double
[][]
sim_pix
=
simulationPattern
.
extractSimulPatterns
(
double
[][]
sim_pix
=
null
;
if
(
is_mono
)
{
sim_pix
=
new
double
[
1
][];
sim_pix
[
0
]=
simulationPattern
.
extractSimulMono
(
// TODO: can use twice smaller barray
barray
,
thisSimulParameters
,
1
,
// subdivide output pixels - now 4
thisCorrelationSize
,
// number of Bayer cells in width of the square selection (half number of pixels)
0
,
// selection center, X (in pixels)
0
);
}
else
{
sim_pix
=
simulationPattern
.
extractSimulPatterns
(
barray
,
thisSimulParameters
,
1
,
// subdivide output pixels
thisCorrelationSize
,
// number of Bayer cells in width of the square selection (half number of pixels)
0
,
0
);
}
if
(
sim_pix
==
null
){
System
.
out
.
println
(
"***** BUG: extractSimulPatterns() FAILED *****"
);
return
null
;
...
...
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