ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
FeatureIO.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <ecvFeature.h>
11 
12 #include "CV_io.h"
13 
14 namespace cloudViewer {
15 namespace io {
16 
19 bool CV_IO_LIB_API ReadFeature(const std::string &filename,
20  utility::Feature &feature);
21 
24 bool CV_IO_LIB_API WriteFeature(const std::string &filename,
25  const utility::Feature &feature);
26 
27 bool CV_IO_LIB_API ReadFeatureFromBIN(const std::string &filename,
28  utility::Feature &feature);
29 
30 bool CV_IO_LIB_API WriteFeatureToBIN(const std::string &filename,
31  const utility::Feature &feature);
32 
33 } // namespace io
34 } // namespace cloudViewer
std::string filename
#define CV_IO_LIB_API
Definition: CV_io.h:15
Class to store featrues for registration.
Definition: ecvFeature.h:29
bool ReadFeature(const std::string &filename, utility::Feature &feature)
bool WriteFeatureToBIN(const std::string &filename, const utility::Feature &feature)
bool WriteFeature(const std::string &filename, const utility::Feature &feature)
bool ReadFeatureFromBIN(const std::string &filename, utility::Feature &feature)
Generic file read and write utility for python interface.