3 #include <vigra/multi_array.hxx>
42 : size_(std::distance(begin, end)),
47 int operator[](
int index)
50 std::advance(ii, index);
75 Splice(
int begin,
int interval,
int end)
79 size_(int(std::
floor((double(end) -double(begin))/interval)))
82 int operator[](
int index)
84 int ii = begin_ + index * interval_;
95 Splice<T> _spl(T b, T e)
97 return Splice<T>(b, e);
100 Splice<T> _spl(T b,
int size, T e)
102 return Splice<T>(b, size, e);
105 inline Splice<int> _spl(
int size)
107 return Splice<int>(0, size);
112 template<
class T,
class G>
122 template<
class R,
class F,
125 void copy_splice( Splice<R> _first,
127 MultiArrayView<2, T, C> src,
128 MultiArrayView<2, T2, C2> dest)
130 for(
int jj = 0 ; jj < _second.size(); ++jj)
132 for(
int ii = 0 ; ii < _first.size(); ++ii)
134 dest(ii, jj) = src(_first[ii], _second[jj]);
TinyVector< MultiArrayIndex, N > type
Definition: multi_shape.hxx:272
int floor(FixedPoint< IntBits, FracBits > v)
rounding down.
Definition: fixedpoint.hxx:667
Definition: splices.hxx:35