<div dir="ltr">OK It seems GetScalarComponentAsDouble is what I need. :-)</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 4, 2015 at 10:38 AM, Lin M <span dir="ltr"><<a href="mailto:majcjc@gmail.com" target="_blank">majcjc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi guys,<div><br></div><div>Is there a way to get scalar data from vtkimagedata regardless of the data type? Then I can always get the right value even though I don't know the original data type.</div><div><br></div><div>I searched and vtkImageCast may change the entire data type which is not what I mostly wanted.</div><div><br></div><div>Any ideas about that? Thank you very much!</div><div><br></div><div>Best,</div><div>Lin</div></div>
</blockquote></div><br></div>