Functions
contrib/mul/m23d/m23d_make_ortho_projection.cxx File Reference

Return 2 x 3 projection matrix based on viewing from angle (a,b) More...

#include "m23d_make_ortho_projection.h"
#include <m23d/m23d_rotation_matrix.h>

Go to the source code of this file.

Functions

vnl_matrix< double > m23d_make_ortho_projection (double Ax, double Ay, double Az)
 Return 2 x 3 projection matrix based on viewing from angle (Ax,Ay,Az).
vnl_matrix< double > m23d_make_ortho_projection (vnl_random &r, unsigned ns, unsigned nm, bool first_is_identity, bool basis_true)
 Return projection matrix combination for ns shapes, nm modes.

Detailed Description

Return 2 x 3 projection matrix based on viewing from angle (a,b)

Author:
Tim Cootes

Definition in file m23d_make_ortho_projection.cxx.


Function Documentation

vnl_matrix<double> m23d_make_ortho_projection ( double  Ax,
double  Ay,
double  Az 
)

Return 2 x 3 projection matrix based on viewing from angle (Ax,Ay,Az).

If Ax=Ay=Az, then returns matrix (I|0)

Definition at line 11 of file m23d_make_ortho_projection.cxx.

vnl_matrix<double> m23d_make_ortho_projection ( vnl_random r,
unsigned  ns,
unsigned  nm = 0,
bool  first_is_identity = false,
bool  basis_true = false 
)

Return projection matrix combination for ns shapes, nm modes.

Matrix is 2*ns x 3*(1+nm) in size The i,j-th sub matrix of size 2x3 corresponds to w_ij * P_i, where P_i is a projection matrix for shape i, and w_ij is the weight for the j-th shape basis.

Parameters:
first_is_identityWhen true, projection for first shape is scaled identity
basis_trueWhen true, w_ij=(i==j) if i<=nm (ie first shapes define a basis)

Definition at line 18 of file m23d_make_ortho_projection.cxx.