[vtkusers] (no subject)
David Gobbi
david.gobbi at gmail.com
Tue Feb 5 09:59:48 EST 2013
On Tue, Feb 5, 2013 at 7:19 AM, Qiang Wang <wangq1979 at gmail.com> wrote:
> Thanks for the prompt reply.
>
> The data is 20*20 well structured data, which can be treated as a square
> image. I want to interpolate it to 100*100 square image.
Use vtkImageResize, and call resize->SetOutputDimensions(100,100,1).
Read the documentation for vtkImageResize::SetBorder() carefully, to see
whether you want to use BorderOn() or BorderOff(). Default interpolation
is Lanczos but you can use SetInterpolator() to choose other interpolation
methods. Currently, the available interpolators are vtkImageSincInterpolator,
vtkImageBSplineInterpolator, and vtkImageInterpolator for basic (i.e. linear,
cubic) interpolation. All of these methods require VTK 5.10. I also have a
Gaussian interpolator that will be included in VTK 6.
- David
More information about the vtkusers
mailing list