Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SuperElastix
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
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
Mirrors
SuperElastix
Commits
67b35743
Commit
67b35743
authored
9 years ago
by
Kasper Marstal
Browse files
Options
Downloads
Patches
Plain Diff
ENH: ELASTIX-1 Add fixture test example
parent
62b7a4bd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Testing/Unit/itkRegistration.cxx
+29
-0
29 additions, 0 deletions
Testing/Unit/itkRegistration.cxx
with
29 additions
and
0 deletions
Testing/Unit/itkRegistration.cxx
0 → 100644
+
29
−
0
View file @
67b35743
#include
"itkImage.h"
#include
"itkImageFileReader.h"
#include
"elxDataManager.h"
#include
"gtest/gtest.h"
class
itkRegistration
:
public
::
testing
::
Test
{
public:
virtual
void
SetUp
()
{
DataManager
dataManager
;
typedef
itk
::
ImageFileReader
<
ImageType
>
ReaderType
;
ReaderType
::
Pointer
reader
=
ReaderType
::
New
();
reader
->
SetFileName
(
dataManager
.
GetInput
(
"BrainProtonDensitySliceR10X13Y17.png"
)
);
inputImage
=
reader
->
GetOutput
();
reader
->
SetFileName
(
dataManager
.
GetBaseline
(
"BrainProtonDensitySlice.png"
)
);
baselineImage
=
reader
->
GetOutput
();
}
typedef
itk
::
Image
<
unsigned
int
,
2
>
ImageType
;
ImageType
::
Pointer
inputImage
;
ImageType
::
Pointer
baselineImage
;
};
TEST_F
(
itkRegistration
,
Affine2D
)
{
ASSERT_TRUE
(
true
);
}
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