[vtkusers] How to get the IDs of min and max from a GetRange() ?
DLRdave at aol.com
Tue Jul 7 16:35:47 EDT 2015
0 0 1 2 8 9 10 9 0 0 0 9 10 9 8 6 4 3 0 0
What's the index of 10?
You'll have to scan looking for the first or last index, I think,
since, in general, the min and max may occur any number of times in a
On Tue, Jul 7, 2015 at 4:30 PM, mightos <mightos at gmail.com> wrote:
> Let's say I have a vtkScalars with 100000 values.
> I would like to know the minimum and maximum values and their position in
> the vtkScalars.
> I currently use vtkScalars.GetRange() to get the minimum value and
> vtkScalars.GetRange() for the maximum. However, I was wondering how I
> could get the indexes from that.
> Any help is welcome :)
> View this message in context: http://vtk.1045678.n5.nabble.com/How-to-get-the-IDs-of-min-and-max-from-a-GetRange-tp5732756.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> Powered by www.kitware.com
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
More information about the vtkusers