[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::FileRemapper< ImageType, AlphaType > Class Template Reference

functor to create a remapped image, loads image from disk More...

#include <ImageRemapper.h>

Inheritance diagram for HuginBase::Nona::FileRemapper< ImageType, AlphaType >:

Inheritance graph
[legend]
List of all members.

Public Types

typedef std::vector< float > LUT
 #define HUGIN_REMAP_IMGLOAD(TYPE, lut) \ { \ vigra::TYPE tmpImg(info.width(), info.height()); \ if (alpha) { \ vigra::importImageAlpha(info, vigra::destImage(tmpImg), \ vigra::destImage(srcAlpha)); \ { \ vigra::ImageExportInfo exi(DEBUG_FILE_PREFIX "hugin01_original_mask.tif"); \ vigra::exportImage(vigra::srcImageRange(srcAlpha), exi); \ } \ } else { \ vigra::importImage(info, vigra::destImage(tmpImg)); \ } \ { \ vigra::ImageExportInfo exi(DEBUG_FILE_PREFIX "hugin01_original.tif"); \ vigra::exportImage(vigra::srcImageRange(tmpImg), exi); \ } \ }

Public Member Functions

 FileRemapper ()
virtual ~FileRemapper ()
void loadImage (const PanoramaOptions &opts, vigra::ImageImportInfo &info, ImageType &srcImg, AlphaType &srcAlpha)
virtual RemappedPanoImage<
ImageType, AlphaType > * 
getRemapped (const PanoramaData &pano, const PanoramaOptions &opts, unsigned int imgNr, vigra::Rect2D outputROI, AppBase::MultiProgressDisplay &progress)
 create a remapped pano image.
virtual void release (RemappedPanoImage< ImageType, AlphaType > *d)

Protected Attributes

RemappedPanoImage< ImageType,
AlphaType > * 
m_remapped

Detailed Description

template<typename ImageType, typename AlphaType>
class HuginBase::Nona::FileRemapper< ImageType, AlphaType >

functor to create a remapped image, loads image from disk


Member Typedef Documentation

template<typename ImageType, typename AlphaType>
typedef std::vector<float> HuginBase::Nona::FileRemapper< ImageType, AlphaType >::LUT
 

#define HUGIN_REMAP_IMGLOAD(TYPE, lut) \ { \ vigra::TYPE tmpImg(info.width(), info.height()); \ if (alpha) { \ vigra::importImageAlpha(info, vigra::destImage(tmpImg), \ vigra::destImage(srcAlpha)); \ { \ vigra::ImageExportInfo exi(DEBUG_FILE_PREFIX "hugin01_original_mask.tif"); \ vigra::exportImage(vigra::srcImageRange(srcAlpha), exi); \ } \ } else { \ vigra::importImage(info, vigra::destImage(tmpImg)); \ } \ { \ vigra::ImageExportInfo exi(DEBUG_FILE_PREFIX "hugin01_original.tif"); \ vigra::exportImage(vigra::srcImageRange(tmpImg), exi); \ } \ }


Constructor & Destructor Documentation

template<typename ImageType, typename AlphaType>
HuginBase::Nona::FileRemapper< ImageType, AlphaType >::FileRemapper  )  [inline]
 

template<typename ImageType, typename AlphaType>
virtual HuginBase::Nona::FileRemapper< ImageType, AlphaType >::~FileRemapper  )  [inline, virtual]
 


Member Function Documentation

template<typename ImageType, typename AlphaType>
RemappedPanoImage< ImageType, AlphaType > * HuginBase::Nona::FileRemapper< ImageType, AlphaType >::getRemapped const PanoramaData pano,
const PanoramaOptions opts,
unsigned int  imgNr,
vigra::Rect2D  outputROI,
AppBase::MultiProgressDisplay progress
[virtual]
 

create a remapped pano image.

The image ownership is transferred to the caller.

Implements HuginBase::Nona::SingleImageRemapper< ImageType, AlphaType >.

template<typename ImageType, typename AlphaType>
void HuginBase::Nona::FileRemapper< ImageType, AlphaType >::loadImage const PanoramaOptions opts,
vigra::ImageImportInfo &  info,
ImageType srcImg,
AlphaType &  srcAlpha
[inline]
 

template<typename ImageType, typename AlphaType>
virtual void HuginBase::Nona::FileRemapper< ImageType, AlphaType >::release RemappedPanoImage< ImageType, AlphaType > *  d  )  [inline, virtual]
 

Implements HuginBase::Nona::SingleImageRemapper< ImageType, AlphaType >.


Member Data Documentation

template<typename ImageType, typename AlphaType>
RemappedPanoImage<ImageType,AlphaType>* HuginBase::Nona::FileRemapper< ImageType, AlphaType >::m_remapped [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