<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Kana,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">something like:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">#include</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">
<span style="color:#A31515">&quot;vnl/algo/vnl_qr.h&quot;</span></span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green">vnl_qr&lt;TScalarType&gt; qr( vnl_matrix_1 );</span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">and then use it, e.g.:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">vnl_matrix&lt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green"> TScalarType</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
 &gt; vnl_matrix_2</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> =
<span style="color:#010001">qr</span>.<span style="color:#010001">solve</span>( <span style="color:blue">
vnl_matrix_3</span> );</span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">or<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">vnl_matrix&lt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green"> TScalarType</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
 &gt; vnl_matrix_Q</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> =
<span style="color:#010001">qr</span>.<span style="color:#010001">Q</span>();<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">vnl_matrix&lt;</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:green"> TScalarType</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">
 &gt; vnl_matrix_R</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> =
<span style="color:#010001">qr</span>.<span style="color:#010001">R</span>();</span><span style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">See:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><a href="http://public.kitware.com/vxl/doc/development/core/vnl/html/classvnl__qr.html">http://public.kitware.com/vxl/doc/development/core/vnl/html/classvnl__qr.html</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">HTH,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Marius<o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> insight-users-bounces@itk.org [mailto:insight-users-bounces@itk.org]
<b>On Behalf Of </b>Arunachalam Kana<br>
<b>Sent:</b> maandag 4 april 2011 10:37<br>
<b>To:</b> insight-users@itk.org<br>
<b>Subject:</b> [Insight-users] QR decomposition<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:36.0pt"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="DE-AT">Hi Users,<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB">I want to us the QR decomposition in itk. I found from the mailing list that it is available in cqrdc.c but i do not know<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB">How to use it.
<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB">Can someone give an example of how to use the QR decomposition in itk.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="EN-GB">Thank you in advance.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span lang="DE-AT">Kana Arunachalam Kannappan<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span lang="DE-AT">Research Associate<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span lang="DE-AT">FH OÖ Forschungs &amp; Entwicklungs GmbH<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span lang="DE-AT">Stelzhamer Strasse 23,<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span lang="DE-AT">4600 Wels,<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span lang="DE-AT">Austria.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span lang="DE-AT">Phone: &#43;43 (0)7242 72811 -4420<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span lang="DE-AT"><a href="mailto:kana.arunachalam@fh-wels.at">kana.arunachalam@fh-wels.at</a><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt">
<span lang="DE-AT"><a href="http://www.fh-ooe.at">www.fh-ooe.at</a>; <a href="http://www.3dct.at">
www.3dct.at</a><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:36.0pt"><span lang="DE-AT"><o:p>&nbsp;</o:p></span></p>
</div>
</body>
</html>