<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=4><SPAN class=734165121-17012008>Hi
All!!</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=4><SPAN class=734165121-17012008>I'm building a
GUI_application of segmentation based on LevelSetImageFilters of ITK, the ones
in itkSoftwareGuide and visualization by VTK<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=4><SPAN class=734165121-17012008>FastMarching
succeded, but with ShapeDetection and GeodesicActiveContour there are a
compilation Error:<BR></DIV></SPAN></FONT>
<DIV><FONT face=Arial size=4><SPAN class=734165121-17012008>[C++ Error]
itkSparseFieldLevelSetImageFilter.txx(101): E2439 'typename' is only allowed in
template declarations</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=4><SPAN
class=734165121-17012008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=4><SPAN
class=734165121-17012008> ///////Part
of itkSparseFieldLevelSetImageFilter.txx where locate the
error...
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=4><SPAN
class=734165121-17012008>
template<class TInputImage, class
TOutputImage><BR>
ITK_TYPENAME
SparseFieldLevelSetImageFilter<TInputImage,
TOutputImage>::ValueType<BR>
SparseFieldLevelSetImageFilter<TInputImage,
TOutputImage><BR> this is line 101 related with the
error----> ::m_ValueZero =
NumericTraits<ITK_TYPENAME, </SPAN></FONT><FONT face=Arial size=4><SPAN
class=734165121-17012008>SparseFieldLevelSetImageFilter<TInputImage,</SPAN></FONT></DIV>
<DIV><FONT face=Arial><FONT size=4> <SPAN
class=734165121-17012008> </SPAN><FONT><SPAN class=734165121-17012008>TOutputImage>::ValueType
>::Zero;</SPAN></FONT></FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=4><SPAN class=734165121-17012008>It is possible to
add the library by:<BR> //Shape Detection Level
Set<BR>#include
<itkShapeDetectionLevelSetImageFilter.h><BR> //Geodesic Active
Contour Level Set<BR>#include
<itkGeodesicActiveContourLevelSetImageFilter.h></SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=4><SPAN class=734165121-17012008>also is possible to
define types by:<BR> typedef float
InternalPixelType;<BR> typedef itk::Image<InternalPixelType,3>
InternalImageType; </SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=4><SPAN
class=734165121-17012008> typedef
itk::ShapeDetectionLevelSetImageFilter<InternalImageType,InternalImageType>
ShapeDetectionFilterType;</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=4><SPAN class=734165121-17012008> typedef
itk::GeodesicActiveContourLevelSetImageFilter<InternalImageType,InternalImageType>
GeodesicActiveContourFilterType;</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=4><SPAN class=734165121-17012008>Pointers are defined
too, by:<BR> ShapeDetectionFilterType::Pointer shapeDetection;<BR>
GeodesicActiveContourFilterType::Pointer
geodesicActiveContour;<BR></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=4><SPAN class=734165121-17012008>if compile just that
lines, there are no problems..., </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=4><SPAN
class=734165121-17012008> it compile and run with
FastMarching Working, shapeDetection and geodesicActiveContour obviously do
nothing<BR>But once I added the next, appears the error mentioned
before...<BR>
shapeDetection=ShapeDetectionFilterType::New();<BR>
or<BR>
geodesicActiveContour=GeodesicActiveContourFilterType::New()</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=4><SPAN
class=734165121-17012008></SPAN></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=4><SPAN
class=734165121-17012008>Characteristics:<BR>Compiler: Borland 5.5<BR>IDE:
Builder 5.1<BR>ITK version: 3.2.0<BR>VTK version: 5.0.3</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=4><SPAN
class=734165121-17012008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=4><SPAN class=734165121-17012008>Any
suggestions??</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=4><SPAN class=734165121-17012008>Looking only found
<A
href="http://public.kitware.com/pipermail/insight-users/2004-September/010291.html">http://public.kitware.com/pipermail/insight-users/2004-September/010291.html</A><BR>but
adding itkWin32Header.h (as suggested there) doesn't work, altough it was a MSVC
issue</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=4><SPAN
class=734165121-17012008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=4><SPAN class=734165121-17012008>Thanks in
Advance</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV align=left><FONT face=Arial size=2>Oscar Gutiérrez Luna</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>CIMAT A. C.</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Cubiculo: J4</FONT></DIV>
<DIV align=left><FONT face=Arial size=2><FONT size=2>Tel.: 73 271-55</FONT> ext.
49672</FONT></DIV>
<DIV> </DIV></BODY></HTML>