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
Mirrors
SuperElastix
Commits
16aac6aa
Commit
16aac6aa
authored
Jan 31, 2017
by
Floris Berendsen
Browse files
ENH: restored SuperElastixFilterTest after refactor
parent
5849385c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Modules/Core/Filter/src/selxSuperElastixFilter.cxx
View file @
16aac6aa
...
...
@@ -115,8 +115,9 @@ SuperElastixFilter
{
msg
<<
unusedInput
<<
std
::
endl
;
}
//itkExceptionMacro( << msg.str() )
throw
std
::
runtime_error
(
msg
.
str
());
itkExceptionMacro
(
<<
msg
.
str
()
)
//throw std::runtime_error(msg.str());
}
}
...
...
@@ -144,8 +145,7 @@ SuperElastixFilter
{
msg
<<
unusedOutput
<<
std
::
endl
;
}
//itkExceptionMacro( << msg.str() )
throw
std
::
runtime_error
(
msg
.
str
());
itkExceptionMacro
(
<<
msg
.
str
()
)
}
}
...
...
Modules/Core/Filter/test/selxSuperElastixFilterTest.cxx
View file @
16aac6aa
...
...
@@ -182,7 +182,7 @@ TEST_F( SuperElastixFilterTest, TooManyInputs )
std
::
cout
<<
"Create blueprint "
<<
std
::
endl
;
BlueprintPointer
blueprint
=
BlueprintPointer
(
new
Blueprint
()
);
blueprint
->
SetComponent
(
"Source_A"
,
{
{
"NameOfClass"
,
{
"ItkImageSourceComponent"
}
}
}
);
blueprint
->
SetComponent
(
"Source_A"
,
{
{
"NameOfClass"
,
{
"ItkImageSourceComponent"
}
}
,
{
"Dimensionality"
,
{
"3"
}
},
{
"PixelType"
,
{
"double"
}
}
});
// Instantiate SuperElastixFilter before each test and
// register the components we want to have available in SuperElastix
...
...
@@ -208,8 +208,8 @@ TEST_F( SuperElastixFilterTest, TooManySources )
BlueprintPointer
blueprint
=
BlueprintPointer
(
new
Blueprint
()
);
blueprint
->
SetComponent
(
"Source_A"
,
{
{
"NameOfClass"
,
{
"ItkImageSourceComponent"
}
}
}
);
blueprint
->
SetComponent
(
"Source_B"
,
{
{
"NameOfClass"
,
{
"ItkImageSourceComponent"
}
}
}
);
blueprint
->
SetComponent
(
"Source_A"
,
{
{
"NameOfClass"
,
{
"ItkImageSourceComponent"
}
}
,
{
"Dimensionality"
,
{
"3"
}
},
{
"PixelType"
,
{
"double"
}
}
});
blueprint
->
SetComponent
(
"Source_B"
,
{
{
"NameOfClass"
,
{
"ItkImageSourceComponent"
}
}
,
{
"Dimensionality"
,
{
"3"
}
},
{
"PixelType"
,
{
"double"
}
}
});
// Instantiate SuperElastixFilter before each test and
// register the components we want to have available in SuperElastix
...
...
@@ -233,7 +233,7 @@ TEST_F( SuperElastixFilterTest, TooManyOutputs )
BlueprintPointer
blueprint
=
BlueprintPointer
(
new
Blueprint
()
);
blueprint
->
SetComponent
(
"Sink_A"
,
{
{
"NameOfClass"
,
{
"ItkImageSinkComponent"
}
}
}
);
blueprint
->
SetComponent
(
"Sink_A"
,
{
{
"NameOfClass"
,
{
"ItkImageSinkComponent"
}
}
,
{
"Dimensionality"
,
{
"3"
}
},
{
"PixelType"
,
{
"double"
}
}
});
// Instantiate SuperElastixFilter before each test and
// register the components we want to have available in SuperElastix
...
...
@@ -256,8 +256,8 @@ TEST_F( SuperElastixFilterTest, TooManySinks )
BlueprintPointer
blueprint
=
BlueprintPointer
(
new
Blueprint
()
);
blueprint
->
SetComponent
(
"Sink_A"
,
{
{
"NameOfClass"
,
{
"ItkImageSinkComponent"
}
}
}
);
blueprint
->
SetComponent
(
"Sink_B"
,
{
{
"NameOfClass"
,
{
"ItkImageSinkComponent"
}
}
}
);
blueprint
->
SetComponent
(
"Sink_A"
,
{
{
"NameOfClass"
,
{
"ItkImageSinkComponent"
}
}
,
{
"Dimensionality"
,
{
"3"
}
},
{
"PixelType"
,
{
"double"
}
}
});
blueprint
->
SetComponent
(
"Sink_B"
,
{
{
"NameOfClass"
,
{
"ItkImageSinkComponent"
}
}
,
{
"Dimensionality"
,
{
"3"
}
},
{
"PixelType"
,
{
"double"
}
}
});
// Instantiate SuperElastixFilter before each test and
// register the components we want to have available in SuperElastix
...
...
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