(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. |
|