[Insight-users] SignedDanielssonDistanceMapImageFilter runtime error

xiaolong li leonid_cn2004 at yahoo.com
Tue May 6 14:45:42 EDT 2008


hi, 
    i need some help with this.
    i try to test the Examples/Filtering/SignedDanielssonDistanceMapImageFilter.cxx. accord to the section 6.8 in the itk guide 2.4,
    and i put the source code in a folder and create a CMakeLists.txt liket this:
#####################################
PROJECT(SignedDanielssonDistanceMapImageFilter)
FIND_PACKAGE(ITK)
IF(ITK_FOUND)
   INCLUDE(${ITK_USE_FILE})
ELSE(ITK_FOUND)
   MESSAGE(FATAL_ERROR "ITK not found. Please set ITK_DIR.")
ENDIF(ITK_FOUND)
ADD_EXECUTABLE(SignedDanielssonDistanceMapImageFilter SignedDanielssonDistanceMapImageFilter.cxx )
TARGET_LINK_LIBRARIES(SignedDanielssonDistanceMapImageFilter ITKBasicFilters ITKIO)
#####################################    
   then i compile it ( CMake 2.4 + itk 3.6 + Visutal Studio 2005) , fine
when i try to run it with the sample image  (Example/Data/Circle.png and FivePoints.png), i got a RUNTIME ERROR
i tried to figure out the reason and i found that if i change this line
....
typedef float OutputPixelType;    
...
to typedef unsigned short OutputPixelType;  
program can run but can't get the result as tutroial showed, so i guess i  messed up with something?  btw
i also tried this in other computer (itk 3.4 + visual studio 2003) , no luck :(
anyone can help ? thx a lot
leonid


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080506/18b22d0f/attachment.htm>


More information about the Insight-users mailing list