Image processing

Kernel decomposition in matlab

The following Matlab project contains the source code and Matlab examples used for kernel decomposition. This function does the decomposition of a separable nD kernel into its 1D components, such that a convolution with each of these components yields the same result as a convolution with the full nD kernel, at a drastic reduction in computational cost.

Distribution of the sum of independent non-identical bernoulli random variables using convolution in matlab

The following Matlab project contains the source code and Matlab examples used for distribution of the sum of independent non-identical bernoulli random variables using convolution . Y = BERNPDF(P) where P is an N x 1 vector returns the distribution of the sum of N Bernoulli random variables.

Mono and bidimensional box car convolution. fast. in matlab

The following Matlab project contains the source code and Matlab examples used for mono and bidimensional box car convolution. fast.. It uses the recursion hence, it is much faster as the windows get large. Call it two times for triangular window convolution. Example:  x=randn(300,100);  tic;y1 = conv2(x,ones(10,40),'same');toc  tic;y2 = boxconv(x,10,40);toc  err=y1-y2; norm(err,2)

4 d sobel edge detection in matlab

The following Matlab project contains the source code and Matlab examples used for 4 d sobel edge detection. 4-D Sobel Edge Dection 4-D edge Sobel edge detector INPUT:   A - 4-d double/single tensor OUTPUT:   S - 4-d double/single tensor               Sobel edge magnitude values at every location (x,y,z,t) Class support of input:     float: double, single .

Adaptive degree smoothing and differentiation in matlab

The following Matlab project contains the source code and Matlab examples used for adaptive degree smoothing and differentiation. % function ynew=adsmoothdiff(dados,xnew,sdx,isdx,q,nmin) % written by Carlos J Dias % % ADAPTIVE DEGREE SAVISTZKY-GOLAY SMOOTHING AND DIFFERENTIATION % This function smooths and differentiates a sequence of numbers based on % an algorithm drawn on the ideas of Savistky and Golay and Barak.

2d distance transform of arbitrary points in matlab

The following Matlab project contains the source code and Matlab examples used for 2d distance transform of arbitrary points. Tristan Ursell Distance Transform for Arbitrary Point Cloud March 2012 [Xvec,Yvec,Dist]=clouddist(Xin,Yin,xlim,ylim,res); The function creates a Euclidean distance transform from an arbitrary set of points, which is the in-plane distance to to closest point.

Generate coefficients for 1d savitzky golay smoothing filters in matlab

The following Matlab project contains the source code and Matlab examples used for generate coefficients for 1d savitzky golay smoothing filters. INPUT: order = order of the polynomial interval = the window size; *MUST* smaller than size(vIN) OUTPUT: c(ss,nn)= a matrix Rows corresponds to coefficients for the target point, g_t, at different location of the window (up >> down: g_t moves from left to right).

Gabor function in matlab

The following Matlab project contains the source code and Matlab examples used for gabor function. Generates a 2D spatial Gabor function. Useful for generating model simple cell receptive fields, or for performing edge detection. Parameters allow for specifying spatial frequency, orientation, width, and center.

Speccompare shows the spectral differences of two signals using colors and brightness. in matlab

The following Matlab project contains the source code and Matlab examples used for speccompare shows the spectral differences of two signals using colors and brightness. . SPECCOMPARE calculates the spectral difference of two signals and shows it in green/red for positive/negative changes and in white for unchanged signal parts.

Pages

Subscribe to RSS - Image processing