[Insight-developers] itk::Matrix initialized when execution problem
Arnaud Gelas
Arnaud_Gelas at hms.harvard.edu
Wed Apr 14 16:14:31 EDT 2010
It actually uses a vnl_matrix_fixed, not a vnl_matrix
On Apr 14, 2010, at 4:11 PM, David Doria wrote:
> On Wed, Apr 14, 2010 at 4:00 PM, Arnaud Gelas
> <arnaud_gelas at hms.harvard.edu> wrote:
>> Hi Nicolas,
>> The size of the matrix for an itk::Matrix needs to be fixed, and
>> declared as
>> const unsigned.
>> For instance, you can declare an itk::Matrix
>> const unsigned int nrow = 4;
>> const unsigned int ncol = 5;
>> itk::Matrix< float, nrow, ncol > distance;
>> If you want to change the dimension of the matrix at run time, you
>> should
>> probably have a look at vnl_matrix
>> http://www.lems.brown.edu/vision/vxl_doc/html/core/vnl/html/classvnl__matrix.html
>> HTH,
>> Arnaud
>
> itkMatrix uses vnl_matrix under the hood, right? So would it make
> sense to allow people to Resize(n,m) an itkMatrix directly?
>
> Thanks,
>
> David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20100414/f8e3b25c/attachment.htm>
More information about the Insight-developers
mailing list