aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/Filter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/Filter.java b/src/main/java/Filter.java
index 2dd81ee..bb87287 100644
--- a/src/main/java/Filter.java
+++ b/src/main/java/Filter.java
@@ -39,9 +39,9 @@ public final class Filter {
39 for (int row = 0; row < height; ++row) { 39 for (int row = 0; row < height; ++row) {
40 for (int col = 0; col < width; ++col) { 40 for (int col = 0; col < width; ++col) {
41 float pixelCore[][] = { 41 float pixelCore[][] = {
42 {Filter.at(gray, row+1, col-1),Filter.at(gray, row+1, col),Filter.at(gray, row+1, col+1)}, 42 {Filter.at(gray, row-1, col-1),Filter.at(gray, row-1, col),Filter.at(gray, row-1, col+1)},
43 {Filter.at(gray, row, col-1),Filter.at(gray, row, col),Filter.at(gray, row, col+1)}, 43 {Filter.at(gray, row, col-1),Filter.at(gray, row, col),Filter.at(gray, row, col+1)},
44 {Filter.at(gray, row-1, col-1),Filter.at(gray, row-1, col),Filter.at(gray, row-1, col+1)} 44 {Filter.at(gray, row+1, col-1),Filter.at(gray, row+1, col),Filter.at(gray, row+1, col+1)}
45 }; 45 };
46 46
47 for (int i = 0; i < kernel[0].length; i++) { 47 for (int i = 0; i < kernel[0].length; i++) {