<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi,<div><br></div><div> This is a problem that I have had before and have reported it as a ticket on the GDCM Git page. I have written some code which is heavily dependent on being able to read in a series of DICOM images, in this case they are of PET/NM modality. </div><div><br></div><div>When a series of images are provided, which have "non-integer" rescale slope, the following error is returned at the final stage when SeriesWriter->Update() is invoked. </div><div><br></div><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><div style="margin: 0px;">Assertion failed: (slope == (int)slope), function InverseRescaleFunction, file /opt/SOURCE/GDCM/2.5/Source/MediaStorageAndFileFormat/gdcmRescaler.cxx, line 67.</div><div style="margin: 0px;">Abort trap: 6</div><div style="margin: 0px;"><br></div><div style="margin: 0px;"><br></div><div style="margin: 0px;">I cannot provide my own code here, as it may make the problem less clear. However, the problem is directly recreated using the ResampleDICOM.cxx example from the ITK examples page. If a series of PT/NM images are run through the code the above problem occurs. This is particularly problematic since NM/PT modality images do often have non-integer rescale slopes and currently I am not able to deal with images of this modality.</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">There are 2 things to note:-</div><div style="margin: 0px;">1) I have reported this error with GDCM developer and this problem appeared to have been resolved. I have previously been resampling NM/PT DICOM images using the ResampleDICOM.cxx example in the past without issue. If I recall correctly, ITK 4.5.2 worked with the latest GDCM release. </div><div style="margin: 0px;"><br></div><div style="margin: 0px;">2) CT images (where the slope/intercepts are integer) work fine. </div><div style="margin: 0px;"><br></div><div style="margin: 0px;"><br></div><div style="margin: 0px;">I shall re-log this on the GDCM pages, but since I am unsure that something didn’t change in latest versions of ITK I wanted to report it here too.</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">I would be much obliged if anyone would be able to test the ResampleDICOM.cxx example with DICOM images which have a rescale slope which is not-integer - and see if the problem can be recreated.</div><div style="margin: 0px;"><br></div><div style="margin: 0px;">I am currently using:- ITK 4.7 (from git) and pulled the latest GDCM from Git Repo yesterday.</div><div style="margin: 0px;"><br></div><div style="margin: 0px;"><br></div><div style="margin: 0px;">Regards, Nick.</div><div style="margin: 0px;"><br></div><div style="margin: 0px;"><br></div></div></div></body></html>