<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>hi, </DIV>
<DIV> </DIV>
<DIV> i need some help with this.</DIV>
<DIV> </DIV>
<DIV> i try to test the Examples/Filtering/SignedDanielssonDistanceMapImageFilter.cxx. accord to the section 6.8 in the itk guide 2.4,</DIV>
<DIV> and i put the source code in a folder and create a CMakeLists.txt liket this:</DIV>
<DIV> </DIV>
<DIV>#####################################</DIV>
<DIV>PROJECT(SignedDanielssonDistanceMapImageFilter)</DIV>
<DIV>FIND_PACKAGE(ITK)<BR>IF(ITK_FOUND)<BR> INCLUDE(${ITK_USE_FILE})<BR>ELSE(ITK_FOUND)<BR> MESSAGE(FATAL_ERROR "ITK not found. Please set ITK_DIR.")<BR>ENDIF(ITK_FOUND)</DIV>
<DIV>ADD_EXECUTABLE(SignedDanielssonDistanceMapImageFilter SignedDanielssonDistanceMapImageFilter.cxx )<BR>TARGET_LINK_LIBRARIES(SignedDanielssonDistanceMapImageFilter ITKBasicFilters ITKIO)</DIV>
<DIV>##################################### </DIV>
<DIV> </DIV>
<DIV> then i compile it ( CMake 2.4 + itk 3.6 + Visutal Studio 2005) , fine</DIV>
<DIV> </DIV>
<DIV>when i try to run it with the sample image (Example/Data/Circle.png and FivePoints.png), i got a RUNTIME ERROR</DIV>
<DIV> </DIV>
<DIV>i tried to figure out the reason and i found that if i change this line</DIV>
<DIV>....</DIV>
<DIV>typedef float OutputPixelType; </DIV>
<DIV>...</DIV>
<DIV> </DIV>
<DIV>to typedef unsigned short OutputPixelType; </DIV>
<DIV> </DIV>
<DIV>program can run but can't get the result as tutroial showed, so i guess i messed up with something? btw</DIV>
<DIV> </DIV>
<DIV>i also tried this in other computer (itk 3.4 + visual studio 2003) , no luck :(</DIV>
<DIV> </DIV>
<DIV>anyone can help ? thx a lot</DIV>
<DIV> </DIV>
<DIV>leonid</DIV>
<DIV> </DIV>
<DIV> </DIV></div><br>
<hr size=1>Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html>