Print

Print


Hi Jack,

I can't remember anymore as it isn't really important if you just want
to use them.
Normally you can just get away with knowing that you can store complex
values inside one analyze file hdr/img pair inside of keeping two file
hdr/img
pairs for the separate parts.

If, however, it is critical that you know how they are stored in the
analyze
format, the information can be found in the code - either
$FSLDIR/src/newimage/newimageio.h or $FSLDIR/src/newimage/generalio.h
My recollection is that they are interleaved, but I'd need to check the
code to be sure.

Cheers,
        Mark




On Monday, December 1, 2003, at 10:08  pm, Jack Grinband wrote:

> Hi Mark,
> But how is the analyze-form complex volume represented? Are the two
> volumes
> concatenated in one file, real first and imaginary second (i.e. as if
> the two volumes
> are sequential in time)?  Or is it interleaved?  Or must I always have
> two separate
> files to represent one complex volume?  thanks,
>
> jack
>
>
>> Hi Jack,
>>
>> avwcomplex converts analyze-form complex volumes to and from
>> pairs of real volumes.  So if you have one volume = real part and
>> another volume = imaginary part then doing:
>>  avwcomplex -complex realvol imagvol complexvol
>> will save the output volume (called complexvol in this example)
>> in the analyze-form.
>>
>> You can also split up a complex analyze-form volume into separate
>> parts (either real & imaginary or magnitude & phase).
>>
>> Hope that makes sense.
>> All the best,
>>    Mark
>>
>>
>>
>> Jack Grinband wrote:
>>
>> >Hi all,
>> >What format does avwcomplex want complex numbers in?  That is, I
>> have a
> complex image
>> >where the real and imaginary values are interleaved.  Should this
>> work or do I
> need to have
>> >the real and imaginary part on a single line or what?  thanks,
>> >
>> >jack
>> >
>> >