Commit bc032feee9ff3c32748cbf4972217c24927d2ab0

Authored by Laila Saadatifard
1 parent da849ea2

first upload the 3d ivote code in matlab

Showing 541 changed files with 583405 additions and 0 deletions   Show diff stats

Too many changes.

To preserve performance only 100 of 541 files are displayed.

matlab-3d/blue.bmp 0 → 100644
No preview for this file type
matlab-3d/gauss1d.m 0 → 100644
  1 +%This function creates a 1D gaussian window given a standard deviation
  2 +
  3 +function G = gauss1d(sigma)
  4 +
  5 +
  6 + % create a kernel with a radius equal to 4x sigma
  7 + r = sigma * 4;
  8 +
  9 + % create the domain of the gaussian function (x and y)
  10 + gx = -r:r;
  11 + % calculate the gaussian function
  12 + a = 1/(sqrt(2*pi)*sigma);
  13 + b = -1/(2*sigma^2);
  14 + cx = gx.^2;
  15 + G = a.*exp(b.*cx);
0 16 \ No newline at end of file
... ...
matlab-3d/gauss_blur3d.m 0 → 100644
  1 +function Ib = gauss_blur3d(I, sigma)
  2 +
  3 +
  4 +%convolve along the x-axis
  5 +Gx = gauss1d(sigma(1));
  6 +Ix = convn(I, Gx, 'same');
  7 +
  8 +%convolve along the y-axis
  9 +Gy = gauss1d(sigma(2))';
  10 +Iy = convn(Ix, Gy, 'same');
  11 +
  12 +%convolve along the z-axis
  13 +Gz_prime = gauss1d(sigma(3));
  14 +Gz = reshape(Gz_prime, [1, 1, length(Gz_prime)]);
  15 +Iz = convn(Iy, Gz, 'same');
  16 +
  17 +Ib = Iz;
  18 +
  19 +
... ...
matlab-3d/iblur.vol 0 → 100644
No preview for this file type
matlab-3d/img/0001.png 0 → 100644

129 KB

matlab-3d/img/0002.png 0 → 100644

130 KB

matlab-3d/img/0003.png 0 → 100644

130 KB

matlab-3d/img/0004.png 0 → 100644

128 KB

matlab-3d/img/0005.png 0 → 100644