ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
colmap::mvs::NormalMap Class Reference

#include <normal_map.h>

Inheritance diagram for colmap::mvs::NormalMap:
Collaboration diagram for colmap::mvs::NormalMap:

Public Member Functions

 NormalMap ()
 
 NormalMap (const size_t width, const size_t height)
 
 NormalMap (const Mat< float > &mat)
 
void Rescale (const float factor)
 
void Downsize (const size_t max_width, const size_t max_height)
 
Bitmap ToBitmap () const
 
- Public Member Functions inherited from colmap::mvs::Mat< float >
 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
 
float 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, float *values) const
 
floatGetPtr ()
 
const floatGetPtr () const
 
const std::vector< float > & GetData () const
 
void Set (const size_t row, const size_t col, const float value)
 
void Set (const size_t row, const size_t col, const size_t slice, const float value)
 
void Fill (const float value)
 
void Read (const std::string &path)
 
void Write (const std::string &path) const
 

Additional Inherited Members

- Protected Attributes inherited from colmap::mvs::Mat< float >
size_t width_
 
size_t height_
 
size_t depth_
 
std::vector< floatdata_
 

Detailed Description

Definition at line 20 of file normal_map.h.

Constructor & Destructor Documentation

◆ NormalMap() [1/3]

colmap::mvs::NormalMap::NormalMap ( )

Definition at line 39 of file normal_map.cc.

◆ NormalMap() [2/3]

colmap::mvs::NormalMap::NormalMap ( const size_t  width,
const size_t  height 
)

Definition at line 41 of file normal_map.cc.

◆ NormalMap() [3/3]

colmap::mvs::NormalMap::NormalMap ( const Mat< float > &  mat)
explicit

Member Function Documentation

◆ Downsize()

void colmap::mvs::NormalMap::Downsize ( const size_t  max_width,
const size_t  max_height 
)

◆ Rescale()

◆ ToBitmap()


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