Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
surfseg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
patmjen
surfseg
Commits
7dfd5e2b
Commit
7dfd5e2b
authored
Oct 1, 2019
by
patmjen
Browse files
Options
Downloads
Patches
Plain Diff
Improve 4D surface segmentation code
parent
3ad076bf
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
surfseg/include/surface_segment.h
+3
-2
3 additions, 2 deletions
surfseg/include/surface_segment.h
surfseg/matlab/mex_surfcut_4d.cpp
+0
-0
0 additions, 0 deletions
surfseg/matlab/mex_surfcut_4d.cpp
surfseg/src/surface_segment_4d.cpp
+216
-156
216 additions, 156 deletions
surfseg/src/surface_segment_4d.cpp
with
219 additions
and
158 deletions
surfseg/include/surface_segment.h
+
3
−
2
View file @
7dfd5e2b
...
...
@@ -2,6 +2,7 @@
#define SURFACE_SEGMENT_H__
#include
<vector>
#include
<unordered_set>
#include
<GEL/CGLA/Vec3f.h>
...
...
@@ -28,11 +29,11 @@ ManifoldMesh surfaceCut(const Volume<float>& cost, const ManifoldMesh&& init,
TetMesh4d
surfaceCut4d
(
const
Volume4d
<
float
>&
cost
,
TetMesh4d
mesh
,
int
numSamples
,
float
sampleStep
,
int
maxDiff
,
CostType
costType
,
const
std
::
vector
<
int
>&
frozenVerts
=
std
::
vector
<
int
>
());
const
std
::
unordered_set
<
int
>&
frozenVerts
=
std
::
unordered_set
<
int
>
());
template
<
class
Func
>
TetMesh4d
surfaceCut4d
(
const
Volume4d
<
float
>&
vol
,
TetMesh4d
mesh
,
int
numSamples
,
float
sampleStep
,
int
maxDiff
,
CostType
costType
,
Func
costFunc
,
const
std
::
vector
<
int
>&
frozenVerts
=
std
::
vector
<
int
>
());
const
std
::
unordered_set
<
int
>&
frozenVerts
=
std
::
unordered_set
<
int
>
());
ManifoldMesh
surfaceCutPlaneSep
(
const
Volume
<
float
>&
cost
,
const
ManifoldMesh
&
init
,
int
numSamples
,
float
sampleStep
,
int
maxDiff
,
CostType
costType
,
std
::
vector
<
Vec3f
>
planeNormals
,
...
...
This diff is collapsed.
Click to expand it.
surfseg/matlab/mex_surfcut_4d.cpp
+
0
−
0
View file @
7dfd5e2b
No preview for this file type
This diff is collapsed.
Click to expand it.
surfseg/src/surface_segment_4d.cpp
+
216
−
156
View file @
7dfd5e2b
No preview for this file type
This diff is collapsed.
Click to expand it.
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