<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
<!--
@font-face
        {font-family:Wingdings}
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
.MsoChpDefault
        {}
@page WordSection1
        {margin:70.85pt 70.85pt 70.85pt 70.85pt}
div.WordSection1
        {}
ol
        {margin-bottom:0cm}
ul
        {margin-bottom:0cm}
-->
</style>
</head>
<body lang="FR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hi everyone,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span lang="EN-US">I’m converting a filter I’ve designed into CUDA, and I’m new to CUDA. The filter takes in input a 4d image (3D +time), interpolates between two instants (two 3D images taken from the 4D image by selecting a given instant)
 to obtain a 3D image, and forward projects through this 3D image. I already have an interpolation kernel that works, it uses global memory to store both the 4D image and the interpolated 3D image (there probably is a better way, but I’ll optimize that later).
 For the forward projection, I’d like to reuse as much as possible the rtkCudaForwardProjectionImageFilter code, but :</span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt"><span lang="EN-US"><span style="">-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><span lang="EN-US">rtkCudaForwardProjectionImageFilter stores its input 3D volume into a 3D texture</span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt"><span lang="EN-US"><span style="">-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><span lang="EN-US">texture memory, I think, is read-only for threads</span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt"><span lang="EN-US"><span style="">-<span style="font:7.0pt "Times New Roman"">         
</span></span></span><span lang="EN-US">So I can’t fill in the 3D texture during interpolation</span></p>
<p class="MsoNormal"><span lang="EN-US">I think I need to work with global memory during interpolation to generate the 3D volume, then
<u>somehow</u> copy the result to a 3D texture, and use the existing (maybe slightly modified) forward projection function to get the projection.
</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">My problem is in the “somehow”… Do I need to actually copy the data from the global memory to the texture memory ? Or is it enough to bind it to a texture ? Does anyone have an example somewhere ?</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Regards,</span></p>
<p class="MsoNormal"><span lang="EN-US">==========================================</span></p>
<p class="MsoNormal"><span lang="EN-US">Cyril Mory</span></p>
<p class="MsoNormal"><span lang="EN-US">PhD student at Philips Medisys and CREATIS</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal">Groupement Hospitalier Est</p>
<p class="MsoNormal">Hôpital Cardiologique Louis Pradel</p>
<p class="MsoNormal">Laboratoire CREATIS - Bât. B13</p>
<p class="MsoNormal">CNRS UMR5220, INSERM U1044, INSA-Lyon, Univ. Lyon 1</p>
<p class="MsoNormal">28, Avenue du Doyen LEPINE</p>
<p class="MsoNormal">69677 Bron cedex FRANCE</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span lang="EN-US">Office : +33 4 72 35 74 12</span></p>
<p class="MsoNormal"><span lang="EN-US">Cell : +33 6 69 46 73 79</span></p>
<p class="MsoNormal"> </p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified
 that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.<br>
</font>
</body>
</html>