diff --git a/image-processing-with-numpy.ipynb b/image-processing-with-numpy.ipynb index 7a27f25..102d967 100644 --- a/image-processing-with-numpy.ipynb +++ b/image-processing-with-numpy.ipynb @@ -423,9 +423,9 @@ "source": [ "from scipy.ndimage import median_filter\n", "\n", - "def make_guassian_window(n, sigma=1):\n", + "def make_gaussian_window(n, sigma=1):\n", " \"\"\"\n", - " Creates a square window of size n by n of weights from a guassian\n", + " Creates a square window of size n by n of weights from a gaussian\n", " of width sigma.\n", " \"\"\"\n", " nn = int((n-1)/2)\n", @@ -456,12 +456,12 @@ " ax.set_title(\"Mean Filter: window size: {}\".format(w));\n", " ax.set_axis_off();\n", " \n", - "# guassian filter\n", + "# gaussian filter\n", "for w, ax in zip(window_sizes, axs[1]):\n", - " window = make_guassian_window(w,sigma=w)\n", + " window = make_gaussian_window(w,sigma=w)\n", " window /= np.sum(window)\n", " ax.imshow(convolve_all_colours(im_small, window));\n", - " ax.set_title(\"Guassian Filter: window size: {}\".format(w));\n", + " ax.set_title(\"Gaussian Filter: window size: {}\".format(w));\n", " ax.set_axis_off();\n", " \n", "# median filter\n",