IdentityGenerator - A class for generating shape blendshapes.
More...
#include <IdentityGenerator.h>
IdentityGenerator - A class for generating shape blendshapes.
This class is used to generate shape blendshapes of a 3DMM model
◆ IdentityGenerator()
| carotid::IdentityGenerator::IdentityGenerator |
( |
const IdOptions | opts | ) |
|
|
inlineexplicit |
◆ generateBaseModel()
| Vec< float > IdentityGenerator::generateBaseModel |
( |
| ) |
const |
Generate the base model.
- Returns
- The base model
◆ generateModel()
| Vec< float > IdentityGenerator::generateModel |
( |
const Vec< float > & | eigenvals | ) |
const |
Generate the model with the given eigenvalues.
- Parameters
-
| eigenvals | The eigenvalues to use |
- Returns
- The model with the given eigenvalues
◆ getNumCols()
| uint32_t carotid::IdentityGenerator::getNumCols |
( |
| ) |
const |
|
inline |
Get the number of columns in the egienvector matrix.
- Returns
- The number of columns in the egienvector matrix
◆ getNumRows()
| uint32_t carotid::IdentityGenerator::getNumRows |
( |
| ) |
const |
|
inline |
Get the number of rows in the egienvector matrix.
- Returns
- The number of rows in the egienvector matrix
◆ getSize()
| std::pair< uint32_t, uint32_t > carotid::IdentityGenerator::getSize |
( |
| ) |
const |
|
inline |
Get the size of the eigenvector matrix.
- Returns
- The size of the eigenvector matrix
◆ loadModelFromBinary()
| void IdentityGenerator::loadModelFromBinary |
( |
const Path & | avgModelPath, |
|
|
const Path & | eigenvecsPath, |
|
|
const Path & | eigenvalsPath ) |
Load the model from binary files.
- Parameters
-
| avgModelPath | The path to the average model binary file |
| eigenvecsPath | The path to the eigen vectors binary file |
| eigenvalsPath | The path to the eigen values binary file |
◆ validateModel()
| bool IdentityGenerator::validateModel |
( |
| ) |
const |
Validate the model.
- Returns
- True if the model is valid, false otherwise
◆ cur_model
| Vec<float> carotid::IdentityGenerator::cur_model |
The current output model
This container is used to store the output model
◆ cur_params
| Vec<float> carotid::IdentityGenerator::cur_params |
The current input parameters
This container is used to store the input parameters
◆ opts
The documentation for this class was generated from the following files: