Template Class SpectralTexturizer
Defined in File SpectralTexturizer.hpp
Inheritance Relationships
Base Type
public lvr2::Texturizer< BaseVecT >(Template Class Texturizer)
Class Documentation
-
template<typename BaseVecT>
class SpectralTexturizer : public lvr2::Texturizer<BaseVecT> A texturizer that uses h5 spectral panoramas instead of pointcloud colors for creating textures for meshes.
Public Functions
-
inline SpectralTexturizer(float texelSize, int minClusterSize, int maxClusterSize)
constructor
-
virtual TextureHandle generateTexture(int index, const PointsetSurface<BaseVecT> &surface, const BoundingRectangle<typename BaseVecT::CoordType> &boundingRect, ClusterHandle cluster) override
Generates a texture for a given bounding rectangle.
Create a grid, based on given information (texel size, bounding rectangle). For each cell in the grid (which represents a texel), let the
PointsetSurfacefind the closest point in the point cloud and use that point’s color as color for the texel.- Parameters:
index – The index the texture will get
surface – The point cloud
boundingRect – The bounding rectangle of the cluster
cluster – The cluster being texturized
- Returns:
Texture handle of the generated texture
-
void init_image_data(HyperspectralPanoramaPtr pano, int channelIndex)
set the image data to a specific panorama image of a given scanPosition
- Parameters:
pano – Panorama to use
channelIndex – What panorama channel should be used
-
inline SpectralTexturizer(float texelSize, int minClusterSize, int maxClusterSize)