Hugin trunk 0.1
Loading...
Searching...
No Matches
deghosting.cpp
Go to the documentation of this file.
1
21#include "deghosting.h"
22
23namespace deghosting {
24
25 void Deghosting::loadImages(std::vector<std::string>& newInputFiles)
26 {
27 if (newInputFiles.empty())
28 throw NoImages();
29 const vigra::ImageImportInfo firstInfo(newInputFiles[0].c_str());
30 const vigra::Rect2D inputRect(vigra::Point2D(firstInfo.getPosition()), firstInfo.size());
31 m_inputROI.push_back(inputRect);
32 inputFiles.push_back(firstInfo);
34 for (unsigned int i = 1; i< newInputFiles.size(); i++) {
35 vigra::ImageImportInfo tmpInfo(newInputFiles[i].c_str());
36 const vigra::Rect2D inputRect(vigra::Point2D(tmpInfo.getPosition()), tmpInfo.size());
37 m_inputROI.push_back(inputRect);
38 inputFiles.push_back(tmpInfo);
40 }
41 }
42
46
50
54
58
62
63 vigra::Rect2D Deghosting::getOutputROI() const
64 {
65 return m_outputROI;
66 }
67
68 std::vector<vigra::Rect2D> Deghosting::getInputROIs() const
69 {
70 return m_inputROI;
71 }
72}
73
virtual void setVerbosity(int verbosity)
set verbosity level
virtual void setDebugFlags(const uint16_t debugFlags)
set flags for debugging purposes
std::vector< vigra::Rect2D > m_inputROI
Definition deghosting.h:105
vigra::Rect2D m_outputROI
Definition deghosting.h:111
virtual void setCameraResponse(EMoR response)
set camera response function set camera response function in EMoR format
virtual void setIterationNum(const int iterations)
set number of iterations
virtual void setFlags(const uint16_t flags)
set advanced flags Allows to change behavior of used algorithm
vigra::Rect2D getOutputROI() const
virtual void loadImages(std::vector< std::string > &inputFiles)
load images for processing
std::vector< vigra::ImageImportInfo > inputFiles
Definition deghosting.h:104
std::vector< vigra::Rect2D > getInputROIs() const
exception called when there are no input images
Definition deghosting.h:37
Implementation of basic routines for deghosting algorithms Copyright (C) 2009 Lukáš Jirkovský l....
std::vector< float > EMoR
Definition deghosting.h:48
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