hugin_base/vigra_ext/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:
This graph shows which files directly or indirectly include this file:
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
Typedef Documentation
Function Documentation
| dist_t distance |
( |
uint32 |
deltaY |
) |
[inline] |
|
|
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 |