TuttleOFX  1
terry::sampler::nearest_neighbor_sampler Struct Reference

#include <nearestNeighbor.hpp>

Public Member Functions

 nearest_neighbor_sampler ()
template<typename Weight >
void operator() (const RESAMPLING_CORE_TYPE &distance, Weight &weight)
 Get weight for a specific distance, for nearest neighbor resampler.

Data Fields

const size_t _windowSize

Detailed Description

Definition at line 12 of file nearestNeighbor.hpp.


Constructor & Destructor Documentation

terry::sampler::nearest_neighbor_sampler::nearest_neighbor_sampler ( ) [inline]

Definition at line 16 of file nearestNeighbor.hpp.


Member Function Documentation

template<typename Weight >
void terry::sampler::nearest_neighbor_sampler::operator() ( const RESAMPLING_CORE_TYPE &  distance,
Weight &  weight 
) [inline]

Get weight for a specific distance, for nearest neighbor resampler.

Parameters:
[in]distancebetween the pixels and the current pixel
[out]weightreturn value to weight the pixel in filtering

Definition at line 27 of file nearestNeighbor.hpp.


Field Documentation


The documentation for this struct was generated from the following file: