Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
malaterre committed Apr 4, 2018
1 parent 7bc94c2 commit c6dc90d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ int TestImageChangePlanarConfigurationFunc(const char *filename, bool verbose =
}
const gdcm::Image &image = reader.GetImage();

//unsigned int pc = image.GetPlanarConfiguration();
unsigned int oldpc = image.GetPlanarConfiguration();
assert( oldpc == 1 || oldpc == 0 );

gdcm::ImageChangePlanarConfiguration pcfilt;
pcfilt.SetPlanarConfiguration(1);
pcfilt.SetPlanarConfiguration( !oldpc );
pcfilt.SetInput( image );
bool b = pcfilt.Change();
if( !b )
Expand Down Expand Up @@ -96,7 +97,7 @@ int TestImageChangePlanarConfigurationFunc(const char *filename, bool verbose =
bool res2;
{
gdcm::ImageChangePlanarConfiguration icpc;
icpc.SetPlanarConfiguration( 0 );
icpc.SetPlanarConfiguration( oldpc );
icpc.SetInput( img );
if( !icpc.Change() )
{
Expand Down

0 comments on commit c6dc90d

Please sign in to comment.