> In spm_mapping.c, there are 3 different ways of creating MAPTYPES from
> an mxArray: get_maps_3d_volume, and get_maps_struct itself decomposed in
> get_map_file and get_map_dat. Are they all used by SPM? I dont get it
> because get_map_3d_volume for example allocate only 1 struct MAPTYPE,
> while get_maps_struct allocate 1 MAPTYPE per element in each
> dimension... one per pixel??
They are all used by SPM and are intended to be used for reading data from
files, from 3D arrays or from structures within MATLAB.
>
> I handled my data so as to fill a MAPTYPE in the same fashion as in
> get_maps_3d_volume because it seemed pretty straightforward, but I'm
> facing a segfault in "slice_ushort" when I'm trying to smooth the
> volume, and my intuition is that I'm probably not creating the MAPTYPE
> correctly.
It sounds like that to me too.
Best regards,
-John
|