From 343583bba8565b4b4cd823e6ce52bf7b63565f73 Mon Sep 17 00:00:00 2001 From: Leonard Thomas Date: Tue, 14 Nov 2017 21:21:08 +0100 Subject: [PATCH] fixed kernel and bumped version --- .../Chapters/Chapter1.playgroundchapter/Manifest.plist | 2 +- .../Pages/Page1.playgroundpage/Contents.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Image Filtering.playgroundbook/Contents/Chapters/Chapter1.playgroundchapter/Manifest.plist b/Image Filtering.playgroundbook/Contents/Chapters/Chapter1.playgroundchapter/Manifest.plist index 8c9081c..ae88fcb 100755 --- a/Image Filtering.playgroundbook/Contents/Chapters/Chapter1.playgroundchapter/Manifest.plist +++ b/Image Filtering.playgroundbook/Contents/Chapters/Chapter1.playgroundchapter/Manifest.plist @@ -3,7 +3,7 @@ Version - 1.0 + 1.0.1 Name Introduction Pages diff --git a/Image Filtering.playgroundbook/Contents/Chapters/Chapter1.playgroundchapter/Pages/Page1.playgroundpage/Contents.swift b/Image Filtering.playgroundbook/Contents/Chapters/Chapter1.playgroundchapter/Pages/Page1.playgroundpage/Contents.swift index 08b290f..5b19320 100755 --- a/Image Filtering.playgroundbook/Contents/Chapters/Chapter1.playgroundchapter/Pages/Page1.playgroundpage/Contents.swift +++ b/Image Filtering.playgroundbook/Contents/Chapters/Chapter1.playgroundchapter/Pages/Page1.playgroundpage/Contents.swift @@ -48,9 +48,9 @@ A *filter* or also called *kernel* is a matrix that describes a transformation p 2. If all values sum to one, the brightness doesn't change 3. If the sum of all values are greater than one, the image gets brighter and darker if the sum is less than one */ -typealias aKernel = [Float] +typealias Kernel = [Float] -let filter: aKernel = [/*#-editable-code*/1/9/*#-end-editable-code*/,/*#-editable-code*/1/9/*#-end-editable-code*/,/*#-editable-code*/1/9/*#-end-editable-code*/, +let filter: Kernel = [/*#-editable-code*/1/9/*#-end-editable-code*/,/*#-editable-code*/1/9/*#-end-editable-code*/,/*#-editable-code*/1/9/*#-end-editable-code*/, /*#-editable-code*/1/9/*#-end-editable-code*/,/*#-editable-code*/1/9/*#-end-editable-code*/,/*#-editable-code*/1/9/*#-end-editable-code*/, /*#-editable-code*/1/9/*#-end-editable-code*/,/*#-editable-code*/1/9/*#-end-editable-code*/,/*#-editable-code*/1/9/*#-end-editable-code*/]