Carotid 0.1.1
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
carotid::IdentityGenerator Class Reference

IdentityGenerator - A class for generating shape blendshapes. More...

#include <IdentityGenerator.h>

Public Member Functions

 IdentityGenerator (const IdOptions opts)
 
uint32_t getNumRows () const
 Get the number of rows in the egienvector matrix.
 
uint32_t getNumCols () const
 Get the number of columns in the egienvector matrix.
 
std::pair< uint32_t, uint32_t > getSize () const
 Get the size of the eigenvector matrix.
 
void loadModelFromBinary (const Path &avgModelPath, const Path &eigenvecsPath, const Path &eigenvalsPath)
 Load the model from binary files.
 
bool validateModel () const
 Validate the model.
 
Vec< float > generateBaseModel () const
 Generate the base model.
 
Vec< float > generateModel (const Vec< float > &eigenvals) const
 Generate the model with the given eigenvalues.
 

Public Attributes

IdOptions opts
 
Vec< float > cur_model
 
Vec< float > cur_params
 

Detailed Description

IdentityGenerator - A class for generating shape blendshapes.

This class is used to generate shape blendshapes of a 3DMM model

Constructor & Destructor Documentation

◆ IdentityGenerator()

carotid::IdentityGenerator::IdentityGenerator ( const IdOptions opts)
inlineexplicit

Member Function Documentation

◆ 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
eigenvalsThe 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
avgModelPathThe path to the average model binary file
eigenvecsPathThe path to the eigen vectors binary file
eigenvalsPathThe path to the eigen values binary file

◆ validateModel()

bool IdentityGenerator::validateModel ( ) const

Validate the model.

Returns
True if the model is valid, false otherwise

Member Data Documentation

◆ 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

IdOptions carotid::IdentityGenerator::opts

Options

This class is used to store the options for the IdentityGenerator class


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