[Insight-users] Re: matrix and vector
Bing Jian
bjian at cise . ufl . edu
Mon, 13 Oct 2003 10:44:06 -0400 (EDT)
One more question:
What's the differenece between Vector, CovariantVector and Offset?
What's the right way to make conversion between them each other?
Thanks!
--
Best wishes,
Bing Jian
bjian at cise . ufl . edu
On Mon, 13 Oct 2003, Bing Jian wrote:
>
> 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()?
> >
> >
>
>