<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Dear all:<BR>
&nbsp;<BR>
When I want to get the image data from the output of a itk filter, what's the difference between using<BR>
"filter-&gt;GetOutput()-&gt;GetBufferPointer()" and using "filter-&gt;GetOutput()-&gt;GetPixelContainer()-&gt;GetImportPointer()"?<BR>
&nbsp;<BR>
I found following description about them in ImportImageContainer calss&nbsp;in itk documentation:<BR>
GetBufferPointer:&nbsp; Return a pointer to the beginning of the buffer. This is used by the image iterator class. <BR>
GetImportPointer: get the pointer from which the image data is imported.<BR>
But I'm still confused. What's the difference between them? Which one I should use to get the image data from itk?<BR>
&nbsp;<BR>
Thanks a lot.<BR><br /><hr />立刻下载 MSN 保护盾,保障 MSN 安全稳定! <a href='http://im.live.cn/safe/' target='_new'>现在就下载!</a></body>
</html>