<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"><<a href="mailto:cquammen@cs.unc.edu">cquammen@cs.unc.edu</a>></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 <<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>> wrote:<br>> Hi all,<br>><br>> I am trying to use the itkConvolutionImageFilter from git (since some of the<br>
> bugs are fixed in this). i was able to sucessfully use the older version of<br>> this downloaded from the Insight journal. But I get the following errors<br>> with the git version.<br>><br>> In file included from ..\BIOSIM2\/itkConvolutionImageFilter.h:197,<br>
><br>> from ..\BIOSIM2\myimagefilters.cpp:48:<br>><br>> ..\BIOSIM2\/itkConvolutionImageFilter.hxx: In member function 'typename<br>> itk::ConvolutionImageFilter<TInputImage, TKernelImage,<br>> TOutputImage>::OutputRegionType itk::ConvolutionImageFilter<TInputImage,<br>
> TKernelImage, TOutputImage>::GetValidRegion() const [with TInputImage =<br>> itk::Image<unsigned int, 3u>, TKernelImage = itk::Image<unsigned int, 3u>,<br>> TOutputImage = itk::Image<unsigned int, 3u>]':<br>
><br>> ..\BIOSIM2\/itkConvolutionImageFilter.hxx:200: instantiated from 'void<br>> itk::ConvolutionImageFilter<TInputImage, TKernelImage,<br>> TOutputImage>::GenerateOutputInformation() [with TInputImage =<br>
> itk::Image<unsigned int, 3u>, TKernelImage = itk::Image<unsigned int, 3u>,<br>> TOutputImage = itk::Image<unsigned int, 3u>]'<br>><br>> ..\BIOSIM2\myimagefilters.cpp:494: instantiated from here<br>
><br>> ..\BIOSIM2\/itkConvolutionImageFilter.hxx:267: error: passing 'const<br>> itk::ConvolutionImageFilter<itk::Image<unsigned int, 3u>,<br>> itk::Image<unsigned int, 3u>, itk::Image<unsigned int, 3u> >' as 'this'<br>
> argument of 'const TInputImage* itk::ImageToImageFilter<TInputImage,<br>> TOutputImage>::GetInput() [with TInputImage = itk::Image<unsigned int, 3u>,<br>> TOutputImage = itk::Image<unsigned int, 3u>]' discards qualifiers<br>
><br>> And here is the code I use to convolve<br>><br>> typedef itk::ConvolutionImageFilter<ImageType> ConvolutionFilterType;<br>><br>> ConvolutionFilterType::Pointer convoluter= ConvolutionFilterType::New();<br>
><br>> convoluter->SetInput(converter->GetOutput());<br>><br>> convoluter->SetImageKernelInput(converterKernel->GetOutput());<br>><br>> convoluter->Update();<br>><br>><br>> Any hints<br>
><br>> Jothy<br>><br>><br>><br>><br>> --<br>> Jothybasu K Selvaraj<br>> PhD Student<br>> University of Liverpool<br>> Liverpool,UK<br>><br>><br></div></div>> _____________________________________<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>><br>><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>