37 std::vector<UIntSet> result;
85 for (UIntSet::const_iterator
it = stack.begin();
it != stack.end(); ++
it)
89 result.push_back(stack);
103 std::vector<UIntSet> result;
133 result.push_back(
layer);
150 for (UIntSet::const_iterator
it = activeImages.begin();
it != activeImages.end(); ++
it)
153 if (!(
roi.isEmpty()))
174 std::vector<HuginBase::UIntVector> stacks;
201 for (
size_t i = 0;
i <
images.size(); ++
i)
217 unsigned int refImage;
224 refImage = *images.begin();
228 std::copy(images.begin(), images.end(), std::back_inserter(
subpanoImages));
definitions of classes to calculate overlap between different images
declaration of functions to handle stacks and layers
Somewhere to specify what variables belong to what.
class for calculating overlap of images
Make an ImageVariableGroup for lenses and other common concepts.
UIntVector GetTranslatedImageNumbers(const UIntVector &translatedImgNumbers) const
virtual void Visit(const size_t vertex, const HuginBase::UIntSet &visitedNeighbors, const HuginBase::UIntSet &unvisitedNeighbors)
virtual const PanoramaOptions & getOptions() const =0
returns the options for this panorama
virtual PanoramaData * getNewSubset(const UIntSet &imgs) const =0
virtual const SrcPanoImage & getImage(std::size_t nr) const =0
get a panorama image, counting starts with 0
const vigra::Rect2D & getROI() const
double outputStacksMinOverlap
void setROI(const vigra::Rect2D &val)
double outputLayersExposureDiff
const SrcPanoImage & getImage(std::size_t nr) const
get a panorama image, counting starts with 0
std::size_t getNrOfImages() const
number of images.
abstract base functor for breadth first search in ImageGraph
class to work with images graphs created from a HuginBase::Panorama class it creates a graph based on...
mainly consists of wrapper around the pano tools library, to assist in ressource management and to pr...
std::vector< unsigned int > UIntVector
vigra::Rect2D estimateOutputROI(const PanoramaData &pano, const PanoramaOptions &opts, unsigned i, const double maxLength)
UIntVector getEstimatedBlendingOrder(const PanoramaData &pano, const UIntSet &images, const unsigned int referenceImage)
returns vector of image numbers for blending in approbiate order
std::vector< HuginBase::UIntVector > getSortedStacks(const HuginBase::Panorama *pano)
returns vector of UIntVector with image numbers of each stack sorted by exposure
std::vector< UIntSet > UIntSetVector
UIntSet getImagesinROI(const PanoramaData &pano, const UIntSet activeImages)
returns set of images which are visible in output ROI
std::set< unsigned int > UIntSet
std::vector< UIntSet > getHDRStacks(const PanoramaData &pano, UIntSet allImgs, PanoramaOptions opts)
returns vector of set of output stacks
std::vector< UIntSet > getExposureLayers(const PanoramaData &pano, UIntSet allImgs, PanoramaOptions opts)
returns vector of set of output exposure layers
bool set_contains(const _Container &c, const typename _Container::key_type &key)
const HuginBase::Panorama * m_pano
bool operator()(const size_t &img1, const size_t &img2)
SortVectorByExposure(const HuginBase::Panorama *pano)
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.