MantisBT - ITK
View Issue Details
0002811ITKpublic2006-02-01 14:282006-02-21 16:22
Andinet 
Andinet 
lowminoralways
closedfixed 
 
 
0002811: Output requested region doesn't get updated correctly in ShrinkImageFilter
A second call for Update() will not cause the the output requested region to be set to a new largest possible region.
No tags attached.
related to 0008245closed Bill Lorensen ShrinkImageFilter does not stream 
Issue History
2008-12-05 16:09Bradley LowekampRelationship addedrelated to 0008245

Notes
(0003667)
Andinet   
2006-02-01 14:42   
A second call of Update() in ShrinkImageFilter results in InvalidRequest region error.

Reading the "itk::ProcessObject" documentation reveals that to update the output requested region more than one time, UpdateLargetstPossibleRegion() should be used instead of Update() method.

However, this is not an elegant way of dealing with such a special case. Especially for toolkit users who are used to invoking Update() functions..

Addition of "EnlargeOutputRequeestedRegion" method to the ShrinkImageFilter solves this issue. With this method, the output requested region would be correctly set even with second or more calls of the Update() function.
(0003748)
Andinet   
2006-02-15 14:19   
A fix has been committed