About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
See full specifications

scripts default iconGPUCONV2 (Scripts) Publisher's description

GPUCONV2 Two dimensional convolution on the GPU using Cuda.

GPUCONV2 Two dimensional convolution on the GPU using Cuda.

C = GPUCONV2(A, B) performs the 2-D convolution of matrices A and B.
If [ma,na] = size(A), [mb,nb] = size(B), and [mc,nc] = size(C), then
mc = max([ma+mb-1,ma,mb]) and nc = max([na+nb-1,na,nb]).

C = GPUCONV2(A, B, SHAPE) returns a subsection of the 2-D
convolution with size specified by SHAPE:
'full' - (default) returns the full 2-D convolution,
'same' - returns the central part of the convolution
that is the same size as A.
'valid' - returns only those parts of the convolution
that are computed without the zero-padded edges.
size(C) = max([ma-max(0,mb-1),na-max(0,nb-1)],0).

This function depends on two Cuda kernel files
conv2_float.cu and conv2_double.cu which needs to be compiled
to .ptx files using the nvcc compiler.

See also CONV2, NVCC

Load an image
Create a Gaussian filtering kernel
H = fspecial('gaussian',[20 20],3);
Perform the convolution on the CPU
J = conv2(I,H);
Perform the convolution on the GPU
Jcuda = gpuconv2(I,H);
Show the results
imshow(J,[]); title('CPU filtering');
imshow(Jcuda,[]); title('GPU filtering');
imshow(Jcuda-J,[]); title('Difference');

System Requirements:

MATLAB 7.11 (2010b)
Program Release Status: New Release
Program Install Support: Install and Uninstall

GPUCONV2 (Scripts) Tags:

Click on a tag to find related softwares

Is GPUCONV2 (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.