<div>You can assign the value by</div><div><br></div><div>itk::VariableLengthVector&lt;float&gt; vec = oo.Get();</div><div>vec[2] = 3.0;</div><div>oo.Set(vec); </div><div><br></div><br><div class="gmail_quote">On Fri, Mar 25, 2011 at 3:32 AM, Eduardo Suarez-Santana <span dir="ltr">&lt;<a href="mailto:esuarez@itccanarias.org">esuarez@itccanarias.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">El 24/03/11 16:26, robert tamburo escribió:<br>
<div class="im">&gt; Hi Eduardo,  Value() cannot be used with a VectorImage. Try doing:<br>
&gt;<br>
&gt; itk::VariableLengthVector&lt;float&gt; vec = oo.Get();<br>
&gt; float value = vec[2];<br>
&gt;<br>
&gt; or<br>
&gt;<br>
&gt; float vec = oo.Get()[2];<br>
<br>
</div>Is there a way to assign the Value?<br>
<br>
Would this work?<br>
oo.Get()[2] = 3.0;<br>
<div><div></div><div class="h5"><br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><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>
</div></div></blockquote></div><br>