[vtkusers] vtkTIFFReader, vtkImageData, vtkImagePlaneWidget
Yihai Li
Liyihai2009 at qq.com
Fri Jun 12 20:49:44 EDT 2015
The answer of you question is OK. vtkTIFFReader can read series images (which
compose 3D image ) with setting as show bellow:
tiffReader->SetFileDimensionality(2);
tiffReader->SetFileNameSliceSpacing(1);
tiffReader->SetDataExtent(0, 511, 0, 511, 0, 100);
tiffReader->SetFilePrefix("D:\\slice_"); // FilePrefix composes of
directory(e.g. D:\\) and file name prefix(e.g. slice_)
tiffReader->SetFilePattern("%s%d.png"); // %s will be filled with
FilePrefix, %d will be filled with DataExtent's Z range.
tiffReader->SetDataSpacing (1, 1, 1);
tiffReader->SetDataOrigin(0.0, 0.0, 0.0);
--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkTIFFReader-vtkImageData-vtkImagePlaneWidget-tp1245371p5732318.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list