54#include <vigra/stdimage.hxx>
55#include <vigra/imageinfo.hxx>
56#include <vigra/impex.hxx>
59typedef vigra::RGBValue < double , 0 , 1 , 2 >
voxel_type ;
62typedef vigra::RGBValue < unsigned char , 0 , 1 , 2 >
pixel_type ;
67int main (
int argc ,
char * argv[] )
74 bspl ( vigra::Shape3 ( 10 , 10 , 10 ) , 5 , bcv ) ;
78 for (
int z = 0 ; z < 10 ; z++ )
80 for (
int y = 0 ; y < 10 ; y++ )
82 for (
int x = 0 ; x < 10 ; x++ )
84 bspl.
core ( x , y , z ) =
voxel_type ( 25.5 * x , 25.5 * y , 25.5 * z ) ;
99 vigra::MultiArray < 2 , pixel_type > target ( vigra::Shape2 ( 1920 , 1080 ) ) ;
105 for (
int y = 0 ; y < 1080 ; y++ )
107 for (
int x = 0 ; x < 1920 ; x++ )
114 target ( x , y ) = ev ( pick ) ;
119 vigra::ImageExportInfo imageInfo (
"slice.tif" );
121 vigra::exportImage ( target ,
123 .setPixelType(
"UINT8")
124 .setCompression(
"100")
125 .setForcedRangeMapping ( 0 , 255 , 0 , 255 ) ) ;
127 std::cout <<
"result was written to slice.tif" << std::endl ;
vigra::TinyVector< float, 2 > coordinate_type
vspline::grok_type< bspl_coordinate_type< spline_type, rc_type >, result_type, _vsize > make_evaluator(const spline_type &bspl, vigra::TinyVector< int, spline_type::dimension > dspec=vigra::TinyVector< int, spline_type::dimension >(0), int shift=0)
make_evaluator is a factory function, producing a functor which provides access to an evaluator objec...
int main(int argc, char *argv[])
vigra::RGBValue< unsigned char, 0, 1, 2 > pixel_type
vigra::RGBValue< double, 0, 1, 2 > voxel_type
vigra::TinyVector< float, 3 > coordinate_type
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)