|
Hugin trunk 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 | |
| ~Khan () | |
Public Member Functions inherited from deghosting::Deghosting | |
| Deghosting () | |
| virtual void | loadImages (std::vector< std::string > &inputFiles) |
| load images for processing | |
| virtual void | setFlags (const uint16_t flags) |
| set advanced flags Allows to change behavior of used algorithm | |
| virtual void | setDebugFlags (const uint16_t debugFlags) |
| set flags for debugging purposes | |
| virtual void | setIterationNum (const int iterations) |
| set number of iterations | |
| virtual void | setCameraResponse (EMoR response) |
| set camera response function set camera response function in EMoR format | |
| virtual void | setVerbosity (int verbosity) |
| set verbosity level | |
| 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 | |
| float | Kh (ProcessImagePixelType x) |
| transform image using EMoR response | |
| 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 | |
| void | convertImage (ImageType *in, ProcessImageTypePtr &out, vigra::VigraTrueType) |
| void | importRGBImage (vigra::ImageImportInfo &info, ImageType *img, vigra::VigraFalseType) |
| import RGB image | |
| 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 | |
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(), sigma, and threshold().
|
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 threshold().
|
protected |
Definition at line 219 of file khan.h.
References threshold().
|
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, flags, iterations, NEIGHB_DIST, deghosting::SAVE_INITWEIGHTS, threshold(), verbosity, and X.
|
protected |
import RGB image
Definition at line 242 of file khan.h.
References vigra::importImageAlpha(), and threshold().
|
protected |
Definition at line 225 of file khan.h.
References vigra::importImageAlpha(), and threshold().
|
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, flags, and threshold().
|
protected |
set sigma sets sigma for gaussian weigting function
Definition at line 167 of file khan.h.
References sigma, and threshold().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |