<div class="gmail_quote">On Sat, Aug 8, 2009 at 11:07 PM, Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi David,<br><br>Thanks for reinstalling the files.<br><br>The problem is that you are not calling FillBuffer()<br>so the buffer of your image is not initialized.<br><br>You are only calling SetPixel() in a couple of pixels<br>
but all the others are left at the random values that<br>the memory buffer may have had.<br><br><br>Just call:<br><br> image->FillBuffer( 0 );<br><br>after you call image->Allocate();<br><br><br> Regards,<br>
<br><br> Luis<br><br></blockquote></div><br><div>Ah, makes sense - I guess I thought FillBuffer(0) was called automatically. Since it is not, why would the buffer apparently be filled with zeros in the "good.cpp/vtk" case?</div>
<div><br></div><div>Any thoughts on my suggestion of ITK hosted web storage for files pertaining to list posts?</div><div><br clear="all">Thanks,<br><br>David</div>