26#include "hugin_config.h"
35#include <OpenGL/glu.h>
53#define SAMPLE_FREQUENCY 12
69#define MIN_SAMPLE_OVERLAPS 16
85 m_updateStatistics(
true),
87 m_useNearestLine(
false)
103 for (
unsigned int x = 0; x <
rect_ts; x++)
105 for (
unsigned int y = 0; y <
rect_ts; y++)
111 for (
unsigned int x = 2; x <
rect_ts - 2; x++)
113 for (
unsigned int y = 2; y <
rect_ts - 2; y++)
119 for (
unsigned int d = 1;
d <
rect_ts - 1;
d++)
206 for (
unsigned int i = 0;
i <
m_lines.size();
i++)
263 for (
unsigned int i = 0;
i <
m_lines.size();
i++)
314 int width =
src.getSize().width(), height =
src.getSize().height();
317 switch (
src.getCropMode())
353 if (image == line.
image1 || image == line.
image2)
return false;
391 for (
unsigned int cpi = 0 ;
cpi < numberOfControlPoints ;
cpi++)
400 if (
cp.image1Nr <
cp.image2Nr)
442 vigra::Rect2D c = img.getCropRect();
447 *
double(c.width()) + c.left();
449 *
double(c.height()) + c.top();
501 if (
src.isInside(vigra::Point2D((
int) dx, (
int) dy)))
549 for (
unsigned int image_number = 0;
568 double(
s.x) / 2.0,
double(
s.y) / 2.0
573 double(
s.x) / 2.0,
double(
s.y) / 2.0
606 : numberOfControlPoints(0),
622 return arc.squareDistance(point);
Declare GreatCircles class.
void draw(bool withCross=true, double width=1.0) const
Draw the great circle arc on the fast preview.
represents a control point
void setProjection(ProjectionFormat f)
set the Projection format and adjust the hfov/vfov if nessecary
const SrcPanoImage & getImage(std::size_t nr) const
get a panorama image, counting starts with 0
void addObserver(PanoramaObserver *o)
add a panorama observer.
const ControlPoint & getCtrlPoint(std::size_t nr) const
get a control point, counting starts with 0
std::size_t getNrOfCtrlPoints() const
number of control points
bool removeObserver(PanoramaObserver *observer)
remove a panorama observer.
UIntSet getActiveImages() const
get active images
std::size_t getNrOfImages() const
number of images.
All variables of a source image.
static MainFrame * Get()
hack.. kind of a pseudo singleton...
void ShowCtrlPointEditor(unsigned int img1, unsigned int img2)
opens the control points tab with the both images selected
A map from image positions to panorama positions.
hugin_utils::FDiff2D * operator[](std::size_t index)
hugin_utils::FDiff2D data[SAMPLE_FREQUENCY][SAMPLE_FREQUENCY]
void DrawImage(unsigned int image_number, unsigned int display_list)
void DisableTexture(bool maskOnly=false)
HuginBase::PanoramaOptions * GetOptions()
HuginBase::SrcPanoImage * GetSrcImage(unsigned int image_nr)
TextureManager * GetTextureManager()
void ForceRequireRedraw()
unsigned int GetMeshDisplayList(unsigned int image_nr)
std::set< unsigned int > UIntSet
void ControlPointErrorColour(const double cperr, double &r, double &g, double &b)
include file for the hugin project
include file for the hugin project
bool set_contains(const _Container &c, const typename _Container::key_type &key)
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.