ScanDataManager.cpp
Go to the documentation of this file.
2 
3 namespace lvr2
4 {
5 
7 {
8 
9 }
10 
12 {
13  if ((!sd->pointsLoaded && !preview) || ( sd->pointsLoaded && preview))
14  {
15  sd = m_io.getSingleRawScan(sd->positionNumber, !preview);
16  }
17 }
18 
19 std::vector<ScanPtr> ScanDataManager::getScans()
20 {
21  return m_io.getRawScans(false);
22 }
23 
24 std::vector<std::vector<ScanImage> > ScanDataManager::getCameraData()
25 {
26  return m_io.getRawCamData(false);
27 }
28 
29 cv::Mat ScanDataManager::loadImageData(int scan_id, int cam_id)
30 {
31  ScanImage ret = m_io.getSingleRawCamData(scan_id, cam_id, true);
32  return ret.image;
33 }
34 
35 
36 } // namespace lvr2
lvr2::HDF5IO::getRawScans
std::vector< ScanPtr > getRawScans(bool load_points=true)
Definition: HDF5IO.cpp:414
ScanDataManager.hpp
lvr2::ScanDataManager::loadImageData
cv::Mat loadImageData(int scan_id, int cam_id)
Definition: ScanDataManager.cpp:29
lvr2::ScanImage::image
cv::Mat image
OpenCV representation.
Definition: ScanTypes.hpp:126
lvr2::HDF5IO::getSingleRawCamData
ScanImage getSingleRawCamData(int scan_id, int img_id, bool load_image_data=true)
Definition: HDF5IO.cpp:591
scripts.normalize_multiple.filename
filename
Definition: normalize_multiple.py:60
lvr2::HDF5IO::getSingleRawScan
ScanPtr getSingleRawScan(int nr, bool load_points=true)
Definition: HDF5IO.cpp:507
lvr2::ScanDataManager::ScanDataManager
ScanDataManager(std::string filename)
Definition: ScanDataManager.cpp:6
lvr2::ScanImage
Definition: ScanTypes.hpp:107
lvr2::HDF5IO::getRawCamData
std::vector< std::vector< ScanImage > > getRawCamData(bool load_image_data=true)
Definition: HDF5IO.cpp:466
lvr2
Definition: BaseBufferManipulators.hpp:39
lvr2::ScanDataManager::m_io
HDF5IO m_io
Definition: ScanDataManager.hpp:53
lvr2::ScanDataManager::getScans
std::vector< ScanPtr > getScans()
Definition: ScanDataManager.cpp:19
lvr2::ScanDataManager::getCameraData
std::vector< std::vector< ScanImage > > getCameraData()
Definition: ScanDataManager.cpp:24
lvr2::ScanDataManager::loadPointCloudData
void loadPointCloudData(ScanPtr &sd, bool preview=false)
Definition: ScanDataManager.cpp:11
lvr2::ScanPtr
std::shared_ptr< Scan > ScanPtr
Shared pointer to scans.
Definition: ScanTypes.hpp:98


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Wed Mar 2 2022 00:37:25