Hello,
I want to load a 3d visualisation and it is very slowly. So how can I
accelerate this?
Also I want to know, how to get to the vtkVolumeRayCastMapper object of the
renderer to set the sample distance.
mitk::Image::Pointer img = dynamic_cast<mitk::Image*>( node->GetData() );
// set the property "volumerendering" to the Boolean value "true"
node->SetProperty("volumerendering", new mitk::BoolProperty(true));
// create a transfer function to assign optical properties (color and opacity)
to grey-values of the data
mitk::TransferFunction::Pointer tf = mitk::TransferFunction::New();
tf->InitializeByMitkImage ( img );
// set the piecewise opacity transfer function AddPoint(double x, double y)
tf->GetScalarOpacityFunction()->AddPoint (lowPoint , 0 );
tf->GetScalarOpacityFunction()->AddPoint (highPoint , 1 );
//////node->SetProperty ( "TransferFunction", new
mitk::TransferFunctionProperty ( tf.GetPointer() ) );
Thanks for the responses
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users