[Insight-users] vector of index

Maria Alejandra Zuluaga Valencia mariazulv at yahoo.es
Wed Jun 29 08:35:54 EDT 2011


Thanks a lot David and Bill. std::vector works fine!



________________________________
De: Bill Lorensen <bill.lorensen at gmail.com>
Para: David Doria <daviddoria at gmail.com>
CC: Maria Alejandra Zuluaga Valencia <mariazulv at yahoo.es>; "insight-users at itk.org" <insight-users at itk.org>
Enviado: miércoles 29 de junio de 2011 14:14
Asunto: Re: [Insight-users] vector of index

Actually, David's suggestion to use std::vector is best.

On Wed, Jun 29, 2011 at 8:13 AM, David Doria <daviddoria at gmail.com> wrote:
> On Wed, Jun 29, 2011 at 8:00 AM, Maria Alejandra Zuluaga Valencia
> <mariazulv at yahoo.es> wrote:
>> Hi all,
>> I am requiring to create an array of indexes that represent different pixel
>> positions in an image. I've found that itk::Array does not allow me to keep
>> such structures. I was trying to find a container in itk that allows me to
>> save these indexes but I haven't found anything that fits. On the 3.20
>> documentation I found something called MapData and MapRecord but, there is
>> not a clear description on what they can do. An alternative could be to use
>> itk::Matrix but, I don't think this is very elegant.
>>
>> Does someone know if there is a container that could allow me to save the
>> different indexes?
>> thanks in advance,
>> Maria A Zuluaga
>
> You can always use std::vector<itk::Index<2> >
>
> If you want to stay "ITK", I think you can use VectorContainer:
> http://www.itk.org/Wiki/ITK/Examples/Utilities/VectorContainer
>
> David
> _____________________________________
> 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.html
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110629/21d69edb/attachment.htm>


More information about the Insight-users mailing list