ComputeImageROI.cpp File Reference

#include "ComputeImageROI.h"
#include <algorithm>
#include <vigra/impex.hxx>
#include <nona/RemappedPanoImage.h>

Include dependency graph for ComputeImageROI.cpp:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  HuginBase

Functions

template<class TRANSFORM>
void estimateImageRect (const SrcPanoImage &src, const PanoramaOptions &dest, TRANSFORM &transf, vigra::Rect2D &imgRect)
 calculate the outline of the image
template<class TRANSFORM>
void estimateImageAlpha (const SrcPanoImage &src, const PanoramaOptions &dest, TRANSFORM &transf, vigra::Rect2D &imgRect, vigra::BImage &alpha, double &scale)
vigra::Rect2D estimateOutputROI (const PanoramaData &pano, const PanoramaOptions &opts, unsigned i)


Function Documentation

template<class TRANSFORM>
void HuginBase::estimateImageAlpha const SrcPanoImage &  src,
const PanoramaOptions &  dest,
TRANSFORM &  transf,
vigra::Rect2D &  imgRect,
vigra::BImage &  alpha,
double &  scale
 

Definition at line 63 of file ComputeImageROI.cpp.

References hugin_utils::ceili(), DEBUG_DEBUG, hugin_utils::FDiff2D, hugin_utils::floori(), HuginBase::PanoramaOptions::getROI(), HuginBase::PanoramaOptions::getSize(), HuginBase::SrcPanoImage::hasActiveMasks(), HuginBase::SrcPanoImage::isInsideMasks(), celeste::min(), HuginBase::SrcPanoImage::resize(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.

template<class TRANSFORM>
void HuginBase::estimateImageRect const SrcPanoImage &  src,
const PanoramaOptions &  dest,
TRANSFORM &  transf,
vigra::Rect2D &  imgRect
 

calculate the outline of the image

Parameters:
src description of source picture
dest description of output picture (panorama)
imgRect output: position of image in panorama.

Definition at line 238 of file ComputeImageROI.cpp.

References HuginBase::Nona::estimateImageAlpha().

IMPEX vigra::Rect2D HuginBase::estimateOutputROI const PanoramaData &  pano,
const PanoramaOptions &  opts,
unsigned  i
 

Definition at line 246 of file ComputeImageROI.cpp.

References HuginBase::PTools::Transform::createTransform(), HuginBase::Nona::estimateImageRect(), and HuginBase::PanoramaData::getSrcImage().

Referenced by AddGeometricControlPoint(), HuginBase::ComputeImageROI::computeROIS(), HuginBase::getImagesinROI(), HuginBase::SmallRemappedImageCache::getRemapped(), and PanoDetector::loadProject().


Generated on Wed Jul 16 01:25:43 2014 for Hugintrunk by  doxygen 1.3.9.1