[IGSTK-Users] I need help about headers

Patrick Cheng cheng at isis.georgetown.edu
Fri Apr 4 10:09:02 EDT 2008


Hi B3hzat,

IGSTK is based on ITK and VTK.

To be able to use the DICOMImageReader, you should:

    1. Install CMake

    2. Download, configure (using CMake), and compile ITK, VTK, GUI 
Toolkit (FLTK or Qt)

    3. Download IGSTK, ,configure the project using CMake, you have to 
set the proper ITK, VTK binary directories. Then compile.

After these steps, you can start your project and link to IGSTK library.

Also igstkDICOMImageReader is an abstract class. You should use the 
following classes instead, they are modality specific:
igstkMRImageReader
igstkCTImageReader
igstkUSImageReader

We are currently developing a GenericImageReader class can be used to 
read all modalities supported by ITKImageFileReader.

Thank you,

Patrick

B3hzat wrote:
> Hello everyone,
> 
>  
> 
> I want to use “only” IGSTK library but it’s really confused me. I just 
> try to open dicom images but headers not allow this.  Any idea this 
> situation?
> 
>  
> 
> #code#
> 
> #include <iostream>
> 
> #include <igstk/igstkDICOMImageReader.h>
> 
>  
> 
> int main()
> 
> {
> 
>       //dummy code
> 
>       //testing
> 
>       return EXIT_SUCCESS;
> 
> }
> 
>  
> 
> #errors#
> 
> Error      1             error C2504: 'vcl_numeric_limits' : base class 
> undefined              c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    41          
> 
> Error      2             error C2143: syntax error : missing ',' before 
> '<'                c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    41          
> 
> Error      3             error C2143: syntax error : missing ';' before 
> '<'                c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    44          
> 
> Error      4             error C4430: missing type specifier - int 
> assumed. Note: C++ does not support default-int         c:\program files 
> (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h              44          
> 
> Error      5             error C2238: unexpected token(s) preceding 
> ';'               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    44          
> 
> Error      6             error C2504: 'vcl_numeric_limits' : base class 
> undefined              c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    104        
> 
> Error      7             error C2143: syntax error : missing ',' before 
> '<'                c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    104        
> 
> Error      8             error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    119        
> 
> Error      9             error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    120        
> 
> Error      10           error C2065: 'Zero' : undeclared 
> identifier           c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    123        
> 
> Error      11           error C2504: 'vcl_numeric_limits' : base class 
> undefined              c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    131        
> 
> Error      12           error C2143: syntax error : missing ',' before 
> '<'                c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    131        
> 
> Error      13           error C3861: 'min': identifier not found 
> c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    145        
> 
> Error      14           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    146        
> 
> Error      15           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    147        
> 
> Error      16           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    148        
> 
> Error      17           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    149        
> 
> Error      18           error C2504: 'vcl_numeric_limits' : base class 
> undefined              c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    158        
> 
> Error      19           error C2143: syntax error : missing ',' before 
> '<'                c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    158        
> 
> Error      20           error C3861: 'min': identifier not found 
> c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    172        
> 
> Error      21           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    173        
> 
> Error      22           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    174        
> 
> Error      23           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    175        
> 
> Error      24           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    176        
> 
> Error      25           error C2504: 'vcl_numeric_limits' : base class 
> undefined              c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    185        
> 
> Error      26           error C2143: syntax error : missing ',' before 
> '<'                c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    185        
> 
> Error      27           error C3861: 'min': identifier not found 
> c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    197        
> 
> Error      28           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    198        
> 
> Error      29           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    199        
> 
> Error      30           error C2504: 'vcl_numeric_limits' : base class 
> undefined              c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    209        
> 
> Error      31           error C2143: syntax error : missing ',' before 
> '<'                c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    209        
> 
> Error      32           error C3861: 'min': identifier not found 
> c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    221        
> 
> Error      33           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    222        
> 
> Error      34           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    223        
> 
> Error      35           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    224        
> 
> Error      36           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    225        
> 
> Error      37           error C2504: 'vcl_numeric_limits' : base class 
> undefined              c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    234        
> 
> Error      38           error C2143: syntax error : missing ',' before 
> '<'                c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    234        
> 
> Error      39           error C3861: 'min': identifier not found 
> c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    246        
> 
> Error      40           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    247        
> 
> Error      41           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    248        
> 
> Error      42           error C2504: 'vcl_numeric_limits' : base class 
> undefined              c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    258        
> 
> Error      43           error C2143: syntax error : missing ',' before 
> '<'                c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    258        
> 
> Error      44           error C3861: 'min': identifier not found 
> c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    270        
> 
> Error      45           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    271        
> 
> Error      46           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    272        
> 
> Error      47           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    273        
> 
> Error      48           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    274        
> 
> Error      49           error C2504: 'vcl_numeric_limits' : base class 
> undefined              c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    283        
> 
> Error      50           error C2143: syntax error : missing ',' before 
> '<'                c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    283        
> 
> Error      51           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    298        
> 
> Error      52           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    299        
> 
> Error      53           error C2504: 'vcl_numeric_limits' : base class 
> undefined              c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    310        
> 
> Error      54           error C2143: syntax error : missing ',' before 
> '<'                c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    310        
> 
> Error      55           error C3861: 'min': identifier not found 
> c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    322        
> 
> Error      56           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    323        
> 
> Error      57           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    324        
> 
> Error      58           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    325        
> 
> Error      59           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    326        
> 
> Error      60           error C2504: 'vcl_numeric_limits' : base class 
> undefined              c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    335        
> 
> Error      61           error C2143: syntax error : missing ',' before 
> '<'                c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    335        
> 
> Error      62           error C3861: 'min': identifier not found 
> c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    347        
> 
> Error      63           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    348        
> 
> Error      64           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    349        
> 
> Error      65           error C2504: 'vcl_numeric_limits' : base class 
> undefined              c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    360        
> 
> Error      66           error C2143: syntax error : missing ',' before 
> '<'                c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    360        
> 
> Error      67           error C3861: 'max': identifier not 
> found               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    372        
> 
> Error      68           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    373        
> 
> Error      69           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    374        
> 
> Error      70           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    375        
> 
> Error      71           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    376        
> 
> Error      72           error C2504: 'vcl_numeric_limits' : base class 
> undefined              c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    385        
> 
> Error      73           error C2143: syntax error : missing ',' before 
> '<'                c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    385        
> 
> Error      74           error C3861: 'max': identifier not 
> found               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    397        
> 
> Error      75           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    398        
> 
> Error      76           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    399        
> 
> Error      77           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    400        
> 
> Error      78           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    401        
> 
> Error      79           error C2504: 'vcl_numeric_limits' : base class 
> undefined              c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    410        
> 
> Error      80           error C2143: syntax error : missing ',' before 
> '<'                c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    410        
> 
> Error      81           error C3861: 'max': identifier not 
> found               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    422        
> 
> Error      82           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    423        
> 
> Error      83           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    424        
> 
> Error      84           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    425        
> 
> Error      85           error C2065: 'val' : undeclared 
> identifier               c:\program files (x86)\microsoft visual studio 
> 8\vc\include\igstk\itknumerictraits.h    426        
> 
> Error      86           error C2065: 'vcl_complex' : undeclared 
> identifier           c:\program files (x86)\microsoft visual studio 
> 8\vc\include\vnl\vnl_numeric_traits.h 371        
> 
> Error      87           error C2062: type 'float' unexpected     
> c:\program files (x86)\microsoft visual studio 
> 8\vc\include\vnl\vnl_numeric_traits.h 371        
> 
> Error      88           error C2143: syntax error : missing ';' before 
> '{' c:\program files (x86)\microsoft visual studio 
> 8\vc\include\vnl\vnl_numeric_traits.h 372        
> 
> Error      89           error C2143: syntax error : missing ';' before 
> '}' c:\program files (x86)\microsoft visual studio 
> 8\vc\include\vnl\vnl_numeric_traits.h 387        
> 
> Error      90           error C2062: type 'float' unexpected     
> c:\program files (x86)\microsoft visual studio 
> 8\vc\include\vnl\vnl_numeric_traits.h 391        
> 
> Error      91           error C2062: type 'float' unexpected     
> c:\program files (x86)\microsoft visual studio 
> 8\vc\include\vnl\vnl_numeric_traits.h 391        
> 
> Error      92           error C2143: syntax error : missing ';' before 
> '{' c:\program files (x86)\microsoft visual studio 
> 8\vc\include\vnl\vnl_numeric_traits.h 391        
> 
> Error      93           error C2062: type 'double' 
> unexpected                c:\program files (x86)\microsoft visual studio 
> 8\vc\include\vnl\vnl_numeric_traits.h 395        
> 
> Error      94           error C2143: syntax error : missing ';' before 
> '{' c:\program files (x86)\microsoft visual studio 
> 8\vc\include\vnl\vnl_numeric_traits.h 396        
> 
> Error      95           error C2143: syntax error : missing ';' before 
> '}' c:\program files (x86)\microsoft visual studio 
> 8\vc\include\vnl\vnl_numeric_traits.h 411        
> 
> Error      96           error C2062: type 'double' 
> unexpected                c:\program files (x86)\microsoft visual studio 
> 8\vc\include\vnl\vnl_numeric_traits.h 415        
> 
> Error      97           error C2062: type 'double' 
> unexpected                c:\program files (x86)\microsoft visual studio 
> 8\vc\include\vnl\vnl_numeric_traits.h 415        
> 
> Error      98           error C2143: syntax error : missing ';' before 
> '{' c:\program files (x86)\microsoft visual studio 
> 8\vc\include\vnl\vnl_numeric_traits.h 415        
> 
> Error      99           error C2062: type 'long double' unexpected      
> c:\program files (x86)\microsoft visual studio 
> 8\vc\include\vnl\vnl_numeric_traits.h 419        
> 
> Error      100         error C2143: syntax error : missing ';' before 
> '{' c:\program files (x86)\microsoft visual studio 
> 8\vc\include\vnl\vnl_numeric_traits.h 420        
> 
> Error      101         error C2143: syntax error : missing ';' before 
> '}' c:\program files (x86)\microsoft visual studio 
> 8\vc\include\vnl\vnl_numeric_traits.h 435        
> 
> Error      102         error C2062: type 'long double' unexpected      
> c:\program files (x86)\microsoft visual studio 
> 8\vc\include\vnl\vnl_numeric_traits.h 439        
> 
> Error      103         fatal error C1003: error count exceeds 100; 
> stopping compilation            c:\program files (x86)\microsoft visual 
> studio 8\vc\include\vnl\vnl_numeric_traits.h   439        
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> IGSTK-Users mailing list
> IGSTK-Users at public.kitware.com
> http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-users



More information about the IGSTK-Users mailing list