11/* =========================================================================
2-
2+
33 Filter: MinimalPath
44 Program: Insight Segmentation & Registration Toolkit
55 Module: MinimalPathTests.cxx
@@ -84,16 +84,16 @@ int ReadPathFile( const char * PathFilename, typename PathFilterType::Pointer pa
8484 while ( itksys::SystemTools::GetLineFromStream (file, line, &has_newline) )
8585 {
8686 if (has_newline)
87- {
88- typename PathInfoType::Pointer info = PathInfoType::New ();
87+ {
88+ typename PathInfoType::Pointer info = PathInfoType::New ();
8989 itksys::SystemTools::ReplaceString ( line, " Path: " , " " );
9090 itksys::SystemTools::ReplaceString ( line, " " , " " );
9191 itksys::SystemTools::ReplaceString ( line, " [" , " " );
9292 std::vector<itksys::String> parts;
9393 parts = itksys::SystemTools::SplitString ( line.c_str (), ' ]' );
9494 unsigned int numNonNullParts = 0 ;
9595 for (unsigned int i=0 ; i<parts.size (); i++)
96- if ( parts[i].length () != 0 ) numNonNullParts++;
96+ if ( parts[i].length () != 0 ) numNonNullParts++;
9797 for (unsigned int i=0 ; i<numNonNullParts; i++)
9898 {
9999 if ( parts[i].length () != 0 )
@@ -108,7 +108,7 @@ int ReadPathFile( const char * PathFilename, typename PathFilterType::Pointer pa
108108 else info->AddWayPoint ( point );
109109 }
110110 }
111- pathFilter->AddPathInfo ( info );
111+ pathFilter->AddPathInformation ( info );
112112 }
113113 }
114114
@@ -203,7 +203,7 @@ int Test_SpeedToPath_GradientDescent_ND(int argc, char* argv[])
203203 std::cout << std::setprecision (3 ) << " Path computed in: " << time.GetMean () << " seconds" << std::endl;
204204
205205 // Allocate output image
206- typename OutputImageType::Pointer output = OutputImageType::New ();
206+ typename OutputImageType::Pointer output = OutputImageType::New ();
207207 output->SetRegions ( speed->GetLargestPossibleRegion () );
208208 output->SetSpacing ( speed->GetSpacing () );
209209 output->SetOrigin ( speed->GetOrigin () );
@@ -240,9 +240,9 @@ int Test_SpeedToPath_GradientDescent_ND(int argc, char* argv[])
240240 writer->Update ();
241241 }
242242 catch (itk::ExceptionObject & err)
243- {
244- std::cerr << " ExceptionObject caught !" << std::endl;
245- std::cerr << err << std::endl;
243+ {
244+ std::cerr << " ExceptionObject caught !" << std::endl;
245+ std::cerr << err << std::endl;
246246 return EXIT_FAILURE;
247247 }
248248
@@ -351,7 +351,7 @@ int Test_SpeedToPath_RegularStepGradientDescent_ND(int argc, char* argv[])
351351 std::cout << std::setprecision (3 ) << " Path computed in: " << time.GetMean () << " seconds" << std::endl;
352352
353353 // Allocate output image
354- typename OutputImageType::Pointer output = OutputImageType::New ();
354+ typename OutputImageType::Pointer output = OutputImageType::New ();
355355 output->SetRegions ( speed->GetLargestPossibleRegion () );
356356 output->SetSpacing ( speed->GetSpacing () );
357357 output->SetOrigin ( speed->GetOrigin () );
@@ -388,9 +388,9 @@ int Test_SpeedToPath_RegularStepGradientDescent_ND(int argc, char* argv[])
388388 writer->Update ();
389389 }
390390 catch (itk::ExceptionObject & err)
391- {
392- std::cerr << " ExceptionObject caught !" << std::endl;
393- std::cerr << err << std::endl;
391+ {
392+ std::cerr << " ExceptionObject caught !" << std::endl;
393+ std::cerr << err << std::endl;
394394 return EXIT_FAILURE;
395395 }
396396
@@ -491,7 +491,7 @@ int Test_SpeedToPath_IterateNeighborhood_ND(int argc, char* argv[])
491491 std::cout << std::setprecision (3 ) << " Path computed in: " << time.GetMean () << " seconds" << std::endl;
492492
493493 // Allocate output image
494- typename OutputImageType::Pointer output = OutputImageType::New ();
494+ typename OutputImageType::Pointer output = OutputImageType::New ();
495495 output->SetRegions ( speed->GetLargestPossibleRegion () );
496496 output->SetSpacing ( speed->GetSpacing () );
497497 output->SetOrigin ( speed->GetOrigin () );
@@ -528,9 +528,9 @@ int Test_SpeedToPath_IterateNeighborhood_ND(int argc, char* argv[])
528528 writer->Update ();
529529 }
530530 catch (itk::ExceptionObject & err)
531- {
532- std::cerr << " ExceptionObject caught !" << std::endl;
533- std::cerr << err << std::endl;
531+ {
532+ std::cerr << " ExceptionObject caught !" << std::endl;
533+ std::cerr << err << std::endl;
534534 return EXIT_FAILURE;
535535 }
536536
0 commit comments