Hi All, <div><br></div><div>I&#39;m having trouble instantiating vnl_matrices which are elements of an array. When I use the code below, I get a segmentation fault after</div><div>one iteration. I don&#39;t understand why the standard ways to construct vnl_matrix&#39;s don&#39;t work.</div>
<div><br></div><div>------</div><div>   typedef vnl_matrix&lt; float &gt;    MatrixType;</div><div>   MatrixType hessianMat[size];</div><div>   VectorType a, b, c; </div><div><br></div><div>   //then I&#39;ve tried things like </div>
<div><br></div><div>   for(int j=0; j &lt; size; j++)</div><div>    { </div><div>        ComponentType temp[4] = { a.get(j), b.get(j), b.get(j), c.get(j)};</div><div>        hessianMat[j].copy_in(temp );</div><div>   }</div>
<div><div>------</div><div><br></div><div>Any ideas? Let me know what you think:)</div><div><br></div>-- <br><b>Arvind S. Rao, PhD</b><br>Section of Biomedical Image Analysis<br>Department of Radiology<br>University of Pennsylvania<br>
3600 Market Street, Suite 380<br>Philadelphia, PA 19104<div><br></div><br>
</div>