VTK-m  2.2
ImageMedian.h
Go to the documentation of this file.
1 //============================================================================
2 // Copyright (c) Kitware, Inc.
3 // All rights reserved.
4 // See LICENSE.txt for details.
5 //
6 // This software is distributed WITHOUT ANY WARRANTY; without even
7 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8 // PURPOSE. See the above copyright notice for more information.
9 //============================================================================
10 
11 #ifndef vtk_m_filter_image_processing_ImageMedian_h
12 #define vtk_m_filter_image_processing_ImageMedian_h
13 
14 #include <vtkm/filter/Filter.h>
16 
27 namespace vtkm
28 {
29 namespace filter
30 {
31 namespace image_processing
32 {
34 {
35 public:
36  VTKM_CONT ImageMedian() { this->SetOutputFieldName("median"); }
37 
38  VTKM_CONT void Perform3x3() { this->Neighborhood = 1; };
39  VTKM_CONT void Perform5x5() { this->Neighborhood = 2; };
40 
41 private:
42  VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
43 
44  int Neighborhood = 1;
45 };
46 } // namespace image_processing
47 } // namespace filter
48 } // namespace vtkm
49 
50 #endif //vtk_m_filter_image_processing_ImageMedian_h
vtkm::filter::image_processing::ImageMedian::ImageMedian
ImageMedian()
Definition: ImageMedian.h:36
vtkm::filter::image_processing::ImageMedian
Definition: ImageMedian.h:33
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
vtkm::filter::image_processing::ImageMedian::Perform3x3
void Perform3x3()
Definition: ImageMedian.h:38
vtkm::filter::image_processing::ImageMedian::Perform5x5
void Perform5x5()
Definition: ImageMedian.h:39
vtkm::filter::Filter
Base class for all filters.
Definition: Filter.h:163
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
VTKM_FILTER_IMAGE_PROCESSING_EXPORT
#define VTKM_FILTER_IMAGE_PROCESSING_EXPORT
Definition: vtkm_filter_image_processing_export.h:44
vtkm_filter_image_processing_export.h
Filter.h