NearestFeatureTransform.h File Reference

#include <iostream>
#include <list>
#include <math.h>
#include <vigra/basicimage.hxx>
#include <vigra/functorexpression.hxx>
#include <vigra/combineimages.hxx>
#include <hugin_utils/utils.h>
#include <appbase/ProgressDisplayOld.h>
#include <tiff.h>
#include <tiffio.h>

Include dependency graph for NearestFeatureTransform.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  vigra_ext

Defines

#define EUCLIDEAN_METRIC
#define DIST_MAX   (1e20)
#define DIST_MIN   0

Typedefs

typedef float dist_t

Functions

dist_t distance (uint32 deltaX, dist_t *deltaY)
dist_t distance (uint32 deltaY)
template<typename Feat1Iter, typename Feat1Accessor, typename Feat2Iter, typename Feat2Accessor, typename Mask1Iter, typename Mask1Accessor, typename Mask2Iter, typename Mask2Accessor>
void nearestFeatureTransform (vigra::triple< Feat1Iter, Feat1Iter, Feat1Accessor > feat1, std::pair< Feat2Iter, Feat2Accessor > feat2, std::pair< Mask1Iter, Mask1Accessor > mask1, std::pair< Mask2Iter, Mask2Accessor > mask2, AppBase::MultiProgressDisplay &progress)
 Perform a nearest feature transform on the input image within the union bounding box.


Define Documentation

#define DIST_MAX   (1e20)
 

Definition at line 66 of file NearestFeatureTransform.h.

Referenced by vigra_ext::distance().

#define DIST_MIN   0
 

Definition at line 67 of file NearestFeatureTransform.h.

#define EUCLIDEAN_METRIC
 

Definition at line 60 of file NearestFeatureTransform.h.


Typedef Documentation

typedef float vigra_ext::dist_t
 

Definition at line 65 of file NearestFeatureTransform.h.

Referenced by vigra_ext::distance(), and vigra_ext::nearestFeatureTransform().


Function Documentation

dist_t distance uint32  deltaY  )  [inline]
 

Definition at line 71 of file NearestFeatureTransform.h.

References vigra_ext::dist_t.

Referenced by vigra_ext::nearestFeatureTransform().

dist_t distance uint32  deltaX,
dist_t deltaY
[inline]
 

Definition at line 68 of file NearestFeatureTransform.h.

References DIST_MAX, and vigra_ext::dist_t.

Referenced by HuginBase::LensDB::LensDB::GetVignetting(), HuginBase::LensDB::LensDB::SaveVignetting(), and HuginBase::MaskPolygon::subSample().

template<typename Feat1Iter, typename Feat1Accessor, typename Feat2Iter, typename Feat2Accessor, typename Mask1Iter, typename Mask1Accessor, typename Mask2Iter, typename Mask2Accessor>
void nearestFeatureTransform vigra::triple< Feat1Iter, Feat1Iter, Feat1Accessor >  feat1,
std::pair< Feat2Iter, Feat2Accessor >  feat2,
std::pair< Mask1Iter, Mask1Accessor >  mask1,
std::pair< Mask2Iter, Mask2Accessor >  mask2,
AppBase::MultiProgressDisplay progress
 

Perform a nearest feature transform on the input image within the union bounding box.

For each thinnable pixel, determine if the pixel is closer to a green pixel or a blue pixel. Make the thinnable pixel the same color as the closest green or blue pixel.

note about the color channels: b = whiteimage = mask1 note about the color channels: g = blackimage = mask2

Definition at line 159 of file NearestFeatureTransform.h.

References vigra_ext::dist_t, vigra_ext::distance(), AppBase::MultiProgressDisplay::increase(), AppBase::MultiProgressDisplay::popTask(), and AppBase::MultiProgressDisplay::pushTask().

Referenced by vigra_ext::blendOverlap().


Generated on Tue Sep 2 01:25:47 2014 for Hugintrunk by  doxygen 1.3.9.1