[ITK] [ITK-dev] ITK 4.10 release date

Kishore Mosaliganti kishoreraom at gmail.com
Mon Apr 25 22:59:31 EDT 2016


Hi all,

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?

template< unsigned int VImageDimension >
int runGPUImageFilterTest(const std::string& inFile, const std::string&
outFile)
{
  typedef   unsigned char  InputPixelType;
  typedef   unsigned char  OutputPixelType;

  typedef itk::Image< InputPixelType,  VImageDimension >   InputImageType;
  typedef itk::Image< OutputPixelType, VImageDimension >   OutputImageType;

  typedef itk::ImageFileReader< InputImageType  >  ReaderType;
  typedef itk::ImageFileWriter< OutputImageType >  WriterType;

  typename ReaderType::Pointer reader = ReaderType::New();
  typename WriterType::Pointer writer = WriterType::New();

  reader->SetFileName( inFile );
  writer->SetFileName( outFile );

  //
  // Note: We use regular itk filter type here but factory will
automatically create
  //       GPU filter for Median filter and CPU filter for threshold filter.
  //
  typedef itk::MeanImageFilter< InputImageType, OutputImageType >
MeanFilterType;
  typedef itk::BinaryThresholdImageFilter< InputImageType, OutputImageType
> ThresholdFilterType;

  typename MeanFilterType::Pointer filter1 = MeanFilterType::New();
  typename MeanFilterType::Pointer filter2 = MeanFilterType::New();
  typename ThresholdFilterType::Pointer filter3 =
ThresholdFilterType::New();

  // Mean filter kernel radius
  typename InputImageType::SizeType indexRadius;
  indexRadius[0] = 2; // radius along x
  indexRadius[1] = 2; // radius along y
  if( VImageDimension > 2 )
  {
    indexRadius[2] = 2; // radius along z
  }

  // threshold parameters
  const InputPixelType upperThreshold = 255;
  const InputPixelType lowerThreshold = 175;
  const OutputPixelType outsideValue = 0;
  const OutputPixelType insideValue  = 255;

  filter1->SetRadius( indexRadius );
  filter2->SetRadius( indexRadius );
  filter3->SetOutsideValue( outsideValue );
  filter3->SetInsideValue(  insideValue  );
  filter3->SetUpperThreshold( upperThreshold );
  filter3->SetLowerThreshold( lowerThreshold );

  // build pipeline
  filter1->SetInput( reader->GetOutput() ); // copy CPU->GPU implicilty
  filter2->SetInput( filter1->GetOutput() );
  filter3->SetInput( filter2->GetOutput() );
  writer->SetInput( filter3->GetOutput() ); // copy GPU->CPU implicilty

  // execute pipeline filter and write output
  writer->Update();

  return EXIT_SUCCESS;
}


Kishore

On Mon, Apr 25, 2016 at 2:25 PM, Matt McCormick <matt.mccormick at kitware.com>
wrote:

> Hi,
>
> The planned dates have been changed accordingly on the wiki and in the
> issue tracker:
>
>  http://www.itk.org/Wiki/ITK/Release_Schedule#Release_4.10_Schedule
>
> Thanks,
> Matt
>
> On Thu, Apr 14, 2016 at 1:14 PM, Matt McCormick
> <matt.mccormick at kitware.com> wrote:
> > Hi folks,
> >
> > Since I will be away from keyboard for most of June, I propose a
> > change for the next scheduled feature release. We could start release
> > candidates May 9th, with the final release targeted for May 24th. Will
> > there be any issues with issues with this?
> >
> > Thanks,
> > Matt
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160425/ca928b36/attachment.html>
-------------- next part --------------
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-developers


More information about the Community mailing list