Hugin trunk 0.1
Loading...
Searching...
No Matches
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
37{
38public:
41 void Activate() override;
42 void Deactivate() override;
44 void MouseButtonEvent(wxMouseEvent &e) override;
45private:
46 double m_red;
47 double m_blue;
48 unsigned int m_count;
50 void CalcCorrectionForImage(unsigned int i,vigra::Point2D pos);
51};
52
53#endif
54
The PreviewColorPickerTool allows to select a region in the panorama which should be grey.
void Activate() override
Switch on a tool.
void CalcCorrectionForImage(unsigned int i, vigra::Point2D pos)
void Deactivate() override
Switch off a tool.
void MouseButtonEvent(wxMouseEvent &e) override
process mouse button events
PreviewColorPickerTool(PreviewToolHelper *helper)
constructor
void CalcCorrection(hugin_utils::FDiff2D pos)
ToolHelper * helper
The PreviewToolHelper that uses the same preview window and panorama as the tool should.
Definition Tool.h:109
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