47 #ifndef _MIRA_NEARESTNEIGHBORINTERPOLATOR_H__ 48 #define _MIRA_NEARESTNEIGHBORINTERPOLATOR_H__ 76 template <
typename Tx,
typename Ty,
typename ContainerTx,
typename ContainerTy>
77 const Ty&
apply(
const ContainerTx& x,
const ContainerTy& y,
const Tx& xx)
80 assert(x.size()==y.size());
90 if(xx-x.front() < x.back()-xx)
1D nearest neighbor interpolator.
Definition: NearestNeighborInterpolator.h:68
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
int samplesAfter() const
Definition: NearestNeighborInterpolator.h:74
bool canExtrapolate() const
Definition: NearestNeighborInterpolator.h:71
IntervalFilter base class/concept.
Concept and base class for all Interpolators and Filters.
Definition: IntervalFilter.h:61
int samples() const
Definition: NearestNeighborInterpolator.h:72
int samplesBefore() const
Definition: NearestNeighborInterpolator.h:73
const Ty & apply(const ContainerTx &x, const ContainerTy &y, const Tx &xx)
Definition: NearestNeighborInterpolator.h:77