Rank: 774 based on 115 downloads (last 30 days) and 2 files submitted
photo

Alexander Huth

E-mail

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Files Posted by Alexander View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
16 Jul 2008 Screenshot 2D CUDA-based bilinear interpolation GPU assisted fast bilinear interpolation Author: Alexander Huth fast mex, 2d bilinear interpola..., cuda 59 6
16 Jul 2008 Screenshot Fast 2D GPU-based convolution Graphics chip assisted fast 2d convolution Author: Alexander Huth 2d convolution, cuda, fast mex 56 9
  • 4.2
4.2 | 5 ratings
Comments and Ratings by Alexander
Updated File Comments Rating
18 Dec 2008 Open CV Viola-Jones Face Detection in Matlab Viola-Jones Fast Face Detection Mex Implementation Author: Sreekar Krishna

Hi all - I got this to compile on linux using the following command:

mex FaceDetect.cpp -I../Include -L <path to opencv libraries>/lib*so* -outdir ../bin

Comments and Ratings on Alexander's Files View all
Updated File Comment by Comments Rating
23 Feb 2010 Fast 2D GPU-based convolution Graphics chip assisted fast 2d convolution Author: Alexander Huth HongSic, Oh

Dear Alex, I compile this example as follow..

first of all, i insert a some code at cudaconv.cu
#pragma comment(lib,"C:\\CUDA\\lib64\\cufft.lib")
#pragma comment(lib,"C:\\CUDA\\lib64\\cudart.lib")

next, make a object file

>> system('c:\cuda\bin64\nvcc --compile "d:\cudaconv\cudaconv\cudaconv.cu" -ccbin "C:\Dev\msvs\VC\bin" -o cudaconv.o -IC:\Dev\MATLAB\R2009b\extern\include -IC:\Dev\Msvs\VC\include')

Finaly, compile & link it

>> mex ('cudaconv.o')

good luck to you & sorry to my poor english..

03 Dec 2009 Fast 2D GPU-based convolution Graphics chip assisted fast 2d convolution Author: Alexander Huth Alex

Docu clearly states not windows supported. Trying to alter mex files to have this work. Has anyone had any luck getting this to work under windowze?

04 May 2009 Fast 2D GPU-based convolution Graphics chip assisted fast 2d convolution Author: Alexander Huth Don

I have not ventured outside of matlab yet. How to I compile this code so I can run it?

-D

24 Apr 2009 Fast 2D GPU-based convolution Graphics chip assisted fast 2d convolution Author: Alexander Huth Jveer

finally functions that use the GPU!

24 Apr 2009 Fast 2D GPU-based convolution Graphics chip assisted fast 2d convolution Author: Alexander Huth Bernd

The convolution is very fast and pretty accurate for the 'valid' part of an 2D signal (except the known double-single precision difference), but there are big differences near the edges if using 'same' shape. Therefore I wrote a piece of shaping code to treat it like conv2. Please test and report any coding mistakes!!!
____________________________________________________
function [newimage] = cudaconv2(image,filter,shape)
if nargin == 2
    shape = 'full';
end

if (strcmp(shape, 'full')) % it's not a real 'full' convolution !!!!!
    [im in] = size(image);
    [fm fn] = size(filter);
    outM1 = 1;
    outN1 = 1;
    image2 = zeros(im+fm-1, in+fn-1);
    image2(round(fm/2):round(im + fm/2 - ...1),round(fn/2):round(in + fn/2 - 1)) = image(1:end,1:end);
    output = cudaconv(image2,filter);
    [outM2, outN2] = size(output);
    
elseif (strcmp(shape, 'same')) % large differences on the edges
    output = cudaconv(image,filter);
    [Am An] = size(image);
    outM1 = 1;
    outN1 = 1;
    outM2 = Am;
    outN2 = An;

elseif (strcmp(shape, 'valid')) % very accurate
    output = cudaconv(image,filter);
    [Am An] = size(image);
    [Cm Rn] = size(filter);
    outM1 = round(Cm/2);
    outN1 = round(Rn/2);
    outM2 = round(Am - Cm/2);
    outN2 = round(An - Rn/2);
else
    disp('Shape type not valid');
    return;
end

newimage = output(outM1:outM2,outN1:outN2);
____________________________________________________

Top Tags Applied by Alexander
cuda, fast mex, 2d bilinear interpolation, 2d convolution
Files Tagged by Alexander View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
16 Jul 2008 Screenshot 2D CUDA-based bilinear interpolation GPU assisted fast bilinear interpolation Author: Alexander Huth fast mex, 2d bilinear interpola..., cuda 59 6
16 Jul 2008 Screenshot Fast 2D GPU-based convolution Graphics chip assisted fast 2d convolution Author: Alexander Huth 2d convolution, cuda, fast mex 56 9
  • 4.2
4.2 | 5 ratings
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com