I have a pipeline that does volume rendering from DICOM datasets. I'm using vtkColorTransferFunction and vtkPiecewiseFunction classes.<br>at vtkColorTransferFunctions's <a href="http://www.vtk.org/doc/nightly/html/classvtkColorTransferFunction.html#aa3bd656f032908593e89f749796ed786">documentation</a> first parameter of AddRGBPoint method is double x which is not mentioned what exactly it is?<br>
Is it Hounsfeild Unit ? <br>Same deficient <a href="http://www.vtk.org/doc/nightly/html/classvtkPiecewiseFunction.html#a5196b67dda9f5ba027797176e4d566a0">documentation</a> does not tell anything to me. Okay, second parameter is the opacity value that might change 0.0 to 1.0 <br>
What about the first parameter ( double x) Is it again Hounsfeild Unit ? <br>Thanks for help from now..<br><br>volumeColor = vtkSmartPointer<vtkColorTransferFunction>::New();<br> volumeColor->AddRGBPoint(0, 0.0, 0.0, 0.0);<br>
volumeColor->AddRGBPoint(500, 1.0, 0.5, 0.3);<br> volumeColor->AddRGBPoint(1000, 1.0, 0.5, 0.3);<br> volumeColor->AddRGBPoint(1150, 1.0, 1.0, 0.9);<br><br> volumeScalarOpacity = vtkSmartPointer<vtkPiecewiseFunction>::New();<br>
volumeScalarOpacity->AddPoint(0, 0.00);<br> volumeScalarOpacity->AddPoint(500, 0.15); <br> volumeScalarOpacity->AddPoint(1000, 0.15); <br> volumeScalarOpacity->AddPoint(1150, 0.90);<br>
<br> volumeGradientOpacity = vtkSmartPointer<vtkPiecewiseFunction>::New();<br> volumeGradientOpacity->AddPoint(0, 0.0);<br> volumeGradientOpacity->AddPoint(90, 0.5);<br> volumeGradientOpacity->AddPoint(100, 1.0);<br clear="all">
<br>-- <br>Chasan KIOUTSOUKMOUSTAFA<br><br>