<font size="2"><font face="verdana,sans-serif">The intensity for transfer functions are in the same units as the image pixel intensity, whatever that might be. If you are using CT images then it is Hounsfield unit. If you are using MRI, then it is some unnamed measured value.</font></font><div>
<font size="2"><font face="verdana,sans-serif"><br></font></font></div><div><font size="2"><font face="verdana,sans-serif">HTH<br></font></font><br><div class="gmail_quote">On Fri, May 6, 2011 at 08:33, Chasan KIOUTSOUKMOUSTAFA <span dir="ltr"><<a href="mailto:chasank@gmail.com">chasank@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">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" target="_blank">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" target="_blank">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><font color="#888888">Chasan KIOUTSOUKMOUSTAFA<br><br>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>