Boost logo

Boost :

From: John (EBo) David (ebo_at_[hidden])
Date: 2001-03-22 21:13:13


Jeremy Siek <jsiek_at_[hidden]> wrote:

> One possibility I'm looking at starts with the std::slice from valarray,
> but allows them to be combined to specify slices for N dimensions.
>
> A[slice(0)(1,2)(2,3)] // slices here are (start,size=1,stride=1)
> // another sensible option would be to
> // specify slices with half-open intervals
> // (start,finish,stride)
>
> If anyone has any good ideas on a nice interface for specifying subarrays,
> feel free to chime in :)

Don't know if it is appropriate, but for the sake of discussion...

how about defining it like a multi-dimentional region of interest? That
way you only have to define the two min and max points that defined the
N dimentional ROI.

  EBo --


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk