[vtkusers] Resize vtkImageData

Bill Lorensen bill.lorensen at gmail.com
Fri Feb 29 12:28:56 EST 2008


On Fri, Feb 29, 2008 at 11:55 AM, Mathieu Coursolle
<mcoursolle at rogue-research.com> wrote:
> Hi vtk users,
>  I have a 2D vtkImageData for which the dimensions in X and Y are
>  differents. I'd like to convert it to a square vtkImageData, with my
>  original image in the center of that new image.
>  I tried vtkImageConstantPad to resize my image, but then my original
>  image is in the corner, not centered.
>  Is there a vtk class that could help me with that?
>  Thanks!
>  MAthieu
>  _______________________________________________
>  This is the private VTK discussion list.
>  Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>  Follow this link to subscribe/unsubscribe:
>  http://www.vtk.org/mailman/listinfo/vtkusers

More information about the vtkusers mailing list