[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

deghosting::Khan< PixelType > Class Template Reference

#include <khan.h>

Inheritance diagram for deghosting::Khan< PixelType >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Khan (std::vector< std::string > &inputFiles, const uint16_t flags, const uint16_t debugFlags, int iterations, double sigma, int verbosity)
 Khan (std::vector< ImageImportInfo > &inputFiles, const uint16_t flags, const uint16_t debugFlags, int iterations, double sigma, int verbosity)
std::vector< FImagePtrcreateWeightMasks ()
 create weight masks create weight masks for masking out ghosting regions
 ~Khan ()

Protected Types

typedef ImageTypes< PixelType
>::ImageType 
ImageType
typedef ImageTypes< PixelType
>::ProcessImageType 
ProcessImageType
typedef ImageTypes< PixelType
>::ProcessImageType::traverser 
ProcessImageTraverser
typedef ImageTypes< PixelType
>::ProcessImageType::PixelType 
ProcessImagePixelType
typedef ImageTypes< PixelType
>::ProcessImageTypePtr 
ProcessImageTypePtr
typedef NumericTraits< PixelType
>::isScalar 
srcIsScalar

Protected Member Functions

void setSigma (double sigma)
 set sigma sets sigma for gaussian weigting function
float Kh (ProcessImagePixelType x)
 kernel function Standard probability density function
void convertImage (ImageType *in, ProcessImageTypePtr &out, VigraFalseType)
 convert image for internal use if input image is RGB then convert it to L*a*b if input image is grayscale then only copy image
void convertImage (ImageType *in, ProcessImageTypePtr &out, VigraTrueType)
void importRGBImage (ImageImportInfo &info, ImageType *img, VigraFalseType)
 import RGB image
void importRGBImage (ImageImportInfo &info, ImageType *img, VigraTrueType)
void preprocessImage (unsigned int i, FImagePtr &weight, ProcessImageTypePtr &output)
 function to preprocess input image This function loads image, linearize it using EMoR (FIXME), tranform it using logarithm or gamma if input images are HDR

Protected Attributes

double PIPOW
double denom
double sigma
std::vector< ProcessImageTypePtrprocessImages
std::vector< FImagePtrweights

template<class PixelType>
class deghosting::Khan< PixelType >


Member Typedef Documentation

template<class PixelType>
typedef ImageTypes<PixelType>::ImageType deghosting::Khan< PixelType >::ImageType [protected]
 

Reimplemented from deghosting::ImageTypes< PixelType >.

template<class PixelType>
typedef ImageTypes<PixelType>::ProcessImageType::PixelType deghosting::Khan< PixelType >::ProcessImagePixelType [protected]
 

template<class PixelType>
typedef ImageTypes<PixelType>::ProcessImageType::traverser deghosting::Khan< PixelType >::ProcessImageTraverser [protected]
 

template<class PixelType>
typedef ImageTypes<PixelType>::ProcessImageType deghosting::Khan< PixelType >::ProcessImageType [protected]
 

Reimplemented from deghosting::ImageTypes< PixelType >.

template<class PixelType>
typedef ImageTypes<PixelType>::ProcessImageTypePtr deghosting::Khan< PixelType >::ProcessImageTypePtr [protected]
 

Reimplemented from deghosting::ImageTypes< PixelType >.

template<class PixelType>
typedef NumericTraits<PixelType>::isScalar deghosting::Khan< PixelType >::srcIsScalar [protected]
 


Constructor & Destructor Documentation

template<class PixelType>
deghosting::Khan< PixelType >::Khan std::vector< std::string > &  inputFiles,
const uint16_t  flags,
const uint16_t  debugFlags,
int  iterations,
double  sigma,
int  verbosity
 

template<class PixelType>
deghosting::Khan< PixelType >::Khan std::vector< ImageImportInfo > &  inputFiles,
const uint16_t  flags,
const uint16_t  debugFlags,
int  iterations,
double  sigma,
int  verbosity
 

template<class PixelType>
deghosting::Khan< PixelType >::~Khan  )  [inline]
 


Member Function Documentation

template<class PixelType>
void deghosting::Khan< PixelType >::convertImage ImageType in,
ProcessImageTypePtr out,
VigraTrueType 
[protected]
 

template<class PixelType>
void deghosting::Khan< PixelType >::convertImage ImageType in,
ProcessImageTypePtr out,
VigraFalseType 
[protected]
 

convert image for internal use if input image is RGB then convert it to L*a*b if input image is grayscale then only copy image

template<class PixelType>
std::vector< FImagePtr > deghosting::Khan< PixelType >::createWeightMasks  )  [virtual]
 

create weight masks create weight masks for masking out ghosting regions

Implements deghosting::Deghosting.

template<class PixelType>
void deghosting::Khan< PixelType >::importRGBImage ImageImportInfo &  info,
ImageType img,
VigraTrueType 
[protected]
 

template<class PixelType>
void deghosting::Khan< PixelType >::importRGBImage ImageImportInfo &  info,
ImageType img,
VigraFalseType 
[protected]
 

import RGB image

template<class PixelType>
float deghosting::Khan< PixelType >::Kh ProcessImagePixelType  x  )  [inline, protected]
 

kernel function Standard probability density function

template<class PixelType>
void deghosting::Khan< PixelType >::preprocessImage unsigned int  i,
FImagePtr weight,
ProcessImageTypePtr output
[protected]
 

function to preprocess input image This function loads image, linearize it using EMoR (FIXME), tranform it using logarithm or gamma if input images are HDR

template<class PixelType>
void deghosting::Khan< PixelType >::setSigma double  sigma  )  [protected]
 

set sigma sets sigma for gaussian weigting function


Member Data Documentation

template<class PixelType>
double deghosting::Khan< PixelType >::denom [protected]
 

template<class PixelType>
double deghosting::Khan< PixelType >::PIPOW [protected]
 

template<class PixelType>
std::vector<ProcessImageTypePtr> deghosting::Khan< PixelType >::processImages [protected]
 

template<class PixelType>
double deghosting::Khan< PixelType >::sigma [protected]
 

template<class PixelType>
std::vector<FImagePtr> deghosting::Khan< PixelType >::weights [protected]
 


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

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