[vtkusers] Re: Example Medical3 doesnt run

Pedro Patron Pedro.Patron at imag.fr
Wed Apr 9 04:49:15 EDT 2003


I've be able to make it runs this way:

	vtkImageDataGeometryFilter *saggitalSection = 	
vtkImageDataGeometryFilter::New();
	saggitalSection->SetExtent(32, 32, 0, 63, 0, 92);
	saggitalSection->SetInput(v16->GetOutput());

	vtkPolyDataMapper *saggitalMapper = vtkPolyDataMapper::New();
	saggitalMapper->SetInput(saggitalSection->GetOutput());
	//saggitalMapper->ScalarsVisibleOn();
	saggitalMapper->SetScalarRange(0,2000);
	saggitalMapper->SetLookupTable(bwLut);

	vtkActor * saggital = vtkActor::New();
	saggital->SetMapper(saggitalMapper);

Instead of the original:

	vtkImageMapToColors *saggitalColors = vtkImageMapToColors::New();
	saggitalColors->SetInput(v16->GetOutput());
	saggitalColors->SetLookupTable(bwLut);

	vtkImageActor *saggital = vtkImageActor::New();
	saggital->SetInput(saggitalColors->GetOutput());
	saggital->SetDisplayExtent(32,32, 0,63, 0,92);

Does anyone know the problem with the second form?
How is the better way to do it?

Thank you in advance.

> Message: 3
> From: Pedro Patron <Pedro.Patron at imag.fr>
> Organization: GMCAO-TIMC
> To: vtkusers at public.kitware.com
> Date: Tue, 8 Apr 2003 19:42:34 +0200
> Subject: [vtkusers] Example Medical3 doesnt run
>
> Hello,
>
> I'm doing an application for medical image.
> I need to show the three principal planes (axial, coronal, saggital) from=
>  a=20
> vtkVolume16Reader.
> I've executed the example Medical3.cxx and It renders only the translucen=
> t=20
> skin but not the planes.
> I don't know what's the problem.
> I'm using the 4.2.1 version of VTK over Linux Mandrake 9.0.
>
> Thank you in advance for your help.
>
>
>
> --__--__--




More information about the vtkusers mailing list