Skip to content

shapeworks::ParticleSystemEvaluation

Public Functions

Name
ParticleSystemEvaluation(const std::vector< std::string > & paths)
Initialize particle system from a list of paths to particle files.
ParticleSystemEvaluation(const Eigen::MatrixXd & matrix, int num_values_per_particle =3)
Initialize particle system from eigen matrix (rows=dimensions, cols=num_samples)
const Eigen::MatrixXd & get_matrix() const
Get the matrix representation of the particle system.
int get_num_values_per_particle() const
Get the number of values for each particle (e.g. 3 for x/y/z, 4 for x/y/z/scalar)
const std::vector< std::string > & get_paths() const
Get the paths to the particle files.
int num_samples() const
Number of samples.
int num_dims() const
Dimensions (e.g. x/y/z * number of particles)
bool exact_compare(const ParticleSystemEvaluation & other) const
Perform an exact comparison of two particle systems.
bool evaluation_compare(const ParticleSystemEvaluation & other) const
Perform an evaluation comparison of two particle systems.
void set_meshes(const std::vector< Mesh > & meshes)
Set the meshes for each sample (used for some evaluation metrics)
const std::vector< Mesh > & get_meshes() const
Get the meshes for each sample.
bool read_particle_file(std::string filename, Eigen::VectorXd & points)
Read a particle file into an Eigen vector.

Friends

Name
struct SharedCommandData

Public Functions Documentation

function ParticleSystemEvaluation

explicit ParticleSystemEvaluation(
    const std::vector< std::string > & paths
)

Initialize particle system from a list of paths to particle files.

function ParticleSystemEvaluation

explicit ParticleSystemEvaluation(
    const Eigen::MatrixXd & matrix,
    int num_values_per_particle =3
)

Initialize particle system from eigen matrix (rows=dimensions, cols=num_samples)

function get_matrix

inline const Eigen::MatrixXd & get_matrix() const

Get the matrix representation of the particle system.

function get_num_values_per_particle

inline int get_num_values_per_particle() const

Get the number of values for each particle (e.g. 3 for x/y/z, 4 for x/y/z/scalar)

function get_paths

inline const std::vector< std::string > & get_paths() const

Get the paths to the particle files.

function num_samples

inline int num_samples() const

Number of samples.

function num_dims

inline int num_dims() const

Dimensions (e.g. x/y/z * number of particles)

function exact_compare

bool exact_compare(
    const ParticleSystemEvaluation & other
) const

Perform an exact comparison of two particle systems.

function evaluation_compare

bool evaluation_compare(
    const ParticleSystemEvaluation & other
) const

Perform an evaluation comparison of two particle systems.

function set_meshes

void set_meshes(
    const std::vector< Mesh > & meshes
)

Set the meshes for each sample (used for some evaluation metrics)

function get_meshes

inline const std::vector< Mesh > & get_meshes() const

Get the meshes for each sample.

function read_particle_file

static bool read_particle_file(
    std::string filename,
    Eigen::VectorXd & points
)

Read a particle file into an Eigen vector.

Friends

friend SharedCommandData

friend struct SharedCommandData(
    SharedCommandData 
);

Updated on 2024-11-11 at 19:51:46 +0000