[ITK] [ITK-users] Problems Using GPU Filters
Andaharoo
andx_roo at live.com
Tue Aug 1 18:23:01 EDT 2017
I can't get the images to go from CPU to GPU on GPUMeanImageFilter,
GPUBinaryThresholdImageFilter, and GPUDiscreteGaussianImageFilter. So I
can't start my gpu pipeline with these filters. If I apply something like
GPUGradientAnisotropicImageFilter (which does work) then I can apply the
other filters confirming that it can go GPU to GPU but not CPU to GPU on
those 3 filters. Do these 3 filters not support conversion?
GPUInputImage::Pointer inPtr =
dynamic_cast<GPUInputImage*>(this->ProcessObject::GetInput(0));
inPtr was null when I debugged GPUMeanImageFilter. This line also doesn't
make sense in terms of using an Image since it would just return null if you
gave it an Image that wasn't allocated as a GPUImage. Unless the cpu image
gets converted to a gpu image elsewhere beforehand?
It seems as though only GPUInPlaceImageFilters work with CPU - GPU
conversion for me? I can't quite understand the GPUInPlaceImageFilters
source yet so I'm not so sure why GPUGradientAnisotropicImageFilter works.
They are, of course, different in terms of how they manage memory.
--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/Problems-Using-GPU-Filters-tp7590036p7590122.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
More information about the Community
mailing list