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
f2d830e8
Commit
f2d830e8
authored
Jun 27, 2019
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
committing w/o breaking - 10
parent
7ffbf42d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
5 deletions
+39
-5
EyesisAberrations.java
...java/com/elphel/imagej/calibration/EyesisAberrations.java
+39
-5
No files found.
src/main/java/com/elphel/imagej/calibration/EyesisAberrations.java
View file @
f2d830e8
...
...
@@ -2705,14 +2705,48 @@ public class EyesisAberrations {
if
(
globalDebugLevel
>
1
){
System
.
out
.
println
(
"getPSFKernels(), simArray is "
+((
simArray
==
null
)?
""
:
"not "
)+
"null"
);
}
boolean
is_mono
=
false
;
if
(
imp
==
null
)
return
null
;
// Maybe convert to double pixel array once to make it faster?
if
(
fht_instance
==
null
)
fht_instance
=
new
DoubleFHT
();
// move upstream to reduce number of initializations
double
[][]
kernels
=
new
double
[
6
][];
// was global
String
title
=
imp
.
getTitle
()+
"X"
+
x0
+
"Y"
+
y0
;
Rectangle
PSFCell
=
new
Rectangle
(
x0
,
y0
,
tile_size
,
tile_size
);
int
fft_size
=
tile_size
/
2
;
double
[][]
input_bayer_or_mono
=
matchSimulatedPattern
.
splitBayer
(
imp
,
PSFCell
,
colorComponents
.
equalizeGreens
);
// does it work trhe same?
boolean
is_lwir
=
((
lwirReaderParameters
!=
null
)
&&
lwirReaderParameters
.
is_LWIR
(
imp
));
boolean
is_mono
=
false
;
try
{
is_mono
=
Boolean
.
parseBoolean
((
String
)
imp
.
getProperty
(
"MONOCHROME"
));
}
catch
(
Exception
e
)
{
}
is_mono
|=
is_lwir
;
if
(
is_mono
)
referenceComp
=
0
;
//
int
fft_size
=
is_mono
?
tile_size
:
(
tile_size
/
2
);
Rectangle
PSFCell
=
new
Rectangle
(
x0
,
y0
,
tile_size
,
tile_size
);
double
[][]
kernels
=
new
double
[
is_mono
?
1
:
6
][];
double
[][]
input_bayer_or_mono
=
null
;
// single mono slice will have twice dimensions of the bayer
if
(
is_mono
)
{
input_bayer_or_mono
=
new
double
[
1
][];
input_bayer_or_mono
[
0
]
=
matchSimulatedPattern
.
getNoBayer
(
imp
,
PSFCell
);
}
else
{
input_bayer_or_mono
=
matchSimulatedPattern
.
splitBayer
(
imp
,
PSFCell
,
colorComponents
.
equalizeGreens
);
// does it work the same?
}
//int greensToProcess=4;
int
i
,
j
,
l
;
double
[][]
simul_pixels
;
...
...
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