<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Thanks a lot David and Bill. </span>std::vector works fine!<br></div><div><br></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">De:</span></b> Bill Lorensen <bill.lorensen@gmail.com><br><b><span style="font-weight: bold;">Para:</span></b> David Doria <daviddoria@gmail.com><br><b><span style="font-weight: bold;">CC:</span></b> Maria Alejandra Zuluaga Valencia <mariazulv@yahoo.es>; "insight-users@itk.org" <insight-users@itk.org><br><b><span style="font-weight: bold;">Enviado:</span></b> miércoles 29 de junio de 2011 14:14<br><b><span style="font-weight: bold;">Asunto:</span></b> Re: [Insight-users]
vector of index<br></font><br>Actually, David's suggestion to use std::vector is best.<br><br>On Wed, Jun 29, 2011 at 8:13 AM, David Doria <<a ymailto="mailto:daviddoria@gmail.com" href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>> wrote:<br>> On Wed, Jun 29, 2011 at 8:00 AM, Maria Alejandra Zuluaga Valencia<br>> <<a ymailto="mailto:mariazulv@yahoo.es" href="mailto:mariazulv@yahoo.es">mariazulv@yahoo.es</a>> wrote:<br>>> Hi all,<br>>> I am requiring to create an array of indexes that represent different pixel<br>>> positions in an image. I've found that itk::Array does not allow me to keep<br>>> such structures. I was trying to find a container in itk that allows me to<br>>> save these indexes but I haven't found anything that fits. On the 3.20<br>>> documentation I found something called MapData and MapRecord but, there is<br>>> not a clear description on what they can do. An
alternative could be to use<br>>> itk::Matrix but, I don't think this is very elegant.<br>>><br>>> Does someone know if there is a container that could allow me to save the<br>>> different indexes?<br>>> thanks in advance,<br>>> Maria A Zuluaga<br>><br>> You can always use std::vector<itk::Index<2> ><br>><br>> If you want to stay "ITK", I think you can use VectorContainer:<br>> <a href="http://www.itk.org/Wiki/ITK/Examples/Utilities/VectorContainer" target="_blank">http://www.itk.org/Wiki/ITK/Examples/Utilities/VectorContainer</a><br>><br>> David<br>> _____________________________________<br>> Powered by www.kitware.com<br>><br>> Visit other Kitware open-source projects at<br>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>><br>> Kitware offers ITK Training Courses, for more
information visit:<br>> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>><br>> Please keep messages on-topic and check the ITK FAQ at:<br>> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>><br>> Follow this link to subscribe/unsubscribe:<br>> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>><br><br><br></div></div></div></body></html>