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.

30 lines
446 B

2 years ago
package require vtk
# This script is for testing the 3D Sobel filter.
# Displays the 3 components using color.
# Image pipeline
vtkDICOMImageReader reader
reader SetFileName "$VTK_DATA_ROOT/Data/mr.001"
vtkImageSobel2D sobel
sobel SetInputConnection [reader GetOutputPort]
sobel ReleaseDataFlagOff
vtkImageViewer viewer
viewer SetInputConnection [sobel GetOutputPort]
viewer SetColorWindow 400
viewer SetColorLevel 0
viewer Render