[Insight-users] Getting PixelType& from VectorImage

Eduardo Suarez-Santana esuarez at itccanarias.org
Thu Mar 24 12:32:58 EDT 2011


El 24/03/11 16:26, robert tamburo escribió:
> Hi Eduardo,  Value() cannot be used with a VectorImage. Try doing:
>
> itk::VariableLengthVector<float> vec = oo.Get();
> float value = vec[2]; 
>
> or
>
> float vec = oo.Get()[2];

Is there a way to assign the Value?

Would this work?
oo.Get()[2] = 3.0;



More information about the Insight-users mailing list