hi <br>
<br>
i juststarted working on DICOM images.I am trying to read a file(a
slice image ) from a series of dicom images. On my CmakeLists file i
have written:<br>
<br>
PROJECT( ProjectDicom )<br>
<br>
FIND_PACKAGE ( ITK )<br>
IF ( ITK_FOUND )<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; INCLUDE( ${USE_ITK_FILE} )<br>
ENDIF( ITK_FOUND )<br>
<br>
IF(USE_GDCM)<br>
INCLUDE_DIRECTORIES( ${GDCM_INCLUDE_DIR})<br>
&nbsp; ENDIF(USE_GDCM)<br>
ADD_EXECUTABLE( ProjectDicom &nbsp; ProjectDicom.cxx )<br>
<br>
<br>
TARGET_LINK_LIBRARIES ( ProjectDicom&nbsp; ITKCommon&nbsp;&nbsp; ITKIO)<br>
<br>
and for the image read and write part i have copied the&nbsp;
DicomImageReadWrite.cxx file from the&nbsp; Examples /IO file and
changed the name to ProjectDicom.cxx and put it on my folder where the
CMakelists.txt is also residing.<br>
<br>
when i run the program i am getting a massage &quot; assertion failed&quot;<br>
If i run the program from the command line i just write : &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; ReadDicom.exe&nbsp;&nbsp; DicomImage&nbsp;&nbsp;
OutputImage <br>
<br>
Am i doing somethink wrong on the command line? i have copied the dicom
image ;from the location where it was residing; to the debug file which
is generated after i have&nbsp; built the project.<br>
<br>
How can i read just a specific slide from a series which resides in a folder&nbsp; and write it to another folder?<br>
<span style="font-family: monospace;"></span><br>