Hugintrunk
0.1
|
#include <khan.h>
Public Member Functions | |
Khan (std::vector< std::string > &inputFiles, const uint16_t flags, const uint16_t debugFlags, int iterations, double sigma, int verbosity) | |
virtual std::vector< FImagePtr > | createWeightMasks () override |
create weight masks create weight masks for masking out ghosting regions More... | |
~Khan () | |
Public Member Functions inherited from deghosting::Deghosting | |
Deghosting () | |
virtual void | loadImages (std::vector< std::string > &inputFiles) |
load images for processing More... | |
virtual void | setFlags (const uint16_t flags) |
set advanced flags Allows to change behavior of used algorithm More... | |
virtual void | setDebugFlags (const uint16_t debugFlags) |
set flags for debugging purposes More... | |
virtual void | setIterationNum (const int iterations) |
set number of iterations More... | |
virtual void | setCameraResponse (EMoR response) |
set camera response function set camera response function in EMoR format More... | |
virtual void | setVerbosity (int verbosity) |
set verbosity level More... | |
virtual | ~Deghosting () |
vigra::Rect2D | getOutputROI () const |
std::vector< vigra::Rect2D > | getInputROIs () const |
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 vigra::NumericTraits < PixelType >::isScalar | srcIsScalar |
Protected Member Functions | |
void | setSigma (double sigma) |
set sigma sets sigma for gaussian weigting function More... | |
float | Kh (ProcessImagePixelType x) |
transform image using EMoR response More... | |
void | convertImage (ImageType *in, ProcessImageTypePtr &out, vigra::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 More... | |
void | convertImage (ImageType *in, ProcessImageTypePtr &out, vigra::VigraTrueType) |
void | importRGBImage (vigra::ImageImportInfo &info, ImageType *img, vigra::VigraFalseType) |
import RGB image More... | |
void | importRGBImage (vigra::ImageImportInfo &info, ImageType *img, vigra::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 More... | |
Protected Attributes | |
double | PIPOW |
double | denom |
double | sigma |
std::vector< ProcessImageTypePtr > | processImages |
std::vector< FImagePtr > | weights |
Protected Attributes inherited from deghosting::Deghosting | |
std::vector < vigra::ImageImportInfo > | inputFiles |
std::vector< vigra::Rect2D > | m_inputROI |
uint16_t | flags |
uint16_t | debugFlags |
int | iterations |
EMoR | response |
int | verbosity |
vigra::Rect2D | m_outputROI |
Additional Inherited Members | |
Private Types inherited from deghosting::ImageTypes< PixelType > | |
typedef vigra::FImage | ImageType |
typedef std::shared_ptr < ImageType > | ImagePtr |
typedef vigra::BasicImage< float > | ProcessImageType |
typedef std::shared_ptr < ProcessImageType > | ProcessImageTypePtr |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
deghosting::Khan< PixelType >::Khan | ( | std::vector< std::string > & | inputFiles, |
const uint16_t | flags, | ||
const uint16_t | debugFlags, | ||
int | iterations, | ||
double | sigma, | ||
int | verbosity | ||
) |
Definition at line 139 of file khan.h.
References deghosting::Deghosting::loadImages(), PI, deghosting::Deghosting::response, deghosting::Deghosting::setDebugFlags(), deghosting::Deghosting::setFlags(), deghosting::Deghosting::setIterationNum(), deghosting::Deghosting::setVerbosity(), and sigma.
|
inline |
|
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
Definition at line 212 of file khan.h.
References vigra_ext::destImage(), vigra_ext::srcImageRange(), and vigra_ext::transformImage().
|
protected |
Definition at line 219 of file khan.h.
References vigra::omp::copyImage(), vigra_ext::destImage(), and vigra_ext::srcImageRange().
|
overridevirtual |
create weight masks create weight masks for masking out ghosting regions
Implements deghosting::Deghosting.
Definition at line 301 of file khan.h.
References deghosting::ADV_MULTIRES, deghosting::ADV_ONLYP, debugFlags, vigra_ext::destImage(), vigra_ext::destImageRange(), flags, iterations, NEIGHB_DIST, deghosting::SAVE_INITWEIGHTS, vigra_ext::srcImageRange(), vigra_ext::transformImage(), verbosity, and X.
Referenced by main().
|
protected |
import RGB image
Definition at line 242 of file khan.h.
References vigra_ext::destImage(), and vigra::importImageAlpha().
|
protected |
Definition at line 225 of file khan.h.
References vigra_ext::destImage(), vigra::importImageAlpha(), vigra_ext::log(), vigra_ext::srcImageRange(), and vigra_ext::transformImage().
|
inlineprotected |
|
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
Definition at line 254 of file khan.h.
References deghosting::ADV_GAMMA, vigra_ext::destImage(), flags, vigra_ext::srcImageRange(), and vigra_ext::transformImage().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |