<div>HI, all</div><div><br></div>I'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<vtkPiecewiseFunction> volumeScalarOpacity =</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>vtkSmartPointer<vtkPiecewiseFunction>::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->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->AddPoint(level - window/2, 0.0);</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>volumeScalarOpacity->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 to the 255. So the luminance of the projection image also goes down. </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't know how to use .</div>
<div><br></div><div>Please help.</div><div>Thank U.</div><div><div><br></div>-- </div><div>From Ryuu<br>Nothing but a MADAOŁĄ<br><br>
</div></div></div>