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

demonstrates the use of 'channel views' 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

demonstrates the use of 'channel views'

This example is derived from 'slice.cc', we use the same volume as source data. But instead of producing an image output, we create three separate colour channels of the bspline object and assert that the evaluation of the channel views is identical with the evaluation of the 'mother' spline. For a more involved example using channel views, see ca_correct.cc

compile with: clang++ -std=c++11 -march=native -o channels -O3 -pthread -DUSE_VC channels.cc -lvigraimpex -lVc

If you don't have Vc on your system, use

clang++ -std=c++11 -march=native -o channels -O3 -pthread channels.cc -lvigraimpex note that the assertion at the end fails if the program is compiled with -Ofast - then the result is only near equal.

Definition in file channels.cc.

Function Documentation

◆ main()

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

Definition at line 60 of file channels.cc.