Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DeProj
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
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
IAH public
DeProj
Commits
674e5a61
Commit
674e5a61
authored
4 years ago
by
Jean-Yves TINEVEZ
Browse files
Options
Downloads
Patches
Plain Diff
Inline functions in find_countour.
Extra speedup factor of 2.
parent
88fa2469
No related branches found
No related tags found
1 merge request
!9
Rework the whole code for the upcoming publication.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/@deproj/find_countour.m
+6
-14
6 additions, 14 deletions
src/@deproj/find_countour.m
with
6 additions
and
14 deletions
src/@deproj/find_countour.m
+
6
−
14
View file @
674e5a61
...
...
@@ -20,23 +20,15 @@ function P2 = find_countour( P )
done
=
current
==
size
(
P
,
1
);
prev_id
=
id
;
id
=
find_next_point
(
id
);
[
~
,
id
]
=
min
(
D
(
:,
id
)
);
ps
=
P
(
id
,
:
);
set_visited
(
prev_id
)
P2
(
current
,
:
)
=
ps
;
current
=
current
+
1
;
D
(
prev_id
,
:
)
=
Inf
;
D
(
:,
prev_id
)
=
Inf
;
end
function
set_visited
(
id
)
D
(
id
,
:
)
=
Inf
;
D
(
:,
id
)
=
Inf
;
end
function
id
=
find_next_point
(
id
)
[
~
,
id
]
=
min
(
D
(
:,
id
)
);
end
end
end
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