[vtkusers] Problem reading in large textures in GeoTIFF format

Bill Lorensen bill.lorensen at gmail.com
Thu Nov 6 13:35:10 EST 2008


Use vtkImageShrink3D with AveragingOn() to reduce the size.

On Thu, Nov 6, 2008 at 11:47 AM, Elvis Dowson <elvis.dowson at mac.com> wrote:
> Hi,
>        Is it possible to reduce the size of the texture in memory and crop
> it to something less than 4K*4K?
>
> For example, for the DEM data, I am using vtkExtractVOI as follows:
>
> vtkExtractVOI subset
>  subset SetInput [reader GetOutput]
>  subset SetSampleRate 1 1 1; # 3 sets subsample rate in xyz
>  #subset SetVOI $XminR $XmaxR $YminR $YmaxR 0 1; # sets data extend in xyz
> min and max values
>  subset SetVOI 0 400 0 400 0 1; # sets data extend in xyz min and max values
>
> The original data extent is as follows:
> XminR = 0
> XmaxR = 1098
> YminR = 0
> YmaxR= 1418
>
> The GeoTIFF file size is 4506 x 5818 pixels.
>
> Best regards,
>
> Elvis Dowson
> _______________________________________________
> 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