[Insight-users] a bug in ImportImageFilter?

Carolyn Johnston Carolyn . Johnston at vexcel . com
Fri, 18 Jul 2003 13:54:15 -0600


<html>
 From the manual:<br>
<br>
<font face="Times New Roman, Times">The buffer is passed to the
</font><font face="Courier, Courier" color="#0000FF">itk::ImportImageFilter
</font><font face="Times New Roman, Times">with the
</font><font face="Courier, Courier">SetImportPointer(</font><font face="Times New Roman, Times">).
Note that the last argument<br>
of this method specifies who will be responsible for deleting the memory
block once it is no longer in use. A
</font><font face="Courier, Courier">true<br>
</font><font face="Times New Roman, Times">value indicates that the
</font><font face="Courier, Courier" color="#0000FF">itk::ImportImageFilter
</font><font face="Times New Roman, Times">will not try to delete the
buffer when its destructor is called. A<br>
</font><font face="Courier, Courier">false
</font><font face="Times New Roman, Times">on the other hand will allow
the filter to delete the memory block.<br>
<br>
</font>I think that is pretty clearly the opposite of what is actually in
the code. <br>
<br>
At 03:50 PM 7/18/2003 -0400, Miller, James V (Research) wrote:<br>
<blockquote type=cite class=cite cite>This might be a naming/doc
issue.&nbsp; Here &quot;Source&quot; refers to the<br>
ImportImageFilter.<br>
It is considered a &quot;source&quot; since it produces output but
doesn't take an<br>
input<br>
in the tradition pipeline sense. &quot;Source&quot; is the generic name
of an object<br>
that <br>
produces output.&nbsp; This is in contrast to a &quot;filter&quot;.<br>
<br>
&quot;Source&quot; does not mean your application rather it means
the<br>
ImportImageFilter.<br>
</blockquote></html>