<div dir="ltr"><pre style="margin-top:0px;margin-bottom:0px"><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:14pt;font-family:"Times New Roman",serif">Hello all,</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:14pt;font-family:"Times New Roman",serif">I'm using using vtkImageViewer2
to display dicom images and uses custom interactor inherited from vtkInteractorStyleImage.</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><font face="Times New Roman, serif"><span style="font-size:18.6667px">And uses left mouse button down move event to modify window level and width.</span></font></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:14pt;font-family:"Times New Roman",serif">I need to manually set window level
and window width of the viewing image to custom value.</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:14pt;font-family:"Times New Roman",serif">for this I'm using the methods</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:12pt;font-family:"Courier New"">
vtkImageViewer2-><i>SetColorLevel</i>(double level);</span><span style="font-family:"Courier New";font-size:12pt"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:12pt;font-family:"Courier New"">vtkImageViewer2-><i>SetColorWindow</i>(double width);<span></span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:14pt;font-family:"Times New Roman",serif">But, even after setting the values
it is not reflecting in vtkInteractorStyleImage,</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:14pt;font-family:"Times New Roman",serif">The method,</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;background-image:initial;background-position:initial;background-size:initial;background-repeat:initial;background-origin:initial;background-clip:initial"><span style="font-size:12pt;font-family:Arial,sans-serif">vtkInteractorStyleImage</span><span style="font-size:12pt;font-family:"Courier New"">-><i>GetWindowLevelCurrentPosition</i>(int
windolevel, int windowwidth);<span></span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:14pt;font-family:"Times New Roman",serif">returning different values than set in vtkImageViewer2.</span><span style="font-family:"Courier New";font-size:12pt"> </span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:14pt;font-family:"Times New Roman",serif">Have any method to manually modify
window level and window values of vtkInteractorStyleImage to custom value.</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:14pt;font-family:"Times New Roman",serif">(something like SetColorLevel
SetColorWindow of vtkImageViewer2)</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:14pt;font-family:"Times New Roman",serif">My intention is to manually modify
window values of displaying image.<span></span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal"><span style="font-size:14pt;font-family:"Times New Roman",serif">Please help...<span></span></span></p>
<br>
</pre></div>