# Draw line segments (anti aliased) in matlab

The following Matlab project contains the source code and Matlab examples used for draw line segments (anti aliased). computes the distance from a given line segment (in 2d) or draws an anti aliased line see http://mathworld.

# Fast savitzky golay filter as multi-threaded c-mex in matlab

The following Matlab project contains the source code and Matlab examples used for fast savitzky golay filter as multi-threaded c-mex . fSGolayFilt is a fast polynomial smoothing filter for uniformly spaced signals.

# 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.

# Histogram of 2d/3d grayscale or color images in matlab

The following Matlab project contains the source code and Matlab examples used for histogram of 2d/3d grayscale or color images . Generic function for computing histogram of an image.

# 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)

# Spectral and xyz color functions in matlab

The following Matlab project contains the source code and Matlab examples used for spectral and xyz color functions. This is the beginning of a set of functions for working with color as wavelengths (spectral color) and in the xyY and XYZ color spaces.

# Color image histogram in matlab

The following Matlab project contains the source code and Matlab examples used for color image histogram. RGBHIST displays a histogram of the overall color balance of an image.

# Kuwahara filter implementation in matlab

The following Matlab project contains the source code and Matlab examples used for kuwahara filter implementation. The pseudo-code/java applet referred to for the implementation can be found here: http://www.cse.ust.hk/learning_objects/imageprocessing/kuwahara/kuwahara.html Code example: I = imread('peppers.png'); I_f = kuwahara_filter(I); imshow(I_f);

# Image pyramid(gaussian and laplacian) in matlab

The following Matlab project contains the source code and Matlab examples used for image pyramid(gaussian and laplacian). Generate Gaussian or Laplacian pyramids, or reconstruct an image from a pyramid. Contains a demo script doing image blending using pyramids. The function is more convenient to use than the Matlab function impyramid.

# Canny edge detection in matlab

The following Matlab project contains the source code and Matlab examples used for canny edge detection. The Canny Edge detection method relies on various steps: 1. Convolution with Gaussian. 2. Estimation of Gradient Vector. 3. Non Maxima Suppression. 4. Thresholding and Connectivity Analysis.

# Finding dominant peaks and valleys of an image histogram in matlab

The following Matlab project contains the source code and Matlab examples used for finding dominant peaks and valleys of an image histogram. This function finds dominant peaks and valleys of an image histogram.

# Color quantization in matlab

The following Matlab project contains the source code and Matlab examples used for color quantization. A true color image (24 bit image) usually contains thousands of unique colors.

# Convolve deconvolve gaussian impulse response and unit impulse vectors in matlab

The following Matlab project contains the source code and Matlab examples used for convolve deconvolve gaussian impulse response and unit impulse vectors. This function plots a Gaussian impulse response, unit impulse and the % convolution/deconvolution of both using MATLAB's 'filter'.

# 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 .

# Floyd steinberg dithering algorithm in matlab

The following Matlab project contains the source code and Matlab examples used for floyd steinberg dithering algorithm. This m-file implements the Floyd Steinberg dithering algorithm, which can be considered as a type of image binarization with additional human visual considerations.

# 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).

# Savitzky golay smoothing filter in matlab

The following Matlab project contains the source code and Matlab examples used for savitzky golay smoothing filter. The function smooths a input vector using Savitzky-Golay smoothing filter based on the degree of polynomial and the length of moving windows

# Split bregman method for total variation denoising in matlab

The following Matlab project contains the source code and Matlab examples used for split bregman method for total variation denoising. These files implement the split Bregman method for total variation denoising.

# Saliency map based on phase quaternion fourier transform in matlab

The following Matlab project contains the source code and Matlab examples used for saliency map based on phase quaternion fourier transform. Generate Saliency Map based on phase variation of Quaternion Fourier Transform

# Logicle histogram in matlab

The following Matlab project contains the source code and Matlab examples used for logicle histogram. This programs creates a histogram with a "logicle" (aka biexponential) x-axis.

# Savitzky golay smoothing filter for 3d data in matlab

The following Matlab project contains the source code and Matlab examples used for savitzky golay smoothing filter for 3d data. This function provide a Savitzky-Golay smoothing filter for 3D data.

# Savitzky golay smoothing filter for 2d data in matlab

The following Matlab project contains the source code and Matlab examples used for savitzky golay smoothing filter for 2d data. This function provide a Savitzky-Golay smoothing filter for 2D data.

# 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.

# Dynamic non local means (dnlm) for denoising of dynamic medical image sequences in matlab

The following Matlab project contains the source code and Matlab examples used for dynamic non local means (dnlm) for denoising of dynamic medical image sequences. The algorithm (called dynamic non-local means) is very effective on 4D medical images (i.

# Multi dimensional (n dimensional) gaussian and gaussian derivative filters in matlab

The following Matlab project contains the source code and Matlab examples used for multi dimensional (n dimensional) gaussian and gaussian derivative filters. Can be used to smooth/ analysis multi-dimensional (N-D) data and images.

# Scale all the chosen images into 800 pixels wide in matlab

The following Matlab project contains the source code and Matlab examples used for scale all the chosen images into 800 pixels wide. Directly running the code, the user could specify multiple images and these images will be automatically scaled to 800 pixels wide without changing aspect ratio.

# 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.