#include <FeatureMatrix.h>
Inherits EMotionFX::MotionMatching::FeatureMatrixType.
Public Types | |
using | Index = size_t |
Public Member Functions | |
AZ_RTTI (FeatureMatrix, "{E063C9CB-7147-4776-A6E0-98584DD93FEF}") | |
void | Clear () |
void | SaveAsCsv (const AZStd::string &filename, const AZStd::vector< AZStd::string > &columnNames={}) const |
void | SaveAsCsv (const AZStd::string &filename, const FeatureSchema *featureSchema) const |
size_t | CalcMemoryUsageInBytes () const |
AZ::Vector2 | GetVector2 (Index row, Index startColumn) const |
void | SetVector2 (Index row, Index startColumn, const AZ::Vector2 &value) |
AZ::Vector3 | GetVector3 (Index row, Index startColumn) const |
void | SetVector3 (Index row, Index startColumn, const AZ::Vector3 &value) |
Public Member Functions inherited from EMotionFX::MotionMatching::FeatureMatrixType | |
size_t | size () const |
size_t | rows () const |
size_t | cols () const |
void | resize (size_t rowCount, size_t columnCount) |
float & | operator() (size_t row, size_t column) |
const float & | operator() (size_t row, size_t column) const |
float | coeff (size_t row, size_t column) const |
The feature matrix is a NxM matrix which stores the extracted feature values for all frames in our motion database based upon a given feature schema. The feature schema defines the order of the columns and values and is used to identify values and find their location inside the matrix. A 3D position feature storing XYZ values e.g. will use three columns in the feature matrix. Every component of a feature is linked to a column index, so e.g. the left foot position Y value might be at column index 6. The group of values or columns that belong to a given feature is what we call a feature block. The accumulated number of dimensions for all features in the schema, while the number of dimensions might vary per feature, form the number of columns of the feature matrix. Each row represents the features of a single frame of the motion database. The number of rows of the feature matrix is defined by the number.