[vtkusers] Resize vtkImageData
David Gobbi
david.gobbi at gmail.com
Fri Feb 29 12:58:12 EST 2008
This is something that vtkImageReslice will work nicely for.
Set the OutputExtent to the new image dimensions,
and set the OutputOrigin to the new coordinates of
the lower-left corner (subtract the pad size times the
pixel spacing from the old Origin).
David
On Fri, Feb 29, 2008 at 12:28 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> Imaging/vtkImageResample
>
>
>
> 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
> >
> _______________________________________________
> 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