GaussianBlurringWithPadding.h
1 /*
2  * Medical Image Registration ToolKit (MIRTK)
3  *
4  * Copyright 2008-2017 Imperial College London
5  * Copyright 2008-2013 Daniel Rueckert, Julia Schnabel
6  * Copyright 2013-2017 Andreas Schuh
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 #ifndef MIRTK_GaussianBlurringWithPadding_H
22 #define MIRTK_GaussianBlurringWithPadding_H
23 
24 #include "mirtk/GaussianBlurring.h"
25 
26 
27 namespace mirtk {
28 
29 
30 /**
31  * Class for Gaussian blurring of padded images
32  *
33  * This class defines and implements the Gaussian blurring of padded images.
34  * The blurring is implemented by three successive 1D convolutions with a 1D
35  * Gaussian kernel. If more than 50% of the voxels used for the convolution
36  * have intensities smaller or equal to the padding value, the blurred voxel
37  * will be filled with the padding value.
38  */
39 template <class TVoxel>
41 {
42  mirtkInPlaceImageFilterMacro(GaussianBlurringWithPadding, TVoxel);
43 
44 public:
45 
46  /// Constructor
48 
49  /// Constructor
50  GaussianBlurringWithPadding(double, double, VoxelType);
51 
52  /// Constructor
53  GaussianBlurringWithPadding(double, double, double, VoxelType);
54 
55  /// Constructor
56  GaussianBlurringWithPadding(double, double, double, double, VoxelType);
57 
58 };
59 
60 
61 } // namespace mirtk
62 
63 #endif // MIRTK_GaussianBlurringWithPadding_H
GaussianBlurringWithPadding(double, VoxelType)
Constructor.
Definition: IOConfig.h:41
TVoxel VoxelType
Input/output image voxel type.
Definition: ImageToImage.h:48