Skip to content
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion Examples/DataRepresentation/Image/Image5.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & exp)
catch (const itk::ExceptionObject & exp)
{
std::cerr << "Exception caught !" << std::endl;
std::cerr << exp << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion Examples/DataRepresentation/Image/ImageAdaptor2.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << "Exception caught " << excp << std::endl;
return EXIT_FAILURE;
Expand Down
2 changes: 1 addition & 1 deletion Examples/DataRepresentation/Mesh/ImageToPointSet.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ main(int argc, char * argv[])
{
reader->Update();
}
catch (itk::ExceptionObject & err)
catch (const itk::ExceptionObject & err)
{
std::cout << "ExceptionObject caught !" << std::endl;
std::cout << err << std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ main(int argc, char * argv[])
{
reader->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cout << "Problem reading the input image " << std::endl;
std::cout << excp << std::endl;
Expand Down
4 changes: 2 additions & 2 deletions Examples/Filtering/AntiAliasBinaryImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ main(int argc, char * argv[])
{
realWriter->Update();
}
catch (itk::ExceptionObject & err)
catch (const itk::ExceptionObject & err)
{
std::cout << "ExceptionObject caught !" << std::endl;
std::cout << err << std::endl;
Expand All @@ -169,7 +169,7 @@ main(int argc, char * argv[])
{
rescaledWriter->Update();
}
catch (itk::ExceptionObject & err)
catch (const itk::ExceptionObject & err)
{
std::cout << "ExceptionObject caught !" << std::endl;
std::cout << err << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/CannyEdgeDetectionImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & err)
catch (const itk::ExceptionObject & err)
{
std::cout << "ExceptionObject caught !" << std::endl;
std::cout << err << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/CompositeFilterExample.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & e)
catch (const itk::ExceptionObject & e)
{
std::cerr << "Error: " << e << std::endl;
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/DanielssonDistanceMapImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ main(int argc, char * argv[])
{
offsetWriter->Update();
}
catch (itk::ExceptionObject & exp)
catch (const itk::ExceptionObject & exp)
{
std::cerr << "Exception caught !" << std::endl;
std::cerr << exp << std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ main(int argc, char * argv[])
reader->Update();
img = reader->GetOutput();
}
catch (itk::ExceptionObject & ex)
catch (const itk::ExceptionObject & ex)
{
std::cout << ex << std::endl;
return EXIT_FAILURE;
Expand Down
6 changes: 3 additions & 3 deletions Examples/Filtering/DigitallyReconstructedRadiograph1.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ main(int argc, char * argv[])
{
reader->Update();
}
catch (itk::ExceptionObject & err)
catch (const itk::ExceptionObject & err)
{
std::cerr << "ERROR: ExceptionObject caught !" << std::endl;
std::cerr << err << std::endl;
Expand Down Expand Up @@ -439,7 +439,7 @@ main(int argc, char * argv[])
std::cout << "Writing image: " << filename << std::endl;
writer->Update();
}
catch (itk::ExceptionObject & err)
catch (const itk::ExceptionObject & err)
{

std::cerr << "ERROR: ExceptionObject caught !" << std::endl;
Expand Down Expand Up @@ -724,7 +724,7 @@ main(int argc, char * argv[])
std::cout << "Writing image: " << output_name << std::endl;
writer->Update();
}
catch (itk::ExceptionObject & err)
catch (const itk::ExceptionObject & err)
{
std::cerr << "ERROR: ExceptionObject caught !" << std::endl;
std::cerr << err << std::endl;
Expand Down
8 changes: 4 additions & 4 deletions Examples/Filtering/FFTImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ main(int argc, char * argv[])
{
fftFilter->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << "Error: " << std::endl;
std::cerr << excp << std::endl;
Expand Down Expand Up @@ -173,7 +173,7 @@ main(int argc, char * argv[])
{
complexWriter->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << "Error: " << std::endl;
std::cerr << excp << std::endl;
Expand Down Expand Up @@ -247,7 +247,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << "Error writing the real image: " << std::endl;
std::cerr << excp << std::endl;
Expand Down Expand Up @@ -291,7 +291,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << "Error writing the imaginary image: " << std::endl;
std::cerr << excp << std::endl;
Expand Down
4 changes: 2 additions & 2 deletions Examples/Filtering/FFTImageFilterFourierDomainFiltering.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ main(int argc, char * argv[])
{
fftInverseFilter->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << "Error: " << std::endl;
std::cerr << excp << std::endl;
Expand Down Expand Up @@ -239,7 +239,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << "Error writing the real image: " << std::endl;
std::cerr << excp << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/GrayscaleFunctionDilateImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << excp << std::endl;
return EXIT_FAILURE;
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/LaplacianImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & err)
catch (const itk::ExceptionObject & err)
{
std::cout << "ExceptionObject caught !" << std::endl;
std::cout << err << std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ main(int argc, char * argv[])
{
addFilter->Update();
}
catch (itk::ExceptionObject & err)
catch (const itk::ExceptionObject & err)
{
std::cout << "ExceptionObject caught !" << std::endl;
std::cout << err << std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ main(int argc, char * argv[])
{
laplacian->Update();
}
catch (itk::ExceptionObject & err)
catch (const itk::ExceptionObject & err)
{
std::cout << "ExceptionObject caught !" << std::endl;
std::cout << err << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/LaplacianSharpeningImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & err)
catch (const itk::ExceptionObject & err)
{
std::cout << "ExceptionObject caught !" << std::endl;
std::cout << err << std::endl;
Expand Down
4 changes: 2 additions & 2 deletions Examples/Filtering/MorphologicalImageEnhancement.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ main(int argc, char * argv[])
{
reader->Update();
}
catch (itk::ExceptionObject & err)
catch (const itk::ExceptionObject & err)
{
std::cout << "Problems reading input image" << std::endl;
std::cerr << "ExceptionObject caught !" << std::endl;
Expand Down Expand Up @@ -149,7 +149,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & err)
catch (const itk::ExceptionObject & err)
{
std::cout << "ExceptionObject caught !" << std::endl;
std::cout << err << std::endl;
Expand Down
8 changes: 4 additions & 4 deletions Examples/Filtering/OtsuMultipleThresholdImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ main(int argc, char * argv[])
{
reader->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << "Exception thrown while reading image" << excp << std::endl;
}
Expand All @@ -164,7 +164,7 @@ main(int argc, char * argv[])
{
calculator->Compute();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << "Exception thrown " << excp << std::endl;
}
Expand Down Expand Up @@ -223,7 +223,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << "Exception thrown " << excp << std::endl;
}
Expand Down Expand Up @@ -251,7 +251,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << "Exception thrown " << excp << std::endl;
}
Expand Down
4 changes: 2 additions & 2 deletions Examples/Filtering/OtsuThresholdImageFilter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ main(int argc, char * argv[])
{
filter->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << "Exception thrown " << excp << std::endl;
}
Expand Down Expand Up @@ -235,7 +235,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << "Exception thrown " << excp << std::endl;
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/RGBToGrayscale.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << "Exception Thrown" << std::endl;
std::cerr << excp << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/ResampleImageFilter3.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & excep)
catch (const itk::ExceptionObject & excep)
{
std::cerr << "Exception catched !" << std::endl;
std::cerr << excep << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/ResampleImageFilter4.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & excep)
catch (const itk::ExceptionObject & excep)
{
std::cerr << "Exception caught !" << std::endl;
std::cerr << excep << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/ResampleImageFilter5.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & excep)
catch (const itk::ExceptionObject & excep)
{
std::cerr << "Exception catched !" << std::endl;
std::cerr << excep << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/ResampleImageFilter6.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << "Exception thrown " << std::endl;
std::cerr << excp << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/ResampleImageFilter7.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & excep)
catch (const itk::ExceptionObject & excep)
{
std::cerr << "Exception catched !" << std::endl;
std::cerr << excep << std::endl;
Expand Down
2 changes: 1 addition & 1 deletion Examples/Filtering/ResampleImageFilter8.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & excep)
catch (const itk::ExceptionObject & excep)
{
std::cerr << "Exception catched !" << std::endl;
std::cerr << excep << std::endl;
Expand Down
4 changes: 2 additions & 2 deletions Examples/Filtering/ResampleImageFilter9.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ main(int argc, char * argv[])
{
writerNearest->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << "Exception thrown " << std::endl;
std::cerr << excp << std::endl;
Expand All @@ -155,7 +155,7 @@ main(int argc, char * argv[])
{
writerLinear->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << "Exception thrown " << std::endl;
std::cerr << excp << std::endl;
Expand Down
4 changes: 2 additions & 2 deletions Examples/Filtering/ResampleVolumesToBeIsotropic.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ main(int argc, char * argv[])
{
reader->Update();
}
catch (itk::ExceptionObject & excep)
catch (const itk::ExceptionObject & excep)
{
std::cerr << "Exception caught!" << std::endl;
std::cerr << excep << std::endl;
Expand Down Expand Up @@ -482,7 +482,7 @@ main(int argc, char * argv[])
{
writer->Update();
}
catch (itk::ExceptionObject & excep)
catch (const itk::ExceptionObject & excep)
{
std::cerr << "Exception caught !" << std::endl;
std::cerr << excep << std::endl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ main(int argc, char * argv[])
{
reader->Update();
}
catch (itk::ExceptionObject & excp)
catch (const itk::ExceptionObject & excp)
{
std::cerr << "Problem reading the input file" << std::endl;
std::cerr << excp << std::endl;
Expand Down
Loading