File: sitkAdditionalProcedures.h

package info (click to toggle)
simpleitk 1.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 75,056 kB
  • sloc: cpp: 25,403; python: 3,060; sh: 1,131; ansic: 369; java: 260; cs: 215; makefile: 51; ruby: 47; tcl: 22
file content (105 lines) | stat: -rw-r--r-- 5,013 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/*=========================================================================
*
*  Copyright Insight Software Consortium
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*         http://www.apache.org/licenses/LICENSE-2.0.txt
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*
*=========================================================================*/
#ifndef sitkAdditionalProcedures_h
#define sitkAdditionalProcedures_h


#include "sitkBasicFilters.h"
#include "sitkImage.h"
#include "sitkTransform.h"
#include "sitkInterpolator.h"
#include "sitkPatchBasedDenoisingImageFilter.h"

namespace itk {
namespace simple {


/**
 * \brief itk::simple::ResampleImageFilter Procedural Interface
 *
 * These functions call the execute method of ResampleImageFilter
 * in order to support a procedual API.
 *
 * The difference between the three functions is in the way the output
 * image's domain parameters are specified (origin, spacing,
 * direction). The first function uses the parameters from the input image,
 * the second uses the parameters of a reference image, and the third uses
 * explicitly specified parameters.
 *
 * \sa itk::simple::ResampleImageFilter for the object oriented interface
* @{
 */
SITKBasicFilters_EXPORT Image Resample ( const Image& image1,
                                         Transform transform = itk::simple::Transform(),
                                         InterpolatorEnum interpolator = itk::simple::sitkLinear,
                                         double defaultPixelValue = 0.0,
                                         PixelIDValueEnum outputPixelType = sitkUnknown );

SITKBasicFilters_EXPORT Image Resample ( const Image& image1,
                                         const Image& referenceImage,
                                         Transform transform = itk::simple::Transform(),
                                         InterpolatorEnum interpolator = itk::simple::sitkLinear,
                                         double defaultPixelValue = 0.0,
                                         PixelIDValueEnum outputPixelType = sitkUnknown );

SITKBasicFilters_EXPORT Image Resample ( const Image& image1,
                                         std::vector<uint32_t> size,
                                         Transform transform = itk::simple::Transform(),
                                         InterpolatorEnum interpolator = itk::simple::sitkLinear,
                                         std::vector<double> outputOrigin = std::vector<double>(3, 0.0),
                                         std::vector<double> outputSpacing = std::vector<double>(3, 1.0),
                                         std::vector<double> outputDirection = std::vector<double>(),
                                         double defaultPixelValue = 0.0,
                                         PixelIDValueEnum outputPixelType = sitkUnknown );
    /**@}*/



/**
 * \brief itk::simple::PatchBasedDenoisingImageFilter Procedural Interface
 *
 * This function directly calls the execute method of PatchBasedDenoisingImageFilter
 * in order to support a procedural API
 *
 * \sa itk::simple::PatchBasedDenoisingImageFilter for the object oriented interface
 */
SITKBasicFilters_EXPORT Image PatchBasedDenoising (const Image& image1,
                                                   itk::simple::PatchBasedDenoisingImageFilter::NoiseModelType noiseModel,
                                                   double kernelBandwidthSigma = 400.0,
                                                   uint32_t patchRadius = 4u,
                                                   uint32_t numberOfIterations = 1u,
                                                   uint32_t numberOfSamplePatches = 200u,
                                                   double sampleVariance = 400.0,
                                                   double noiseSigma = 0.0,
                                                   double noiseModelFidelityWeight = 0.0 );

// Disable for certain wrapped languages due to overload shadowing
#if !defined(SWIGLUA)

SITKBasicFilters_EXPORT Image PatchBasedDenoising (const Image& image1,
                                                   double kernelBandwidthSigma = 400.0,
                                                   uint32_t patchRadius = 4u,
                                                   uint32_t numberOfIterations = 1u,
                                                   uint32_t numberOfSamplePatches = 200u,
                                                   double sampleVariance = 400.0);
#endif


}
}
#endif