Rank: 12269 based on downloads (last 30 days) and 0 files submitted
photo

Bernd

E-mail

Personal Profile:

Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Bernd View all
Updated File Comments Rating
15 Jul 2009 M-code LaTeX Package Easily include nicely syntax highlighted m-code in your LaTeX documents. Author: Florian Knorn

exactly what I was searching for

08 Jul 2009 extract_subplot_image Extract image data from saved fig file Author: Chris Clayton

the function only threw error messages at me, but looking at the code, I foun what I needed so badly; the extraction of image data in a subplot

w=findobj(gcf,'Type','image');
ww=get(w,'cdata');

stores cdata of every image into a cell of ww

25 May 2009 Real Time Microphone and Camera data acquisition and audio-video processing This Matlab-code is a demo for real-time audio and image processing. Author: Theodoros Giannakopoulos

are you rating your owm files?

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

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);
____________________________________________________

 

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