Class Projection

Inheritance Relationships

Derived Types

Class Documentation

class Projection

Subclassed by lvr2::AzimuthalProjection, lvr2::ConicProjection, lvr2::CylindricalProjection, lvr2::EquirectangularProjection, lvr2::MercatorProjection, lvr2::PanniniProjection, lvr2::RectilinearProjection, lvr2::StereographicProjection

Public Functions

Projection(int width, int height, int minH, int maxH, int minV, int maxV, bool optimize, ModelToImage::CoordinateSystem system = ModelToImage::NATIVE)
virtual void project(int &i, int &j, float &r, float x, float y, float z) = 0
inline int w()
inline int h()

Protected Functions

inline void toPolar(const float point[], float polar[])
void setImageRatio()

Protected Attributes

float m_xSize
float m_ySize
float m_xFactor
float m_yFactor
int m_width
int m_height
float m_minH
float m_maxH
float m_minV
float m_maxV
bool m_optimize
ModelToImage::CoordinateSystem m_system

Protected Static Attributes

static constexpr float m_ph = 1.570796327