Re: [Rtk-users] Use existing Images when copying from/to GPU

2019-09-11 Thread Simon Rit
Hi Clemens, Sorry for not looking at your issue for a long time. I checked what you were saying and: - if I comment these two lines , indeed I don't get the forward projection since the buffer is

Re: [Rtk-users] Use existing Images when copying from/to GPU

2019-07-09 Thread C S
Hi Simon, I think I understood the issue. *Problem:* The CPUBufferPointer of the CudaImage gets altered after calling .Update() on the backprojection/forwardprojection filter. Because of that, the existing numpy array (I created the CPU and GPU images from) does not get changed from the filter.

Re: [Rtk-users] Use existing Images when copying from/to GPU

2019-07-08 Thread C S
Hi Simon, I'm not sure I understand but have you tried grafting the Image or > CudaImage to an existing itk::Image (the Graft function)? > I tried that but when I call itk.GetArrayFromImage(cuda_img) on the grafted image (cpu_img.Graft(cuda_img)) I get the error ```ValueError:

Re: [Rtk-users] Use existing Images when copying from/to GPU

2019-07-08 Thread Simon Rit
On Mon, Jul 8, 2019 at 10:45 PM C S wrote: > Hi Simon, > > thank you for your swift reply and suggestions! > > In fact I'm already using your snippet > > for > cpu->gpu transfer. My

Re: [Rtk-users] Use existing Images when copying from/to GPU

2019-07-08 Thread C S
Hi Simon, thank you for your swift reply and suggestions! In fact I'm already using your snippet for cpu->gpu transfer. My main issue is using the existing cpu image when transfering