<div class="gmail_quote">On Thu, Sep 15, 2011 at 5:54 PM, HansAusBremen <span dir="ltr"><<a href="mailto:hansausbremen@gmx.net" target="_blank">hansausbremen@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi David,<br>
<br>
thanks for the fast response.<br>
<br>
I would need the maximum and minimum values of my image to compute the<br>
scale.<br>
How do i get those?<br>
<br>
Before scaling i would have to put my minimum value to 0. Substract the<br>
minimum from all values. How do you do that in vtk?<br>
<br>
Hans</blockquote><div><br></div><div>The subtraction could be done with the Shift part of the vtkShiftScaleFilter.</div><div><br>This seems to do the trick for getting min/max values:</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageValueRange">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageValueRange</a></div>
<div><br></div><div>David</div></div>