aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-10-15 14:49:26 +0200
committerPacien TRAN-GIRARD2015-10-15 14:49:26 +0200
commitc810af4c82c1c932a564c957aa1c773a5dbfc1c5 (patch)
treef1ea8696c868dcdfb3a0ce83386470663305af56 /src/main/java
parent358cceba114f6992884bde1ebd840317d9cd2b15 (diff)
downloadseam-stitcher-c810af4c82c1c932a564c957aa1c773a5dbfc1c5.tar.gz
Fix pixel surrounding selection
Diffstat (limited to 'src/main/java')
-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++) {