[Insight-users] When to set image spacing?

David Doria daviddoria+itk at gmail.com
Sun Aug 9 08:58:28 EDT 2009


On Sat, Aug 8, 2009 at 11:07 PM, Luis Ibanez <luis.ibanez at kitware.com>wrote:

> Hi David,
>
> Thanks for reinstalling the files.
>
> The problem is that you are not calling FillBuffer()
> so the buffer of your image is not initialized.
>
> You are only calling SetPixel() in  a couple of pixels
> but all the others are left at the random values that
> the memory buffer may have had.
>
>
> Just call:
>
>      image->FillBuffer( 0 );
>
> after you call image->Allocate();
>
>
>     Regards,
>
>
>           Luis
>
>
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?

Any thoughts on my suggestion of ITK hosted web storage for files pertaining
to list posts?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090809/ef430916/attachment.htm>


More information about the Insight-users mailing list