MCPcopy Create free account
hub / github.com/SimpleITK/SimpleITK / main

Function main

Examples/SimpleGaussianFunctional.cxx:29–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27
28
29int
30main(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}

Callers

nothing calls this directly

Calls 5

CastFunction · 0.85
ReadImageFunction · 0.50
WriteImageFunction · 0.50
GetPixelIDMethod · 0.45

Tested by

no test coverage detected