Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding RLEImage specific tests #5

Merged
merged 1 commit into from
Jul 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@ function(ReadWriteTest ImageName Ext)
DATA{Input/${ImageName}.${Ext}} ${outImage})
endfunction()

# Handcrafted tests
# RLEImage specific tests
ReadWriteTest(brainParc mha)
ReadWriteTest(vb-seg mha)
ReadWriteTest(ws nrrd)
ReadWriteTest(wb-crop nrrd)
ReadWriteTest(wb-seg nrrd)
ReadWriteTest(wb-seg32 nrrd)

# Handcrafted tests for MorphologicalContourInterpolation
ReadWriteTest(Empty nrrd)
ReadWriteTest(NoSlices nrrd)
ReadWriteTest(Micro1 nrrd)
Expand Down
1 change: 1 addition & 0 deletions test/Input/brainParc.mha.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
00b63181ddcf7a188b8d56317778ca8e
1 change: 1 addition & 0 deletions test/Input/vb-seg.mha.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2b7dc9466c4b72915eddbe1623958b28
1 change: 1 addition & 0 deletions test/Input/wb-crop.nrrd.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
76d18476a7d4b202c4fa06cd7d23cca3
1 change: 1 addition & 0 deletions test/Input/wb-seg.nrrd.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0a7a975f6f0506d639e69df057cf8aef
1 change: 1 addition & 0 deletions test/Input/wb-seg32.nrrd.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
e0cc36e9f1db3f7b23207914b10e112d
1 change: 1 addition & 0 deletions test/Input/ws.nrrd.md5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
17c66c3683cd20442f81ee2ea1a3aad9
5 changes: 5 additions & 0 deletions test/itkRLEImageTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ int itkRLEImageTest( int argc, char* argv[] )
doTest<itk::Image<short, 3> >(inputImageFileName, outputImageFileName);
return EXIT_SUCCESS;
}
if (numDimensions==3) //if not (u)short, then interpret as uint
{
doTest<itk::Image<unsigned int, 3> >(inputImageFileName, outputImageFileName);
return EXIT_SUCCESS;
}
if (numDimensions==4 && pixelType == itk::ImageIOBase::UCHAR)
{
doTest<itk::Image<unsigned char, 4> >(inputImageFileName, outputImageFileName);
Expand Down