STIR  6.2.0
MedianImageFilter3D.h
Go to the documentation of this file.
1 //
2 //
13 /*
14  Copyright (C) 2000- 2009, Hammersmith Imanet Ltd
15  This file is part of STIR.
16 
17  SPDX-License-Identifier: Apache-2.0
18 
19  See STIR/LICENSE.txt for details
20 */
21 
22 #ifndef __stir_MedianImageFilter3D_H__
23 #define __stir_MedianImageFilter3D_H__
24 
25 #include "stir/DataProcessor.h"
29 
30 START_NAMESPACE_STIR
31 
32 template <typename coordT>
33 class CartesianCoordinate3D;
34 
43 template <typename elemT>
44 class MedianImageFilter3D : public RegisteredParsingObject<MedianImageFilter3D<elemT>,
45  DataProcessor<DiscretisedDensity<3, elemT>>,
46  DataProcessor<DiscretisedDensity<3, elemT>>>
47 {
48 private:
51  DataProcessor<DiscretisedDensity<3, elemT>>>
52  base_type;
53 
54 public:
55  static const char* const registered_name;
56 
58 
60 
61 private:
62  MedianArrayFilter3D<elemT> median_filter;
63  int mask_radius_x;
64  int mask_radius_y;
65  int mask_radius_z;
66 
67  void set_defaults() override;
68  void initialise_keymap() override;
69 
70  Succeeded virtual_set_up(const DiscretisedDensity<3, elemT>& density) override;
71  void virtual_apply(DiscretisedDensity<3, elemT>& density, const DiscretisedDensity<3, elemT>& in_density) const override;
72  void virtual_apply(DiscretisedDensity<3, elemT>& density) const override;
73 };
74 
75 END_NAMESPACE_STIR
76 
77 #endif // MedianImageFilter3D
Declaration of class stir::DataProcessor.
Base class that defines an interface for classes that do data processing.
Definition: DataProcessor.h:46
defines the stir::DiscretisedDensity class
Parent class for all leaves in a RegisteredObject hierarchy that do parsing of parameter files...
Definition: RegisteredParsingObject.h:77
Implements median filtering on 3D arrays.
Definition: MedianArrayFilter3D.h:53
a class containing an enumeration type that can be used by functions to signal successful operation o...
Definition: Succeeded.h:43
A class in the ImageProcessor hierarchy that implements median filtering.
Definition: MedianImageFilter3D.h:44
Declaration of class stir::RegisteredParsingObject.
Declaration of class stir::MedianArrayFilter3D.
This abstract class is the basis for all image representations.
Definition: FBP2DReconstruction.h:35