uvgVPCCenc 1.0.0
uvgVPCCenc is an open-source real-time V-PCC encoder library written in C++ from scratch.
Loading...
Searching...
No Matches
Classes | Functions | Variables
utilsPatchGeneration.hpp File Reference
#include "utils/utils.hpp"
#include "uvgvpcc/log.hpp"
#include <fstream>
#include <vector>
#include <unordered_map>
Include dependency graph for utilsPatchGeneration.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  vector3Hash< T >
 

Functions

template<typename T , typename TT >
double dotProduct (const std::array< T, 3 > &arr1, const std::array< TT, 3 > &arr2)
 
void exportPointCloud (const std::string &plyFilePath, const std::vector< Vector3< typeGeometryInput > > &geometries, const std::vector< Vector3< uint8_t > > &attributes, const std::vector< Vector3< double > > &normals={})
 
void voxelization (const std::vector< Vector3< typeGeometryInput > > &inputPointsGeometry, std::vector< Vector3< typeGeometryInput > > &voxelizedPointsGeometry, std::vector< std::vector< size_t > > &voxelIdToPointsId, const size_t inputBitResolution, const size_t outputBitResolution)
 

Variables

const std::array< Vector3< uint8_t >, 6 > ppiColors
 
const std::array< Vector3< uint8_t >, 114 > patchColors
 

Function Documentation

◆ dotProduct()

template<typename T , typename TT >
double dotProduct ( const std::array< T, 3 > &  arr1,
const std::array< TT, 3 > &  arr2 
)
inline
Here is the caller graph for this function:

◆ exportPointCloud()

void exportPointCloud ( const std::string &  plyFilePath,
const std::vector< Vector3< typeGeometryInput > > &  geometries,
const std::vector< Vector3< uint8_t > > &  attributes,
const std::vector< Vector3< double > > &  normals = {} 
)
inline
Here is the caller graph for this function:

◆ voxelization()

void voxelization ( const std::vector< Vector3< typeGeometryInput > > &  inputPointsGeometry,
std::vector< Vector3< typeGeometryInput > > &  voxelizedPointsGeometry,
std::vector< std::vector< size_t > > &  voxelIdToPointsId,
const size_t  inputBitResolution,
const size_t  outputBitResolution 
)
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ patchColors

const std::array<Vector3<uint8_t>, 114> patchColors
Initial value:
= {{
{139,0,0},{165,42,42},{178,34,34},{220,20,60},{255,99,71},{255,127,80},{205,92,92},{240,128,128},{233,150,122},{250,128,114},{255,160,122},{255,69,0},{255,140,0},{255,165,0},{255,215,0},{184,134,11},{218,165,32},{238,232,170},{189,183,107},{240,230,140},{255,255,0},{32,178,170},{0,128,128},{0,139,139},{0,255,255},{0,255,255},{224,255,255},{0,206,209},{72,209,204},{175,238,238},{176,224,230},{95,158,160},{70,130,180},{100,149,237},{0,191,255},{30,144,255},{173,216,230},{135,206,235},{135,206,250},{25,25,112},{0,0,128},{0,0,139},{0,0,205},{0,0,255},{65,105,225},{138,43,226},{75,0,130},{72,61,139},{106,90,205},{123,104,238},{147,112,219},{139,0,139},{148,0,211},{153,50,204},{186,85,211},{128,0,128},{216,191,216},{221,160,221},{238,130,238},{255,0,255},{218,112,214},{199,21,133},{219,112,147},{255,20,147},{255,105,180},{255,182,193},{255,192,203},{250,235,215},{245,245,220},{255,228,196},{255,235,205},{245,222,179},{255,248,220},{255,250,205},{250,250,210},{255,255,224},{139,69,19},{160,82,45},{210,105,30},{205,133,63},{244,164,96},{222,184,135},{210,180,140},{188,143,143},{255,228,181},{255,222,173},{255,218,185},{255,228,225},{255,240,245},{250,240,230},{253,245,230},{255,239,213},{255,245,238},{245,255,250},{112,128,144},{119,136,153},{176,196,222},{230,230,250},{255,250,240},{240,248,255},{248,248,255},{240,255,240},{255,255,240},{240,255,255},{255,250,250},{0,0,0},{105,105,105},{128,128,128},{169,169,169},{192,192,192},{211,211,211},{220,220,220},{245,245,245},{255,255,255},
}}

◆ ppiColors

const std::array<Vector3<uint8_t>, 6> ppiColors
Initial value:
= {{
{51, 51, 51},
{0, 102, 51},
{153, 0, 0},
{0, 51, 102},
{255, 204, 0},
{102, 204, 204}
}}