|
Hugin trunk 0.1
|
Namespaces | |
| namespace | detail |
| namespace | EMoR |
| namespace | poisson |
Classes | |
| struct | ApplyGammaFunctor |
| struct | ApplyGammaFunctor< vigra::UInt16, vigra::UInt8 > |
| struct | ApplyLogFunctor |
| struct | CorrelationResult |
| Maximum of correlation, position and value. More... | |
| struct | CreateAlphaTiffImage |
| struct | CreateAlphaTiffImage< double > |
| struct | CreateAlphaTiffImage< float > |
| struct | CreateAlphaTiffImage< int > |
| struct | CreateAlphaTiffImage< short > |
| struct | CreateAlphaTiffImage< unsigned char > |
| struct | CreateAlphaTiffImage< unsigned int > |
| struct | CreateAlphaTiffImage< unsigned short > |
| struct | CreateAlphaTiffImage< vigra::RGBValue< double > > |
| struct | CreateAlphaTiffImage< vigra::RGBValue< float > > |
| struct | CreateAlphaTiffImage< vigra::RGBValue< int > > |
| struct | CreateAlphaTiffImage< vigra::RGBValue< short > > |
| struct | CreateAlphaTiffImage< vigra::RGBValue< unsigned char > > |
| struct | CreateAlphaTiffImage< vigra::RGBValue< unsigned int > > |
| struct | CreateAlphaTiffImage< vigra::RGBValue< unsigned short > > |
| struct | DitherFunctor |
| Dither code taken from enblend and adapted to a standalone functor. More... | |
| struct | Error_GpuNumericTraits_not_specialized_for_this_case |
| struct | ExposureResponseFunctor |
| just apply exposure and response to linear data More... | |
| class | FileRAII |
| Class used for opening files. More... | |
| class | FindComponentsMinMax |
| struct | GammaFunctor |
| struct | GpuNumericTraits |
| class | ImageInterpolator |
| "wrapper" for efficient interpolation access to an image More... | |
| class | ImageMaskInterpolator |
| "wrapper" for efficient interpolation access to an image More... | |
| class | ImageSplittingAccessor |
| An accessor to encapsulate write access to a multiband image, and move divide it into two images. More... | |
| struct | interp_bilin |
| simple bilinear interpolation More... | |
| struct | interp_cubic |
| cubic interpolation More... | |
| struct | interp_nearest |
| several classes to calculate interpolator weights, More... | |
| struct | interp_sinc |
| sinc interpolation, with variable width More... | |
| struct | interp_spline16 |
| spline16 interpolation More... | |
| struct | interp_spline36 |
| spline36 interpolation More... | |
| struct | interp_spline64 |
| spline64 interpolation More... | |
| class | InterpolatingAccessor |
| interpolation at non-integer positions. More... | |
| struct | InvLUTFunctor |
| functor to apply a LUT to gray and color images. More... | |
| struct | LinearTransform |
| struct | LinearTransformFunctor |
| Calculate ret = p * a + b. More... | |
| struct | LUTFunctor |
| functor to apply a LUT to gray and color images. More... | |
| struct | LUTTraits |
| struct | MaskPixelCounter |
| count pixels that are > 0 in a single image More... | |
| class | MergeScalarScalar2VectorAccessor |
| merge two scalar images into a vector image. More... | |
| class | MergeVectorScalar2VectorAccessor |
| merge a vector and a scalar image into a vector image. More... | |
| struct | Multiply |
| a sample functor that can be used to multiply pixel values with a constant More... | |
| struct | NestFunctor |
| functor to combine two functors: result = f1( f2(v) ) More... | |
| struct | OverlapSizeCounter |
| count pixels that are > 0 in both images More... | |
| struct | PassThroughFunctor |
| does nothing More... | |
| struct | PointPairT |
| struct | PolySqDistFunctor |
| class | ReadFunctorAccessor |
| This class can be used to apply a function when reading the input image. More... | |
| class | ReduceToHDRFunctor |
| class | ROIImage |
| brief description. More... | |
| class | RotateTransform |
| clockwise rotation around a origin point, and a translation afterwards. More... | |
| class | SplitVector2Accessor |
| define a write only accessor for a virtual Image<TinyVector<Acc1::value_type>, 2> image, which actually consists of two Images. More... | |
| class | SplitVectorNAccessor |
| split a vector image into a vector and a scalar image More... | |
| struct | ValueTypeTraits |
| class | VigCorrAddFunctor |
| class | VigCorrDivFunctor |
| class | VigCorrFlatAddFunctor |
| class | VigCorrFlatDivFunctor |
| class | WriteFunctorAccessor |
| This class can be used to apply a function when writing to an image. More... | |
Typedefs | |
| typedef PointPairT< float > | PointPair |
| typedef PointPairT< vigra::RGBValue< float > > | PointPairRGB |
Enumerations | |
| enum | { XGL_BYTE =0 , XGL_UNSIGNED_BYTE , XGL_SHORT , XGL_UNSIGNED_SHORT , XGL_INT , XGL_UNSIGNED_INT , XGL_FLOAT , XGL_RGBA8 , XGL_RGBA16 , XGL_RGBA32F , XGL_LUMINANCE8_ALPHA8 , XGL_LUMINANCE16_ALPHA16 , XGL_LUMINANCE_ALPHA32F , XGL_RGB8 , XGL_RGB16 , XGL_RGB32F , XGL_LUMINANCE8 , XGL_LUMINANCE16 , XGL_LUMINANCE32F , XGL_LUMINANCE , XGL_RGB , XGL_LUMINANCE_ALPHA , XGL_RGBA } |
| enum | Interpolator { INTERP_CUBIC = 0 , INTERP_SPLINE_16 , INTERP_SPLINE_36 , INTERP_SINC_256 , INTERP_SPLINE_64 , INTERP_BILINEAR , INTERP_NEAREST_NEIGHBOUR , INTERP_SINC_1024 } |
| enum with all interpolation methods More... | |
Variables | |
| static const double | AA = 0.4 |
| static const double | W [] = {0.25 - AA / 2.0, 0.25, AA, 0.25, 0.25 - AA / 2.0} |
| typedef PointPairT<vigra::RGBValue<float> > vigra_ext::PointPairRGB |
Definition at line 72 of file ImageTransformsGPU.h.
enum with all interpolation methods
| Enumerator | |
|---|---|
| INTERP_CUBIC | |
| INTERP_SPLINE_16 | |
| INTERP_SPLINE_36 | |
| INTERP_SINC_256 | |
| INTERP_SPLINE_64 | |
| INTERP_BILINEAR | |
| INTERP_NEAREST_NEIGHBOUR | |
| INTERP_SINC_1024 | |
Definition at line 78 of file Interpolators.h.
Referenced by cubic01(), cubic12(), vigra_ext::interp_cubic::emitGLSL(), and FitPolynom().
| void vigra_ext::applyBrightnessCorrection | ( | vigra::triple< ImgIter, ImgIter, ImgAccessor > | srcImg, |
| vigra::pair< DestIter, DestAccessor > | destImg, | ||
| typename vigra::NumericTraits< typename ImgAccessor::value_type >::RealPromote | a, | ||
| typename vigra::NumericTraits< typename ImgAccessor::value_type >::RealPromote | b | ||
| ) |
Definition at line 513 of file VignettingCorrection.h.
References threshold().
| void vigra_ext::applyExposureClipMask | ( | vigra::triple< ImgIter, ImgIter, ImgAccessor > | image, |
| vigra::triple< AlphaIter, AlphaIter, AlphaAccessor > | mask, | ||
| double | lowerLimit, | ||
| double | upperLimit | ||
| ) |
Definition at line 370 of file utils.h.
References getMaxComponent(), getMinComponent(), and threshold().
Referenced by HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage(), and HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage().
| void vigra_ext::applyGammaAndBrightCorrection | ( | vigra::triple< ImgIter, ImgIter, ImgAccessor > | srcImg, |
| vigra::pair< DestIter, DestAccessor > | destImg, | ||
| double | gamma, | ||
| double | maxGVal, | ||
| typename vigra::NumericTraits< typename ImgAccessor::value_type >::RealPromote | a, | ||
| typename vigra::NumericTraits< typename ImgAccessor::value_type >::RealPromote | b | ||
| ) |
Definition at line 526 of file VignettingCorrection.h.
References threshold().
| void vigra_ext::applyGammaCorrection | ( | vigra::triple< ImgIter, ImgIter, ImgAccessor > | srcImg, |
| vigra::pair< DestIter, DestAccessor > | destImg, | ||
| double | gamma, | ||
| double | maxGVal | ||
| ) |
Definition at line 542 of file VignettingCorrection.h.
References threshold().
| void vigra_ext::applyMapping | ( | vigra::triple< SrcIterator, SrcIterator, SrcAccessor > | img, |
| vigra::pair< DestIterator, DestAccessor > | dest, | ||
| T | min, | ||
| T | max, | ||
| int | mapping | ||
| ) |
Definition at line 685 of file utils.h.
References threshold(), and transformImage().
Referenced by PanoDetector::AnalyzeImage(), convertGrayToUInt8(), ConvertTo8Bit(), HuginBase::convertTo8Bit(), celeste::convertToUInt16(), convertToUInt8(), imageCacheEntry2wxImage(), and PreviewPanel::updatePreview().
| void vigra_ext::applyMask | ( | vigra::triple< SrcImageIterator, SrcImageIterator, SrcAccessor > | img, |
| HuginBase::MaskPolygonVector | masks | ||
| ) |
Definition at line 163 of file Mask.h.
References threshold().
Referenced by TextureManager::TextureInfo::DefineMaskTexture(), HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage(), and HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage().
| void vigra_ext::applyRadialVigCorrection | ( | SrcImageIterator | src_upperleft, |
| SrcImageIterator | src_lowerright, | ||
| SrcAccessor | sa, | ||
| DestImageIterator | dest_upperleft, | ||
| DestAccessor | da, | ||
| double | cx, | ||
| double | cy, | ||
| Functor const & | f | ||
| ) |
Definition at line 342 of file VignettingCorrection.h.
References threshold().
| void vigra_ext::applyRadialVigCorrection | ( | vigra::triple< SrcImageIterator, SrcImageIterator, SrcAccessor > | src, |
| vigra::pair< DestImageIterator, DestAccessor > | dest, | ||
| double | cx, | ||
| double | cy, | ||
| Functor const & | f | ||
| ) |
Definition at line 330 of file VignettingCorrection.h.
References applyRadialVigCorrection(), and threshold().
Referenced by applyRadialVigCorrection(), and applyRadialVigCorrectionDither().
| void vigra_ext::applyRadialVigCorrectionDither | ( | vigra::triple< SrcImageIterator, SrcImageIterator, SrcAccessor > | src, |
| vigra::pair< DestImageIterator, DestAccessor > | dest, | ||
| double | cx, | ||
| double | cy, | ||
| Functor const & | f, | ||
| bool | dither | ||
| ) |
Apply flatfield correction with dithering.
If dither is true, dithering will be performed
Definition at line 374 of file VignettingCorrection.h.
References applyRadialVigCorrection(), and threshold().
Referenced by radialVigCorrection().
| vigra::pair< ImgIter, ImgAcc > vigra_ext::applyRect | ( | vigra::Rect2D & | r, |
| vigra::pair< ImgIter, ImgAcc > | img | ||
| ) |
apply a roi to an image
adjusts the iterators, so that they iterate over the region specifed by r
Definition at line 66 of file ROIImage.h.
| vigra::triple< ImgIter, ImgIter, ImgAcc > vigra_ext::applyRect | ( | vigra::Rect2D & | r, |
| vigra::triple< ImgIter, ImgIter, ImgAcc > | img | ||
| ) |
apply a roi to an image area
adjusts the iterators, so that they iterate over the region specifed by r
Ignores the lowerRight in img. If r is bigger than the new iterators will point outside of the other one.
Definition at line 46 of file ROIImage.h.
References DEBUG_ASSERT, and threshold().
Referenced by HuginBase::CalculateFOV::calcFOV(), HuginBase::CenterHorizontally::centerHorizontically(), HuginBase::Nona::StackingBlender::operator()(), HuginBase::Nona::MultiImageRemapper< ImageType, AlphaType >::saveRemapped(), and HuginBase::Nona::detail::saveRemapped().
calculate the determinat of a 3x3 matrix using the sarrus formula
Definition at line 36 of file FitPolynom.h.
| void vigra_ext::circularCrop | ( | vigra::triple< SrcImageIterator, SrcImageIterator, SrcAccessor > | img, |
| hugin_utils::FDiff2D | middle, | ||
| double | radius | ||
| ) |
Apply a circular crop to img.
Sets all pixels that are outside of the circle specified by middle and radius to zero.
Definition at line 495 of file utils.h.
References threshold().
Referenced by HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage(), and HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage().
| void vigra_ext::combineTwoImagesDither | ( | vigra::triple< ImgIter, ImgIter, ImgAccessor > | srcImg, |
| vigra::pair< FFIter, FFAccessor > | ffImg, | ||
| vigra::pair< DestIter, DestAccessor > | destImg, | ||
| Functor const & | f, | ||
| bool | dither | ||
| ) |
Apply combine two images.
If dither is true, dithering will be performed
Definition at line 399 of file VignettingCorrection.h.
References threshold().
Referenced by flatfieldVigCorrection().
converts to given image to fit into 0..255
Definition at line 757 of file utils.h.
References applyMapping(), destImage(), getMaxComponent(), srcImageRange(), and threshold().
Referenced by HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::stitch().
| CorrelationResult vigra_ext::correlateImage | ( | SrcIterator | sul, |
| SrcIterator | slr, | ||
| SrcAccessor | as, | ||
| DestIterator | dul, | ||
| DestAccessor | ad, | ||
| KernelIterator | ki, | ||
| KernelAccessor | ak, | ||
| vigra::Diff2D | kul, | ||
| vigra::Diff2D | klr, | ||
| double | threshold = 0.7 |
||
| ) |
correlate a template with an image.
most code is taken from vigra::convoluteImage. See its documentation for further information.
Correlation result already contains the maximum position and its correlation value. it should be possible to set a threshold here.
Definition at line 1080 of file Correlation.h.
References vigra_ext::CorrelationResult::maxi, vigra_ext::CorrelationResult::maxpos, threshold(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
Referenced by PointFineTune(), and PointFineTuneRotSearch().
| CorrelationResult vigra_ext::correlateImageFast | ( | SrcImage & | src, |
| DestImage & | dest, | ||
| KernelImage & | kernel, | ||
| vigra::Diff2D | kul, | ||
| vigra::Diff2D | klr, | ||
| double | threshold = 0.7 |
||
| ) |
correlate a template with an image.
This tries to be faster than the other version, because it uses the image data directly.
most code is taken from vigra::convoluteImage. See its documentation for further information.
Correlation result already contains the maximum position and its correlation value. it should be possible to set a threshold here.
Definition at line 253 of file Correlation.h.
References DEBUG_DEBUG, vigra_ext::CorrelationResult::maxi, vigra_ext::CorrelationResult::maxpos, threshold(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
Referenced by PointFineTune(), and PointFineTuneRotSearch().
|
inline |
Definition at line 522 of file tiffUtils.h.
References threshold().
Referenced by createAlphaTiffImage(), HuginBase::Nona::TiffMultiLayerRemapper< ImageType, AlphaImageType >::saveRemapped(), and StackImagesAndMask().
| void vigra_ext::createAlphaTiffImage | ( | vigra::triple< ImageIterator, ImageIterator, ImageAccessor > | src, |
| vigra::pair< AlphaIterator, BImageAccessor > | alpha, | ||
| vigra::TiffImage * | tiff | ||
| ) |
save an image and an alpha channel to a tiff file.
so far, only gray and RGB images are supported. the alpha channel is stored with the same type as the color channels.
If the alpha channels uses a different type as the color channel (for example 8 bit alpha channel, float color channels), they are converted to a sensible value. (0..1 for float alpha).
Definition at line 546 of file tiffUtils.h.
References createAlphaTiffImage(), and threshold().
Definition at line 50 of file lut.h.
References pow(), and threshold().
Referenced by HuginBase::Photometric::ResponseTransform< VTIn >::initWithSrcImg(), and PreviewPanel::updatePreview().
| void vigra_ext::createRGBATiffImage | ( | ImageIterator | upperleft, |
| ImageIterator | lowerright, | ||
| ImageAccessor | a, | ||
| AlphaIterator | alphaUpperleft, | ||
| AlphaAccessor | alphaA, | ||
| vigra::TiffImage * | tiff, | ||
| int | sampleformat | ||
| ) |
internal function to create a RGB tiff image with alpha channel
Definition at line 193 of file tiffUtils.h.
References threshold().
Referenced by vigra_ext::CreateAlphaTiffImage< vigra::RGBValue< unsigned char > >::exec(), vigra_ext::CreateAlphaTiffImage< vigra::RGBValue< short > >::exec(), vigra_ext::CreateAlphaTiffImage< vigra::RGBValue< unsigned short > >::exec(), vigra_ext::CreateAlphaTiffImage< vigra::RGBValue< int > >::exec(), vigra_ext::CreateAlphaTiffImage< vigra::RGBValue< unsigned int > >::exec(), vigra_ext::CreateAlphaTiffImage< vigra::RGBValue< float > >::exec(), and vigra_ext::CreateAlphaTiffImage< vigra::RGBValue< double > >::exec().
|
static |
internal function to create a scalar tiff image with alpha channel
Definition at line 132 of file tiffUtils.h.
References threshold().
Referenced by vigra_ext::CreateAlphaTiffImage< unsigned char >::exec(), vigra_ext::CreateAlphaTiffImage< short >::exec(), vigra_ext::CreateAlphaTiffImage< unsigned short >::exec(), vigra_ext::CreateAlphaTiffImage< int >::exec(), vigra_ext::CreateAlphaTiffImage< unsigned int >::exec(), vigra_ext::CreateAlphaTiffImage< float >::exec(), and vigra_ext::CreateAlphaTiffImage< double >::exec().
|
inline |
write a new Tiff directory, for a new layer
| tiff | tiff struct |
| pagename | pagename for tiff layer |
| documentname | for tiff layer |
| page | page number |
| nImg | total number of pages, needed for "image page/nImg" display |
| offset | layer offset in pixels (must be positive) |
Definition at line 58 of file tiffUtils.h.
References DEBUG_ASSERT, and threshold().
Referenced by HuginBase::Nona::TiffMultiLayerRemapper< ImageType, AlphaImageType >::saveRemapped(), and StackImagesAndMask().
Definition at line 65 of file Interpolators.h.
References A().
Referenced by vigra_ext::interp_cubic::calc_coeff().
Definition at line 71 of file Interpolators.h.
References A().
Referenced by vigra_ext::interp_cubic::calc_coeff().
| vigra_ext::DEFINE_GPUNUMERICTRAITS | ( | double | , |
| XGL_LUMINANCE_ALPHA32F | , | ||
| XGL_RGBA32F | , | ||
| XGL_LUMINANCE32F | , | ||
| XGL_RGB32F | , | ||
| XGL_FLOAT | |||
| ) |
| vigra_ext::DEFINE_GPUNUMERICTRAITS | ( | float | , |
| XGL_LUMINANCE_ALPHA32F | , | ||
| XGL_RGBA32F | , | ||
| XGL_LUMINANCE32F | , | ||
| XGL_RGB32F | , | ||
| XGL_FLOAT | |||
| ) |
| vigra_ext::DEFINE_GPUNUMERICTRAITS | ( | vigra::Int16 | , |
| XGL_LUMINANCE16_ALPHA16 | , | ||
| XGL_RGBA16 | , | ||
| XGL_LUMINANCE16 | , | ||
| XGL_RGB16 | , | ||
| XGL_SHORT | |||
| ) |
| vigra_ext::DEFINE_GPUNUMERICTRAITS | ( | vigra::Int32 | , |
| XGL_LUMINANCE_ALPHA32F | , | ||
| XGL_RGBA32F | , | ||
| XGL_LUMINANCE32F | , | ||
| XGL_RGB32F | , | ||
| XGL_INT | |||
| ) |
| vigra_ext::DEFINE_GPUNUMERICTRAITS | ( | vigra::Int8 | , |
| XGL_LUMINANCE8_ALPHA8 | , | ||
| XGL_RGBA8 | , | ||
| XGL_LUMINANCE8 | , | ||
| XGL_RGB8 | , | ||
| XGL_BYTE | |||
| ) |
| vigra_ext::DEFINE_GPUNUMERICTRAITS | ( | vigra::UInt16 | , |
| XGL_LUMINANCE16_ALPHA16 | , | ||
| XGL_RGBA16 | , | ||
| XGL_LUMINANCE16 | , | ||
| XGL_RGB16 | , | ||
| XGL_UNSIGNED_SHORT | |||
| ) |
| vigra_ext::DEFINE_GPUNUMERICTRAITS | ( | vigra::UInt32 | , |
| XGL_LUMINANCE_ALPHA32F | , | ||
| XGL_RGBA32F | , | ||
| XGL_LUMINANCE32F | , | ||
| XGL_RGB32F | , | ||
| XGL_UNSIGNED_INT | |||
| ) |
| vigra_ext::DEFINE_GPUNUMERICTRAITS | ( | vigra::UInt8 | , |
| XGL_LUMINANCE8_ALPHA8 | , | ||
| XGL_RGBA8 | , | ||
| XGL_LUMINANCE8 | , | ||
| XGL_RGB8 | , | ||
| XGL_UNSIGNED_BYTE | |||
| ) |
|
inline |
Definition at line 324 of file ROIImage.h.
References vigra_ext::ROIImage< Image, Mask >::accessor(), and vigra_ext::ROIImage< Image, Mask >::upperLeft().
Referenced by ConvertTo8Bit(), vigra_ext::poisson::detail::FindEdgesForPoisson(), PointFineTune(), PointFineTuneRotSearch(), and reduceToNextLevelOld().
|
inline |
Definition at line 312 of file ROIImage.h.
References vigra_ext::ROIImage< Image, Mask >::accessor(), vigra_ext::ROIImage< Image, Mask >::lowerRight(), and vigra_ext::ROIImage< Image, Mask >::upperLeft().
Referenced by vigra_ext::poisson::Multigrid(), PointFineTuneRotSearch(), reduceNTimes(), reduceNTimes(), reduceToNextLevel(), reduceToNextLevel(), and reduceToNextLevelOld().
|
inline |
Definition at line 370 of file ROIImage.h.
References vigra_ext::ROIImage< Image, Mask >::maskAccessor(), and vigra_ext::ROIImage< Image, Mask >::maskUpperLeft().
Referenced by reduceROIImages().
|
inline |
Definition at line 358 of file ROIImage.h.
References vigra_ext::ROIImage< Image, Mask >::maskAccessor(), vigra_ext::ROIImage< Image, Mask >::maskLowerRight(), and vigra_ext::ROIImage< Image, Mask >::maskUpperLeft().
Definition at line 219 of file VignettingCorrection.h.
References isTrueType(), and threshold().
enforce monotonicity of an array (mostly used for lookup tables)
Definition at line 87 of file lut.h.
References threshold().
Referenced by PreviewColorPickerTool::CalcCorrectionForImage(), correctImage(), CreateBrightVersion(), TextureManager::TextureInfo::DefineLevels(), HuginBase::Photometric::ResponseTransform< VTIn >::enforceMonotonicity(), HuginBase::Photometric::InvResponseTransform< VTIn, VTOut >::enforceMonotonicity(), ImageVariableDialog::OnShowResponseGraph(), and HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage().
| void vigra_ext::findInterestPointsPartial | ( | vigra::triple< ImageIter, ImageIter, ImageAcc > | img, |
| const vigra::Rect2D & | rect, | ||
| double | scale, | ||
| unsigned | nPoints, | ||
| std::multimap< double, vigra::Diff2D > & | points | ||
| ) |
Definition at line 43 of file InterestPoints.h.
References DEBUG_DEBUG, and threshold().
Referenced by createCtrlPoints(), detail::FindInterestPointsPartial(), detail::FindInterestPointsPartial(), and GLPreviewFrame::OnCreateCP().
| void vigra_ext::FitPolynom | ( | T | x, |
| T | xend, | ||
| T | y, | ||
| double & | a, | ||
| double & | b, | ||
| double & | c | ||
| ) |
fit a second order polynom to a data set
y = a + b*x + c*x^2
uses a least mean square fit, give at least 3 points.
@TODO calculate quality of fit
Definition at line 55 of file FitPolynom.h.
References A(), Matrix3::m, threshold(), and X.
Referenced by subpixelMaxima().
| void vigra_ext::flatfieldVigCorrection | ( | vigra::triple< ImgIter, ImgIter, ImgAccessor > | srcImg, |
| vigra::pair< FFIter, FFAccessor > | ffImg, | ||
| vigra::pair< DestIter, DestAccessor > | destImg, | ||
| double | gamma, | ||
| double | gammaMaxVal, | ||
| bool | division, | ||
| typename vigra::NumericTraits< typename ImgAccessor::value_type >::RealPromote | a, | ||
| typename vigra::NumericTraits< typename ImgAccessor::value_type >::RealPromote | b, | ||
| bool | dither | ||
| ) |
Definition at line 416 of file VignettingCorrection.h.
References combineTwoImagesDither(), and threshold().
Referenced by HuginBase::Nona::applyFlatfield().
get the maximum component of a vector (also works for single pixel types...)
Definition at line 277 of file utils.h.
References threshold().
get the maximum component of a vector (also works for single pixel types...)
Definition at line 268 of file utils.h.
References threshold().
Referenced by applyExposureClipMask(), ConvertTo8Bit(), HuginBase::Photometric::InvResponseTransform< VTIn, VTOut >::hdrWeight(), vigra_ext::ReduceToHDRFunctor< VALUETYPE >::operator()(), vigra_ext::FindComponentsMinMax< VALUETYPE >::operator()(), HuginBase::AllPointSampler::sampleAllPanoPoints(), and HuginBase::RandomPointSampler::sampleRandomPanoPoints().
Definition at line 89 of file utils.h.
References threshold().
Referenced by PanoDetector::AnalyzeImage(), convertGrayToUInt8(), HuginBase::convertTo8Bit(), celeste::convertToUInt16(), convertToUInt8(), correctRGB(), vigra::detail::exportImageAlpha(), vigra::detail::exportImageAlpha(), HuginBase::Nona::FileRemapper< ImageType, AlphaType >::getRemapped(), HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage(), and HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage().
get the maximum component of a vector (also works for single pixel types...)
Definition at line 295 of file utils.h.
References threshold().
get the maximum component of a vector (also works for single pixel types...)
Definition at line 286 of file utils.h.
References threshold().
Referenced by applyExposureClipMask(), and vigra_ext::FindComponentsMinMax< VALUETYPE >::operator()().
| void vigra_ext::inspectImagesIf | ( | std::vector< ImgIter > | imgs, |
| std::vector< MaskIter > | masks, | ||
| std::vector< vigra::Rect2D > | rois, | ||
| Functor & | f | ||
| ) |
function to inspect a variable number of images.
They do not need to overlap, and will be only evaluated inside their ROI
Definition at line 399 of file ROIImage.h.
References contains(), and threshold().
|
inline |
Definition at line 210 of file VignettingCorrection.h.
Referenced by ditheringNeeded().
|
inline |
Definition at line 214 of file VignettingCorrection.h.
|
inline |
component-wise logarithm
Definition at line 209 of file utils.h.
References log(), and threshold().
Referenced by vigra_ext::poisson::BuildSeamPyramid(), log(), and log().
|
inline |
Apply log() function to each vector component.
Definition at line 256 of file utils.h.
References log(), and threshold().
|
inline |
component-wise logarithm
Definition at line 218 of file utils.h.
References threshold().
Referenced by vigra_ext::ApplyLogFunctor::operator()().
| vigra_ext::LUT_TRAITS | ( | double | , |
| 0. | 0, | ||
| 1. | 0 | ||
| ) |
| vigra_ext::LUT_TRAITS | ( | float | , |
| 0. | 0f, | ||
| 1. | 0f | ||
| ) |
| void vigra_ext::MergeImages | ( | ImageType & | image1, |
| MaskType & | mask1, | ||
| const ImageType & | image2, | ||
| const MaskType & | mask2, | ||
| const vigra::Diff2D | offset, | ||
| const bool | wrap, | ||
| const bool | hardSeam | ||
| ) |
Definition at line 142 of file StitchWatershed.h.
References vigra::omp::combineTwoImages(), vigra::omp::copyImage(), PoissonBlend(), vigra_ext::detail::ResizeImage(), threshold(), and vigra::omp::transformImage().
Referenced by LoadAndMergeImages().
| vigra::NumericTraits< T >::RealPromote vigra_ext::normalizeValue | ( | T | v, |
| vigra::VigraFalseType | |||
| ) |
Definition at line 558 of file utils.h.
References threshold().
| vigra::NumericTraits< T >::RealPromote vigra_ext::normalizeValue | ( | T | v, |
| vigra::VigraTrueType | |||
| ) |
normalize a pixel to 0..1 Only has an effect on integer pixel types
Definition at line 551 of file utils.h.
References threshold().
| CorrelationResult vigra_ext::PointFineTune | ( | const IMAGET & | templImg, |
| ACCESSORT | access_t, | ||
| vigra::Diff2D | templPos, | ||
| int | templSize, | ||
| const IMAGES & | searchImg, | ||
| ACCESSORS | access_s, | ||
| vigra::Diff2D | searchPos, | ||
| int | sWidth | ||
| ) |
fine tune a point with normalized cross correlation
takes a patch of templSize by templSize from templImg images at tmplPos and searches it on the searchImg, at searchPos, in a neighbourhood of sWidth by sWidth.
The result in returned in tunedPos
Definition at line 504 of file Correlation.h.
References correlateImage(), correlateImageFast(), DEBUG_DEBUG, destImage(), vigra_ext::CorrelationResult::maxi, vigra_ext::CorrelationResult::maxpos, hugin_utils::simpleClipPoint(), srcImage(), subpixelMaxima(), threshold(), hugin_utils::TDiff2D< T >::toDiff2D(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
Referenced by createCtrlPoints(), detail::FineTunePoint(), detail::FineTunePoint(), GLPreviewFrame::OnCreateCP(), and PointFineTuneProjectionAware().
| CorrelationResult vigra_ext::PointFineTuneRotSearch | ( | const IMAGET & | templImg, |
| vigra::Diff2D | templPos, | ||
| int | templSize, | ||
| const IMAGES & | searchImg, | ||
| vigra::Diff2D | searchPos, | ||
| int | sWidth, | ||
| double | startAngle, | ||
| double | stopAngle, | ||
| int | angleSteps | ||
| ) |
fine tune a point with normalized cross correlation, searches x,y and phi (rotation around z)
takes a patch of templSize by templSize from templImg images at tmplPos and searches it on the searchImg, at searchPos, in a neighbourhood of sWidth by sWidth.
The result in returned in tunedPos
Definition at line 631 of file Correlation.h.
References correlateImage(), correlateImageFast(), DEBUG_DEBUG, DEBUG_ERROR, DEBUG_TRACE, destImage(), destImageRange(), INTERP_CUBIC, M_PI, vigra_ext::CorrelationResult::maxi, vigra_ext::CorrelationResult::maxpos, RAD_TO_DEG, srcImage(), srcImageRange(), subpixelMaxima(), threshold(), and transformImage().
Referenced by PointFineTuneProjectionAware().
| void vigra_ext::PoissonBlend | ( | ImageType & | image1, |
| const ImageType & | image2, | ||
| const MaskType & | mask2, | ||
| const vigra::BImage & | labels, | ||
| const vigra::Point2D & | offsetPoint, | ||
| const bool | doWrap | ||
| ) |
Definition at line 121 of file StitchWatershed.h.
References vigra_ext::poisson::BuildGradientMap(), vigra_ext::poisson::BuildSeamPyramid(), vigra::omp::copyImageIf(), vigra_ext::poisson::Multigrid(), and threshold().
Referenced by MergeImages(), and ResaveImageFill().
Definition at line 181 of file utils.h.
References pow().
Referenced by vigra_ext::ApplyGammaFunctor< vigra::UInt16, vigra::UInt8 >::ApplyGammaFunctor(), createGammaLUT(), vigra_ext::ApplyGammaFunctor< TIn, TOut >::operator()(), vigra_ext::GammaFunctor::operator()(), vigra_ext::ApplyGammaFunctor< TIn, TOut >::operator()(), pow(), pow(), and pow().
|
inline |
component-wise absolute value
Definition at line 189 of file utils.h.
References pow(), and threshold().
|
inline |
Apply pow() function to each vector component.
Definition at line 243 of file utils.h.
References pow(), and threshold().
| void vigra_ext::radialVigCorrection | ( | vigra::triple< ImgIter, ImgIter, ImgAccessor > | srcImg, |
| vigra::pair< DestIter, DestAccessor > | destImg, | ||
| double | gamma, | ||
| double | gammaMaxVal, | ||
| const std::vector< double > & | radCoeff, | ||
| hugin_utils::FDiff2D | center, | ||
| bool | division, | ||
| typename vigra::NumericTraits< typename ImgAccessor::value_type >::RealPromote | a, | ||
| typename vigra::NumericTraits< typename ImgAccessor::value_type >::RealPromote | b, | ||
| bool | dither | ||
| ) |
Definition at line 468 of file VignettingCorrection.h.
References applyRadialVigCorrectionDither(), threshold(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
| void vigra_ext::reduceNTimes | ( | Image & | in, |
| ImageMask & | inMask, | ||
| Image & | out, | ||
| ImageMask & | outMask, | ||
| int | n | ||
| ) |
Definition at line 80 of file Pyramid.h.
References destImageRange(), srcImage(), srcImageRange(), and threshold().
Definition at line 39 of file Pyramid.h.
References destImageRange(), srcImageRange(), and threshold().
Referenced by HuginBase::ImageCache::loadSmallImageSafely(), and main2().
| void vigra_ext::reduceROIImages | ( | std::vector< ROIIMG * > | images, |
| vigra::triple< DestIter, DestIter, DestAccessor > | dest, | ||
| vigra::pair< MaskIter, MaskAccessor > | destMask, | ||
| FUNCTOR & | reduce | ||
| ) |
algorithm to reduce a set of ROI images
Definition at line 465 of file ROIImage.h.
References destMask(), and threshold().
| void vigra_ext::reduceToNextLevel | ( | ImageIn & | in, |
| ImageInMask & | inMask, | ||
| ImageOut & | out, | ||
| ImageOutMask & | outMask | ||
| ) |
Definition at line 151 of file Pyramid.h.
References destImageRange(), srcImage(), srcImageRange(), and threshold().
Definition at line 136 of file Pyramid.h.
References destImageRange(), srcImageRange(), and threshold().
Referenced by loadImagesPyr(), and OptimizePhotometricPanel::runOptimizer().
Gaussian reduction to next pyramid level.
out is rescaled to the correct size.
Definition at line 178 of file Pyramid.h.
References DEBUG_TRACE, destImage(), destImageRange(), srcImageRange(), threshold(), and W.
Definition at line 64 of file lut.h.
References threshold().
Referenced by HuginBase::Photometric::ResponseTransform< VTIn >::initWithSrcImg().
Definition at line 312 of file ImageTransformsGPU.cpp.
References printDebug, and threshold().
Referenced by main().
Definition at line 50 of file Interpolators.h.
References M_PI, and threshold().
Referenced by vigra_ext::interp_sinc< size_ >::calc_coeff().
|
inline |
Definition at line 300 of file ROIImage.h.
References vigra_ext::ROIImage< Image, Mask >::accessor(), and vigra_ext::ROIImage< Image, Mask >::upperLeft().
Referenced by PointFineTune(), PointFineTuneRotSearch(), reduceNTimes(), and reduceToNextLevel().
|
inline |
helper function for ROIImages
Definition at line 287 of file ROIImage.h.
References vigra_ext::ROIImage< Image, Mask >::accessor(), vigra_ext::ROIImage< Image, Mask >::lowerRight(), and vigra_ext::ROIImage< Image, Mask >::upperLeft().
Referenced by ConvertTo8Bit(), vigra_ext::poisson::detail::FindEdgesForPoisson(), vigra_ext::poisson::Multigrid(), HuginBase::Nona::StackingBlender::operator()(), PointFineTuneRotSearch(), reduceNTimes(), reduceNTimes(), reduceToNextLevel(), reduceToNextLevel(), reduceToNextLevelOld(), and HuginBase::Nona::detail::saveRemapped().
|
inline |
Definition at line 347 of file ROIImage.h.
References vigra_ext::ROIImage< Image, Mask >::maskAccessor(), and vigra_ext::ROIImage< Image, Mask >::maskUpperLeft().
Referenced by HuginBase::CalculateFOV::calcFOV(), HuginBase::CenterHorizontally::centerHorizontically(), and HuginBase::Nona::StackingBlender::operator()().
|
inline |
Definition at line 335 of file ROIImage.h.
References vigra_ext::ROIImage< Image, Mask >::maskAccessor(), vigra_ext::ROIImage< Image, Mask >::maskLowerRight(), and vigra_ext::ROIImage< Image, Mask >::maskUpperLeft().
Referenced by HuginBase::CalculateFOV::calcFOV(), HuginBase::CenterHorizontally::centerHorizontically(), and HuginBase::Nona::detail::saveRemapped().
| CorrelationResult vigra_ext::subpixelMaxima | ( | vigra::triple< Iterator, Iterator, Accessor > | img, |
| vigra::Diff2D | max | ||
| ) |
find the subpixel maxima by fitting 2nd order polynoms to x and y.
this estimates the x and y values separately. Don't know if this is the best way, but it works well
Definition at line 373 of file Correlation.h.
References vigra_ext::CorrelationResult::curv, DEBUG_DEBUG, DEBUG_NOTICE, FitPolynom(), vigra_ext::CorrelationResult::maxi, vigra_ext::CorrelationResult::maxpos, threshold(), hugin_utils::TDiff2D< T >::x, and hugin_utils::TDiff2D< T >::y.
Referenced by PointFineTune(), and PointFineTuneRotSearch().
| void vigra_ext::transformImage | ( | vigra::triple< SrcImageIterator, SrcImageIterator, SrcAccessor > | src, |
| vigra::triple< DestImageIterator, DestImageIterator, DestAccessor > | dest, | ||
| std::pair< AlphaImageIterator, AlphaAccessor > | alpha, | ||
| vigra::Diff2D | destUL, | ||
| TRANSFORM & | transform, | ||
| PixelTransform & | pixelTransform, | ||
| bool | warparound, | ||
| Interpolator | interpol, | ||
| AppBase::ProgressDisplay * | progress, | ||
| bool | singleThreaded = false |
||
| ) |
Transform an image into the panorama.
It can be used for partial transformations as well, if the boundig box of a remapped image is known.
Usage: create an output image @dest that should contain the remapped src image. if dest doesn't cover the whole output panorama, use destUL to specify the offset of dest from the output panorama.
| src | source image |
| dest | (partial) panorama image. the image size needed to hold the complete remapped image can be calculated using calcBorderPoints(). |
| destUL | upper left point of dest in final panorama. set to (0,0) if dest has the same size as the complete panorama. |
| transform | function used to remap the picture. |
| centerDist | image, with the same size as dest, that will contain the distance of the corrosponding pixel from the center of src. This is useful to calculate nice seams. Use a null image if this information is not needed. |
| interpol | Interpolation algorithm that should be used. |
Definition at line 237 of file ImageTransforms.h.
References DEBUG_DEBUG, INTERP_BILINEAR, INTERP_CUBIC, INTERP_NEAREST_NEIGHBOUR, INTERP_SINC_1024, INTERP_SINC_256, INTERP_SPLINE_16, INTERP_SPLINE_36, INTERP_SPLINE_64, threshold(), transformImage(), and transformImageIntern().
Referenced by applyMapping(), correctImage(), PointFineTuneProjectionAware(), PointFineTuneRotSearch(), RemapImage(), and transformImage().
| void vigra_ext::transformImageAlpha | ( | vigra::triple< SrcImageIterator, SrcImageIterator, SrcAccessor > | src, |
| std::pair< SrcAlphaIterator, SrcAlphaAccessor > | srcAlpha, | ||
| vigra::triple< DestImageIterator, DestImageIterator, DestAccessor > | dest, | ||
| std::pair< AlphaImageIterator, AlphaAccessor > | alpha, | ||
| vigra::Diff2D | destUL, | ||
| TRANSFORM & | transform, | ||
| PixelTransform & | pixelTransform, | ||
| bool | warparound, | ||
| Interpolator | interpol, | ||
| AppBase::ProgressDisplay * | progress, | ||
| bool | singleThreaded = false |
||
| ) |
Transform image, and respect a possible alpha channel.
Definition at line 302 of file ImageTransforms.h.
References DEBUG_DEBUG, INTERP_BILINEAR, INTERP_CUBIC, INTERP_NEAREST_NEIGHBOUR, INTERP_SINC_1024, INTERP_SINC_256, INTERP_SPLINE_16, INTERP_SPLINE_36, INTERP_SPLINE_64, threshold(), and transformImageAlphaIntern().
Referenced by correctImage(), RemapImage(), and HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage().
| void vigra_ext::transformImageAlphaGPU | ( | vigra::triple< SrcImageIterator, SrcImageIterator, SrcAccessor > | src, |
| std::pair< SrcAlphaIterator, SrcAlphaAccessor > | srcAlpha, | ||
| vigra::triple< DestImageIterator, DestImageIterator, DestAccessor > | dest, | ||
| std::pair< AlphaImageIterator, AlphaAccessor > | alpha, | ||
| vigra::Diff2D | destUL, | ||
| TRANSFORM & | transform, | ||
| PixelTransform & | pixelTransform, | ||
| bool | warparound, | ||
| Interpolator | interpol, | ||
| AppBase::ProgressDisplay * | progress | ||
| ) |
Transform image, and respect a possible alpha channel.
Definition at line 536 of file ImageTransformsGPU.h.
References DEBUG_DEBUG, INTERP_BILINEAR, INTERP_CUBIC, INTERP_NEAREST_NEIGHBOUR, INTERP_SINC_1024, INTERP_SINC_256, INTERP_SPLINE_16, INTERP_SPLINE_36, INTERP_SPLINE_64, threshold(), and transformImageAlphaGPUIntern().
Referenced by HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage().
| void vigra_ext::transformImageAlphaGPUIntern | ( | vigra::triple< SrcImageIterator, SrcImageIterator, SrcAccessor > | src, |
| std::pair< SrcAlphaIterator, SrcAlphaAccessor > | srcAlpha, | ||
| vigra::triple< DestImageIterator, DestImageIterator, DestAccessor > | dest, | ||
| std::pair< AlphaImageIterator, AlphaAccessor > | alpha, | ||
| TRANSFORM & | transform, | ||
| PixelTransform & | pixelTransform, | ||
| vigra::Diff2D | destUL, | ||
| Interpolator | interp, | ||
| bool | warparound, | ||
| AppBase::ProgressDisplay * | progress | ||
| ) |
transform input images with alpha channel
Definition at line 252 of file ImageTransformsGPU.h.
References threshold(), transformImageGPUIntern(), XGL_FLOAT, XGL_RGB, and XGL_RGBA.
Referenced by transformImageAlphaGPU().
| void vigra_ext::transformImageAlphaIntern | ( | vigra::triple< SrcImageIterator, SrcImageIterator, SrcAccessor > | src, |
| std::pair< SrcAlphaIterator, SrcAlphaAccessor > | srcAlpha, | ||
| vigra::triple< DestImageIterator, DestImageIterator, DestAccessor > | dest, | ||
| std::pair< AlphaImageIterator, AlphaAccessor > | alpha, | ||
| TRANSFORM & | transform, | ||
| PixelTransform & | pixelTransform, | ||
| vigra::Diff2D | destUL, | ||
| Interpolator | interp, | ||
| bool | warparound, | ||
| AppBase::ProgressDisplay * | progress, | ||
| bool | singleThreaded | ||
| ) |
transform input images with alpha channel
Definition at line 155 of file ImageTransforms.h.
References threshold(), and zeroNegative().
Referenced by transformImageAlpha().
| void vigra_ext::transformImageGPU | ( | vigra::triple< SrcImageIterator, SrcImageIterator, SrcAccessor > | src, |
| vigra::triple< DestImageIterator, DestImageIterator, DestAccessor > | dest, | ||
| std::pair< AlphaImageIterator, AlphaAccessor > | alpha, | ||
| vigra::Diff2D | destUL, | ||
| TRANSFORM & | transform, | ||
| PixelTransform & | pixelTransform, | ||
| bool | warparound, | ||
| Interpolator | interpol, | ||
| AppBase::ProgressDisplay * | progress | ||
| ) |
Transform an image into the panorama.
Uses the GPU for processing.
It can be used for partial transformations as well, if the boundig box of a remapped image is known.
Usage: create an output image @dest that should contain the remapped src image. if dest doesn't cover the whole output panorama, use destUL to specify the offset of dest from the output panorama.
| src | source image |
| dest | (partial) panorama image. the image size needed to hold the complete remapped image can be calculated using calcBorderPoints(). |
| destUL | upper left point of dest in final panorama. set to (0,0) if dest has the same size as the complete panorama. |
| transform | function used to remap the picture. |
| centerDist | image, with the same size as dest, that will contain the distance of the corrosponding pixel from the center of src. This is useful to calculate nice seams. Use a null image if this information is not needed. |
| interpol | Interpolation algorithm that should be used. |
Definition at line 471 of file ImageTransformsGPU.h.
References DEBUG_DEBUG, INTERP_BILINEAR, INTERP_CUBIC, INTERP_NEAREST_NEIGHBOUR, INTERP_SINC_1024, INTERP_SINC_256, INTERP_SPLINE_16, INTERP_SPLINE_36, INTERP_SPLINE_64, threshold(), and transformImageGPUIntern().
| bool IMPEX vigra_ext::transformImageGPUIntern | ( | const std::string & | coordXformGLSL, |
| const std::string & | interpolatorGLSL, | ||
| const int | interpolatorSize, | ||
| const std::string & | photometricGLSL, | ||
| const vector< double > & | invLut, | ||
| const vector< double > & | destLut, | ||
| const vigra::Diff2D | srcSize, | ||
| const void *const | srcBuffer, | ||
| const int | srcGLInternalFormat, | ||
| const int | srcGLTransferFormat, | ||
| const int | srcGLFormat, | ||
| const int | srcGLType, | ||
| const void *const | srcAlphaBuffer, | ||
| const int | srcAlphaGLType, | ||
| const vigra::Diff2D | destUL, | ||
| const vigra::Diff2D | destSize, | ||
| void *const | destBuffer, | ||
| const int | destGLInternalFormat, | ||
| const int | destGLTransferFormat, | ||
| const int | destGLFormat, | ||
| const int | destGLType, | ||
| void *const | destAlphaBuffer, | ||
| const int | destAlphaGLType, | ||
| const bool | warparound | ||
| ) |
Definition at line 317 of file ImageTransformsGPU.cpp.
References ___NCFILE___, AlphaCompositeKernelSource, BytesPerPixel, CHECK_GL, checkFramebufferStatus(), compileGLSL(), getms(), GL_GPU_MEM_INFO_TOTAL_AVAILABLE_MEM_NVX, M_PI, makeChunks(), printDebug, TEXTURE_FREE_MEMORY_ATI, threshold(), XGLMap, and XGLStringMap.
Referenced by transformImageAlphaGPUIntern(), transformImageGPU(), and transformImageGPUIntern().
| void vigra_ext::transformImageGPUIntern | ( | vigra::triple< SrcImageIterator, SrcImageIterator, SrcAccessor > | src, |
| vigra::triple< DestImageIterator, DestImageIterator, DestAccessor > | dest, | ||
| std::pair< AlphaImageIterator, AlphaAccessor > | alpha, | ||
| TRANSFORM & | transform, | ||
| PixelTransform & | pixelTransform, | ||
| vigra::Diff2D | destUL, | ||
| Interpolator | interp, | ||
| bool | warparound, | ||
| AppBase::ProgressDisplay * | progress | ||
| ) |
Transform an image into the panorama.
Uses the GPU for processing.
It can be used for partial transformations as well, if the bounding box of a remapped image is known.
Usage: create an output image @dest that should contain the remapped src image. if dest doesn't cover the whole output panorama, use destUL to specify the offset of dest from the output panorama.
| src | source image |
| dest | (partial) panorama image. the image size needed to hold the complete remapped image can be calculated using calcBorderPoints(). |
| destUL | upper left point of dest in final panorama. set to (0,0) if dest has the same size as the complete panorama. |
| transform | function used to remap the picture. |
| centerDist | image, with the same size as dest, that will contain the distance of the corrosponding pixel from the center of src. This is useful to calculate nice seams. Use a null image if this information is not needed. |
| interp | Interpolator class (calculates weights for interpolation) |
Definition at line 176 of file ImageTransformsGPU.h.
References threshold(), transformImageGPUIntern(), and XGL_BYTE.
| void vigra_ext::transformImageIntern | ( | vigra::triple< SrcImageIterator, SrcImageIterator, SrcAccessor > | src, |
| vigra::triple< DestImageIterator, DestImageIterator, DestAccessor > | dest, | ||
| std::pair< AlphaImageIterator, AlphaAccessor > | alpha, | ||
| TRANSFORM & | transform, | ||
| PixelTransform & | pixelTransform, | ||
| vigra::Diff2D | destUL, | ||
| Interpolator | interp, | ||
| bool | warparound, | ||
| AppBase::ProgressDisplay * | progress, | ||
| bool | singleThreaded | ||
| ) |
Transform an image into the panorama.
It can be used for partial transformations as well, if the bounding box of a remapped image is known.
Usage: create an output image @dest that should contain the remapped src image. if dest doesn't cover the whole output panorama, use destUL to specify the offset of dest from the output panorama.
| src | source image |
| dest | (partial) panorama image. the image size needed to hold the complete remapped image can be calculated using calcBorderPoints(). |
| destUL | upper left point of dest in final panorama. set to (0,0) if dest has the same size as the complete panorama. |
| transform | function used to remap the picture. |
| centerDist | image, with the same size as dest, that will contain the distance of the corrosponding pixel from the center of src. This is useful to calculate nice seams. Use a null image if this information is not needed. |
| interp | Interpolator class (calculates weights for interpolation) |
Definition at line 96 of file ImageTransforms.h.
References threshold(), and zeroNegative().
Referenced by CPImageCtrl::GetMagBitmap(), and transformImage().
| void vigra_ext::transformImageSpatial | ( | SrcImageIterator | src_upperleft, |
| SrcImageIterator | src_lowerright, | ||
| SrcAccessor | sa, | ||
| DestImageIterator | dest_upperleft, | ||
| DestAccessor | da, | ||
| Functor const & | f, | ||
| vigra::Diff2D | ul | ||
| ) |
Definition at line 725 of file utils.h.
References threshold().
Referenced by PreviewColorPickerTool::CalcCorrectionForImage(), CreateBrightVersion(), and transformImageSpatial().
| void vigra_ext::transformImageSpatial | ( | vigra::triple< SrcImageIterator, SrcImageIterator, SrcAccessor > | src, |
| vigra::pair< DestImageIterator, DestAccessor > | dest, | ||
| Functor const & | f, | ||
| vigra::Diff2D | ul | ||
| ) |
Definition at line 748 of file utils.h.
References threshold(), and transformImageSpatial().
| vigra_ext::VT_TRAITS | ( | double | ) |
| vigra_ext::VT_TRAITS | ( | float | ) |
| vigra_ext::VT_TRAITS | ( | vigra::Int16 | ) |
| vigra_ext::VT_TRAITS | ( | vigra::Int32 | ) |
| vigra_ext::VT_TRAITS | ( | vigra::UInt16 | ) |
| vigra_ext::VT_TRAITS | ( | vigra::UInt32 | ) |
| vigra_ext::VT_TRAITS | ( | vigra::UInt8 | ) |
| T vigra_ext::zeroNegative | ( | T | p | ) |
Set negative elements of a pixel to zero.
Definition at line 45 of file ImageTransforms.h.
Referenced by transformImageAlphaIntern(), and transformImageIntern().
| vigra::RGBValue< T > vigra_ext::zeroNegative | ( | vigra::RGBValue< T > | p | ) |
Set negative elements of a pixel to zero.
Definition at line 56 of file ImageTransforms.h.