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

Definition at line 67 of file ImageRemapper.h.


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); \ } \ }

Definition at line 76 of file ImageRemapper.h.


Constructor & Destructor Documentation

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

Definition at line 71 of file ImageRemapper.h.

References HuginBase::Nona::FileRemapper< ImageType, AlphaType >::m_remapped.

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

Definition at line 76 of file ImageRemapper.h.


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

Definition at line 161 of file ImageRemapper.h.

References vigra_ext::destImage(), HuginBase::PanoramaOptions::getHeight(), HuginBase::PanoramaData::getImage(), vigra_ext::getMaxValForPixelType(), HuginBase::PanoramaData::getSrcImage(), HuginBase::PanoramaOptions::getWidth(), vigra::importImageAlpha(), celeste::info(), HuginBase::Nona::FileRemapper< ImageType, AlphaType >::m_remapped, celeste::max(), HuginBase::Nona::remapImage(), HuginBase::PanoramaOptions::remapUsingGPU, AppBase::MultiProgressDisplay::setMessage(), vigra_ext::srcImageRange(), hugin_utils::stripPath(), vigra_ext::transformImage(), and HuginBase::BaseSrcPanoImage::VIGCORR_FLATFIELD.

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

Definition at line 104 of file ImageRemapper.h.

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

Definition at line 116 of file ImageRemapper.h.


Member Data Documentation

template<typename ImageType, typename AlphaType>
RemappedPanoImage<ImageType,AlphaType>* HuginBase::Nona::FileRemapper< ImageType, AlphaType >::m_remapped [protected]

Definition at line 121 of file ImageRemapper.h.

Referenced by HuginBase::Nona::FileRemapper< ImageType, AlphaType >::FileRemapper(), and HuginBase::Nona::FileRemapper< ImageType, AlphaType >::getRemapped().


The documentation for this class was generated from the following file:
Generated on 5 Dec 2014 for Hugintrunk by  doxygen 1.4.7