Hugin trunk 0.1
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | Protected Attributes | Private Types | List of all members
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

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 Types inherited from vigra_ext::ROIImage< RemapImage, AlphaImage >
typedef Image::value_type image_value_type
 
typedef Image::traverser image_traverser
 
typedef Image::const_traverser image_const_traverser
 
typedef Image::Accessor ImageAccessor
 
typedef Image::ConstAccessor ImageConstAccessor
 
typedef Mask::value_type mask_value_type
 
typedef Mask::traverser mask_traverser
 
typedef Mask::const_traverser mask_const_traverser
 
typedef Mask::Accessor MaskAccessor
 
typedef Mask::ConstAccessor MaskConstAccessor
 

Public Member Functions

 RemappedPanoImage ()
 create a remapped pano image
 
void setPanoImage (const SrcPanoImage &src, const PanoramaOptions &dest, vigra::Rect2D roi)
 
void setAdvancedOptions (const AdvancedOptions &advancedOptions)
 
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::ProgressDisplay *progress, bool singleThreaded=false)
 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::ProgressDisplay *progress, bool singleThreaded=false)
 remap a image, with alpha channel
 
- Public Member Functions inherited from vigra_ext::ROIImage< RemapImage, AlphaImage >
 ROIImage ()
 ctor.
 
virtual ~ROIImage ()
 dtor.
 
void resize (const vigra::Rect2D &rect)
 resize the image
 
image_traverser upperLeft ()
 returns an traverser to the upper left of the image, this is usually outside of the rectangle.
 
image_const_traverser upperLeft () const
 
image_traverser lowerRight ()
 
image_const_traverser lowerRight () const
 
ImageAccessor accessor ()
 return the accessor of this image
 
ImageConstAccessor accessor () const
 
mask_traverser maskUpperLeft ()
 returns an traverser to the upper left of the image, this is usually outside of the rectangle.
 
mask_const_traverser maskUpperLeft () const
 
mask_traverser maskLowerRight ()
 
mask_const_traverser maskLowerRight () const
 
MaskAccessor maskAccessor ()
 return the accessor of the alpha channel
 
MaskConstAccessor maskAccessor () const
 
vigra::Rect2D & boundingBox ()
 
image_value_type operator() (int x, int y)
 
image_value_type operator[] (vigra::Diff2D const &pos)
 
mask_value_type getMask (int x, int y)
 
mask_value_type getMask (const vigra::Diff2D &pos)
 

Public Attributes

vigra::ImageImportInfo::ICCProfile m_ICCProfile
 
- Public Attributes inherited from vigra_ext::ROIImage< RemapImage, AlphaImage >
RemapImage m_image
 remapped image
 
AlphaImage m_mask
 corresponding alpha channel
 

Protected Attributes

SrcPanoImage m_srcImg
 
PanoramaOptions m_destImg
 
PTools::Transform m_transf
 
AdvancedOptions m_advancedOptions
 
- Protected Attributes inherited from vigra_ext::ROIImage< RemapImage, AlphaImage >
vigra::Rect2D m_region
 bounding rectangle of the image
 

Private Types

typedef vigra_ext::ROIImage< RemapImage, AlphaImageBase
 

Detailed Description

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

struct to hold a image state for stitching

Definition at line 80 of file RemappedPanoImage.h.

Member Typedef Documentation

◆ Base

Definition at line 83 of file RemappedPanoImage.h.

◆ component_type

Definition at line 99 of file RemappedPanoImage.h.

◆ const_image_traverser

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

Definition at line 89 of file RemappedPanoImage.h.

◆ const_mask_traverser

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

Definition at line 95 of file RemappedPanoImage.h.

◆ ConstImageAccessor

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

Definition at line 91 of file RemappedPanoImage.h.

◆ ConstMaskAccessor

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

Definition at line 97 of file RemappedPanoImage.h.

◆ image_traverser

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

Definition at line 88 of file RemappedPanoImage.h.

◆ image_value_type

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

Definition at line 87 of file RemappedPanoImage.h.

◆ ImageAccessor

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

Definition at line 90 of file RemappedPanoImage.h.

◆ mask_traverser

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

Definition at line 94 of file RemappedPanoImage.h.

◆ mask_value_type

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

Definition at line 93 of file RemappedPanoImage.h.

◆ MaskAccessor

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

Definition at line 96 of file RemappedPanoImage.h.

Constructor & Destructor Documentation

◆ RemappedPanoImage()

create a remapped pano image

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

Definition at line 107 of file RemappedPanoImage.h.

Member Function Documentation

◆ 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.

Definition at line 378 of file RemappedPanoImage.h.

References hugin_utils::roundi(), and threshold().

◆ calcSrcCoordImgs()

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!

Definition at line 332 of file RemappedPanoImage.h.

References hugin_utils::roundi(), and threshold().

◆ remapImage() [1/2]

void HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage ( vigra::triple< ImgIter, ImgIter, ImgAccessor srcImg,
std::pair< AlphaIter, AlphaAccessor alphaImg,
vigra_ext::Interpolator  interp,
AppBase::ProgressDisplay progress,
bool  singleThreaded = false 
)

◆ remapImage() [2/2]

void HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage ( vigra::triple< ImgIter, ImgIter, ImgAccessor srcImg,
vigra_ext::Interpolator  interpol,
AppBase::ProgressDisplay progress,
bool  singleThreaded = false 
)

◆ setAdvancedOptions()

void HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::setAdvancedOptions ( const AdvancedOptions advancedOptions)
inline

◆ setPanoImage()

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

Definition at line 212 of file RemappedPanoImage.h.

References DEBUG_DEBUG, and threshold().

Referenced by HuginBase::CalculateFOV::calcFOV().

Member Data Documentation

◆ m_advancedOptions

◆ m_destImg

Definition at line 161 of file RemappedPanoImage.h.

◆ m_ICCProfile

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

◆ m_srcImg

Definition at line 160 of file RemappedPanoImage.h.

◆ m_transf

Definition at line 162 of file RemappedPanoImage.h.


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