[Insight-users] vnl_vector min_value
Bill Lorensen
bill.lorensen at gmail.com
Tue May 8 18:31:46 EDT 2012
You will need to write your own code to scan the vnl_vector.
On Tue, May 8, 2012 at 5:47 PM, Fabian Torres <fabian.trobles at gmail.com> wrote:
> Hi Bill
>
> I tried to use the arg_min() function you told me about.
> But it seems that my version of vnl does not have these function.
>
> I have check the vnl_vector.h that comes with ITK 3.2 and it does not have
> implemented the method arg_min().
>
> Do you know how can I fix these problem, or is there another method that can
> help me with my first problem?
>
> Thanks for your answer
>
> On Tue, May 8, 2012 at 7:55 PM, Bill Lorensen <bill.lorensen at gmail.com>
> wrote:
>>
>> From the vnl_vector header:
>>
>> //: Location of smallest value
>> unsigned arg_min() const { return vnl_c_vector<T>::arg_min(begin(),
>> size())
>>
>>
>> On Mon, May 7, 2012 at 3:17 PM, Fabian Torres <fabian.trobles at gmail.com>
>> wrote:
>> > I have a simple question, I hope someone can help me.
>> >
>> > I have a vnl_vector<double> vector, and I need to find the minimum value
>> > of
>> > the vector and its index.
>> >
>> > I know that vector.min_value(), gives me the minimum value in the
>> > vector.
>> >
>> > But how can I find the index of that value?
>> >
>> > Thanks
>> >
>> > --
>> > Fabián Torres Robles
>> > Maestria en Ciencias en Ingeniería Electrónica
>> > Ingeniería en Sistemas Electrónicos
>> > tel. 58081280, 0445534661338
>> > e-mail fabian.trobles at gmail.com, dae.wong at gmail.com
>> >
>> >
>> >
>> >
>> > --
>> > Fabián Torres Robles
>> > Maestria en Ciencias en Ingeniería Electrónica
>> > Ingeniería en Sistemas Electrónicos
>> > tel. 58081280, 0445534661338
>> > e-mail fabian.trobles at gmail.com, dae.wong at gmail.com
>> >
>> >
>> > _____________________________________
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> > http://www.kitware.com/opensource/opensource.html
>> >
>> > Kitware offers ITK Training Courses, for more information visit:
>> > http://www.kitware.com/products/protraining.php
>> >
>> > Please keep messages on-topic and check the ITK FAQ at:
>> > http://www.itk.org/Wiki/ITK_FAQ
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://www.itk.org/mailman/listinfo/insight-users
>> >
>>
>>
>>
>> --
>> Unpaid intern in BillsBasement at noware dot com
>
>
>
>
> --
> Fabián Torres Robles
> Maestria en Ciencias en Ingeniería Electrónica
> Ingeniería en Sistemas Electrónicos
> tel. 58081280, 0445534661338
> e-mail fabian.trobles at gmail.com, dae.wong at gmail.com
>
--
Unpaid intern in BillsBasement at noware dot com
More information about the Insight-users
mailing list