[Insight-users] FixedArray

l franz l.franz25 at gmail.com
Mon Aug 1 10:44:02 EDT 2005


Hi everybody,

I try to write to write an image filter. For that, I need to use an fixed 
array. So, I have include "itkFixedArray.h" and write in the program:

typedef FixedArray<double, 2> ArrayType;

But it doesn't want to compile because of this simple line.

The error is:

home/gally/susan/itkFSLSusanImageFilterTest.cxx: In function `int main (int, 
char **)':
/home/gally/susan/itkFSLSusanImageFilterTest.cxx:222: ISO C++ forbids 
declaration of `FixedArray' with
no type
/home/gally/susan/itkFSLSusanImageFilterTest.cxx:222: template-id 
`FixedArray<double, 2>' used as a
declarator
/home/gally/susan/itkFSLSusanImageFilterTest.cxx:222: parse error before `;'

I don't really understand the problem. Don't I declared the fixed array in a 
good way??

Thanks for advices,

Regards,

Franz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20050801/a9b3d72e/attachment.htm


More information about the Insight-users mailing list