Hi I have some problems with the next code: <br><br>typedef T InputPixelType;<br> typedef float OutputPixelType; <br> typedef itk::Image< InputPixelType, 3 > InputImageType;<br> typedef itk::Image< OutputPixelType, 3 > 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<double> A(26,26);<br>
<br> for ( int i = 0 ; i < imageVector.size() ; i++ )<br> {<br> <br> for (int i=0; i<26; i++)<br> {<br> for(int j=0; j<26; j++)<br> {<br> if (i<=j) {<br>
<br> A[i,j]=(4*(imageVector[i-j]->GetPixel(indexArtery))+(imageVector[i-j-1]->GetPixel(indexArtery))+(imageVector[i-j+1]->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's not possible make the conversion 'InputPixelType' to 'double*' , 'int' to 'double* , 'OutputPixelType' to 'double*' and 'unsigned long' to 'double*'<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>