Hugintrunk
0.1
|
#include <iostream>
#include <string>
#include <cstring>
#include <cstdio>
#include <hugin_config.h>
#include <hugin_utils/utils.h>
#include <vigra/impex.hxx>
#include "deghosting.h"
#include "support.h"
#include "threshold.h"
#include "denoise.h"
#include "khan.h"
#include <getopt.h>
Go to the source code of this file.
Functions | |
static deghosting::EMoR | response (0.0f) |
void | parseOptions_advanced (char *optarg) |
function handling advanced options More... | |
void | parseOptions_save (char *optarg) |
function handling save options More... | |
static void | usage () |
int | main (int argc, char *argv[]) |
Variables | |
static const uint16_t | SAVE_GENWEIGHTS = 1 |
Tool for creating b/w alpha masks to eliminate ghosting artifacts Copyright (C) 2009 Lukáš Jirkovský l.jir kovs ky@gm ail. comMore... | |
static const uint16_t | OTHER_GRAY = 2 |
static int | iterations = 4 |
static double | sigma = 30 |
static uint16_t | flags = deghosting::ADV_ONLYP + deghosting::ADV_MULTIRES |
static uint16_t | otherFlags = 0 |
static uint16_t | otherThresholdFlags = 0 |
static uint16_t | debugFlags = 0 |
static int | verbosity = 0 |
static double | thresholdLim = 150 |
static double | contrast = 1.3 |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 137 of file deghosting_mask.cpp.
References contrast, deghosting::Khan< PixelType >::createWeightMasks(), debugFlags, vigra_ext::destImage(), flags, deghosting::Deghosting::getInputROIs(), deghosting::Deghosting::getOutputROI(), iterations, OTHER_GRAY, otherFlags, otherThresholdFlags, parseOptions_advanced(), parseOptions_save(), response(), SAVE_GENWEIGHTS, sigma, simpleDenoise(), vigra_ext::srcImageRange(), hugin_utils::stripExtension(), hugin_utils::stripPath(), threshold(), thresholdLim, vigra_ext::transformImage(), usage(), and verbosity.
void parseOptions_advanced | ( | char * | optarg | ) |
function handling advanced options
Definition at line 63 of file deghosting_mask.cpp.
References deghosting::ADV_GAMMA, deghosting::ADV_MULTIRES, deghosting::ADV_ONLYP, flags, OTHER_GRAY, otherFlags, otherThresholdFlags, and THRESHOLD_DONTCARE.
Referenced by main().
void parseOptions_save | ( | char * | optarg | ) |
function handling save options
Definition at line 90 of file deghosting_mask.cpp.
References debugFlags, otherFlags, SAVE_GENWEIGHTS, and deghosting::SAVE_INITWEIGHTS.
Referenced by main().
|
static |
Referenced by celeste::getCelesteControlPoints(), main(), and celeste::ProcessChannel().
|
static |
Definition at line 106 of file deghosting_mask.cpp.
References contrast, hugin_utils::GetHuginVersion(), iterations, sigma, and thresholdLim.
|
static |
Definition at line 59 of file deghosting_mask.cpp.
|
static |
Definition at line 55 of file deghosting_mask.cpp.
Referenced by deghosting::Khan< PixelType >::createWeightMasks(), main(), and parseOptions_save().
|
static |
Definition at line 52 of file deghosting_mask.cpp.
Referenced by CheckLensStacks(), deghosting::Khan< PixelType >::createWeightMasks(), VertexCoordRemapper::Tree::GetInputCoordinates(), VertexCoordRemapper::Tree::GetNext(), VertexCoordRemapper::Tree::GetTransform(), wxcode::wxTreeListCtrl::HitTest(), wxcode::wxTreeListMainWindow::HitTest(), main(), wxcode::wxTreeListMainWindow::OnChar(), ImagesTreeCtrl::OnLeftDblClick(), ImagesTreeCtrl::OnLeftDown(), ImagesTreeCtrl::OnLeftUp(), FindPanoDialog::OnListMouseMove(), wxcode::wxTreeListMainWindow::OnMouse(), ImagesTreeCtrl::OnMouseMove(), wxcode::wxTreeListHeaderWindow::OnPaint(), parseOptions_advanced(), deghosting::Khan< PixelType >::preprocessImage(), VertexCoordRemapper::TestSubdivide(), and ImagesTreeCtrl::UpdateImageText().
|
static |
Definition at line 50 of file deghosting_mask.cpp.
Referenced by deghosting::Khan< PixelType >::createWeightMasks(), main(), and usage().
|
static |
Definition at line 47 of file deghosting_mask.cpp.
Referenced by main(), and parseOptions_advanced().
|
static |
Definition at line 53 of file deghosting_mask.cpp.
Referenced by main(), parseOptions_advanced(), and parseOptions_save().
|
static |
Definition at line 54 of file deghosting_mask.cpp.
Referenced by main(), and parseOptions_advanced().
|
static |
Tool for creating b/w alpha masks to eliminate ghosting artifacts Copyright (C) 2009 Lukáš Jirkovský l.jir kovs ky@gm ail. com
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Definition at line 46 of file deghosting_mask.cpp.
Referenced by main(), and parseOptions_save().
|
static |
Definition at line 51 of file deghosting_mask.cpp.
Referenced by SigmaMeanStacker< ValueType >::getResult(), lfeat::Givens(), celeste::GaborJet::Initialize(), deghosting::Khan< PixelType >::Kh(), deghosting::Khan< PixelType >::Khan(), main(), HDRMergeOptionsDialog::SetCommandLineArgument(), deghosting::Khan< PixelType >::setSigma(), celeste::sigmoid_train(), StackImagesAndMask(), and usage().
|
static |
Definition at line 58 of file deghosting_mask.cpp.
|
static |
Definition at line 57 of file deghosting_mask.cpp.
Referenced by deghosting::Khan< PixelType >::createWeightMasks(), and main().