vspline 1.1.0
Generic C++11 Code for Uniform B-Splines
Functions
slice.cc File Reference

create 2D image data from a 3D spline More...

#include <iostream>
#include <vspline/vspline.h>
#include <vigra/stdimage.hxx>
#include <vigra/imageinfo.hxx>
#include <vigra/impex.hxx>

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Detailed Description

create 2D image data from a 3D spline

build a 3D volume from samples of the RGB colour space build a spline over it and extract a 2D slice, using vspline::transform() In this example, we use an 'array-based' transform, where the coordinates at which the spline is to be evaluated are held in an array of the same extent as the target.

compile with: clang++ -std=c++11 -march=native -o slice -O3 -pthread -DUSE_VC=1 slice.cc \ -lvigraimpex -lVc (with Vc; use -DUSE_HWY and -lhwy for highway, or -std=c++17 and -DUSE_STDSIMD for the std::simd backend) or: clang++ -std=c++11 -march=native -o slice -O3 -pthread slice.cc -lvigraimpex (without a SIMD backend) g++ also works.

Definition in file slice.cc.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 59 of file slice.cc.