[vtkusers] Save images of a volume in 1: 1
Jose Barreto
jose.de.paula at live.com
Tue Jul 7 08:22:47 EDT 2015
I'm using a vtkVolume to display a DICOM volume.
How should I proceed to save the image generated by this vtkVolume ensuring
its size in 1: 1? And if possible with a dpi of 300?
I saw the way to save is to be ...
Void UCModulo3D::WindowToJPG(vtkRenderWindow * rw, const char * filename)
{
vtkWindowToImageFilter * filter = vtkWindowToImageFilter::New();
filter->SetInput(rw);
filter->Update();
vtkSmartPointer<vtkMetaImageWriter> writer =
vtkSmartPointer<vtkMetaImageWriter>::New();
writer->SetFileName(filename);
writer->SetInputData(filter->GetOutput());
writer->Write();
writer->Delete();
filter->Delete();
}
But in this way the size is taken into consideration the vtkrenderwindo
size.
--
View this message in context: http://vtk.1045678.n5.nabble.com/Save-images-of-a-volume-in-1-1-tp5732742.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list