<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 &lt;bill.lorensen@gmail.com&gt;<br><b><span style="font-weight: bold;">Para:</span></b> David Doria &lt;daviddoria@gmail.com&gt;<br><b><span style="font-weight: bold;">CC:</span></b> Maria Alejandra Zuluaga Valencia &lt;mariazulv@yahoo.es&gt;; "insight-users@itk.org" &lt;insight-users@itk.org&gt;<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 &lt;<a ymailto="mailto:daviddoria@gmail.com" href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt; wrote:<br>&gt; On Wed, Jun 29, 2011 at 8:00 AM, Maria Alejandra Zuluaga Valencia<br>&gt; &lt;<a ymailto="mailto:mariazulv@yahoo.es" href="mailto:mariazulv@yahoo.es">mariazulv@yahoo.es</a>&gt; wrote:<br>&gt;&gt; Hi all,<br>&gt;&gt; I am requiring to create an array of indexes that represent different pixel<br>&gt;&gt; positions in an image. I've found that itk::Array does not allow me to keep<br>&gt;&gt; such structures. I was trying to find a container in itk that allows me to<br>&gt;&gt; save these indexes but I haven't found anything that fits. On the 3.20<br>&gt;&gt; documentation I found something called MapData and MapRecord but, there is<br>&gt;&gt; not a clear description on what they can do. An
 alternative could be to use<br>&gt;&gt; itk::Matrix but, I don't think this is very elegant.<br>&gt;&gt;<br>&gt;&gt; Does someone know if there is a container that could allow me to save the<br>&gt;&gt; different indexes?<br>&gt;&gt; thanks in advance,<br>&gt;&gt; Maria A Zuluaga<br>&gt;<br>&gt; You can always use std::vector&lt;itk::Index&lt;2&gt; &gt;<br>&gt;<br>&gt; If you want to stay "ITK", I think you can use VectorContainer:<br>&gt; <a href="http://www.itk.org/Wiki/ITK/Examples/Utilities/VectorContainer" target="_blank">http://www.itk.org/Wiki/ITK/Examples/Utilities/VectorContainer</a><br>&gt;<br>&gt; David<br>&gt; _____________________________________<br>&gt; Powered by www.kitware.com<br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>&gt;<br>&gt; Kitware offers ITK Training Courses, for more
 information visit:<br>&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>&gt;<br>&gt; Please keep messages on-topic and check the ITK FAQ at:<br>&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt;<br><br><br></div></div></div></body></html>