MantisBT - ITK | |||||
View Issue Details | |||||
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 | ||||
Resolution Date | |||||
Sprint | |||||
Sprint Status | |||||
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). | ||||
Steps To Reproduce | |||||
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. | ||||
Relationships | |||||
Attached Files | main.cxx (2,927) 2009-07-10 18:27 https://public.kitware.com/Bug/file/2362/main.cxx | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2009-07-10 18:27 | Charlotte Curits | New Issue | |||
2009-07-10 18:27 | Charlotte Curits | File Added: main.cxx | |||
2010-04-26 11:48 | Luis Ibanez | Status | new => assigned | ||
2010-04-26 11:48 | Luis Ibanez | Assigned To | => Cory W Quammen | ||
2010-10-21 14:18 | Hans Johnson | Assigned To | Cory W Quammen => Jim Miller |
There are no notes attached to this issue. |