<div><div>Hi, i&#39;m trying to create a dicom viewer using itk and vtk. So i&#39;m begining to deal with the examples, DicomSeriesReadImageWrite2.cxx in this case. I create a project and build it with cmake-gui although i could create the binary of the project the program get into a exception like that:</div>
<div><br></div><div>&quot;itk::ExceptionObject (0x15afd50)</div><div>Location: &quot;virtual void itk::JPEGImageIO::Write(const void*)&quot; </div><div>File: /home/brennobr/Util/Itk/InsightToolkit-4.0.0/Modules/IO/JPEG/src/itkJPEGImageIO.cxx</div>
<div>Line: 437</div><div>Description: itk::ERROR: JPEGImageIO(0x1587840): JPEG supports unsigned char/int only&quot;</div><div><br></div><div><br></div><div>How i feel that the CMakelists.txt is ok and i didn&#39;t changes in the default example of DicomSeriesReadImageWrite2.cxx i think can be the line of command used to run the program. I tried the following way:</div>
<div><br></div><div>&quot;./DicomSeriesReadImageWrite2 /home/brennobr/Source/dcm-files teste.jpeg image-01.dcm&quot;</div><div><br></div><div><br></div><div>*The bin DicomSeriesReadImageWrite2 is in a different folder of the dicom files</div>
<div><br></div><div><br></div><div>Here is my CMakeLists.txt</div><div><br></div><div>#beginning CMakeLists.txt</div><div>cmake_minimum_required(VERSION 2.6)</div><div> </div><div>FIND_PACKAGE(ITK REQUIRED)</div><div>INCLUDE(${ITK_USE_FILE})</div>
<div><br></div><div>project(DicomSeriesReadImageWrite2)</div><div><br></div><div>add_executable(DicomSeriesReadImageWrite2 DicomSeriesReadImageWrite2.cxx )</div><div>target_link_libraries(DicomSeriesReadImageWrite2  ${ITK_LIBRARIES})</div>
<div><br></div><div>if(BUILD_TESTING)</div><div>  add_subdirectory(test)</div><div>endif(BUILD_TESTING)</div><div>#end CMakeLists.txt</div></div><br clear="all"><div><br></div>-- <br><div>Brenno Bernardes Ribeiro<br><br>Engenharia da Computação</div>
<div>
Universidade Federal do Pará</div><div style="padding:0px;overflow:hidden;margin-left:0px;margin-top:0px;color:black;font-size:10px;text-align:left;line-height:130%"></div><br>