<div dir="ltr">You could use vtkImageProperty's GetColorWindow, GetColorLevel methods:<br><div><br><a href="http://www.vtk.org/doc/nightly/html/classvtkImageProperty.html">http://www.vtk.org/doc/nightly/html/classvtkImageProperty.html</a><br>
<br></div><div>If you are using vtkImageActor you could do<br><br></div><div>double windowValue = myActor->GetProperty()->GetColorWindow()<br></div><div><br></div><div>regards,<br>Dean<br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Wed, Sep 3, 2014 at 7:12 AM, flaviu2 via vtkusers <span dir="ltr"><<a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is what I meanning when I said:<br>
<br>
<br>
flaviu2 wrote<br>
> I have an vtkImageReslice, which according this post:<br>
> <a href="http://vtk.1045678.n5.nabble.com/A-new-way-to-look-at-images-td3352404.html" target="_blank">http://vtk.1045678.n5.nabble.com/A-new-way-to-look-at-images-td3352404.html</a><br>
> <<a href="http://vtk.1045678.n5.nabble.com/A-new-way-to-look-at-images-td3352404.html" target="_blank">http://vtk.1045678.n5.nabble.com/A-new-way-to-look-at-images-td3352404.html</a>><br>
> can automatically adjust window/level by mouse motion after left button is<br>
> pressed ... but how can I retrieve window/level values ?<br>
<br>
Is really automation, but how can i retrieve window/level information from<br>
vtkImageReslice ?<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Retrieve-window-level-tp5728524p5728551.html" target="_blank">http://vtk.1045678.n5.nabble.com/Retrieve-window-level-tp5728524p5728551.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<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://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>