[Insight-users] vector of index

Bill Lorensen bill.lorensen at gmail.com
Wed Jun 29 08:14:24 EDT 2011


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
>


More information about the Insight-users mailing list