Sorry Matthew, my typo. It is "Bad image handle dimensions".
I have the vector V which contains 18 volume structures.
The call to spm_sample_vol is as follows:
d=spm_sample_vol(V(1),X,Y,Z,0);
So I think I'm only passing 1 volume structure.
Is this wrong?
Mark
Matthew Brett wrote:
>Hi,
>
>
>
>>The message comes from spm_sample_vol.c line 26. It follows the call
>>22 map=get_maps(prhs[0], &n);
>>23 if (n!=1)
>>24 {
>>25 free_maps(map, n);
>>26 mexErrMsgTxt("Bad Image Dimensions");
>> 27 }
>>
>>
>
>Strange; I get:
>
> mexErrMsgTxt("Bad image handle dimensions.");
>
>for line 26 of that file.
>
>Anyway, it looks like the code is checking if you have passed more
>than one (or less than one) vol_struct to the function; is that
>possible?
>
>
|