52#include <vigra/stdimage.hxx>
53#include <vigra/imageinfo.hxx>
54#include <vigra/impex.hxx>
94 const vigra::TinyVector < float , 2 >
dx1_spec { 1 , 0 } ;
95 const vigra::TinyVector < float , 2 >
dy1_spec { 0 , 1 } ;
112 template <
class IN ,
class OUT >
139int main (
int argc ,
char * argv[] )
143 std::cerr <<
"pass a colour image file as argument" << std::endl ;
148 vigra::ImageImportInfo imageInfo ( argv[1] ) ;
169 vigra::importImage ( imageInfo , bspl.
core ) ;
210 vigra::ImageExportInfo eximageInfo (
"gsm2.tif" );
212 std::cout <<
"storing the target image as 'gsm2.tif'" << std::endl ;
214 vigra::exportImage ( target ,
216 .setPixelType(
"UINT8") ) ;
vigra::RGBValue< float, 0, 1, 2 > pixel_type
vigra::MultiArray< 2, pixel_type > target_type
class evaluator encodes evaluation of a spline-like object. This is a generalization of b-spline eval...
void eval(const typename base_type::in_type &_coordinate, typename base_type::out_type &_result) const
unvectorized evaluation function. this is delegated to 'feed' above, which reinterprets the arguments...
int main(int argc, char *argv[])
vigra::RGBValue< float, 0, 1, 2 > pixel_type
vigra::TinyVector< float, 2 > coordinate_type
vspline::evaluator< coordinate_type, pixel_type > ev_type
vspline::bspline< pixel_type, 2 > spline_type
vigra::MultiArray< 2, pixel_type > target_type
void transform(const unary_functor_type &functor, const vigra::MultiArrayView< dimension, typename unary_functor_type::in_type > &input, vigra::MultiArrayView< dimension, typename unary_functor_type::out_type > &output, int njobs=vspline::default_njobs, vspline::atomic< bool > *p_cancel=0)
implementation of two-array transform using wielding::coupled_wield.
we build a vspline::unary_functor which calculates the sum of gradient squared magnitudes....
void eval(const IN &c, OUT &result) const
const vigra::TinyVector< float, 2 > dy1_spec
const vigra::TinyVector< float, 2 > dx1_spec
ev_gsm(const spline_type &bspl)
class bspline now builds on class bspline_base, adding coefficient storage, while bspline_base provid...
void prefilter(vspline::xlf_type boost=vspline::xlf_type(1), int njobs=vspline::default_njobs)
prefilter converts the knot point data in the 'core' area into b-spline coefficients....
class unary_functor provides a functor object which offers a system of types for concrete unary funct...
includes all headers from vspline (most of them indirectly)