VTK-m  2.2
ImageUtils.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_io_ImageUtils_h
12 #define vtk_m_io_ImageUtils_h
13 
14 #include <vtkm/cont/DataSet.h>
15 #include <vtkm/io/vtkm_io_export.h>
16 
17 namespace vtkm
18 {
19 namespace io
20 {
21 
23 void WriteImageFile(const vtkm::cont::DataSet& dataSet,
24  const std::string& fullPath,
25  const std::string& fieldName);
26 
28 vtkm::cont::DataSet ReadImageFile(const std::string& fullPath, const std::string& fieldName);
29 
30 } // namespace vtkm::io
31 } // namespace vtkm:
32 
33 #endif //vtk_m_io_ImageUtils_h
vtkm::io::WriteImageFile
void WriteImageFile(const vtkm::cont::DataSet &dataSet, const std::string &fullPath, const std::string &fieldName)
vtkm
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::io::ReadImageFile
vtkm::cont::DataSet ReadImageFile(const std::string &fullPath, const std::string &fieldName)
vtkm::cont::DataSet
Contains and manages the geometric data structures that VTK-m operates on.
Definition: DataSet.h:57
vtkm_io_export.h
VTKM_IO_EXPORT
#define VTKM_IO_EXPORT
Definition: vtkm_io_export.h:44
DataSet.h