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.
29 lines
584 B
29 lines
584 B
2 years ago
|
package require vtk
|
||
|
|
||
|
|
||
|
# Image pipeline
|
||
|
|
||
|
vtkImageReader reader
|
||
|
reader SetDataByteOrderToLittleEndian
|
||
|
reader SetDataExtent 0 63 0 63 1 93
|
||
|
reader SetFilePrefix "$VTK_DATA_ROOT/Data/headsq/quarter"
|
||
|
reader SetDataMask 0x7fff
|
||
|
|
||
|
vtkImageContinuousDilate3D dilate
|
||
|
dilate SetInputConnection [reader GetOutputPort]
|
||
|
dilate SetKernelSize 11 11 1
|
||
|
|
||
|
vtkImageContinuousErode3D erode
|
||
|
erode SetInputConnection [dilate GetOutputPort]
|
||
|
erode SetKernelSize 11 11 1
|
||
|
|
||
|
vtkImageViewer viewer
|
||
|
viewer SetInputConnection [erode GetOutputPort]
|
||
|
viewer SetColorWindow 2000
|
||
|
viewer SetColorLevel 1000
|
||
|
|
||
|
|
||
|
viewer Render
|
||
|
|
||
|
|