Set of 2D points, stored in a vnl_vector (x0,y0,x1,y1...) More...
#include <msm/msm_points.h>
Go to the source code of this file.
Functions | |
void | msm_reflect_shape_along_x (const msm_points &points, const vcl_vector< unsigned > &sym_pts, msm_points &new_points, double ax=0.0) |
Reflect points in the line x=ax, then re-number. |
Set of 2D points, stored in a vnl_vector (x0,y0,x1,y1...)
Definition in file msm_reflect_shape.h.
void msm_reflect_shape_along_x | ( | const msm_points & | points, |
const vcl_vector< unsigned > & | sym_pts, | ||
msm_points & | new_points, | ||
double | ax | ||
) |
Reflect points in the line x=ax, then re-number.
On exit, new_points[i] = points[sym_pts[i]] reflected in x=ax
sym_pts[i] | defines the point symmetric with point i Renumbering necessary for symmetric shapes. For instance, if reflecting a face, the left eye becomes the right eye. This would mangle a model, so we renumber. |
On exit, new_points[i] = points[relabel[i]] reflected in x=ax
Definition at line 14 of file msm_reflect_shape.cxx.