#include <msm_shape_perturber.h>
Public Member Functions | |
msm_shape_perturber () | |
void | perturb (const msm_points &) |
void | set_model (const msm_shape_model &) |
void | set_max_dp (const vnl_vector< double > &, const vnl_vector< double > &=vnl_vector< double >()) |
void | set_rel_gauss (double) |
void | set_seed (vcl_size_t) |
vcl_size_t | seed () const |
double | rel_gauss () const |
const vnl_vector< double > & | max_d_pose () const |
const vnl_vector< double > & | max_d_params () const |
const vnl_vector< double > & | gt_params () const |
const vnl_vector< double > & | gt_pose () const |
const vnl_vector< double > & | params () const |
return model parameters of perturbed points. | |
const vnl_vector< double > & | pose () const |
return pose of perturbed points. | |
const vnl_vector< double > & | all () const |
return concatenated [pose params] vector of perturbed points. | |
const vnl_vector< double > & | inv_d_params () const |
return params displacement needed to go from perturbed points back to ground truth. | |
const vnl_vector< double > & | inv_d_pose () const |
return pose displacement needed to go grom perturbed points back to ground truth. | |
const vnl_vector< double > & | inv_d_all () const |
return pose+params displacement needed to go grom perturbed points back to ground truth. | |
const msm_points & | points () const |
return perturbed points. | |
Private Member Functions | |
double | trunc_normal_sample (vnl_random &rand1, double sd, double max_d) |
double | random_value (vnl_random &rand, double max_v, double rel_gauss_sd) |
Private Attributes | |
double | rel_gauss_ |
msm_shape_model | sm_ |
msm_shape_instance | sm_inst_ |
msm_shape_instance | gt_inst_ |
vnl_random | rand_ |
vnl_vector< double > | max_dpose_ |
vnl_vector< double > | max_dparams_ |
vnl_vector< double > | dpose_ |
vnl_vector< double > | inv_dpose_ |
vnl_vector< double > | dparams_ |
vnl_vector< double > | inv_dparams_ |
vnl_vector< double > | all_ |
vnl_vector< double > | dall_ |
vnl_vector< double > | inv_dall_ |
vcl_size_t | n_pose_ |
vcl_size_t | n_params_ |
Definition at line 17 of file msm_shape_perturber.h.
msm_shape_perturber::msm_shape_perturber | ( | ) |
Definition at line 4 of file msm_shape_perturber.cxx.
const vnl_vector< double > & msm_shape_perturber::all | ( | ) | const |
return concatenated [pose params] vector of perturbed points.
Definition at line 127 of file msm_shape_perturber.cxx.
const vnl_vector< double > & msm_shape_perturber::gt_params | ( | ) | const |
Definition at line 117 of file msm_shape_perturber.cxx.
const vnl_vector< double > & msm_shape_perturber::gt_pose | ( | ) | const |
Definition at line 122 of file msm_shape_perturber.cxx.
const vnl_vector< double > & msm_shape_perturber::inv_d_all | ( | ) | const |
return pose+params displacement needed to go grom perturbed points back to ground truth.
Definition at line 142 of file msm_shape_perturber.cxx.
const vnl_vector< double > & msm_shape_perturber::inv_d_params | ( | ) | const |
return params displacement needed to go from perturbed points back to ground truth.
Definition at line 132 of file msm_shape_perturber.cxx.
const vnl_vector< double > & msm_shape_perturber::inv_d_pose | ( | ) | const |
return pose displacement needed to go grom perturbed points back to ground truth.
Definition at line 137 of file msm_shape_perturber.cxx.
const vnl_vector<double>& msm_shape_perturber::max_d_params | ( | ) | const |
const vnl_vector<double>& msm_shape_perturber::max_d_pose | ( | ) | const |
const vnl_vector< double > & msm_shape_perturber::params | ( | ) | const |
return model parameters of perturbed points.
Definition at line 107 of file msm_shape_perturber.cxx.
void msm_shape_perturber::perturb | ( | const msm_points & | pts | ) |
Definition at line 30 of file msm_shape_perturber.cxx.
const msm_points & msm_shape_perturber::points | ( | ) | const |
return perturbed points.
Definition at line 147 of file msm_shape_perturber.cxx.
const vnl_vector< double > & msm_shape_perturber::pose | ( | ) | const |
return pose of perturbed points.
Definition at line 112 of file msm_shape_perturber.cxx.
double msm_shape_perturber::random_value | ( | vnl_random & | rand, |
double | max_v, | ||
double | rel_gauss_sd | ||
) | [private] |
Definition at line 162 of file msm_shape_perturber.cxx.
double msm_shape_perturber::rel_gauss | ( | ) | const |
vcl_size_t msm_shape_perturber::seed | ( | ) | const |
void msm_shape_perturber::set_max_dp | ( | const vnl_vector< double > & | max_dpose, |
const vnl_vector< double > & | max_dparams = vnl_vector<double>() |
||
) |
Definition at line 91 of file msm_shape_perturber.cxx.
void msm_shape_perturber::set_model | ( | const msm_shape_model & | in | ) |
Definition at line 11 of file msm_shape_perturber.cxx.
void msm_shape_perturber::set_rel_gauss | ( | double | val | ) |
Definition at line 102 of file msm_shape_perturber.cxx.
void msm_shape_perturber::set_seed | ( | vcl_size_t | s | ) |
Definition at line 97 of file msm_shape_perturber.cxx.
double msm_shape_perturber::trunc_normal_sample | ( | vnl_random & | rand1, |
double | sd, | ||
double | max_d | ||
) | [private] |
Definition at line 153 of file msm_shape_perturber.cxx.
vnl_vector<double> msm_shape_perturber::all_ [private] |
Definition at line 35 of file msm_shape_perturber.h.
vnl_vector<double> msm_shape_perturber::dall_ [private] |
Definition at line 35 of file msm_shape_perturber.h.
vnl_vector<double> msm_shape_perturber::dparams_ [private] |
Definition at line 34 of file msm_shape_perturber.h.
vnl_vector<double> msm_shape_perturber::dpose_ [private] |
Definition at line 33 of file msm_shape_perturber.h.
Definition at line 26 of file msm_shape_perturber.h.
vnl_vector<double> msm_shape_perturber::inv_dall_ [private] |
Definition at line 35 of file msm_shape_perturber.h.
vnl_vector<double> msm_shape_perturber::inv_dparams_ [private] |
Definition at line 34 of file msm_shape_perturber.h.
vnl_vector<double> msm_shape_perturber::inv_dpose_ [private] |
Definition at line 33 of file msm_shape_perturber.h.
vnl_vector<double> msm_shape_perturber::max_dparams_ [private] |
Definition at line 31 of file msm_shape_perturber.h.
vnl_vector<double> msm_shape_perturber::max_dpose_ [private] |
Definition at line 30 of file msm_shape_perturber.h.
vcl_size_t msm_shape_perturber::n_params_ [private] |
Definition at line 38 of file msm_shape_perturber.h.
vcl_size_t msm_shape_perturber::n_pose_ [private] |
Definition at line 37 of file msm_shape_perturber.h.
vnl_random msm_shape_perturber::rand_ [private] |
Definition at line 28 of file msm_shape_perturber.h.
double msm_shape_perturber::rel_gauss_ [private] |
Definition at line 21 of file msm_shape_perturber.h.
msm_shape_model msm_shape_perturber::sm_ [private] |
Definition at line 23 of file msm_shape_perturber.h.
Definition at line 24 of file msm_shape_perturber.h.