Is it possible to use GPU acceleration on deconvlucy

조회 수: 3 (최근 30일)
Andreas Oberg
Andreas Oberg 2019년 3월 26일
댓글: Matt J 2019년 3월 31일
Hi,
Im trying to sharpen images using deconvlucy. I'm wondering if it is possible to use the GPU to accelerate this?
I tried with the code below, but it does not work.
image = gpuArray(imread('peppers.png'));
%Convert the image to doubles, and apply convolutions to obtain the gradient image. Then, using the gradient image, sharpen the image by a factor of amount.
dimage = im2double(image);
PSF = fspecial('gaussian',7,10);
gradient=deconvlucy(dimage, PSF);

답변 (1개)

Harshit Jain
Harshit Jain 2019년 3월 29일
'deconvlucy' function doesn not support GPU acceleration. You can refer to this documentation to find out whether a MATLAB function supports GPU acceleration or not.
  댓글 수: 3
Matt J
Matt J 2019년 3월 31일
By convert it, I assume you mean, make a modified copy of it.
Matt J
Matt J 2019년 3월 31일
Andreas replied:
Hi! Yes what Im considering is copy the matlab script and change it so that it uses gpuArrays etc. Im just wondering if there may be some limitations that Im not aware of. Im still quite new to the parallel toolbox. Thanks!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by