blend.h File Reference

#include <vigra/impex.hxx>
#include <hugin_utils/utils.h>
#include <appbase/ProgressDisplayOld.h>
#include <vigra_ext/utils.h>
#include <vigra_ext/NearestFeatureTransform.h>
#include <vigra_ext/ROIImage.h>

Include dependency graph for blend.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  vigra_ext

Functions

template<typename ImgIter, typename ImgAccessor, typename ImgMaskIter, typename ImgMaskAccessor, typename PanoIter, typename PanoAccessor, typename MaskIter, typename MaskAccessor>
void blendOverlap (vigra::triple< ImgIter, ImgIter, ImgAccessor > image, std::pair< ImgMaskIter, ImgMaskAccessor > imageMask, std::pair< PanoIter, PanoAccessor > pano, std::pair< MaskIter, MaskAccessor > panoMask, AppBase::MultiProgressDisplay &progress)
 blends two images, they overlap and the iterators point to excatly the same position.
template<typename ImageType, typename AlphaImageType, typename PanoIter, typename PanoAccessor, typename AlphaIter, typename AlphaAccessor>
void blend (vigra_ext::ROIImage< ImageType, AlphaImageType > &img, vigra::triple< PanoIter, PanoIter, PanoAccessor > pano, std::pair< AlphaIter, AlphaAccessor > alpha, vigra::Rect2D &panoROI, AppBase::MultiProgressDisplay &progress)
 blend img into pano, using alpha mask and panoROI


Detailed Description

Author:
Pablo d'Angelo <pablo.dangelo@web.de>
$Id$

This 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 software 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 Lesser General Public License for more details.

You should have received a copy of the GNU General Public License along with this software; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition in file blend.h.


Function Documentation

template<typename ImageType, typename AlphaImageType, typename PanoIter, typename PanoAccessor, typename AlphaIter, typename AlphaAccessor>
void blend vigra_ext::ROIImage< ImageType, AlphaImageType > &  img,
vigra::triple< PanoIter, PanoIter, PanoAccessor >  pano,
std::pair< AlphaIter, AlphaAccessor >  alpha,
vigra::Rect2D &  panoROI,
AppBase::MultiProgressDisplay progress
 

blend img into pano, using alpha mask and panoROI

updates pano, alpha and panoROI.

Parameters:
img is the image that should be blended,
pano destinatation image
alpha destination image alpha
panoROI used part of pano. Does not indicate the allocated part! It is supposed that pano is defined at least where img is defined.
progress Display progress there.

Definition at line 105 of file blend.h.

References vigra_ext::applyRect(), vigra_ext::blendOverlap(), vigra_ext::ROIImage< Image, Mask >::boundingBox(), DEBUG_DEBUG, vigra_ext::ROIImage< Image, Mask >::getMask(), vigra_ext::srcImageRange(), vigra_ext::srcMask(), vigra_ext::srcMaskRange(), and vigra_ext::ROIImage< Image, Mask >::upperLeft().

Referenced by HuginBase::Nona::SeamBlender::operator()(), HuginBase::Nona::SimpleStitcher< ImageType, AlphaType >::stitch(), and HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::stitch().

template<typename ImgIter, typename ImgAccessor, typename ImgMaskIter, typename ImgMaskAccessor, typename PanoIter, typename PanoAccessor, typename MaskIter, typename MaskAccessor>
void blendOverlap vigra::triple< ImgIter, ImgIter, ImgAccessor >  image,
std::pair< ImgMaskIter, ImgMaskAccessor >  imageMask,
std::pair< PanoIter, PanoAccessor >  pano,
std::pair< MaskIter, MaskAccessor >  panoMask,
AppBase::MultiProgressDisplay progress
 

blends two images, they overlap and the iterators point to excatly the same position.

Definition at line 50 of file blend.h.

References vigra_ext::destImage(), vigra_ext::nearestFeatureTransform(), and vigra_ext::srcImageRange().

Referenced by vigra_ext::blend().


Generated on Tue Sep 2 01:25:47 2014 for Hugintrunk by  doxygen 1.3.9.1