VTK-m  2.2
ImageConnectivity.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_connected_components_ImageConnectivity_h
12 #define vtk_m_filter_connected_components_ImageConnectivity_h
13 
14 #include <vtkm/filter/Filter.h>
16 
29 namespace vtkm
30 {
31 namespace filter
32 {
33 namespace connected_components
34 {
36 {
37 public:
38  VTKM_CONT ImageConnectivity() { this->SetOutputFieldName("component"); }
39 
40 private:
41  VTKM_CONT
42  vtkm::cont::DataSet DoExecute(const vtkm::cont::DataSet& input) override;
43 };
44 } // namespace connected_components
45 
46 } // namespace filter
47 } // namespace vtkm
48 
49 #endif //vtk_m_filter_connected_components_ImageConnectivity_h
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::connected_components::ImageConnectivity
Definition: ImageConnectivity.h:35
VTKM_FILTER_CONNECTED_COMPONENTS_EXPORT
#define VTKM_FILTER_CONNECTED_COMPONENTS_EXPORT
Definition: vtkm_filter_connected_components_export.h:44
vtkm::filter::Filter
Base class for all filters.
Definition: Filter.h:163
VTKM_CONT
#define VTKM_CONT
Definition: ExportMacros.h:57
vtkm::filter::connected_components::ImageConnectivity::ImageConnectivity
ImageConnectivity()
Definition: ImageConnectivity.h:38
vtkm_filter_connected_components_export.h
Filter.h