Macros | Functions
vgl_affine_coordinates.h File Reference

Computes 2-d and 3-d affine coordinates of point sets. More...

#include <vector>
#include <vgl/vgl_point_2d.h>
#include <vgl/vgl_point_3d.h>

Go to the source code of this file.

Macros

#define VGL_AFFINE_COORDINATES_INSTANTIATE(T)   extern "please include vgl/vgl_affine_coordinates.hxx first"
 

Functions

template<class T >
void vgl_affine_coordinates_2d (std::vector< vgl_point_2d< T > > const &pts, std::vector< vgl_point_2d< T > > &affine_pts)
 
template<class T >
void vgl_affine_coordinates_3d (std::vector< vgl_point_3d< T > > const &pts, std::vector< vgl_point_3d< T > > &affine_pts)
 
template<class T >
void vgl_affine_coordinates_3d (std::vector< vgl_point_2d< T > > const &pts1, std::vector< vgl_point_2d< T > > const &pts2, std::vector< vgl_point_3d< T > > &affine_pts)
 

Detailed Description

Computes 2-d and 3-d affine coordinates of point sets.

Author
J.L. Mundy Jan 30, 2017
  Modifications
  None

Converts points into baycentric coordinates given an affine basis For 2-d, three points are required to form the basis For 3-d, four points are required to form the basis

Definition in file vgl_affine_coordinates.h.

Macro Definition Documentation

◆ VGL_AFFINE_COORDINATES_INSTANTIATE

#define VGL_AFFINE_COORDINATES_INSTANTIATE (   T)    extern "please include vgl/vgl_affine_coordinates.hxx first"

Definition at line 46 of file vgl_affine_coordinates.h.

Function Documentation

◆ vgl_affine_coordinates_2d()

template<class T >
void vgl_affine_coordinates_2d ( std::vector< vgl_point_2d< T > > const &  pts,
std::vector< vgl_point_2d< T > > &  affine_pts 
)

Definition at line 12 of file vgl_affine_coordinates.hxx.

◆ vgl_affine_coordinates_3d() [1/2]

template<class T >
void vgl_affine_coordinates_3d ( std::vector< vgl_point_3d< T > > const &  pts,
std::vector< vgl_point_3d< T > > &  affine_pts 
)

Definition at line 34 of file vgl_affine_coordinates.hxx.

◆ vgl_affine_coordinates_3d() [2/2]

template<class T >
void vgl_affine_coordinates_3d ( std::vector< vgl_point_2d< T > > const &  pts1,
std::vector< vgl_point_2d< T > > const &  pts2,
std::vector< vgl_point_3d< T > > &  affine_pts 
)

Definition at line 66 of file vgl_affine_coordinates.hxx.