26#include "hugin_config.h"
35#if defined HAVE_EPOXY && HAVE_EPOXY
43#include <OpenGL/glu.h>
56#define circle_ts_multiple 4
57#define circle_ts (rect_ts * circle_ts_multiple)
58#define circle_middle ((float) (circle_ts - 1) / 2.0)
59#define circle_border_outer (circle_middle - 0.5 * (float) circle_ts_multiple)
60#define circle_border_inner (circle_middle - 2.5 * (float) circle_ts_multiple)
61#define circle_border_peak (circle_middle - 1.5 * (float) circle_ts_multiple)
70#define FONT_TEXTURE_HEIGHT 75
80 dc.DrawText(
"0123456789", 0, 0);
83 for (
int i = 0;
i < 10; ++
i)
119 for (
unsigned int x = 0; x <
rect_ts; x++)
121 for (
unsigned int y = 0; y <
rect_ts; y++)
127 for (
unsigned int x = 2; x <
rect_ts - 2; x++)
129 for (
unsigned int y = 2; y <
rect_ts - 2; y++)
135 for (
unsigned int d = 1;
d <
rect_ts - 1;
d++)
165 for (
unsigned int x = 0; x <
circle_ts; x++)
167 for (
unsigned int y = 0; y <
circle_ts; y++)
213 const unsigned char value = image.GetRed(x, y);
317 if (
m_stopUpdating && !e.LeftIsDown() && !e.MiddleIsDown() && !e.RightIsDown()) {
439 int width =
src->getSize().width(), height =
src->getSize().height();
442 switch (
src->getCropMode())
521 for (
size_t i = 0;
i <
number.Length(); ++
i)
530 glScalef(scaleFactor, scaleFactor, 1.0);
589 unsigned char &
green,
594 float hue = ((
float) index / (
float) count) * 6.0;
601 }
else if (
hue < 2.0) {
606 }
else if (
hue < 3.0) {
611 }
else if (
hue < 4.0) {
616 }
else if (
hue < 5.0) {
663 if (e.ButtonUp() && !e.MiddleIsDown() && !e.RightIsDown()) {
The OpenGL preview frame.
void UpdateIdentifyTools(std::set< unsigned int > new_image_set)
void SetImageButtonColour(unsigned int image_nr, unsigned char red, unsigned char green, unsigned char blue)
unsigned int getWidth() const
unsigned int getHeight() const
get panorama height
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
void ShowMaskEditor(size_t imgNr, bool switchToCropMode=false)
opens the mask/crop editor with the given image selected
void BindTexture(unsigned int image_number)
bool GetSupportMultiTexture() const
HuginBase::PanoramaOptions * GetOptions()
HuginBase::SrcPanoImage * GetSrcImage(unsigned int image_nr)
TextureManager * GetTextureManager()
void ForceRequireRedraw()
unsigned int GetMeshDisplayList(unsigned int image_nr)
#define DEBUG_ASSERT(cond)
std::set< unsigned int > UIntSet
include file for the hugin project
include file for the hugin project
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.