[vtkusers] Beginner question Max counts in image

Emma Saunders emmasaunders123 at gmail.com
Fri Jan 7 12:45:49 EST 2011


Hi all,

I am having what I should imaginge is a very simple problem.  I would simply
like to read the maximum intensity in an image.  I have obtained the array
data (inarray) of the scalars from the image and am attempting to use:

double range[2]

inarray->Getrange(range,-1) as I was under the impression this gave the
magnitude of the tuples in an array.  This however returns 0,500.  Which is
not the limits on a histoggram of the same image.

I would ideally like to use the GetDataTypeValueMin() function but this is
not present  in the header files I have with VTK 5.2 or 5.4.

Any suggestions to help a begineer are appreciated.

Thanks

Happy New Year

Emma
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110107/e06b45b3/attachment.htm>


More information about the vtkusers mailing list