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
69057bd5
Commit
69057bd5
authored
Jul 23, 2019
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed 2d correlation for negative values
parent
22872131
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Correlation2d.java
...n/java/com/elphel/imagej/tileprocessor/Correlation2d.java
+2
-0
No files found.
src/main/java/com/elphel/imagej/tileprocessor/Correlation2d.java
View file @
69057bd5
...
@@ -1152,6 +1152,8 @@ public class Correlation2d {
...
@@ -1152,6 +1152,8 @@ public class Correlation2d {
if
(
offset
>=
0.0
)
{
if
(
offset
>=
0.0
)
{
if
((
fc0
>
-
offset
)
&&
(
fc1
>
-
offset
))
{
if
((
fc0
>
-
offset
)
&&
(
fc1
>
-
offset
))
{
cc
=
Math
.
sqrt
((
fc0
+
offset
)
*
(
fc1
+
offset
))
-
offset
;
cc
=
Math
.
sqrt
((
fc0
+
offset
)
*
(
fc1
+
offset
))
-
offset
;
}
else
{
cc
=
-
offset
;
// smallest value
}
}
}
else
{
}
else
{
cc
=
0.5
*(
fc0
+
fc1
);
cc
=
0.5
*(
fc0
+
fc1
);
...
...
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