ok, it&#39;s true thank you<br><br><div class="gmail_quote">2011/6/7 Vincent Garcia <span dir="ltr">&lt;<a href="mailto:vincent.garcia@inria.fr">vincent.garcia@inria.fr</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div style="font-family: Times New Roman; font-size: 12pt; color: rgb(0, 0, 0);">It should be A(i,j) and not A[i,j].<br><br><a href="http://www.itk.org/Doxygen320/html/classitk_1_1Matrix.html#a36a2d0bf5ced1f359da76358506e0948" target="_blank">http://www.itk.org/Doxygen320/html/classitk_1_1Matrix.html#a36a2d0bf5ced1f359da76358506e0948</a><br>
<br>Vincent<br><br><hr><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><b>From: </b>&quot;Sergio Vera&quot; &lt;<a href="mailto:sergio.vera@alma3d.com" target="_blank">sergio.vera@alma3d.com</a>&gt;<br>
<b>To: </b>&quot;David Soto&quot; &lt;<a href="mailto:sotin1985@gmail.com" target="_blank">sotin1985@gmail.com</a>&gt;<br><b>Cc: </b><a href="mailto:insight-users@itk.org" target="_blank">insight-users@itk.org</a><br><b>Sent: </b>Tuesday, 7 June, 2011 1:15:14 PM<br>
<b>Subject: </b>Re: [Insight-users] help with code<div><div></div><div class="h5"><br><br><div>Hi</div>Unless I&#39;m missing some strange operator overloading, should lines 18 and 20 be something like A[i][j] instead of A[i,j]?<div>
<br></div><div>regards<br><div><br></div><div><br><div class="gmail_quote">On Tue, Jun 7, 2011 at 12:37 PM, David Soto <span dir="ltr">&lt;<a href="mailto:sotin1985@gmail.com" target="_blank">sotin1985@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi I have some problems with the next code: <br><br>typedef    T       InputPixelType;<br>  typedef    float       OutputPixelType;  <br>

  typedef itk::Image&lt; InputPixelType,  3 &gt;   InputImageType;<br>  typedef itk::Image&lt; OutputPixelType,  3 &gt;   OutputImageType;<br>
<br>InputImageType::PointType lpsPoint;<br>        InputImageType::IndexType indexArtery;<br><br>        lpsPoint[0] = artery[0];  <br>        lpsPoint[1] = artery[1];<br>        lpsPoint[2] = artery[2];   <br><br>vnl_matrix&lt;double&gt; A(26,26);<br>


<br>        for ( int i = 0 ; i &lt; imageVector.size() ; i++ )<br>        {<br>          <br>            for (int i=0; i&lt;26; i++)<br>         {<br>            for(int j=0; j&lt;26; j++)<br>            {<br>                if (i&lt;=j) {<br>


            <br>                A[i,j]=(4*(imageVector[i-j]-&gt;GetPixel(indexArtery))+(imageVector[i-j-1]-&gt;GetPixel(indexArtery))+(imageVector[i-j+1]-&gt;GetPixel(indexArtery)))/6;    <br>                }<br>                else A[i,j]=0;<br>


<br>            }<br>         }<br><br>in imageVector I previously put 26 diferents CT volums. <br><br>And when I go to compile it, I get some mistakes,in the line number 18 (bucle if... A[i,j]=...)  they say It&#39;s not possible make the conversion &#39;InputPixelType&#39; to &#39;double*&#39; , &#39;int&#39; to &#39;double* , &#39;OutputPixelType&#39; to &#39;double*&#39; and &#39;unsigned long&#39; to &#39;double*&#39;<br>


<br>And another mistake in the line number 20 (else A[i,j]=0;) that say: the left operator must be value L<br><br>I hope anyone could help me, thank you so much<br>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Sergio Vera<br><br> Alma IT Systems<br> C/ Vilana, 4B, 4º 1ª<br> 08022 Barcelona<br> T. (+34) 932 380 592<br> <a href="http://www.alma3d.com" target="_blank">www.alma3d.com</a><br>

</div></div>
<br>_____________________________________<br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>Kitware offers ITK Training Courses, for more information visit:<br><a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br><br>Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote><br></div></div></blockquote></div><br>