[Rtk-users] Input and output image buffer

Simon Rit simon.rit at creatis.insa-lyon.fr
Wed Dec 3 03:31:28 EST 2014


Hi Louie,
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 InPlaceOff
<http://www.itk.org/Doxygen/html/classitk_1_1InPlaceImageFilter.html#a8d759f2bdeaf360a54524d87c5fc4d14>
before updating. Then , the buffers will be indeed pointing to different
memory spaces.
Hope this helps,
Simon

On Tue, Dec 2, 2014 at 10:21 PM, louie L <ghostcz at hotmail.com> wrote:

> Dear RTK users and developers,
>
> I am writing a backprojection filter whose superclass is
> ImageToImageFilter. After allocating the output, I called
> this->GetInput()->GetBufferPointer() and
> this->GetOutput()->GetBufferPointer().
> 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?
> Thank you.
>
> Best regards,
> Louie
>
>
> _______________________________________________
> Rtk-users mailing list
> Rtk-users at public.kitware.com
> http://public.kitware.com/mailman/listinfo/rtk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/rtk-users/attachments/20141203/b46852dd/attachment-0009.html>


More information about the Rtk-users mailing list