diff options
author | Pacien TRAN-GIRARD | 2015-10-15 14:49:26 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2015-10-15 14:49:26 +0200 |
commit | c810af4c82c1c932a564c957aa1c773a5dbfc1c5 (patch) | |
tree | f1ea8696c868dcdfb3a0ce83386470663305af56 /src/main | |
parent | 358cceba114f6992884bde1ebd840317d9cd2b15 (diff) | |
download | seam-stitcher-c810af4c82c1c932a564c957aa1c773a5dbfc1c5.tar.gz |
Fix pixel surrounding selection
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/Filter.java | 4 |
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++) { |