Hugin trunk
0.1
Loading...
Searching...
No Matches
hugin1
hugin
PreviewColorPickerTool.h
Go to the documentation of this file.
1
// -*- c-basic-offset: 4 -*-
2
9
/* This program is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU General Public
11
* License as published by the Free Software Foundation; either
12
* version 2 of the License, or (at your option) any later version.
13
*
14
* This software is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
* General Public License for more details.
18
*
19
* You should have received a copy of the GNU General Public
20
* License along with this software. If not, see
21
* <http://www.gnu.org/licenses/>.
22
*
23
*/
24
25
#ifndef _PREVIEWCOLORPICKERTOOL_H
26
#define _PREVIEWCOLORPICKERTOOL_H
27
28
#include "
Tool.h
"
29
#include "
base_wx/wxutils.h
"
30
36
class
PreviewColorPickerTool
:
public
PreviewTool
37
{
38
public
:
40
explicit
PreviewColorPickerTool
(
PreviewToolHelper
*
helper
):
PreviewTool
(
helper
),
m_red
(0.0),
m_blue
(0.0),
m_count
(0) {};
41
void
Activate
()
override
;
42
void
Deactivate
()
override
;
44
void
MouseButtonEvent
(
wxMouseEvent
&e)
override
;
45
private
:
46
double
m_red
;
47
double
m_blue
;
48
unsigned
int
m_count
;
49
void
CalcCorrection
(
hugin_utils::FDiff2D
pos
);
50
void
CalcCorrectionForImage
(
unsigned
int
i
,vigra::Point2D
pos
);
51
};
52
53
#endif
54
Tool.h
PreviewColorPickerTool
The PreviewColorPickerTool allows to select a region in the panorama which should be grey.
Definition
PreviewColorPickerTool.h:37
PreviewColorPickerTool::Activate
void Activate() override
Switch on a tool.
Definition
PreviewColorPickerTool.cpp:43
PreviewColorPickerTool::m_count
unsigned int m_count
Definition
PreviewColorPickerTool.h:48
PreviewColorPickerTool::CalcCorrectionForImage
void CalcCorrectionForImage(unsigned int i, vigra::Point2D pos)
Definition
PreviewColorPickerTool.cpp:110
PreviewColorPickerTool::m_blue
double m_blue
Definition
PreviewColorPickerTool.h:47
PreviewColorPickerTool::Deactivate
void Deactivate() override
Switch off a tool.
Definition
PreviewColorPickerTool.cpp:50
PreviewColorPickerTool::m_red
double m_red
Definition
PreviewColorPickerTool.h:46
PreviewColorPickerTool::MouseButtonEvent
void MouseButtonEvent(wxMouseEvent &e) override
process mouse button events
Definition
PreviewColorPickerTool.cpp:56
PreviewColorPickerTool::PreviewColorPickerTool
PreviewColorPickerTool(PreviewToolHelper *helper)
constructor
Definition
PreviewColorPickerTool.h:40
PreviewColorPickerTool::CalcCorrection
void CalcCorrection(hugin_utils::FDiff2D pos)
Definition
PreviewColorPickerTool.cpp:72
PreviewToolHelper
Definition
ToolHelper.h:184
PreviewTool
Definition
Tool.h:114
Tool::helper
ToolHelper * helper
The PreviewToolHelper that uses the same preview window and panorama as the tool should.
Definition
Tool.h:109
hugin_utils::TDiff2D
Definition
hugin_math.h:83
threshold
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.
Definition
threshold.h:41
wxutils.h
Generated on Sun Sep 20 2026 02:45:36 for Hugin trunk by
1.9.8