ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
colmap::mvs::Mat< T > Class Template Reference

#include <mat.h>

Inheritance diagram for colmap::mvs::Mat< T >:

Public Member Functions

 Mat ()
 
 Mat (const size_t width, const size_t height, const size_t depth)
 
size_t GetWidth () const
 
size_t GetHeight () const
 
size_t GetDepth () const
 
size_t GetNumBytes () const
 
Get (const size_t row, const size_t col, const size_t slice=0) const
 
void GetSlice (const size_t row, const size_t col, T *values) const
 
T * GetPtr ()
 
const T * GetPtr () const
 
const std::vector< T > & GetData () const
 
void Set (const size_t row, const size_t col, const T value)
 
void Set (const size_t row, const size_t col, const size_t slice, const T value)
 
void Fill (const T value)
 
void Read (const std::string &path)
 
void Write (const std::string &path) const
 

Protected Attributes

size_t width_ = 0
 
size_t height_ = 0
 
size_t depth_ = 0
 
std::vector< T > data_
 

Detailed Description

template<typename T>
class colmap::mvs::Mat< T >

Definition at line 21 of file mat.h.

Constructor & Destructor Documentation

◆ Mat() [1/2]

template<typename T >
colmap::mvs::Mat< T >::Mat

Definition at line 62 of file mat.h.

◆ Mat() [2/2]

template<typename T >
colmap::mvs::Mat< T >::Mat ( const size_t  width,
const size_t  height,
const size_t  depth 
)

Definition at line 65 of file mat.h.

Member Function Documentation

◆ Fill()

template<typename T >
void colmap::mvs::Mat< T >::Fill ( const T  value)

Definition at line 131 of file mat.h.

Referenced by BOOST_AUTO_TEST_CASE().

◆ Get()

template<typename T >
T colmap::mvs::Mat< T >::Get ( const size_t  row,
const size_t  col,
const size_t  slice = 0 
) const

Definition at line 91 of file mat.h.

Referenced by BOOST_AUTO_TEST_CASE().

◆ GetData()

template<typename T >
const std::vector< T > & colmap::mvs::Mat< T >::GetData

Definition at line 113 of file mat.h.

Referenced by colmap::mvs::DepthMap::DepthMap(), and colmap::mvs::NormalMap::NormalMap().

◆ GetDepth()

template<typename T >
size_t colmap::mvs::Mat< T >::GetDepth

◆ GetHeight()

template<typename T >
size_t colmap::mvs::Mat< T >::GetHeight

Definition at line 76 of file mat.h.

Referenced by BOOST_AUTO_TEST_CASE(), and colmap::mvs::PatchMatch::Check().

◆ GetNumBytes()

template<typename T >
size_t colmap::mvs::Mat< T >::GetNumBytes

Definition at line 86 of file mat.h.

Referenced by BOOST_AUTO_TEST_CASE().

◆ GetPtr() [1/2]

template<typename T >
T * colmap::mvs::Mat< T >::GetPtr

Definition at line 103 of file mat.h.

◆ GetPtr() [2/2]

template<typename T >
const T * colmap::mvs::Mat< T >::GetPtr

Definition at line 108 of file mat.h.

◆ GetSlice()

template<typename T >
void colmap::mvs::Mat< T >::GetSlice ( const size_t  row,
const size_t  col,
T *  values 
) const

Definition at line 96 of file mat.h.

Referenced by BOOST_AUTO_TEST_CASE().

◆ GetWidth()

template<typename T >
size_t colmap::mvs::Mat< T >::GetWidth

Definition at line 71 of file mat.h.

Referenced by BOOST_AUTO_TEST_CASE(), and colmap::mvs::PatchMatch::Check().

◆ Read()

template<typename T >
void colmap::mvs::Mat< T >::Read ( const std::string &  path)

Definition at line 136 of file mat.h.

References cloudViewer::t::geometry::path.

◆ Set() [1/2]

template<typename T >
void colmap::mvs::Mat< T >::Set ( const size_t  row,
const size_t  col,
const size_t  slice,
const T  value 
)

Definition at line 123 of file mat.h.

◆ Set() [2/2]

template<typename T >
void colmap::mvs::Mat< T >::Set ( const size_t  row,
const size_t  col,
const T  value 
)

Definition at line 118 of file mat.h.

Referenced by BOOST_AUTO_TEST_CASE().

◆ Write()

template<typename T >
void colmap::mvs::Mat< T >::Write ( const std::string &  path) const

Definition at line 159 of file mat.h.

References cloudViewer::t::geometry::path.

Member Data Documentation

◆ data_

template<typename T >
std::vector<T> colmap::mvs::Mat< T >::data_
protected

Definition at line 54 of file mat.h.

◆ depth_

template<typename T >
size_t colmap::mvs::Mat< T >::depth_ = 0
protected

Definition at line 53 of file mat.h.

◆ height_

template<typename T >
size_t colmap::mvs::Mat< T >::height_ = 0
protected

Definition at line 52 of file mat.h.

◆ width_

template<typename T >
size_t colmap::mvs::Mat< T >::width_ = 0
protected

Definition at line 51 of file mat.h.


The documentation for this class was generated from the following file: