~ubuntu-branches/debian/sid/simpleitk/sid

« back to all changes in this revision

Viewing changes to Code/BasicFilters/json/SaltAndPepperNoiseImageFilter.json

  • Committer: Package Import Robot
  • Author(s): Ghislain Antony Vaillant
  • Date: 2017-11-02 08:49:18 UTC
  • Revision ID: package-import@ubuntu.com-20171102084918-7hs09ih668xq87ej
Tags: upstream-1.0.1
ImportĀ upstreamĀ versionĀ 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{
 
2
  "name" : "SaltAndPepperNoiseImageFilter",
 
3
  "template_code_filename" : "ImageFilter",
 
4
  "template_test_filename" : "ImageFilter",
 
5
  "number_of_inputs" : 1,
 
6
  "pixel_types" : "BasicPixelIDTypeList",
 
7
  "vector_pixel_types_by_component" : "VectorPixelIDTypeList",
 
8
  "members" : [
 
9
    {
 
10
      "name" : "Probability",
 
11
      "type" : "double",
 
12
      "default" : "0.01",
 
13
      "briefdescriptionSet" : "",
 
14
      "detaileddescriptionSet" : "",
 
15
      "briefdescriptionGet" : "",
 
16
      "detaileddescriptionGet" : ""
 
17
    },
 
18
    {
 
19
      "name" : "Seed",
 
20
      "type" : "uint32_t",
 
21
      "default" : "(uint32_t) itk::simple::sitkWallClock",
 
22
      "custom_itk_cast" : "if (m_Seed) filter->SetSeed(m_Seed);"
 
23
    }
 
24
  ],
 
25
  "tests" : [
 
26
    {
 
27
      "tag" : "2d",
 
28
      "description" : "2D - baseline as zero noise",
 
29
      "no_procedure" : 1,
 
30
      "settings" : [
 
31
        {
 
32
          "parameter" : "Seed",
 
33
          "cxx_value" : "123u",
 
34
          "value" : "123"
 
35
        }
 
36
      ],
 
37
      "tolerance" : 20,
 
38
      "inputs" : [
 
39
        "Input/cthead1.png"
 
40
      ]
 
41
    },
 
42
    {
 
43
      "tag" : "3d",
 
44
      "description" : "3D - baseline as zero noise",
 
45
      "no_procedure" : 1,
 
46
      "settings" : [
 
47
        {
 
48
          "parameter" : "Seed",
 
49
          "cxx_value" : "123u",
 
50
          "value" : "123"
 
51
        }
 
52
      ],
 
53
      "tolerance" : 10000.0,
 
54
      "inputs" : [
 
55
        "Input/RA-Short.nrrd"
 
56
      ]
 
57
    },
 
58
    {
 
59
      "tag" : "rgb",
 
60
      "description" : "vector image - baseline as zero noise",
 
61
      "no_procedure" : 1,
 
62
      "settings" : [
 
63
        {
 
64
          "parameter" : "Seed",
 
65
          "cxx_value" : "123u",
 
66
          "value" : "123"
 
67
        }
 
68
      ],
 
69
      "tolerance" : 20,
 
70
      "inputs" : [
 
71
        "Input/VM1111Shrink-RGB.png"
 
72
      ]
 
73
    }
 
74
  ],
 
75
  "briefdescription" : "Alter an image with fixed value impulse noise, often called salt and pepper noise.",
 
76
  "detaileddescription" : "Pixel alteration occurs at a user defined probability. Salt and pepper pixel are equally distributed.\n\n\\author Gaetan Lehmann\n\nThis code was contributed in the Insight Journal paper \"Noise\nSimulation\". https://hdl.handle.net/10380/3158",
 
77
  "itk_module" : "ITKImageNoise",
 
78
  "itk_group" : "ImageNoise"
 
79
}