View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0009259 | ITK | | public | 2009-07-10 18:27 | 2010-10-21 14:18 |
|
Reporter | Charlotte Curits | |
Assigned To | Jim Miller | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | assigned | Resolution | open | |
Platform | | OS | | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
|
Summary | 0009259: itkImageToVTKImageFilter not updating all information |
Description | When re-using the itkImageToVTKImageFilter, the filter requires two calls to Update() in order to correctly update the output information. This has been tested by examining the scalar range of the data as computed by GetScalarRange(). A workaround is to add "m_exporter->Update()" to the filter's Update() method, as currently only the importer is being updated (although in theory this should be enough). |
Additional Information | A more or less minimal example is attached, although the dicom series reading is specific to my own files (which have both "LEFT" and "RIGHT" protocols in a single folder). This program prints out the scalar ranges of converted images before and after thresholding (to change the scalar range), with the following result:
Original Image range: [0 255]
Thresholded image range: [0 255]
Second update thresholded image range: [0 1]
With a modified version of the filter as described above, the thresholded image range is updated correctly the first time. |
Tags | No tags attached. |
|
Resolution Date | |
Sprint | |
Sprint Status | |
|
Attached Files | main.cxx [^] (2,927 bytes) 2009-07-10 18:27 |
|