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
64f2b934
Commit
64f2b934
authored
Jul 09, 2014
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allowing to proceed with bad PSF
parent
d4ce4ae9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
Aberration_Calibration.java
src/main/java/Aberration_Calibration.java
+6
-1
MatchSimulatedPattern.java
src/main/java/MatchSimulatedPattern.java
+2
-1
No files found.
src/main/java/Aberration_Calibration.java
View file @
64f2b934
...
...
@@ -10683,7 +10683,9 @@ if (MORE_BUTTONS) {
}
*/
double
[]
x2y2xy
=
matchSimulatedPattern
.
x2y2xySizes
(
double
[]
x2y2xy
=
null
;
try
{
x2y2xy
=
matchSimulatedPattern
.
x2y2xySizes
(
psf
[
i
][
j
][
color
],
// PSF function, square array, nominally positive
focusMeasurementParameters
.
psf_cutoffEnergy
,
// fraction of energy in the pixels to be used
focusMeasurementParameters
.
psf_cutoffLevel
,
// minimal level as a fraction of maximal
...
...
@@ -10692,6 +10694,9 @@ if (MORE_BUTTONS) {
0.1
,
//maskCutOff,
debugLevel
-
2
,
// debug level
i
+
":"
+
j
+
"["
+
color
+
"]"
);
// String title) { // prefix used for debug images
}
catch
(
Exception
e
){
System
.
out
.
println
(
"Failed to get PSF size for i="
+
i
+
", j="
+
j
);
}
if
(
x2y2xy
==
null
){
x2y2xy
=
new
double
[
3
];
for
(
int
ii
=
0
;
ii
<
3
;
ii
++)
x2y2xy
[
ii
]=
Double
.
NaN
;
...
...
src/main/java/MatchSimulatedPattern.java
View file @
64f2b934
...
...
@@ -5432,7 +5432,8 @@ java.lang.ArrayIndexOutOfBoundsException: -3566
}
if
(
maxValue
<=
0.0
){
String
msg
=
"psf array does not contain any positive values"
;
IJ
.
showMessage
(
"Error"
,
msg
);
// IJ.showMessage("Error",msg);
System
.
out
.
println
(
"Error"
+
msg
);
throw
new
IllegalArgumentException
(
msg
);
}
ix
=
Index
%
size
;
...
...
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