Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IAH public
DeProj
Commits
674e5a61
Commit
674e5a61
authored
Jul 24, 2020
by
Jean-Yves TINEVEZ
Browse files
Inline functions in find_countour.
Extra speedup factor of 2.
parent
88fa2469
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/@deproj/find_countour.m
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
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment