[Insight-users] Re: matrix and vector
Bing Jian
bjian at cise . ufl . edu
Mon, 13 Oct 2003 09:59:28 -0400 (EDT)
Hello,
Can anybody help me following questions?
(0) Is there an easy way to read/write one column or row vector
of a matrix?
(1) Does interpolater accept vector or matrix image as input?
(2) Can we extract vector image from matrix image
in the same way as VectorPixelAccessor?
Thanks in advance!
On Thu, 9 Oct 2003, Bing Jian wrote:
>
> Hello,
>
> Is there an easy way to assign a vector to ith row or col of
> matrix?
> e.g.
> itk::Matrix<T, m, n> A;
> itk::Vector<T, n> x;
> A[i] = x;
>
> I looked through the reference page of itk::Matrix, only found
>
> T * operator[] (unsigned int i)
> const T * operator[] (unsigned int i) const
>
> So do we need to use GetVnlMatrix()?
>
>