Boost logo

Boost :

From: Ullrich Koethe (u.koethe_at_[hidden])
Date: 2001-11-15 13:46:18


Peter Dimov wrote:
>
>
> The interface as presented to the user would be orthogonal:
>
> basic_image<bool, linear> // == basic_image<unsigned char, linear>
> basic_image<bool, packed> // == vector<bool>
> basic_image<bool, rle>
> basic_image<unsigned char, linear>
> basic_image<unsigned char, rle>
>

So you would specialize algorithms on storage format (linear, packed,
rle)? Interesting, but a lot of work (some algorithms are needed 3
times).

> True, with an accessor layer on top it doesn't matter whether it's
>
> image<double, 3>
>
> or
>
> image<array<double, 3> >
>
> (when the number of channels is fixed at compile time, which it might not be
> if you want to load PSDs or other multichannel formats.)
>

No, I also have accessors for variable band formats (SequenceAccessor,
VectorAccessor and VectorBandAccessor)

Ulli

-- 
 ________________________________________________________________
|                                                                |
| Ullrich Koethe  Universität Hamburg / University of Hamburg    |
|                 FB Informatik / Dept. of Computer Science      |
|                 AB Kognitive Systeme / Cognitive Systems Group |
|                                                                |
| Phone: +49 (0)40 42883-2573                Vogt-Koelln-Str. 30 |
| Fax:   +49 (0)40 42883-2572                D - 22527 Hamburg   |
| Email: u.koethe_at_[hidden]               Germany             |
|        koethe_at_[hidden]                        |
| WWW:   http://kogs-www.informatik.uni-hamburg.de/~koethe/      |
|________________________________________________________________|

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