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

« back to all changes in this revision

Viewing changes to Code/BasicFilters/json/FFTPadImageFilter.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" : "FFTPadImageFilter",
 
3
  "template_code_filename" : "ImageFilter",
 
4
  "template_test_filename" : "ImageFilter",
 
5
  "number_of_inputs" : 1,
 
6
  "pixel_types" : "BasicPixelIDTypeList",
 
7
  "include_files" : [
 
8
    "sitkBoundaryConditions.hxx"
 
9
  ],
 
10
  "members" : [
 
11
    {
 
12
      "name" : "BoundaryCondition",
 
13
      "enum" : [
 
14
        "ZERO_PAD",
 
15
        "ZERO_FLUX_NEUMANN_PAD",
 
16
        "PERIODIC_PAD"
 
17
      ],
 
18
      "default" : "itk::simple::FFTPadImageFilter::ZERO_FLUX_NEUMANN_PAD",
 
19
      "custom_itk_cast" : "nsstd::auto_ptr< ImageBoundaryCondition< InputImageType > > bc( CreateNewBoundaryConditionInstance< Self, FilterType >( m_BoundaryCondition ) ); filter->SetBoundaryCondition( bc.get() );\n"
 
20
    },
 
21
    {
 
22
      "name" : "SizeGreatestPrimeFactor",
 
23
      "type" : "int",
 
24
      "default" : "5",
 
25
      "briefdescriptionSet" : "",
 
26
      "detaileddescriptionSet" : "Set/Get the greatest prime factor allowed on the size of the padded image. The filter increase the size of the image to reach a size with the greatest prime factor smaller or equal to the specified value. The default value is 13, which is the greatest prime number for which the FFT are precomputed in FFTW, and thus gives very good performance. A greatest prime factor of 2 produce a size which is a power of 2, and thus is suitable for vnl base fft filters. A greatest prime factor of 1 or less - typically 0 - disable the extra padding.",
 
27
      "briefdescriptionGet" : "",
 
28
      "detaileddescriptionGet" : "Set/Get the greatest prime factor allowed on the size of the padded image. The filter increase the size of the image to reach a size with the greatest prime factor smaller or equal to the specified value. The default value is 13, which is the greatest prime number for which the FFT are precomputed in FFTW, and thus gives very good performance. A greatest prime factor of 2 produce a size which is a power of 2, and thus is suitable for vnl base fft filters. A greatest prime factor of 1 or less - typically 0 - disable the extra padding."
 
29
    }
 
30
  ],
 
31
  "tests" : [
 
32
    {
 
33
      "tag" : "defaults",
 
34
      "description" : "Test with default parameters",
 
35
      "md5hash" : "7a033cbc1d72c7806a7be37c0a60932b",
 
36
      "settings" : [],
 
37
      "inputs" : [
 
38
        "Input/BrainProtonDensitySlice.png"
 
39
      ]
 
40
    },
 
41
    {
 
42
      "tag" : "more",
 
43
      "description" : "Test Periodic Pad",
 
44
      "md5hash" : "5c4bebbdfb8a340cdb5347dac3d87046",
 
45
      "settings" : [
 
46
        {
 
47
          "parameter" : "BoundaryCondition",
 
48
          "value" : "itk::simple::${name}::PERIODIC_PAD",
 
49
          "lua_value" : "SimpleITK.${name}_PERIODIC_PAD",
 
50
          "python_value" : "SimpleITK.${name}.PERIODIC_PAD",
 
51
          "ruby_value" : "Simpleitk::${name}::PERIODIC_PAD",
 
52
          "java_value" : "${name}.BoundaryConditionType.PERIODIC_PAD",
 
53
          "tcl_value" : "$$${name}_PERIODIC_PAD",
 
54
          "csharp_value" : "${name}.BoundaryConditionType.PERIODIC_PAD",
 
55
          "R_value" : "'PERIODIC_PAD'"
 
56
        },
 
57
        {
 
58
          "parameter" : "SizeGreatestPrimeFactor",
 
59
          "value" : "2"
 
60
        }
 
61
      ],
 
62
      "inputs" : [
 
63
        "Input/BrainProtonDensitySlice.png"
 
64
      ]
 
65
    }
 
66
  ],
 
67
  "briefdescription" : "Pad an image to make it suitable for an FFT transformation.",
 
68
  "detaileddescription" : "FFT filters usually requires a specific image size. The size is decomposed in several prime factors, and the filter only supports prime factors up to a maximum value. This filter automatically finds the greatest prime factor required by the available implementation and pads the input appropriately.\n\nThis code was adapted from the Insight Journal contribution:\n\n\"FFT Based Convolution\" by Gaetan Lehmann https://hdl.handle.net/10380/3154 \n\n\\author Gaetan Lehmann\n\n\\see FFTShiftImageFilter",
 
69
  "itk_module" : "ITKFFT",
 
70
  "itk_group" : "FFT"
 
71
}
 
 
b'\\ No newline at end of file'