[prev in list] [next in list] [prev in thread] [next in thread]
List: insight-users
Subject: Re: [Insight-users] Initializing itk::Vector?
From: Bill Lorensen <bill.lorensen () gmail ! com>
Date: 2009-11-27 21:52:12
Message-ID: 4db4735c0911271352p345a4737h25b73993211b99a6 () mail ! gmail ! com
[Download RAW message or body]
vectorPoint.Fill(0);
But, in your case, you don't need to initialize it, so I guess I don't
understand your question.
Bill
On Fri, Nov 27, 2009 at 2:25 PM, motes motes <mort.motes@gmail.com> wrote:
> I typedef the itk::Vector like this:
>
>
> typedef Vector<TScalarType, SpaceDimension> VectorType;
>
> Then I use it like this:
>
> VectorType vectorPoint;
>
> for (int i=0; i<NDimensions; i++) {
> vectorPoint[i] = i;
> }
>
> But should the vector not be initialized before asigning it, like:
> vectorPoint.fill(0)?
>
> But fill is not supported so I am a little uncertain on how to
> gurantee that it actually allocated correctly.
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.html
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic