<div dir="ltr"><div>Please stick to the mailing list.</div><div>It should, what is the error message?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 27, 2023 at 7:53 AM Fuquan Deng <<a href="mailto:dfq_2022@163.com">dfq_2022@163.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="line-height:1.7;color:rgb(0,0,0);font-size:14px;font-family:Arial"><p style="margin:0px">Thanks for your answer. i convert itk.CudaImage to numpy.array after reconstruction by fdk. But it showed error when i use itk.GetArrayFromImage. Does itk not support to convert itk.CudaImage to numpy.array?</p><p style="margin:0px"><br></p><p style="margin:0px"><br></p><div></div><div id="m_-452995294325862562divNeteaseMailCard"></div><p style="margin:0px"><br></p><p>At 2023-11-27 14:00:23, "Simon Rit" <<a href="mailto:simon.rit@creatis.insa-lyon.fr" target="_blank">simon.rit@creatis.insa-lyon.fr</a>> wrote:</p><blockquote id="m_-452995294325862562isReplyContent" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204)"><div dir="ltr"><div>Hi,</div><div>You can find <a href="https://github.com/RTKConsortium/RTK/blob/master/examples/FirstReconstruction/FirstCudaReconstruction.py#L70-L76" target="_blank">here</a> how to convert an itk.Image to an itk.CudaImage. An itk.CudaImage is an itk.Image (by inheritance) so you should not need to convert it, just use it as if it were an itk.Image, as illustrated in the same example <a href="https://github.com/RTKConsortium/RTK/blob/master/examples/FirstReconstruction/FirstCudaReconstruction.py#L91" target="_blank">here</a>. Or have I missed something?</div><div>Simon<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 26, 2023 at 4:06 PM Fuquan Deng <<a href="mailto:dfq_2022@163.com" target="_blank">dfq_2022@163.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="line-height:1.7;color:rgb(0,0,0);font-size:14px;font-family:Arial"><div>Dear simon,</div><div><br></div><div>althought do not the theory of  transforming numpy.array to cuda image, I succeed.</div><div>but now i have other question.</div><div>how to transform cudaimage to itk.Image, and then use GetArrayFromImage to transform to numpy.array?  </div><div><br></div><div>i have read the itk and rtk documents and can not find the answer. Use GPT and get wrong answer. So i come to here and send email to ask you about this. Does rtk-python support this?</div><div>Thanks and look forward to your reply.</div><div><br></div><div>Fuquan Deng</div></div></blockquote></div>
</blockquote></div></blockquote></div>