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
099bf912
Commit
099bf912
authored
Jul 07, 2024
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved MB (proportional, not 50/50)
parent
b3ce3bd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
GpuQuad.java
src/main/java/com/elphel/imagej/gpu/GpuQuad.java
+10
-3
No files found.
src/main/java/com/elphel/imagej/gpu/GpuQuad.java
View file @
099bf912
...
...
@@ -4380,12 +4380,19 @@ public class GpuQuad{ // quad camera description
}
dx
*=
mb_offs
;
dy
*=
mb_offs
;
centerXY_sub
=
new
double
[]
{
centerXY
[
0
]+
0.5
*
dx
,
centerXY
[
1
]+
0.5
*
dy
};
centerXY
=
new
double
[]
{
centerXY
[
0
]-
0.5
*
dx
,
centerXY
[
1
]-
0.5
*
dy
};
tp_task_sub
.
setCenterXY
(
centerXY_sub
);
double
exp_offs
=
Math
.
exp
(-
mb_offs
/
mb_len
);
// centroid offset from the first point along the {dx,dy}, in the range 0..1
// using that centroid of the half-exponent (-inf to 0) is at -1
double
rel_cent
=
mb_len
*
(
1.0
-
(
mb_offs
/
mb_len
+
1.0
)
*
exp_offs
)
/
(
mb_offs
*
(
1
-
exp_offs
));
centerXY
=
new
double
[]
{
centerXY
[
0
]-
rel_cent
*
dx
,
centerXY
[
1
]-
rel_cent
*
dy
};
centerXY_sub
=
new
double
[]
{
centerXY
[
0
]+(
1
-
rel_cent
)*
dx
,
centerXY
[
1
]+(
1
-
rel_cent
)*
dy
};
tp_task
.
setCenterXY
(
centerXY
);
tp_task_sub
.
setCenterXY
(
centerXY_sub
);
double
gain
=
1.0
/(
1.0
-
exp_offs
);
double
gain_sub
=
-
gain
*
exp_offs
;
if
(
gain_sub
>
-
min_sub
)
{
gain_sub
=
-
min_sub
;
}
...
...
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