[vtkusers] VTK: select a region of interest

Peter Spring meancity at gmail.com
Tue Dec 5 18:00:03 EST 2006


On 12/6/06, Peter  Spring <meancity at gmail.com> wrote:
> hello friend.
>
> you need not convert ur DICOM to BMP,since there is a vtkDICOMImageReader
> ready for use in vtk5.0.
>
> u can use vtkExtractVOI  to define the region you want.
>
> here is an example for you about how to use dicom in tcl
>
> vtkDICOMImageReader reader
>     reader SetDataByteOrderToLittleEndian;
>     reader SetDirectoryName "the directory that you store your slice"
>     reader SetFilePrefix "any prefix"
>     reader SetFilePattern "%s%d"
>     [reader GetOutput] ReleaseDataFlagOn
>     reader Update
>
>
> i hope it helps.
>



More information about the vtkusers mailing list