[Insight-users] Difference between GetBufferPointer and GetImportPointer

李健 rongx2 at live.cn
Fri Feb 20 15:01:01 EST 2009


Dear all:

 

When I want to get the image data from the output of a itk filter, what's the difference between using

"filter->GetOutput()->GetBufferPointer()" and using "filter->GetOutput()->GetPixelContainer()->GetImportPointer()"?

 

I found following description about them in ImportImageContainer calss in itk documentation:

GetBufferPointer:  Return a pointer to the beginning of the buffer. This is used by the image iterator class. 

GetImportPointer: get the pointer from which the image data is imported.

But I'm still confused. What's the difference between them? Which one I should use to get the image data from itk?

 

Thanks a lot.

_________________________________________________________________
怎样买车票更方便?微软春节搜索,第一时间为您提供火车票信息!
http://piao.live.com/?form=PANER01 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090221/a3d8473c/attachment.htm>


More information about the Insight-users mailing list