[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

hugin_base/nona/SpaceTransform.cpp File Reference

of Space Transformation More...

#include "SpaceTransform.h"

Include dependency graph for SpaceTransform.cpp:

Include dependency graph

Namespaces

namespace  HuginBase
namespace  HuginBase::Nona

Defines

#define MAXITER   100
#define R_EPS   1.0e-6

Functions

void rotate_erect (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void inv_radial (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void resize (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void horiz (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void vert (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void radial (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void persp_sphere (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void persp_rect (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void rect_erect (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void pano_erect (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void erect_pano (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void transpano_erect (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void erect_transpano (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void sphere_tp_erect (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void rect_sphere_tp (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void sphere_tp_rect (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void sphere_tp_pano (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void pano_sphere_tp (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void erect_rect (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void erect_sphere_tp (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
void mercator_erect (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
 convert from erect to mercator
void erect_mercator (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
 convert from mercator to erect
void transmercator_erect (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
 convert from erect to transverse mercator
void erect_transmercator (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
 convert from erect to transverse mercator
void sinusoidal_erect (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
 convert from erect to sinusoidal
void erect_sinusoidal (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
 convert from sinusoidal to erect
void stereographic_erect (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
 convert from erect to stereographic
void erect_stereographic (double x_dest, double y_dest, double *x_src, double *y_src, const _FuncParams &params)
 convert from stereographic to erect
Matrix3 SetMatrix (double a, double b, double c, int cl)
double estScaleFactorForFullFrame (const SrcPanoImage &src)
 Calculate effective scaling factor for a given source image.
double estRadialScaleCrop (const vector< double > &coeff, int width, int height)
 Calculate effective scaling factor.

Detailed Description

of Space Transformation

Author:
Alexandre Jenny <alexandre.jenny@le-geo.com>
$Id$

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this software; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA


Define Documentation

#define MAXITER   100
 

#define R_EPS   1.0e-6
 


Function Documentation

void erect_mercator double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

convert from mercator to erect

void erect_pano double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

void erect_rect double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

void erect_sinusoidal double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

convert from sinusoidal to erect

void erect_sphere_tp double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

void erect_stereographic double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

convert from stereographic to erect

void erect_transmercator double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

convert from erect to transverse mercator

void erect_transpano double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

double estRadialScaleCrop const std::vector< double > &  coeff,
int  width,
int  height
 

Calculate effective scaling factor.

This function returns the smalles scale factor that has been applied

If values < 1 are returned, black borders will occur. In that case the distortion correction parameters might need to be adjusted to avoid the black borders.

Parameters:
coef1 lens distortion coefficients, including d coefficient.
width image width
height image height
Returns:
smallest r_corr / r_orig in areas that might lead to black borders.

IMPEX double HuginBase::Nona::estScaleFactorForFullFrame const SrcPanoImage &  src  ) 
 

Calculate effective scaling factor for a given source image.

void horiz double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

void inv_radial double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

void mercator_erect double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

convert from erect to mercator

void pano_erect double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

void pano_sphere_tp double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

void persp_rect double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

void persp_sphere double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

void radial double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

void rect_erect double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

void rect_sphere_tp double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

void resize double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

void rotate_erect double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

Matrix3 SetMatrix double  a,
double  b,
double  c,
int  cl
 

void sinusoidal_erect double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

convert from erect to sinusoidal

void sphere_tp_erect double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

void sphere_tp_pano double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

void sphere_tp_rect double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

void stereographic_erect double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

convert from erect to stereographic

void transmercator_erect double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

convert from erect to transverse mercator

void transpano_erect double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 

void vert double  x_dest,
double  y_dest,
double x_src,
double y_src,
const _FuncParams &  params
 


Generated on Mon Sep 20 01:01:31 2010 for Hugintrunk by doxygen 1.3.9.1