View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003386 | Slicer4 | Core: Base Code | public | 2013-09-10 08:34 | 2017-06-10 08:51 |
Reporter | wangk | Assigned To | mccormic | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | Slicer 4.3.0 | ||||
Target Version | Slicer 4.4.0 | Fixed in Version | Slicer 4.4.0 | ||
Summary | 0003386: 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. | ||||
Tags | No tags attached. | ||||
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 |
|
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 |
|
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, |
|
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 |
|
Great, thanks. Yes, if you submit a pull request, I'll test/merge it with git-svn. |
|
I have submit a pull request. Thanks. |
|
Fixed in r22900 Please, close the issue after testing it works as expected. Thanks |
|
thanks Jc, I will test it and close the issue once the testing is done. |
|
Tested and closed. |
|
Import 2017-06-07 23:51:09: master 8b3ab5b2 2014-02-25 11:43:23 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 |
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 |