Hi.<br><br>1) I use this piece of code:<br><br>    ImageType::SizeType size1=filResample->GetOutput()->GetLargestPossibleRegion().GetSize();<br>    ImageType::IndexType index;<br>    index[0] = 0;index[1] = 0;index[2] = 0;<br>
    int pixelsOn=0;<br>    for(index[2]=0;index[2]<size1[2];index[2]++) {<br>        for(index[1]=0;index[1]<size1[1];index[1]++) {<br>            for(index[0]=0;index[0]<size1[0];index[0]++) {<br>                if(filResample->GetOutput()->GetPixel(index)) {<br>
                    pixelsOn++;<br>                }<br>            }<br>        }<br>    }<br><br>  After executing this, pixelsOn is zero.<br>  Does it exist any program to check pixel values?<br><br> 2) I set Similarity Transform to be an identity, commenting:<br>
<br>    //transform->SetScale(scale);<br>    //transform->SetTranslation(translation);<br><br> but nothing changes.<br><br>Thank you for responding.<br><br><div class="gmail_quote">2008/12/2 Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Hi Victor,<br>
<br>
<br>
1) How did you arrive to the conclusion<br>
   that all the output values are zeros ?<br>
<br>
   because you see a black image in a visualization tool ?<br>
   or because you actually used a program to check the<br>
   pixel values ?<br>
<br>
2) If you set the Similarty Transform to be an Identity,<br>
   do you see an proper image in the output ?<br>
<br>
<br>
Please let us know,<br>
<br>
<br>
<br>
   Thanks<br>
<br>
<br>
       Luis<br>
<br></blockquote></div><br>