#include <mia/2d/deformer.hh>
Public Member Functions | |
FDeformer2D (const C2DFVectorfield &vf, const C2DInterpolatorFactory &ipfac) | |
template<typename T > | |
P2DImage | operator() (const T2DImage< T > &image) const |
template<typename T > | |
void | operator() (const T2DImage< T > &image, T2DImage< T > &result) const |
Additional Inherited Members | |
Public Types inherited from TFilter< P2DImage > | |
typedef P2DImage | result_type |
defines the return type of the filter function More... | |
Deform an image by using a dense vector field as transformation.
Definition at line 38 of file 2d/deformer.hh.
|
inline |
Construor taking the
vf | vector field defining the transformation like T(x) := x - vf(x) |
ipfac | the interpolation factory used for image interpolation |
Definition at line 45 of file 2d/deformer.hh.
Operator to run the transformation like a filter to be called by mia::filter
T | pixel type if the input image |
image | the input image |
Definition at line 58 of file 2d/deformer.hh.
References T2DImage< T >::begin(), T2DDatafield< T >::begin(), C2DInterpolatorFactory::create(), T2DImage< T >::data(), C2DImage::get_size(), T2DVector< T >::x, and T2DVector< T >::y.
|
inline |
Operator to transform the image and store the result in a pre-allocated image
[in] | image | the input image |
[out] | result | the output image |
Definition at line 80 of file 2d/deformer.hh.
References T2DImage< T >::begin(), T2DDatafield< T >::begin(), C2DInterpolatorFactory::create(), T2DImage< T >::data(), C2DImage::get_size(), NS_MIA_END, T2DVector< T >::x, and T2DVector< T >::y.