GaussianBlurringWithPadding2D.h
1 /*
2  * Medical Image Registration ToolKit (MIRTK)
3  *
4  * Copyright 2008-2015 Imperial College London
5  * Copyright 2008-2013 Daniel Rueckert, Julia Schnabel
6  * Copyright 2013-2015 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_GaussianBlurringWithPadding2D_H
22 #define MIRTK_GaussianBlurringWithPadding2D_H
23 
24 #include "mirtk/GaussianBlurringWithPadding.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  * It takes 2D and 3D images but blurres only in the x and y direction.
35  * The blurring is implemented by two successive 1D convolutions with a 1D
36  * Gaussian kernel. If more than 50% of the voxels used for the convolution
37  * have intensities smaller or equal to the padding value, the blurred voxel
38  * will be filled with the padding value.
39  */
40 template <class TVoxel>
42 {
43  mirtkInPlaceImageFilterMacro(GaussianBlurringWithPadding2D, TVoxel);
44 
45 public:
46 
47  /// Constructor
48  GaussianBlurringWithPadding2D(double = 1.0, VoxelType = -1);
49 
50  /// Constructor
52 
53 };
54 
55 
56 } // namespace mirtk
57 
58 #endif // MIRTK_GaussianBlurringWithPadding2D_H
GaussianBlurringWithPadding2D(double=1.0, VoxelType=-1)
Constructor.
Definition: IOConfig.h:41
TVoxel VoxelType
Input/output image voxel type.
Definition: ImageToImage.h:48