Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
2019 FBSD
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kerautret Bertrand
2019 FBSD
Commits
ad7b8da3
Commit
ad7b8da3
authored
6 years ago
by
even
Browse files
Options
Downloads
Patches
Plain Diff
Expe on synthetic images
parent
1318cda0
No related branches found
No related tags found
No related merge requests found
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Code/Seg/DirectionalScanner/dynamicalscannero8.cpp
+6
-0
6 additions, 0 deletions
Code/Seg/DirectionalScanner/dynamicalscannero8.cpp
Code/Seg/ImageTools/vr2i.h
+8
-0
8 additions, 0 deletions
Code/Seg/ImageTools/vr2i.h
with
14 additions
and
0 deletions
Code/Seg/DirectionalScanner/dynamicalscannero8.cpp
+
6
−
0
View file @
ad7b8da3
...
...
@@ -241,6 +241,12 @@ void DynamicalScannerO8::bindTo (int a, int b, int c)
nu
=
(
templ_nu
*
new_n1
)
/
old_n1
;
else
nu
=
(
templ_nu
*
new_ninf
)
/
old_ninf
;
if
(
dlb
<
0
)
// dlb should stay positive to avoid the direction change
{
// of the support line inequations.
dla
=
-
dla
;
dlb
=
-
dlb
;
c
=
-
c
;
}
dlc1
=
c
-
nu
/
2
;
dlc2
=
c
+
nu
/
2
;
}
This diff is collapsed.
Click to expand it.
Code/Seg/ImageTools/vr2i.h
+
8
−
0
View file @
ad7b8da3
...
...
@@ -87,6 +87,14 @@ public:
return
((
xv
*
vec
.
xv
+
yv
*
vec
.
yv
)
*
(
xv
*
vec
.
xv
+
yv
*
vec
.
yv
));
}
/**
* @fn bool leftside (Vr2i vec)
* \brief Returns if the given vector is on the left side of the vector.
* @param vec The given vector.
*/
inline
bool
leftside
(
Vr2i
vec
)
const
{
return
(
xv
*
vec
.
yv
>
yv
*
vec
.
xv
);
}
/**
* @fn int squaredVectorProduct (Vr2i vec)
* \brief Returns the squared norm of the vector product with given vector.
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment