<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;color:#000000;"><div>Hello,<br>I'm a new user of ITK.<br>I succeed to install it and run it on c++.<br>I won't to read dicom image and display it on screen at the begining.i tried the examples included on itk/example but i have many errors when i debogue the program.the build is successful.I have tried for many days but i can't debogue it . i have send many times to the forum but i don't reseived any answer. <br>can somebody help me<br>Thanks<br><br><div>the c make file is as follow:<br>CMAKE_MINIMUM_REQUIRED(VERSION 2.4)<br>IF(COMMAND CMAKE_POLICY)<br> CMAKE_POLICY(SET CMP0003 NEW)<br>ENDIF(COMMAND CMAKE_POLICY)<br><br>PROJECT(ImageExamples)<br>FIND_PACKAGE(ITK REQUIRED)<br>INCLUDE(${ITK_USE_FILE})<br>INCLUDE_REGULAR_EXPRESSION("^.*$")<br><br>SET(TEMP
${ITK_BINARY_DIR}/Testing/Temporary)<br><br>ADD_EXECUTABLE(Image2 Image2.cxx )<br>TARGET_LINK_LIBRARIES(Image2 ITKIO)<br><br>SET(IMAGE_EXAMPLES2 ${CXX_TEST_PATH}/ImageExamples2)<br>IF( NOT ITK_DISABLE_CXX_TESTING )<br><br>IF(BUILD_TESTING)<br><br>IF(NOT BORLAND)<br> ADD_TEST(Image2Test ${IMAGE_EXAMPLES}<br> Image2Test ${ITK_SOURCE_DIR}/Examples/Data/BrainMidSagittalSlice.png<br> )<br>ENDIF(NOT BORLAND)<br>ENDIF(BUILD_TESTING)<br>ENDIF( NOT
ITK_DISABLE_CXX_TESTING )<br><br>and the image2.cxx file is :<br>#if defined(_MSC_VER)<br>#pragma warning ( disable : 4786 )<br>#endif<br>#include "itkImage.h"<br></div>#include "itkImageFileReader.h"<br>int main( int , char * argv[])<br>{typedef unsigned char PixelType;<br> const unsigned int Dimension = 3;<br><br> typedef itk::Image< PixelType, Dimension > ImageType;<br>typedef itk::ImageFileReader< ImageType > ReaderType;<br>ReaderType::Pointer reader = ReaderType::New();<br>const char * filename = argv[1];<br> reader->SetFileName( filename );<br>reader->Update();<br>ImageType::Pointer image = reader->GetOutput();<br> return 0;}<br><br></div></div><br>
</body></html>