[vtkusers] vtkimagereslicer
medamine
miladimedamine at yahoo.fr
Mon May 7 04:03:19 EDT 2007
Hi,
i m asking about how to use vtkimagereslicer because when i use code bellow
part of the object don't appear.
Thanks
//Center the image so that our scaling is uniform.
vtkImageChangeInformation
*imageChangeInformation=vtkImageChangeInformation::New();
imageChangeInformation->SetInput(m_reader->GetOutput());
imageChangeInformation->CenterImageOn();
// Scale the image to double the size
vtkTransform * transform = vtkTransform::New();
transform->Identity();
transform->Scale(0.9, 0.9, 0.9);
// VTK reslicer
vtkImageReslice *slicer = vtkImageReslice::New();
slicer->SetResliceTransform(transform);
slicer->SetInput(imageChangeInformation->GetOutput());
slicer->SetOutputDimensionality(3);
slicer->InterpolateOn();
//slicer->AutoCropOutputOn();
//slicer->SetInterpolationModeToCubic();
--
View this message in context: http://www.nabble.com/vtkimagereslicer-tf3702407.html#a10353560
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list