<div dir="ltr"><div><div>Hi all,<br><br></div>I was trying to develop GPU filters for tensor-voting and I just started learning the ITK GPU framework. I believe the itkGPUImageFilterTest has a bug in that it is not using a GPU filter but a CPU filter in the instantiation and so this test is not doing what its designed for. Am I right?<br><br>template< unsigned int VImageDimension ><br>int runGPUImageFilterTest(const std::string& inFile, const std::string& outFile)<br>{<br> typedef unsigned char InputPixelType;<br> typedef unsigned char OutputPixelType;<br><br> typedef itk::Image< InputPixelType, VImageDimension > InputImageType;<br> typedef itk::Image< OutputPixelType, VImageDimension > OutputImageType;<br><br> typedef itk::ImageFileReader< InputImageType > ReaderType;<br> typedef itk::ImageFileWriter< OutputImageType > WriterType;<br><br> typename ReaderType::Pointer reader = ReaderType::New();<br> typename WriterType::Pointer writer = WriterType::New();<br><br> reader->SetFileName( inFile );<br> writer->SetFileName( outFile );<br><br> //<br> // Note: We use regular itk filter type here but factory will automatically create<br> // GPU filter for Median filter and CPU filter for threshold filter.<br> //<br> typedef itk::MeanImageFilter< InputImageType, OutputImageType > MeanFilterType;<br> typedef itk::BinaryThresholdImageFilter< InputImageType, OutputImageType > ThresholdFilterType;<br><br> typename MeanFilterType::Pointer filter1 = MeanFilterType::New();<br> typename MeanFilterType::Pointer filter2 = MeanFilterType::New();<br> typename ThresholdFilterType::Pointer filter3 = ThresholdFilterType::New();<br><br> // Mean filter kernel radius<br> typename InputImageType::SizeType indexRadius;<br> indexRadius[0] = 2; // radius along x<br> indexRadius[1] = 2; // radius along y<br> if( VImageDimension > 2 )<br> {<br> indexRadius[2] = 2; // radius along z<br> }<br><br> // threshold parameters<br> const InputPixelType upperThreshold = 255;<br> const InputPixelType lowerThreshold = 175;<br> const OutputPixelType outsideValue = 0;<br> const OutputPixelType insideValue = 255;<br><br> filter1->SetRadius( indexRadius );<br> filter2->SetRadius( indexRadius );<br> filter3->SetOutsideValue( outsideValue );<br> filter3->SetInsideValue( insideValue );<br> filter3->SetUpperThreshold( upperThreshold );<br> filter3->SetLowerThreshold( lowerThreshold );<br><br> // build pipeline<br> filter1->SetInput( reader->GetOutput() ); // copy CPU->GPU implicilty<br> filter2->SetInput( filter1->GetOutput() );<br> filter3->SetInput( filter2->GetOutput() );<br> writer->SetInput( filter3->GetOutput() ); // copy GPU->CPU implicilty<br><br> // execute pipeline filter and write output<br> writer->Update();<br><br> return EXIT_SUCCESS;<br>}<br><br><br></div><div>Kishore<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 25, 2016 at 2:25 PM, Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
The planned dates have been changed accordingly on the wiki and in the<br>
issue tracker:<br>
<br>
<a href="http://www.itk.org/Wiki/ITK/Release_Schedule#Release_4.10_Schedule" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK/Release_Schedule#Release_4.10_Schedule</a><br>
<br>
Thanks,<br>
Matt<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, Apr 14, 2016 at 1:14 PM, Matt McCormick<br>
<<a href="mailto:matt.mccormick@kitware.com">matt.mccormick@kitware.com</a>> wrote:<br>
> Hi folks,<br>
><br>
> Since I will be away from keyboard for most of June, I propose a<br>
> change for the next scheduled feature release. We could start release<br>
> candidates May 9th, with the final release targeted for May 24th. Will<br>
> there be any issues with issues with this?<br>
><br>
> Thanks,<br>
> Matt<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" 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://kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-developers</a><br>
</div></div></blockquote></div><br></div>