<div>HI, all</div><div><br></div>I&#39;m working a project using VTK, and using maximum intensity projection to display a DICOM image data(3D). I saw some examples(including some official examples ) just like following :<div>
<br><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>vtkSmartPointer&lt;vtkPiecewiseFunction&gt; volumeScalarOpacity =</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>vtkSmartPointer&lt;vtkPiecewiseFunction&gt;::New();</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>double range[2];</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>originImageData-&gt;GetScalarRange(range);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>double level = 0.5 * (range[1] + range[0]);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>double window = range[1] - range[0];</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>volumeScalarOpacity-&gt;AddPoint(level - window/2, 0.0);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>volumeScalarOpacity-&gt;AddPoint(level + window/2, 1.0);</div><div><br></div><div>Almost examples are trying to adjust opacity to get the MIP visual effect. But when I turn the image format from USHORT to UCHAR. that means the maximum intensity decreasing &nbsp;to the 255. So the&nbsp;luminance of the projection image also goes down.&nbsp;</div>
<div><br></div><div>Therefore, i guess that adjust the window width/window level maybe more reasonable for MIP not to adjust the opacity ?</div><div>but i can not find the window width/level function. don&#39;t know how to use .</div>
<div><br></div><div>Please help.</div><div>Thank U.</div><div><div><br></div>--&nbsp;</div><div>From Ryuu<br>Nothing but a MADAOŁĄ<br><br>
</div></div></div>