Skip to content

shapeworks::Particles

Representation of correspondence points for a shape including multiple domains. More...

#include <Particles.h>

Public Functions

Name
Particles() =default
void set_local_particles(int domain, const std::vector< itk::Point< double > > & particles)
void set_world_particles(int domain, const std::vector< itk::Point< double > > & particles)
void set_local_particles(int domain, Eigen::VectorXd particles)
void set_world_particles(int domain, Eigen::VectorXd particles)
std::vector< Eigen::VectorXd > get_local_particles() const
std::vector< Eigen::VectorXd > get_world_particles() const
Eigen::VectorXd get_local_particles(int domain)
Eigen::VectorXd get_world_particles(int domain)
Eigen::VectorXd get_raw_world_particles(int domain)
Get untransformed original world particles from optimizer.
Eigen::VectorXd get_combined_local_particles() const
Eigen::VectorXd get_combined_global_particles() const
void set_combined_global_particles(const Eigen::VectorXd & particles)
std::vector< itk::Point< double > > get_local_points(int domain)
std::vector< itk::Point< double > > get_world_points(int domain)
int get_domain_for_combined_id(int id)
Return which domain a particle belongs to when they are concatenated together.
void set_transform(vtkSmartPointer< vtkTransform > transform)
void set_procrustes_transforms(const std::vector< vtkSmartPointer< vtkTransform > > & transforms)
void set_alignment_type(int alignment)
Eigen::VectorXd get_difference_vectors(const Particles & other) const
int get_number_of_domains()
int get_total_number_of_particles()
void save_particles_file(std::string filename, const Eigen::VectorXd & points)

Detailed Description

class shapeworks::Particles;

Representation of correspondence points for a shape including multiple domains.

The StudioParticles class encapsulates the correspondence points for a shape, including multiple domains, local and global points

Public Functions Documentation

function Particles

Particles() =default

function set_local_particles

void set_local_particles(
    int domain,
    const std::vector< itk::Point< double > > & particles
)

function set_world_particles

void set_world_particles(
    int domain,
    const std::vector< itk::Point< double > > & particles
)

function set_local_particles

void set_local_particles(
    int domain,
    Eigen::VectorXd particles
)

function set_world_particles

void set_world_particles(
    int domain,
    Eigen::VectorXd particles
)

function get_local_particles

std::vector< Eigen::VectorXd > get_local_particles() const

function get_world_particles

std::vector< Eigen::VectorXd > get_world_particles() const

function get_local_particles

Eigen::VectorXd get_local_particles(
    int domain
)

function get_world_particles

Eigen::VectorXd get_world_particles(
    int domain
)

function get_raw_world_particles

Eigen::VectorXd get_raw_world_particles(
    int domain
)

Get untransformed original world particles from optimizer.

function get_combined_local_particles

Eigen::VectorXd get_combined_local_particles() const

function get_combined_global_particles

Eigen::VectorXd get_combined_global_particles() const

function set_combined_global_particles

void set_combined_global_particles(
    const Eigen::VectorXd & particles
)

function get_local_points

std::vector< itk::Point< double > > get_local_points(
    int domain
)

function get_world_points

std::vector< itk::Point< double > > get_world_points(
    int domain
)

function get_domain_for_combined_id

int get_domain_for_combined_id(
    int id
)

Return which domain a particle belongs to when they are concatenated together.

function set_transform

void set_transform(
    vtkSmartPointer< vtkTransform > transform
)

function set_procrustes_transforms

void set_procrustes_transforms(
    const std::vector< vtkSmartPointer< vtkTransform > > & transforms
)

function set_alignment_type

void set_alignment_type(
    int alignment
)

function get_difference_vectors

Eigen::VectorXd get_difference_vectors(
    const Particles & other
) const

function get_number_of_domains

int get_number_of_domains()

function get_total_number_of_particles

int get_total_number_of_particles()

function save_particles_file

static void save_particles_file(
    std::string filename,
    const Eigen::VectorXd & points
)

Updated on 2024-07-14 at 17:07:24 +0000