VTK-m  2.0
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 
22 VTKM_IO_EXPORT
23 void WriteImageFile(const vtkm::cont::DataSet& dataSet,
24  const std::string& fullPath,
25  const std::string& fieldName);
26 
27 VTKM_IO_EXPORT
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
Groups connected points that have the same field value.
Definition: Atomic.h:19
vtkm::cont::DataSet
Definition: DataSet.h:34
vtkm::io::ReadImageFile
VTKM_IO_EXPORT vtkm::cont::DataSet ReadImageFile(const std::string &fullPath, const std::string &fieldName)
vtkm::io::WriteImageFile
VTKM_IO_EXPORT void WriteImageFile(const vtkm::cont::DataSet &dataSet, const std::string &fullPath, const std::string &fieldName)
DataSet.h