[Insight-users] Missing: typedef TInputImage InputImageType;

Steven Philips philips1962 at hotmail.com
Mon Aug 2 06:21:54 EDT 2004


Hi

I want to use itkCropImageFilter.h, but I keep getting the below
error message.  This also happens when I try and include
itkRegionOfInterestImageFilter.h

I think these two lines are needed in the *.h files.
typedef TInputImage                 InputImageType;
typedef TOutputImage                OutputImageType;

Is this correct or am I missing something???

Steven

/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx: In
member function `virtual void itk::ExtractImageFilter<TInputImage,
TOutputImage>::GenerateOutputInformation()':
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:146: 
`
InputImageType' is not a class or namespace
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:146: 
`
SpacingType' is not a class or namespace
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:147: 
`
InputImageType' fails to be a typedef or built in type
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:147: 
warning: ISO
C++ forbids declaration of `inputSpacing' with no type
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:148: 
`
InputImageType' is not a class or namespace
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:148: 
`
PointType' is not a class or namespace
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:149: 
`
InputImageType' fails to be a typedef or built in type
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:149: 
warning: ISO
C++ forbids declaration of `inputOrigin' with no type
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:151: 
`
OutputImageType' is not a class or namespace
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:151: 
`
SpacingType' is not a class or namespace
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:151: 
`
OutputImageType' fails to be a typedef or built in type
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:151: 
warning: ISO
C++ forbids declaration of `outputSpacing' with no type
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:152: 
`
OutputImageType' is not a class or namespace
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:152: 
`
PointType' is not a class or namespace
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:152: 
`
OutputImageType' fails to be a typedef or built in type
/usr/local/include/InsightToolkit/BasicFilters/itkExtractImageFilter.txx:152: 
warning: ISO
C++ forbids declaration of `outputOrigin' with no type
In file included from imagesegmentation.h:85,
from imagesegmentation.cpp:1:

_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today! 
http://www.msn.co.uk/messenger



More information about the Insight-users mailing list