Re: [ITK-users] Problems Using GPU Filters
Matt McCormick <[email protected]>
| Newsgroups | gmane.comp.lib.itk.user |
|---|---|
| Message-ID | <CALzTN-QSuXjArus1PDgcrhV1uD5d-mW2V+-cCE642yvteuxpeg@mail.gmail.com> |
Hi Andaharoo, As a rule of thumb, use itk::GPUImage with itk::GPU*ImageFilter. This ensures that the input image can be pass from CPU to GPU memory and the output image can be passed from GPU to CPU memory if required. Hope this helps, Matt On Tue, Aug 1, 2017 at 2:15 PM, Andaharoo <[email protected]> wrote: > Yeah I figured this out and it allowed me to use > GPUGradientAnisotropicImageFilter. > I was using GPUGradientAnisotropicImageFilter<itkImage, itkImage> and using > GPUGradientAnisotropicImageFilter<itkImage, itkGPUImage> fixed it. > > But I can't seem to use any other GPU filters unless I apply them after the > gradient anisotropic? It's not converting and I'm unable to setup my readers > to use itkGPUImage so I can't do > GPUGradientAnisotropicImageFilter<itkGPUImage, itkGPUImage> > > Pipeline: > vtkImage -> vtktoitk filter -> gpu filter -> itktovtkfilter -> > > Also does > GPUGradientAnisotropicImageFilter<itkGPUImage, itkImage> differ from > GPUGradientAnisotropicImageFilter<itkImage, itkGPUImage> because the output > of a gpu filter can go back to a cpu filter? This is what made me initially > think I would use GPUGradientAnisotropicImageFilter<itkImage, itkImage> > > Thanks > > > > -- > View this message in context: http://itk-insight-users.2283740.n2.nabble.com/Problems-Using-GPU-Filters-tp7590036p7590114.html > Sent from the ITK Insight Users mailing list archive at Nabble.com. > _____________________________________ > 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://www.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-users _____________________________________ 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://www.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-users