23#include "wx/msw/wrapwin.h"
26#include "hugin_config.h"
27#if defined HAVE_EPOXY && HAVE_EPOXY
30#include <OpenGL/glu.h>
38#include <OpenGL/glu.h>
45 #include <GLUT/glut.h>
61 display_list_number_canvas_outline(
glGenLists(1)),
62 display_list_number_crop_outline(
glGenLists(1))
140 double end = 1000000;
248 double mlength = (size->y > size->x) ? size->y : size->x;
279 DEBUG_ERROR(
"OverviewOutlinesTools: unknown projection")
309 for(
int h = 0 ; h <
steps ; h++) {
313 if (!(
w == 0 || h == 0 ||
w ==
steps - 1 ||
steps - 1)) {
341 bool edges[4] = {
false,
false,
false,
false};
351 if (h ==
steps - 1) {
354 for (
int i = 0 ;
i < 4 ;
i++) {
399 for (
int s = 0 ;
s < 4 ;
s++) {
436 std::vector<Rec> stack;
438 stack.push_back(
Rec(left,top,right,bottom));
441 stack.push_back(
Rec(
true,
true,
true,
true));
444 while(!stack.empty()) {
448 edge = stack[stack.size() - 1];
465 double edge1 = (
tr.val[0][0]-
tr.val[1][0])*(
tr.val[0][0]-
tr.val[1][0]) + (
tr.val[0][1]-
tr.val[1][1])*(
tr.val[0][1]-
tr.val[1][1]);
466 double edge2 = (
tr.val[1][0]-
tr.val[2][0])*(
tr.val[1][0]-
tr.val[2][0]) + (
tr.val[1][1]-
tr.val[2][1])*(
tr.val[1][1]-
tr.val[2][1]);
467 double edge3 = (
tr.val[2][0]-
tr.val[3][0])*(
tr.val[2][0]-
tr.val[3][0]) + (
tr.val[2][1]-
tr.val[3][1])*(
tr.val[2][1]-
tr.val[3][1]);
468 double edge4 = (
tr.val[3][0]-
tr.val[0][0])*(
tr.val[3][0]-
tr.val[0][0]) + (
tr.val[3][1]-
tr.val[0][1])*(
tr.val[3][1]-
tr.val[0][1]);
538 for (
int i = 0 ;
i < 4 ;
i++) {
583 for (
int s = 0 ;
s < 4 ;
s++) {
Declare GreatCircles class.
A wxWidget to display the fast preview.
VisualizationState * m_visualization_state
const vigra::Rect2D & getROI() const
PanoramaOptions::ProjectionFormat getProjection() const
ProjectionFormat
Projection of final panorama.
@ ALBERS_EQUAL_AREA_CONIC
vigra::Size2D getSize() const
get size of output image
void addObserver(PanoramaObserver *o)
add a panorama observer.
All variables of a source image.
void setSize(vigra::Size2D val)
Set the image size in pixels.
a class to handle a 3D point
virtual MeshInfo::Coord3D GetCoord3D(hugin_utils::FDiff2D &)=0
HuginBase::PanoramaOptions * GetOptions()
MeshManager * GetMeshManager()
vigra::Rect2D GetVisibleArea()
virtual HuginBase::PanoramaOptions * GetOptions()
bool RequireRecalculateViewport()
void ForceRequireRedraw()
hugin_utils::FDiff2D vertices[2]
void doGL(double width, VisualizationState *state, LineSegment *preceding=NULL, LineSegment *proceeding=NULL) const
Draw a meshed line.
Rec(double left, double top, double right, double bottom)
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.