55#include <vigra/stdimage.hxx>
56#include <vigra/imageinfo.hxx>
57#include <vigra/impex.hxx>
59int main (
int argc ,
char * argv[] )
62 typedef vigra::TinyVector < float , 3 >
pixel_type ;
65 typedef vigra::TinyVector < float , 3 >
voxel_type ;
68 typedef vigra::TinyVector < float , 3 > coordinate_3d ;
71 typedef vigra::MultiArray < 2 , coordinate_3d > warp_type ;
74 typedef vigra::MultiArray < 2 , pixel_type >
target_type ;
81 space ( vigra::Shape3 ( 10 , 10 , 10 ) , 5 , bcv ) ;
84 for (
int z = 0 ; z < 10 ; z++ )
86 for (
int y = 0 ; y < 10 ; y++ )
88 for (
int x = 0 ; x < 10 ; x++ )
106 warp_type warp ( vigra::Shape2 ( 1920 , 1080 ) ) ;
112 for (
int y = 0 ; y < 1080 ; y++ )
114 for (
int x = 0 ; x < 1920 ; x++ )
116 coordinate_3d & c ( warp [ vigra::Shape2 ( x , y ) ] ) ;
117 c[0] = float ( x ) / 192.0 ;
119 c[2] = float ( y ) / 108.0 ;
124 target_type target ( vigra::Shape2 ( 1920 , 1080 ) ) ;
130 vigra::ImageExportInfo imageInfo (
"slice.tif" );
132 vigra::exportImage ( target ,
134 .setPixelType(
"UINT8")
135 .setCompression(
"100")
136 .setForcedRangeMapping ( 0 , 255 , 0 , 255 ) ) ;
138 std::cout <<
"result was written to slice.tif" << std::endl ;
vigra::RGBValue< float, 0, 1, 2 > pixel_type
vspline::evaluator< coordinate_type, float > ev_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 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.
vigra::TinyVector< double, 3 > voxel_type
int main(int argc, char *argv[])
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....
includes all headers from vspline (most of them indirectly)