[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage > Class Template Reference

struct to hold a image state for stitching More...

#include <RemappedPanoImage.h>

Inheritance diagram for HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >:

Inheritance graph
[legend]
List of all members.

Public Types

typedef RemapImage::value_type image_value_type
typedef RemapImage::traverser image_traverser
typedef RemapImage::const_traverser const_image_traverser
typedef RemapImage::Accessor ImageAccessor
typedef RemapImage::ConstAccessor ConstImageAccessor
typedef AlphaImage::value_type mask_value_type
typedef AlphaImage::traverser mask_traverser
typedef AlphaImage::const_traverser const_mask_traverser
typedef AlphaImage::Accessor MaskAccessor
typedef AlphaImage::ConstAccessor ConstMaskAccessor
typedef vigra_ext::ValueTypeTraits<
image_value_type >::value_type 
component_type

Public Member Functions

 RemappedPanoImage ()
 create a remapped pano image
void setPanoImage (const SrcPanoImage &src, const PanoramaOptions &dest, vigra::Rect2D roi)
template<class DistImgType>
void calcSrcCoordImgs (DistImgType &imgX, DistImgType &imgY)
 calculate distance map.
void calcAlpha ()
 calculate only the alpha channel.
template<class ImgIter, class ImgAccessor>
void remapImage (vigra::triple< ImgIter, ImgIter, ImgAccessor > srcImg, vigra_ext::Interpolator interpol, AppBase::MultiProgressDisplay &progress)
 remap a image without alpha channel
template<class ImgIter, class ImgAccessor, class AlphaIter, class AlphaAccessor>
void remapImage (vigra::triple< ImgIter, ImgIter, ImgAccessor > srcImg, std::pair< AlphaIter, AlphaAccessor > alphaImg, vigra_ext::Interpolator interp, AppBase::MultiProgressDisplay &progress)
 remap a image, with alpha channel

Public Attributes

vigra::ImageImportInfo::ICCProfile m_ICCProfile

Protected Attributes

SrcPanoImage m_srcImg
PanoramaOptions m_destImg
PTools::Transform m_transf

Detailed Description

template<class RemapImage, class AlphaImage>
class HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >

struct to hold a image state for stitching


Member Typedef Documentation

template<class RemapImage, class AlphaImage>
typedef vigra_ext::ValueTypeTraits<image_value_type>::value_type HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::component_type
 

template<class RemapImage, class AlphaImage>
typedef RemapImage::const_traverser HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::const_image_traverser
 

template<class RemapImage, class AlphaImage>
typedef AlphaImage::const_traverser HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::const_mask_traverser
 

template<class RemapImage, class AlphaImage>
typedef RemapImage::ConstAccessor HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::ConstImageAccessor
 

template<class RemapImage, class AlphaImage>
typedef AlphaImage::ConstAccessor HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::ConstMaskAccessor
 

template<class RemapImage, class AlphaImage>
typedef RemapImage::traverser HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::image_traverser
 

Reimplemented from vigra_ext::ROIImage< RemapImage, AlphaImage >.

template<class RemapImage, class AlphaImage>
typedef RemapImage::value_type HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::image_value_type
 

Reimplemented from vigra_ext::ROIImage< RemapImage, AlphaImage >.

template<class RemapImage, class AlphaImage>
typedef RemapImage::Accessor HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::ImageAccessor
 

Reimplemented from vigra_ext::ROIImage< RemapImage, AlphaImage >.

template<class RemapImage, class AlphaImage>
typedef AlphaImage::traverser HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::mask_traverser
 

Reimplemented from vigra_ext::ROIImage< RemapImage, AlphaImage >.

template<class RemapImage, class AlphaImage>
typedef AlphaImage::value_type HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::mask_value_type
 

Reimplemented from vigra_ext::ROIImage< RemapImage, AlphaImage >.

template<class RemapImage, class AlphaImage>
typedef AlphaImage::Accessor HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::MaskAccessor
 

Reimplemented from vigra_ext::ROIImage< RemapImage, AlphaImage >.


Constructor & Destructor Documentation

template<class RemapImage, class AlphaImage>
HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::RemappedPanoImage  )  [inline]
 

create a remapped pano image

the actual remapping is done by the remapImage() function.


Member Function Documentation

template<class RemapImage, class AlphaImage>
void HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::calcAlpha  ) 
 

calculate only the alpha channel.

works for arbitrary transforms, with holes and so on, but is very crude and slow (remapps all image pixels...)

better transform all images, and get the alpha channel for free!

setPanoImage() should be called before.

template<class RemapImage, class AlphaImage>
template<class DistImgType>
void HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::calcSrcCoordImgs DistImgType &  imgX,
DistImgType &  imgY
 

calculate distance map.

pixels contain distance from image center

setPanoImage() has to be called before!

template<class RemapImage, class AlphaImage>
template<class ImgIter, class ImgAccessor, class AlphaIter, class AlphaAccessor>
void HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage vigra::triple< ImgIter, ImgIter, ImgAccessor >  srcImg,
std::pair< AlphaIter, AlphaAccessor >  alphaImg,
vigra_ext::Interpolator  interp,
AppBase::MultiProgressDisplay progress
 

remap a image, with alpha channel

template<class RemapImage, class AlphaImage>
template<class ImgIter, class ImgAccessor>
void HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage vigra::triple< ImgIter, ImgIter, ImgAccessor >  srcImg,
vigra_ext::Interpolator  interpol,
AppBase::MultiProgressDisplay progress
 

remap a image without alpha channel

template<class RemapImage, class AlphaImage>
void HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::setPanoImage const SrcPanoImage src,
const PanoramaOptions dest,
vigra::Rect2D  roi
 


Member Data Documentation

template<class RemapImage, class AlphaImage>
PanoramaOptions HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::m_destImg [protected]
 

template<class RemapImage, class AlphaImage>
vigra::ImageImportInfo::ICCProfile HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::m_ICCProfile
 

template<class RemapImage, class AlphaImage>
SrcPanoImage HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::m_srcImg [protected]
 

template<class RemapImage, class AlphaImage>
PTools::Transform HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::m_transf [protected]
 


The documentation for this class was generated from the following file:

Generated on Mon Sep 20 01:01:36 2010 for Hugintrunk by doxygen 1.3.9.1