Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CamiTK
CamiTK Community Edition
Commits
fd9d676c
Commit
fd9d676c
authored
Aug 03, 2019
by
Emmanuel Promayon
Browse files
FIXED rename the implementation file properly to match CCG
parent
cab7cfe6
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tutorials/actions/hardcodedpipeline/HardCodedPipeline.cpp
→
tutorials/actions/hardcodedpipeline/HardCodedPipeline
Action
.cpp
View file @
fd9d676c
...
...
@@ -63,7 +63,13 @@ Action::ApplyStatus HardCodedPipelineAction::apply() {
PipelineActionStatus
pipelineStatus
=
PipelineActionStatus
::
OK
;
// apply the resample action (first action in the pipeline) on the last selected component
//
// Hard-coded Pipeline starts here
// 1. apply Resample action, and check that everything is ok
// 2. apply Otsu threshold
// if everything is alright, remove the intermediate results and force the application refresh
// 1. apply the resample action (first action in the pipeline) on the last selected component
pipelineStatus
=
applyResample
(
getTargets
().
last
());
// If the image has been saved, then it is not modified any more...
...
...
@@ -75,7 +81,7 @@ Action::ApplyStatus HardCodedPipelineAction::apply() {
// input. For these cases, you need to use:
Component
*
resampled
=
getLastTopLevelOutputComponents
(
"Resample"
);
// apply the Otsu action (second action in the pipeline)
//
2.
apply the Otsu action (second action in the pipeline)
pipelineStatus
=
applyOtsu
(
resampled
);
if
(
pipelineStatus
==
OK
)
{
...
...
@@ -123,7 +129,7 @@ Component* HardCodedPipelineAction::getLastTopLevelOutputComponents(const QStrin
[](
const
Component
*
c
)
{
return
c
->
isTopLevel
();
});
// This is equivalent of:
// This is
the
equivalent of:
// ComponentList::reverse_iterator it = currentAction->getOutputComponents().rbegin();
// while (it != currentAction->getOutputComponents().rend() && !(*it)->isTopLevel()) {
// it++;
...
...
Write
Preview
Supports
Markdown
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