56 #ifndef __VERTEXCOORDREMAPPER_H
57 #define __VERTEXCOORDREMAPPER_H
101 unsigned int stretch_y);
133 unsigned int children[4],
134 unsigned int &num_children);
143 unsigned int GetParentId(
const unsigned int nodenum);
144 unsigned int GetParentId(
unsigned int x,
unsigned int y,
145 unsigned int row_size,
unsigned depth);
146 unsigned int GetDepth(
const unsigned int nodenum);
148 void GetPosition(
const unsigned int nodenum,
unsigned int &x,
149 unsigned int &y,
unsigned int &row_size,
150 unsigned int &depth);
152 unsigned int GetIndex(
const unsigned int x,
const unsigned int y,
153 const unsigned int row_size,
165 unsigned int GetTransform(
unsigned int src_x,
unsigned int src_y,
167 unsigned int stop_x,
unsigned int stop_y,
168 double &dest_x,
double &dest_y);
VertexCoordRemapper(HuginBase::Panorama *m_pano, HuginBase::SrcPanoImage *image, VisualizationState *visualization_state)
unsigned int GetDepth(const unsigned int nodenum)
An abstract base class for objects that calculate an approximate remap specified by quadrilatrials...
unsigned int cur_tree_node
double s_vertex_coords[2][2][2]
unsigned int GetIndex(const unsigned int x, const unsigned int y, const unsigned int row_size, unsigned int depth)
double tex_coords[2][2][2]
void SetLengthAndAngle(TreeNode *node)
A class for exchanging pointers to coordinates.
HuginBase::SrcPanoImage * image
void DiscontinuityFlip(double vertex_c[2])
void RecursiveUpdate(unsigned int node_id, unsigned int stretch_x, unsigned int stretch_y)
HuginBase::PanoramaOptions::ProjectionFormat output_projection
VisualizationState * visualization_state
unsigned int tree_node_id
TreeNode nodes[1+4+16+64+256+1024+4096]
void GetChildrenIds(const unsigned int node_num, unsigned int children[4], unsigned int &num_children)
unsigned int GetParentId(const unsigned int nodenum)
void GetInputCoordinates(unsigned int node_num, double coords[2][2][2])
void GetPosition(const unsigned int nodenum, unsigned int &x, unsigned int &y, unsigned int &row_size, unsigned int &depth)
unsigned int GetTransform(unsigned int src_x, unsigned int src_y, unsigned int depth, unsigned int stop_x, unsigned int stop_y, double &dest_x, double &dest_y)
virtual bool GetNextFaceCoordinates(Coords *result)
Get the texture and vertex coordinates for the next face.
virtual void UpdateAndResetIndex()
unsigned short int discontinuity_flags
ProjectionFormat
Projection of final panorama.
All variables of a source image.
void TestSubdivide(unsigned int node_id)
HuginBase::Panorama * m_pano