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
ced0865e
Commit
ced0865e
authored
Jun 27, 2019
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
committing w/o breaking - 14
parent
faf1b0f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
16 deletions
+21
-16
EyesisAberrations.java
...java/com/elphel/imagej/calibration/EyesisAberrations.java
+21
-16
No files found.
src/main/java/com/elphel/imagej/calibration/EyesisAberrations.java
View file @
ced0865e
...
@@ -2862,20 +2862,23 @@ public class EyesisAberrations {
...
@@ -2862,20 +2862,23 @@ public class EyesisAberrations {
}
}
simul_pixels
=
normalizeAndWindow
(
simul_pixels
,
fullHamming
);
simul_pixels
=
normalizeAndWindow
(
simul_pixels
,
fullHamming
);
}
else
{
}
else
{
//if ((simArray==null) || (psfParameters.approximateGrid)){ // just for testing(never here?)
Rectangle
PSFCellSim
=
new
Rectangle
(
x0
*
subpixel
/
2
,
y0
*
subpixel
/
2
,
tile_size
*
subpixel
/
2
,
tile_size
*
subpixel
/
2
);
// getting here
Rectangle
PSFCellSim
=
new
Rectangle
(
x0
*
subpixel
/
2
,
simul_pixels
=
new
double
[
6
][];
y0
*
subpixel
/
2
,
for
(
i
=
0
;
i
<
simul_pixels
.
length
;
i
++)
{
tile_size
*
subpixel
/
2
,
if
(
colorComponents
.
colorsToCorrect
[
i
])
simul_pixels
[
i
]=
simulationPattern
.
extractBayerSim
(
tile_size
*
subpixel
/
2
);
// getting here
simArray
,
// [0] - regular pixels, [1] - shifted by 1/2 diagonally, for checker greens
simul_pixels
=
new
double
[
6
][];
imgWidth
*
subpixel
/
2
,
for
(
i
=
0
;
i
<
simul_pixels
.
length
;
i
++)
{
PSFCellSim
,
if
(
colorComponents
.
colorsToCorrect
[
i
])
simul_pixels
[
i
]=
simulationPattern
.
extractBayerSim
(
subpixel
,
// 4
simArray
,
// [0] - regular pixels, [1] - shifted by 1/2 diagonally, for checker greens
i
);
imgWidth
*
subpixel
/
2
,
else
simul_pixels
[
i
]=
null
;
PSFCellSim
,
}
subpixel
,
// 4
int
index
=
matchSimulatedPattern
.
getUVIndex
((
PSFCell
.
y
+
PSFCell
.
height
/
2
)*
imgWidth
+(
PSFCell
.
x
+
PSFCell
.
width
/
2
));
i
);
else
simul_pixels
[
i
]=
null
;
}
int
index
=
matchSimulatedPattern
.
getUVIndex
((
PSFCell
.
y
+
PSFCell
.
height
/
2
)*
imgWidth
+(
PSFCell
.
x
+
PSFCell
.
width
/
2
));
if
(
index
<
0
)
{
if
(
index
<
0
)
{
System
.
out
.
println
(
"Error, No UV pattern @ x="
+(
PSFCell
.
x
+
PSFCell
.
width
/
2
)+
", y="
+(
PSFCell
.
y
+
PSFCell
.
height
/
2
));
System
.
out
.
println
(
"Error, No UV pattern @ x="
+(
PSFCell
.
x
+
PSFCell
.
width
/
2
)+
", y="
+(
PSFCell
.
y
+
PSFCell
.
height
/
2
));
...
@@ -2956,9 +2959,11 @@ public class EyesisAberrations {
...
@@ -2956,9 +2959,11 @@ public class EyesisAberrations {
subpixel
,
subpixel
,
otfFilterParameters
,
otfFilterParameters
,
fht_instance
,
fht_instance
,
psfParameters
.
mask1_sigma
*
tile_size
*
wvAverage
,
// normalize to wave vectors!
psfParameters
.
mask1_sigma
*
tile_size
*
wvAverage
,
// normalize to wave vectors!
// psfParameters.mask1_sigma*(fft_size/2)*wvAverage, // normalize to wave vectors!
psfParameters
.
mask1_threshold
,
psfParameters
.
mask1_threshold
,
psfParameters
.
gaps_sigma
*
tile_size
*
wvAverage
,
psfParameters
.
gaps_sigma
*
tile_size
*
wvAverage
,
// psfParameters.gaps_sigma*(fft_size/2)*wvAverage,
psfParameters
.
mask_denoise
,
psfParameters
.
mask_denoise
,
debug
,
debug
,
globalDebugLevel
,
globalDebugLevel
,
...
...
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