VTK-m  2.2
ComputeMoments.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 #ifndef vtk_m_filter_image_processing_ComputeMoments_h
11 #define vtk_m_filter_image_processing_ComputeMoments_h
12 
13 #include <vtkm/filter/Filter.h>
15 
16 namespace vtkm
17 {
18 namespace filter
19 {
20 namespace image_processing
21 {
23 {
24 public:
26 
27  VTKM_CONT void SetRadius(double _radius) { this->Radius = _radius; }
28 
29  VTKM_CONT void SetSpacing(vtkm::Vec3f _spacing) { this->Spacing = _spacing; }
30 
31  VTKM_CONT void SetOrder(vtkm::Int32 _order) { this->Order = _order; }
32 
33 private:
34  VTKM_CONT vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
35 
36  double Radius = 1;
37  vtkm::Vec3f Spacing = { 1.0f, 1.0f, 1.0f };
38  vtkm::Int32 Order = 0;
39 };
40 } // namespace image_processing
41 } // namespace filter
42 } // namespace vtkm
43 
44 #endif //vtk_m_filter_image_processing_ComputeMoments_h
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::filter::image_processing::ComputeMoments
Definition: ComputeMoments.h:22
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
vtkm::filter::image_processing::ComputeMoments::SetOrder
void SetOrder(vtkm::Int32 _order)
Definition: ComputeMoments.h:31
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::ComputeMoments::SetSpacing
void SetSpacing(vtkm::Vec3f _spacing)
Definition: ComputeMoments.h:29
vtkm::Vec< vtkm::FloatDefault, 3 >
vtkm::Int32
int32_t Int32
Base type to use for 32-bit signed integer numbers.
Definition: Types.h:181
vtkm_filter_image_processing_export.h
vtkm::filter::image_processing::ComputeMoments::SetRadius
void SetRadius(double _radius)
Definition: ComputeMoments.h:27
Filter.h