55 double image_width = (double)
image->getSize().width();
56 double image_height = (double)
image->getSize().height();
59 double centre_x, centre_y;
63 image_width / 2.0, image_height / 2.0);
73 bool landscape = image_width > image_height;
74 double preview_width, preview_height;
85 double offset_x = preview_width / 2.0;
86 double offset_y = preview_height / 2.0;
89 double angle =
image->getRoll() * (
M_PI / 180.0) + (
M_PI / 2.0);
90 double rsin = std::sin(angle);
91 double rcos = std::cos(angle);
93 double rsin_x = rsin * offset_x;
94 double rcos_x = rcos * offset_x;
95 double rsin_y = rsin * offset_y;
96 double rcos_y = rcos * offset_y;
An abstract base class for objects that calculate an approximate remap specified by quadrilatrials...
void setScale(double scale)
Set the size to draw the images.
A class for exchanging pointers to coordinates.
HuginBase::SrcPanoImage * image
LayoutRemapper(HuginBase::Panorama *m_pano, HuginBase::SrcPanoImage *image, VisualizationState *visualization_state)
include file for the hugin project
double(* tex_c)[2][2]
The coordinate in the source image ranging from 0 to 1.
VisualizationState * visualization_state
virtual void UpdateAndResetIndex()
HuginBase::PTools::Transform transform
A transform to use to remap the images.
include file for the hugin project
virtual HuginBase::PanoramaOptions * GetOptions()
virtual bool GetNextFaceCoordinates(Coords *result)
Get the texture and vertex coordinates for the next face.
Define a remapper to use in the layout mode.
double(* vertex_c)[2][2]
The coordinate in the panorama, in its pixel space.
All variables of a source image.