57 double image_width = (double)
image->getSize().width();
58 double image_height = (double)
image->getSize().height();
61 double centre_x, centre_y;
65 image_width / 2.0, image_height / 2.0);
75 bool landscape = image_width > image_height;
76 double preview_width, preview_height;
87 double offset_x = preview_width / 2.0;
88 double offset_y = preview_height / 2.0;
91 double angle =
image->getRoll() * (
M_PI / 180.0) + (
M_PI / 2.0);
92 double rsin = std::sin(angle);
93 double rcos = std::cos(angle);
95 double rsin_x = rsin * offset_x;
96 double rcos_x = rcos * offset_x;
97 double rsin_y = rsin * offset_y;
98 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.