SimpleITK  
sitkAdditionalProcedures.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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"
27 
28 namespace itk::simple
29 {
30 
31 
48 Resample(const Image & image1,
49  Transform transform = itk::simple::Transform(),
51  double defaultPixelValue = 0.0,
52  PixelIDValueEnum outputPixelType = sitkUnknown,
53  bool useNearestNeighborExtrapolator = false);
54 
56 Resample(const Image & image1,
57  const Image & referenceImage,
58  Transform transform = itk::simple::Transform(),
60  double defaultPixelValue = 0.0,
61  PixelIDValueEnum outputPixelType = sitkUnknown,
62  bool useNearestNeighborExtrapolator = false);
63 
65 Resample(const Image & image1,
66  const std::vector<uint32_t> & size,
67  Transform transform = itk::simple::Transform(),
69  const std::vector<double> & outputOrigin = std::vector<double>(3, 0.0),
70  const std::vector<double> & outputSpacing = std::vector<double>(3, 1.0),
71  const std::vector<double> & outputDirection = std::vector<double>(),
72  double defaultPixelValue = 0.0,
73  PixelIDValueEnum outputPixelType = sitkUnknown,
74  bool useNearestNeighborExtrapolator = false);
87 PatchBasedDenoising(const Image & image1,
89  double kernelBandwidthSigma = 400.0,
90  uint32_t patchRadius = 4u,
91  uint32_t numberOfIterations = 1u,
92  uint32_t numberOfSamplePatches = 200u,
93  double sampleVariance = 400.0,
94  double noiseSigma = 0.0,
95  double noiseModelFidelityWeight = 0.0);
96 
97 // Disable for certain wrapped languages due to overload shadowing
98 #if !defined(SWIGLUA)
99 
101 PatchBasedDenoising(const Image & image1,
102  double kernelBandwidthSigma = 400.0,
103  uint32_t patchRadius = 4u,
104  uint32_t numberOfIterations = 1u,
105  uint32_t numberOfSamplePatches = 200u,
106  double sampleVariance = 400.0);
107 #endif
108 
109 
122 DiscreteGaussian(const Image & image1,
123  double variance,
124  unsigned int maximumKernelWidth = 32u,
125  double maximumError = 0.01,
126  bool useImageSpacing = true);
127 
128 
139 SmoothingRecursiveGaussian(const Image & image1, double sigma, bool normalizeAcrossScale = false);
140 
141 } // namespace itk::simple
142 #endif
itk::simple::Image
The Image class for SimpleITK.
Definition: sitkImage.h:76
sitkBasicFilters.h
itk::simple::sitkLinear
@ sitkLinear
N-D linear interpolation.
Definition: sitkInterpolator.h:38
itk::simple::InterpolatorEnum
InterpolatorEnum
Definition: sitkInterpolator.h:28
itk::simple::Transform
A simplified wrapper around a variety of ITK transforms.
Definition: sitkTransform.h:86
sitkImage.h
itk::simple::PixelIDValueEnum
PixelIDValueEnum
Enumerated values of pixelIDs.
Definition: sitkPixelIDValues.h:100
itk::simple::PatchBasedDenoisingImageFilter::NoiseModelType
NoiseModelType
Definition: sitkPatchBasedDenoisingImageFilter.h:116
itk::simple::DiscreteGaussian
Image DiscreteGaussian(const Image &image1, double variance, unsigned int maximumKernelWidth=32u, double maximumError=0.01, bool useImageSpacing=true)
Blurs an image by separable convolution with discrete gaussian kernels. This filter performs Gaussian...
itk::simple::SmoothingRecursiveGaussian
Image SmoothingRecursiveGaussian(const Image &image1, double sigma, bool normalizeAcrossScale=false)
Computes the smoothing of an image by convolution with the Gaussian kernels implemented as IIR filter...
SITKBasicFilters_EXPORT
#define SITKBasicFilters_EXPORT
Definition: sitkBasicFilters.h:52
sitkPatchBasedDenoisingImageFilter.h
sitkInterpolator.h
sitkTransform.h
itk::simple::PatchBasedDenoising
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)
itk::simple::PatchBasedDenoisingImageFilter Procedural Interface
itk::simple::Resample
Image Resample(const Image &image1, Transform transform=itk::simple::Transform(), InterpolatorEnum interpolator=itk::simple::sitkLinear, double defaultPixelValue=0.0, PixelIDValueEnum outputPixelType=sitkUnknown, bool useNearestNeighborExtrapolator=false)
itk::simple::ResampleImageFilter Procedural Interface
itk::simple
Definition: sitkAdditionalProcedures.h:28
itk::simple::sitkUnknown
@ sitkUnknown
Definition: sitkPixelIDValues.h:102