| 27 | |
| 28 | |
| 29 | int |
| 30 | main(int argc, char * argv[]) |
| 31 | { |
| 32 | |
| 33 | if (argc < 4) |
| 34 | { |
| 35 | std::cerr << "Usage: " << argv[0] << " <input> <sigma> <output>\n"; |
| 36 | return 1; |
| 37 | } |
| 38 | |
| 39 | |
| 40 | sitk::Image image = sitk::ReadImage(std::string(argv[1])); |
| 41 | |
| 42 | sitk::PixelIDValueEnum inputPixelID = image.GetPixelID(); |
| 43 | |
| 44 | image = sitk::SmoothingRecursiveGaussian(image, atof(argv[2])); |
| 45 | |
| 46 | image = sitk::Cast(image, inputPixelID); |
| 47 | |
| 48 | sitk::WriteImage(image, std::string(argv[3])); |
| 49 | |
| 50 | return 0; |
| 51 | } |
nothing calls this directly
no test coverage detected