View Issue Details

IDProjectCategoryView StatusLast Update
0003386Slicer4Core: Base Codepublic2017-06-10 08:51
Reporterwangk Assigned Tomccormic  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionSlicer 4.3.0 
Target VersionSlicer 4.4.0Fixed in VersionSlicer 4.4.0 
Summary0003386: Import of certain dicom image series results in incorrect scalar type
Description

Since dicom utilizes the concept of slope and intercept, the scalar range for each 2D slice can be much different. However, in Slicer, the scalar type is determined by checking the ComponentType returned by GDCMImageIO which only tells the last slice ComponentType in vtkITKArchetypeImageSeriesReader.cxx.

I propose to change vtkITKArchetypeImageSeriesReader.cxx as well as the itkImageSeriesReader class in ITK. The idea is that the scalar range will be checked for each 2D slice in itkImageSeriesReader and then a new variable OutputImagePixelScalarType will be set accordingly, then in vtkITKArchetypeImageSeriesReader.cxx it will check the OutputImagePixelScalarType from the itkImageSeriesReader to correctly determine the scalar type.

if you think this makes sense, I will create an ITK ticket and submit a patch to ITK. The slicer patch has to wait until slicer start to use the newly patched ITK.

TagsNo tags attached.

Activities

wangk

wangk

2013-09-18 08:10

developer   ~0010004

Hi Jc and Matt,

I have pushed a topic to https://github.com/kevinwangcanada/Slicer/tree/3386-Import-of-certain-dicom-image-series-results-in-incorrect-scalar-type.

Please let me know if you have any questions.

Thanks,

Kevin

wangk

wangk

2013-09-18 08:16

developer   ~0010006

Hi Matt,

I changed the ticket assignment to you as you are probably more familiar with this issue and have the time to take a quick check on my code.

Thanks,

Kevin

mccormic

mccormic

2013-09-19 06:09

developer   ~0010020

Hi Kevin,

Very good work. I did a code review on the patch and only made minor comments.

Did you want to test/commit, or should I?

Thanks,
Matt

wangk

wangk

2013-09-19 07:20

developer   ~0010023

Thanks Matt for the quick review. I have modified the code according and tested/committed to my own topic.

I changed int to unsigned int instead of size_t just to be consistent with all other for loops. if you feel the need then I can change them all to size_t.

do you want me to submit a pull request so that you can integrate this topic into slicer trunk?

Kevin

mccormic

mccormic

2013-09-19 08:24

developer   ~0010024

Great, thanks. Yes, if you submit a pull request, I'll test/merge it with git-svn.

wangk

wangk

2013-09-19 11:18

developer   ~0010028

I have submit a pull request.

Thanks.

jcfr

jcfr

2014-02-25 06:44

administrator   ~0010631

Fixed in r22900
See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=22900

Please, close the issue after testing it works as expected. Thanks

wangk

wangk

2014-02-26 05:27

developer   ~0010643

thanks Jc, I will test it and close the issue once the testing is done.

wangk

wangk

2014-02-26 07:07

developer   ~0010648

Tested and closed.

Related Changesets

Import 2017-06-07 23:51:09: master 8b3ab5b2

2014-02-25 11:43:23

jcfr

Details Diff
BUG: fixed improper importing a series of dicom images.

Fixes 0003386

From: Kevin Wang <kevin.wang@rmp.uhn.ca>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22900 3bd1e089-480b-0410-8dfb-8563597acbee
mod - Libs/vtkITK/vtkITKArchetypeImageSeriesReader.cxx Diff File

Issue History

Date Modified Username Field Change
2013-09-10 08:34 wangk New Issue
2013-09-10 08:34 wangk Status new => assigned
2013-09-10 08:34 wangk Assigned To => jcfr
2013-09-18 08:10 wangk Note Added: 0010004
2013-09-18 08:15 wangk Assigned To jcfr => mccormic
2013-09-18 08:16 wangk Note Added: 0010006
2013-09-19 06:09 mccormic Note Added: 0010020
2013-09-19 07:20 wangk Note Added: 0010023
2013-09-19 08:24 mccormic Note Added: 0010024
2013-09-19 11:18 wangk Note Added: 0010028
2014-02-25 06:11 jcfr Target Version => Slicer 4.4.0
2014-02-25 06:44 jcfr Note Added: 0010631
2014-02-25 06:44 jcfr Status assigned => resolved
2014-02-25 06:44 jcfr Fixed in Version => Slicer 4.4.0
2014-02-25 06:44 jcfr Resolution open => fixed
2014-02-26 05:27 wangk Note Added: 0010643
2014-02-26 07:07 wangk Note Added: 0010648
2014-02-26 07:09 wangk Status resolved => closed
2017-06-10 08:51 jcfr Changeset attached => Slicer master 8b3ab5b2