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
256b13c8
Commit
256b13c8
authored
Jan 03, 2017
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modifying convolution in LMA
parent
24c49504
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
FactorConvKernel.java
src/main/java/FactorConvKernel.java
+3
-0
No files found.
src/main/java/FactorConvKernel.java
View file @
256b13c8
...
...
@@ -488,6 +488,7 @@ public class FactorConvKernel {
int
conv_len
=
conv_size
*
conv_size
;
int
sym_rad_m1
=
sym_radius
-
1
;
// 7
int
sym_rad2
=
2
*
sym_radius
;
// 16
int
sym_rad4
=
4
*
sym_radius
;
// 32
double
[]
fX
=
new
double
[
justConvolved
?
conv_len:
this
.
weight
.
length
];
// calculate convolution, for kernels - regardless of kernels enabled/disabled
// calculate convolution part
...
...
@@ -502,6 +503,7 @@ public class FactorConvKernel {
int
si
=
(
ci
-
ai
)
-
sym_rad_m1
;
if
(
si
<
0
)
si
=
-
si
;
int
sgni
=
1
;
if
(
si
>
sym_rad2
)
si
=
sym_rad4
-
si
;
if
(
si
>
sym_radius
)
{
sgni
=
-
1
;
si
=
sym_rad2
-
si
;
...
...
@@ -513,6 +515,7 @@ public class FactorConvKernel {
int
sj
=
(
cj
-
aj
)
-
sym_rad_m1
;
if
(
sj
<
0
)
sj
=
-
sj
;
int
sgn
=
sgni
;
if
(
sj
>
sym_rad2
)
sj
=
sym_rad4
-
sj
;
if
(
sj
>
sym_radius
)
{
sgn
=
-
sgn
;
sj
=
sym_rad2
-
sj
;
...
...
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