<div>Dear all</div>
<div>I want to implement raycasting in a <strong>local sphere S</strong> at a voxel x witha  radius in a CTA volume. </div>
<div>A total number of NS rays are <strong>uniformly distributed</strong> cast from the center x to the sphere’s surface.</div>
<div>I want to get the intensity of voxels that a ray traces (from the center of sphere to surface).</div>
<div>can anyone help me how to do it?</div>
<div>thanks in advance</div>
<div>Best</div><br><br>
<div class="gmail_quote">On Fri, Sep 16, 2011 at 6:23 AM, Cory Quammen <span dir="ltr">&lt;<a href="mailto:cquammen@cs.unc.edu">cquammen@cs.unc.edu</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Jothy,<br><br>Could you post a minimal compilable and runnable example with an<br>accompanying CMakeLists.txt file that gives the compilation error?<br>
<br>Thanks,<br>Cory<br>
<div>
<div></div>
<div class="h5"><br>On Fri, Sep 16, 2011 at 7:39 AM, Jothy &lt;<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>&gt; wrote:<br>&gt; Hi all,<br>&gt;<br>&gt; I am trying to use the itkConvolutionImageFilter from git (since some of the<br>
&gt; bugs are fixed in this). i was able to sucessfully use the older version of<br>&gt; this downloaded from the Insight journal. But I get the following errors<br>&gt; with the git version.<br>&gt;<br>&gt; In file included from ..\BIOSIM2\/itkConvolutionImageFilter.h:197,<br>
&gt;<br>&gt; from ..\BIOSIM2\myimagefilters.cpp:48:<br>&gt;<br>&gt; ..\BIOSIM2\/itkConvolutionImageFilter.hxx: In member function &#39;typename<br>&gt; itk::ConvolutionImageFilter&lt;TInputImage, TKernelImage,<br>&gt; TOutputImage&gt;::OutputRegionType itk::ConvolutionImageFilter&lt;TInputImage,<br>
&gt; TKernelImage, TOutputImage&gt;::GetValidRegion() const [with TInputImage =<br>&gt; itk::Image&lt;unsigned int, 3u&gt;, TKernelImage = itk::Image&lt;unsigned int, 3u&gt;,<br>&gt; TOutputImage = itk::Image&lt;unsigned int, 3u&gt;]&#39;:<br>
&gt;<br>&gt; ..\BIOSIM2\/itkConvolutionImageFilter.hxx:200: instantiated from &#39;void<br>&gt; itk::ConvolutionImageFilter&lt;TInputImage, TKernelImage,<br>&gt; TOutputImage&gt;::GenerateOutputInformation() [with TInputImage =<br>
&gt; itk::Image&lt;unsigned int, 3u&gt;, TKernelImage = itk::Image&lt;unsigned int, 3u&gt;,<br>&gt; TOutputImage = itk::Image&lt;unsigned int, 3u&gt;]&#39;<br>&gt;<br>&gt; ..\BIOSIM2\myimagefilters.cpp:494: instantiated from here<br>
&gt;<br>&gt; ..\BIOSIM2\/itkConvolutionImageFilter.hxx:267: error: passing &#39;const<br>&gt; itk::ConvolutionImageFilter&lt;itk::Image&lt;unsigned int, 3u&gt;,<br>&gt; itk::Image&lt;unsigned int, 3u&gt;, itk::Image&lt;unsigned int, 3u&gt; &gt;&#39; as &#39;this&#39;<br>
&gt; argument of &#39;const TInputImage* itk::ImageToImageFilter&lt;TInputImage,<br>&gt; TOutputImage&gt;::GetInput() [with TInputImage = itk::Image&lt;unsigned int, 3u&gt;,<br>&gt; TOutputImage = itk::Image&lt;unsigned int, 3u&gt;]&#39; discards qualifiers<br>
&gt;<br>&gt; And here is the code I use to convolve<br>&gt;<br>&gt; typedef itk::ConvolutionImageFilter&lt;ImageType&gt; ConvolutionFilterType;<br>&gt;<br>&gt; ConvolutionFilterType::Pointer convoluter= ConvolutionFilterType::New();<br>
&gt;<br>&gt; convoluter-&gt;SetInput(converter-&gt;GetOutput());<br>&gt;<br>&gt; convoluter-&gt;SetImageKernelInput(converterKernel-&gt;GetOutput());<br>&gt;<br>&gt; convoluter-&gt;Update();<br>&gt;<br>&gt;<br>&gt; Any hints<br>
&gt;<br>&gt; Jothy<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; --<br>&gt; Jothybasu K Selvaraj<br>&gt; PhD Student<br>&gt; University of Liverpool<br>&gt; Liverpool,UK<br>&gt;<br>&gt;<br></div></div>&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>&gt;<br>&gt; Visit other Kitware open-source projects at<br>&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>&gt; Kitware offers ITK Training Courses, for more information visit:<br>&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>&gt;<br>&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>&gt;<br>&gt;<br><br><br><br>--<br>Cory Quammen<br>Research Associate<br>Department of Computer Science<br>
The University of North Carolina at Chapel Hill<br>_____________________________________<br>Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br><a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>Please keep messages on-topic and check the ITK FAQ at:<br><a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</blockquote></div><br>