A texturizer that uses images instead of pointcloud colors for creating the textures for meshes. More...
#include <ImageTexturizer.hpp>

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, Texture > | getTextures () |
| 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, Texture > | m_textures |
| StableVector, that contains all generated textures with texture handles. More... | |
A texturizer that uses images instead of pointcloud colors for creating the textures for meshes.
Definition at line 56 of file ImageTexturizer.hpp.
|
inline |
constructor
Definition at line 64 of file ImageTexturizer.hpp.
|
overridevirtual |
Generates a Texture for a given Rectangle.
| index | The newly created texture will get this index. |
| surface | Unused in this Texturizer |
| boudingRect | The texture will be generated for this rectangle |
Reimplemented from lvr2::Texturizer< BaseVecT >.
|
inline |
Sets the internal UOS Scanproject to the given one.
| project | The UOS Scanproject the intern project will be set to. |
Definition at line 78 of file ImageTexturizer.hpp.