<div dir="ltr"><div><div>Hi Louie,<br></div>What you do is correct and what you obtain is expected. BackProjectionImageFilter inherits from InPlaceImageFilter. InPlaceImageFilter overwrites the input by default. If you don't want this behavior, you can simply call <a href="http://www.itk.org/Doxygen/html/classitk_1_1InPlaceImageFilter.html#a8d759f2bdeaf360a54524d87c5fc4d14">InPlaceOff</a> before updating. Then , the buffers will be indeed pointing to different memory spaces.<br></div>Hope this helps,<br>Simon<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 2, 2014 at 10:21 PM, louie L <span dir="ltr"><<a href="mailto:ghostcz@hotmail.com" target="_blank">ghostcz@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear RTK users and developers,<br>
<br>
I am writing a backprojection filter whose superclass is ImageToImageFilter. After allocating the output, I called<br>
this->GetInput()->GetBufferPointer() and<br>
this->GetOutput()->GetBufferPointer().<br>
to get the address of the images in memory. However the two functions above return the same value. Why? If this is not the correct way to get the address of the input image, how can I get that address?<br>
Thank you.<br>
<br>
Best regards,<br>
Louie<br>
<br>
<br>
_______________________________________________<br>
Rtk-users mailing list<br>
<a href="mailto:Rtk-users@public.kitware.com">Rtk-users@public.kitware.com</a><br>
<a href="http://public.kitware.com/mailman/listinfo/rtk-users" target="_blank">http://public.kitware.com/mailman/listinfo/rtk-users</a><br>
</blockquote></div><br></div>