Hi All, <div><br></div><div>I'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't understand why the standard ways to construct vnl_matrix's don't work.</div>
<div><br></div><div>------</div><div> typedef vnl_matrix< float > MatrixType;</div><div> MatrixType hessianMat[size];</div><div> VectorType a, b, c; </div><div><br></div><div> //then I've tried things like </div>
<div><br></div><div> for(int j=0; j < 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>