Public Member Functions | List of all members
lvr2::ImageTexturizer< BaseVecT > Class Template Reference

A texturizer that uses images instead of pointcloud colors for creating the textures for meshes. More...

#include <ImageTexturizer.hpp>

Inheritance diagram for lvr2::ImageTexturizer< BaseVecT >:
Inheritance graph
[legend]

Public Member Functions

virtual TextureHandle generateTexture (int index, const PointsetSurface< BaseVecT > &surface, const BoundingRectangle< typename BaseVecT::CoordType > &boundingRect) override
 Generates a Texture for a given Rectangle. More...
 
 ImageTexturizer (float texelSize, int minClusterSize, int maxClusterSize)
 constructor More...
 
void set_project (ScanProject &project)
 Sets the internal UOS Scanproject to the given one. More...
 
- Public Member Functions inherited from lvr2::Texturizer< BaseVecT >
TexCoords calculateTexCoords (TextureHandle texH, const BoundingRectangle< typename BaseVecT::CoordType > &boundingRect, BaseVecT v)
 Calculate texture coordinates for a given 3D point in a texture. More...
 
BaseVecT calculateTexCoordsInv (TextureHandle texH, const BoundingRectangle< typename BaseVecT::CoordType > &boundingRect, const TexCoords &coords)
 Calculate a global 3D position for given texture coordinates. More...
 
void findKeyPointsInTexture (const TextureHandle texH, const BoundingRectangle< typename BaseVecT::CoordType > &boundingRect, const cv::Ptr< cv::Feature2D > &detector, std::vector< cv::KeyPoint > &keypoints, cv::Mat &descriptors)
 Discover keypoints in a texture. More...
 
Texture getTexture (TextureHandle h)
 Get the texture to a given texture handle. More...
 
int getTextureIndex (TextureHandle h)
 Get the texture index to a given texture handle. More...
 
StableVector< TextureHandle, TexturegetTextures ()
 Returns all textures. More...
 
std::vector< BaseVecT > keypoints23d (const std::vector< cv::KeyPoint > &keypoints, const BoundingRectangle< typename BaseVecT::CoordType > &boundingRect, const TextureHandle &h)
 Compute 3D coordinates for texture-relative keypoints. More...
 
void saveTextures ()
 Calls the save method for each texture. More...
 
 Texturizer (float texelSize, int texMinClusterSize, int texMaxClusterSize)
 Constructor. More...
 

Additional Inherited Members

- Public Attributes inherited from lvr2::Texturizer< BaseVecT >
const float m_texelSize
 The size of a texture pixel. More...
 
const int m_texMaxClusterSize
 The maximum number of faces a cluster needs to be texturized. More...
 
const int m_texMinClusterSize
 The minimum number of faces a cluster needs to be texturized. More...
 
- Protected Attributes inherited from lvr2::Texturizer< BaseVecT >
StableVector< TextureHandle, Texturem_textures
 StableVector, that contains all generated textures with texture handles. More...
 

Detailed Description

template<typename BaseVecT>
class lvr2::ImageTexturizer< BaseVecT >

A texturizer that uses images instead of pointcloud colors for creating the textures for meshes.

Definition at line 56 of file ImageTexturizer.hpp.

Constructor & Destructor Documentation

◆ ImageTexturizer()

template<typename BaseVecT >
lvr2::ImageTexturizer< BaseVecT >::ImageTexturizer ( float  texelSize,
int  minClusterSize,
int  maxClusterSize 
)
inline

constructor

Definition at line 64 of file ImageTexturizer.hpp.

Member Function Documentation

◆ generateTexture()

template<typename BaseVecT >
virtual TextureHandle lvr2::ImageTexturizer< BaseVecT >::generateTexture ( int  index,
const PointsetSurface< BaseVecT > &  surface,
const BoundingRectangle< typename BaseVecT::CoordType > &  boundingRect 
)
overridevirtual

Generates a Texture for a given Rectangle.

Parameters
indexThe newly created texture will get this index.
surfaceUnused in this Texturizer
boudingRectThe texture will be generated for this rectangle
Returns
Returns a handle for the newly created texture.

Reimplemented from lvr2::Texturizer< BaseVecT >.

◆ set_project()

template<typename BaseVecT >
void lvr2::ImageTexturizer< BaseVecT >::set_project ( ScanProject project)
inline

Sets the internal UOS Scanproject to the given one.

Parameters
projectThe UOS Scanproject the intern project will be set to.

Definition at line 78 of file ImageTexturizer.hpp.


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


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:27