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

« back to all changes in this revision

Viewing changes to Code/BasicFilters/include/sitkAdditionalProcedures.h

  • 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
*
 
3
*  Copyright Insight Software Consortium
 
4
*
 
5
*  Licensed under the Apache License, Version 2.0 (the "License");
 
6
*  you may not use this file except in compliance with the License.
 
7
*  You may obtain a copy of the License at
 
8
*
 
9
*         http://www.apache.org/licenses/LICENSE-2.0.txt
 
10
*
 
11
*  Unless required by applicable law or agreed to in writing, software
 
12
*  distributed under the License is distributed on an "AS IS" BASIS,
 
13
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
14
*  See the License for the specific language governing permissions and
 
15
*  limitations under the License.
 
16
*
 
17
*=========================================================================*/
 
18
#ifndef sitkAdditionalProcedures_h
 
19
#define sitkAdditionalProcedures_h
 
20
 
 
21
 
 
22
#include "sitkBasicFilters.h"
 
23
#include "sitkImage.h"
 
24
#include "sitkTransform.h"
 
25
#include "sitkInterpolator.h"
 
26
#include "sitkPatchBasedDenoisingImageFilter.h"
 
27
 
 
28
namespace itk {
 
29
namespace simple {
 
30
 
 
31
 
 
32
/**
 
33
 * \brief itk::simple::ResampleImageFilter Procedural Interface
 
34
 *
 
35
 * These functions call the execute method of ResampleImageFilter
 
36
 * in order to support a procedual API.
 
37
 *
 
38
 * The difference between the three functions is in the way the output
 
39
 * image's domain parameters are specified (origin, spacing,
 
40
 * direction). The first function uses the parameters from the input image,
 
41
 * the second uses the parameters of a reference image, and the third uses
 
42
 * explicitly specified parameters.
 
43
 *
 
44
 * \sa itk::simple::ResampleImageFilter for the object oriented interface
 
45
* @{
 
46
 */
 
47
SITKBasicFilters_EXPORT Image Resample ( const Image& image1,
 
48
                                         Transform transform = itk::simple::Transform(),
 
49
                                         InterpolatorEnum interpolator = itk::simple::sitkLinear,
 
50
                                         double defaultPixelValue = 0.0,
 
51
                                         PixelIDValueEnum outputPixelType = sitkUnknown );
 
52
 
 
53
SITKBasicFilters_EXPORT Image Resample ( const Image& image1,
 
54
                                         const Image& referenceImage,
 
55
                                         Transform transform = itk::simple::Transform(),
 
56
                                         InterpolatorEnum interpolator = itk::simple::sitkLinear,
 
57
                                         double defaultPixelValue = 0.0,
 
58
                                         PixelIDValueEnum outputPixelType = sitkUnknown );
 
59
 
 
60
SITKBasicFilters_EXPORT Image Resample ( const Image& image1,
 
61
                                         std::vector<uint32_t> size,
 
62
                                         Transform transform = itk::simple::Transform(),
 
63
                                         InterpolatorEnum interpolator = itk::simple::sitkLinear,
 
64
                                         std::vector<double> outputOrigin = std::vector<double>(3, 0.0),
 
65
                                         std::vector<double> outputSpacing = std::vector<double>(3, 1.0),
 
66
                                         std::vector<double> outputDirection = std::vector<double>(),
 
67
                                         double defaultPixelValue = 0.0,
 
68
                                         PixelIDValueEnum outputPixelType = sitkUnknown );
 
69
    /**@}*/
 
70
 
 
71
 
 
72
 
 
73
/**
 
74
 * \brief itk::simple::PatchBasedDenoisingImageFilter Procedural Interface
 
75
 *
 
76
 * This function directly calls the execute method of PatchBasedDenoisingImageFilter
 
77
 * in order to support a procedural API
 
78
 *
 
79
 * \sa itk::simple::PatchBasedDenoisingImageFilter for the object oriented interface
 
80
 */
 
81
SITKBasicFilters_EXPORT Image PatchBasedDenoising (const Image& image1,
 
82
                                                   itk::simple::PatchBasedDenoisingImageFilter::NoiseModelType noiseModel,
 
83
                                                   double kernelBandwidthSigma = 400.0,
 
84
                                                   uint32_t patchRadius = 4u,
 
85
                                                   uint32_t numberOfIterations = 1u,
 
86
                                                   uint32_t numberOfSamplePatches = 200u,
 
87
                                                   double sampleVariance = 400.0,
 
88
                                                   double noiseSigma = 0.0,
 
89
                                                   double noiseModelFidelityWeight = 0.0 );
 
90
 
 
91
// Disable for certain wrapped languages due to overload shadowing
 
92
#if !defined(SWIGLUA)
 
93
 
 
94
SITKBasicFilters_EXPORT Image PatchBasedDenoising (const Image& image1,
 
95
                                                   double kernelBandwidthSigma = 400.0,
 
96
                                                   uint32_t patchRadius = 4u,
 
97
                                                   uint32_t numberOfIterations = 1u,
 
98
                                                   uint32_t numberOfSamplePatches = 200u,
 
99
                                                   double sampleVariance = 400.0);
 
100
#endif
 
101
 
 
102
 
 
103
}
 
104
}
 
105
#endif