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

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(), ImageType, vigra::importImageAlpha(), celeste::info(), HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::m_ICCProfile, HuginBase::Nona::FileRemapper< ImageType, AlphaType >::m_remapped, celeste::max(), HuginBase::Nona::remapImage(), HuginBase::PanoramaOptions::remapUsingGPU, vigra_ext::ROIImage< Image, Mask >::resize(), AppBase::MultiProgressDisplay::setMessage(), and vigra_ext::transformImage().

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 >::getRemapped().


The documentation for this class was generated from the following file:
Generated on Tue Sep 16 01:25:49 2014 for Hugintrunk by  doxygen 1.3.9.1