Cloned library of VTK-5.0.0 with extra build files for internal package management.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
498 B

2 years ago
package require vtk
# Image pipeline
vtkPNGReader reader
reader SetFileName "$VTK_DATA_ROOT/Data/fullhead15.png"
vtkImageAnisotropicDiffusion2D diffusion
diffusion SetInputConnection [reader GetOutputPort]
diffusion SetDiffusionFactor 1.0
diffusion SetDiffusionThreshold 200.0
diffusion SetNumberOfIterations 5
#diffusion DebugOn
vtkImageViewer viewer
#viewer DebugOn
viewer SetInputConnection [diffusion GetOutputPort]
viewer SetColorWindow 3000
viewer SetColorLevel 1500
viewer Render