[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]

details Splice< T > Class Template Reference VIGRA

#include <vigra/random_forest/splices.hxx>

Detailed Description

template<class T>
class vigra::Splice< T >

Idea for a class to use for easy splicing

usage (with factory function _spl)

// copy every even indexed element to a 5 x 5 // sized matrix Matrix<double> a(10, 10) MultiArrayView<2,double> b(_spl_shp(_spl(0,2,10), _spl(0,2,10))); copy_splice(_spl(0,2,10),_spl(0,2,10), a, b);

it is also possible to supply iterator ranges std::vector<int> indices; indices.push_back(3) (...)

copy_splice(_spl(indices.begin(), indices.end()), _spl(a.shape(1)), a, b)

if you only have a forward iterator then you must specify the size of the splice with _spl(set.begin(), set.end(), set.size());

ok.. what we actually need is a decent iota iterator or something like xrange but for now it should suffice.


The documentation for this class was generated from the following file:

© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de)
Heidelberg Collaboratory for Image Processing, University of Heidelberg, Germany

html generated using doxygen and Python
vigra 1.11.1 (Fri May 19 2017)