[Insight-developers] itk::Matrix initialized when execution problem

David Doria daviddoria+itk at gmail.com
Wed Apr 14 16:11:01 EDT 2010


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


More information about the Insight-developers mailing list