![]() |
aimsdata
5.1.2
Neuroimaging data handling
|
AimsData is deprecated. Don't use it anymore. carto::Volume and carto::VolumeRef replace it. They are defined in a separate library: cartodata.
AimsData is now only be a wrapper to carto::VolumeRef. This means carto::VolumeRef is actually used behind the scene. AimsData wrapper is still provided for compatibility (and because it would have been too much work to eradicate it from our own codes), but should progressively disapear from all codes.
A carto::VolumeRef is available through an AimsData object (AimsData::volume()
method) so programs working with AimsData can switch to carto::Volume whenever they want.
In the other way, making an AimsData from a carto::Volume is trivial: just give it to AimsData constructor.
Moreover automatic conversions between AimsData
and VolumeRef
have been defined: in most cases we can use carto::VolumeRef
or carto::rc_ptr<carto::Volume>
and call fuctions expecting an AimsData
, and the contrary, in a transparent way. In template functions calls, you may need to specify manually the template type in order to allow the compiler to find the conversions.