[vtkusers] How to show color images using vtkImagePlaneWidget?

moonkeeper86 at 126.com moonkeeper86 at 126.com
Thu May 5 22:25:37 EDT 2016


How to show color images using vtkImagePlaneWidget? 
Like following codes?

	imColorsmap->PassAlphaToOutputOff(); //use in RGBA
	imColorsmap->SetActiveComponent( 0 );
	imColorsmap->SetOutputFormatToLuminance();
	imColorsmap->SetInputData( (vtkDataSet*)imPlaneW->GetResliceOutput() );
	imColorsmap->SetLookupTable( (vtkScalarsToColors
*)imPlaneW->GetLookupTable() );
	imCMActor->PickableOff();
	imCMActor->SetInputData( imColorsmap->GetOutput() );

I have tried those.



--
View this message in context: http://vtk.1045678.n5.nabble.com/How-to-show-color-images-using-vtkImagePlaneWidget-tp5738007.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list