View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009259ITKpublic2009-07-10 18:272010-10-21 14:18
ReporterCharlotte Curits 
Assigned ToJim Miller 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0009259: itkImageToVTKImageFilter not updating all information
DescriptionWhen 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 InformationA 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.
TagsNo tags attached.
Resolution Date
Sprint
Sprint Status
Attached Filescxx file icon main.cxx [^] (2,927 bytes) 2009-07-10 18:27

 Relationships

  Notes
There are no notes attached to this issue.

 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


Copyright © 2000 - 2018 MantisBT Team