[Insight-users] LevelSet Filters Problem (ITK_TYPENAME related)
Osc at r
olguna at cimat.mx
Thu Jan 17 17:32:43 EST 2008
Hi All!!
I'm building a GUI_application of segmentation based on LevelSetImageFilters
of ITK, the ones in itkSoftwareGuide and visualization by VTK
FastMarching succeded, but with ShapeDetection and GeodesicActiveContour
there are a compilation Error:
[C++ Error] itkSparseFieldLevelSetImageFilter.txx(101): E2439 'typename' is
only allowed in template declarations
///////Part of itkSparseFieldLevelSetImageFilter.txx where
locate the error...
template<class TInputImage, class TOutputImage>
ITK_TYPENAME SparseFieldLevelSetImageFilter<TInputImage,
TOutputImage>::ValueType
SparseFieldLevelSetImageFilter<TInputImage, TOutputImage>
this is line 101 related with the error----> ::m_ValueZero =
NumericTraits<ITK_TYPENAME, SparseFieldLevelSetImageFilter<TInputImage,
TOutputImage>::ValueType >::Zero;
It is possible to add the library by:
//Shape Detection Level Set
#include <itkShapeDetectionLevelSetImageFilter.h>
//Geodesic Active Contour Level Set
#include <itkGeodesicActiveContourLevelSetImageFilter.h>
also is possible to define types by:
typedef float InternalPixelType;
typedef itk::Image<InternalPixelType,3> InternalImageType;
typedef
itk::ShapeDetectionLevelSetImageFilter<InternalImageType,InternalImageType>
ShapeDetectionFilterType;
typedef
itk::GeodesicActiveContourLevelSetImageFilter<InternalImageType,InternalImag
eType> GeodesicActiveContourFilterType;
Pointers are defined too, by:
ShapeDetectionFilterType::Pointer shapeDetection;
GeodesicActiveContourFilterType::Pointer geodesicActiveContour;
if compile just that lines, there are no problems...,
it compile and run with FastMarching Working, shapeDetection and
geodesicActiveContour obviously do nothing
But once I added the next, appears the error mentioned before...
shapeDetection=ShapeDetectionFilterType::New();
or
geodesicActiveContour=GeodesicActiveContourFilterType::New()
Characteristics:
Compiler: Borland 5.5
IDE: Builder 5.1
ITK version: 3.2.0
VTK version: 5.0.3
Any suggestions??
Looking only found
http://public.kitware.com/pipermail/insight-users/2004-September/010291.html
but adding itkWin32Header.h (as suggested there) doesn't work, altough it
was a MSVC issue
Thanks in Advance
Oscar Gutiérrez Luna
CIMAT A. C.
Cubiculo: J4
Tel.: 73 271-55 ext. 49672
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20080117/d19d56e4/attachment.html
More information about the Insight-users
mailing list