aimsdata  5.1.2
Neuroimaging data handling
changes in classes and API

Generic object API changes (cartobase)

Volumes

New volumes: Volumes concept philosophy (cartodata)

template types and IO

Most builtin C numeric types have variable sizes on different architectures or systems: for instance long is 32 bits on 32 bit systems, but 64 bits on 64 bit systems. It may even be dependent on some compilation flags.

There are some fixed size types defined in compilers: in32_t, uint16_t, etc. We now insist on using these types for carto::Volume:

Reader<carto::Volume<int16_t> > reader( "filename.ima" );
reader.read( data );

Especially, don't use long types anymore for any IO.