The article describes method Tiled Rendering refers to VTKUsersGuide

The class vtkRenderLargeImage breaks up the whole rendering into separated parts. The different pieces are handled and combined into a final large image.
The interface SetMagnification of vtkRenderLargeImage control how much to larger the original image.

vtkRenderLargeImage renderLarge
  renderLarge SetInput ren        # Indicates what renderer to get the pixel data from.
  renderLarge SetMagnification 4

vtkTIFFWriter writer
  writer SetInputConnection [renderLarge GetOutputPort]
  writer SetFileName largeImage.tif
  writer Write

Right: original image
Left: image generated from vtkRenderLargeImage


Read tif file and construct new view.

package require vtk

vtkTIFFReader reader
reader SetFileName largeImage.tif

vtkImageViewer2 imageViewer
imageViewer SetInputConnection [reader GetOutputPort]
vtkRenderWindowInteractor renderWindowInteractor
imageViewer SetupInteractor renderWindowInteractor
#imageViewer Render
[imageViewer GetRenderer] ResetCamera
imageViewer Render

# Withdraw the default tk window
wm withdraw .
renderWindowInteractor Start
Categories: TCLVTK

0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments

Content Summary
: Input your strings, the tool can get a brief summary of the content for you.

Would love your thoughts, please comment.x