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.
38 lines
649 B
38 lines
649 B
package require vtk
|
|
|
|
|
|
# This script is for testing the 3D Sobel filter.
|
|
# Displays the 3 components using color.
|
|
|
|
|
|
# Image pipeline
|
|
|
|
vtkImageReader reader
|
|
reader ReleaseDataFlagOff
|
|
reader SetDataByteOrderToLittleEndian
|
|
reader SetDataExtent 0 63 0 63 1 93
|
|
reader SetDataSpacing 3.2 3.2 1.5
|
|
reader SetFilePrefix "$VTK_DATA_ROOT/Data/headsq/quarter"
|
|
reader SetDataMask 0x7fff
|
|
|
|
vtkImageSobel3D sobel
|
|
sobel SetInputConnection [reader GetOutputPort]
|
|
sobel ReleaseDataFlagOff
|
|
|
|
vtkImageViewer viewer
|
|
#viewer DebugOn
|
|
viewer SetInputConnection [sobel GetOutputPort]
|
|
viewer SetZSlice 22
|
|
viewer SetColorWindow 400
|
|
viewer SetColorLevel 0
|
|
|
|
|
|
viewer Render
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|