aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-10-15 15:32:36 +0200
committerPacien TRAN-GIRARD2015-10-15 15:32:36 +0200
commit22f123f0a7d8a0490781067a5326146e17a31882 (patch)
treed663cc775382c91ff8485f8d6ad787a4a460a7dd
parentbd095a9fb644010ecb5b181a80f411c40ec82817 (diff)
downloadseam-stitcher-22f123f0a7d8a0490781067a5326146e17a31882.tar.gz
Simplify returns
-rw-r--r--src/main/java/Filter.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/main/java/Filter.java b/src/main/java/Filter.java
index 03c8b0b..1e50d7e 100644
--- a/src/main/java/Filter.java
+++ b/src/main/java/Filter.java
@@ -20,7 +20,6 @@ public final class Filter {
20 {1, 2, 1} 20 {1, 2, 1}
21 }; 21 };
22 22
23
24 /** 23 /**
25 * Get a pixel without accessing out of bounds 24 * Get a pixel without accessing out of bounds
26 * 25 *
@@ -79,8 +78,7 @@ public final class Filter {
79 * @return a HxW float array 78 * @return a HxW float array
80 */ 79 */
81 public static float[][] smooth(float[][] gray) { 80 public static float[][] smooth(float[][] gray) {
82 float[][] smoothtImage = Filter.filter(gray, SMOOTH_CORE); 81 return Filter.filter(gray, SMOOTH_CORE);
83 return smoothtImage;
84 } 82 }
85 83
86 /** 84 /**
@@ -90,8 +88,7 @@ public final class Filter {
90 * @return a HxW float array 88 * @return a HxW float array
91 */ 89 */
92 public static float[][] sobelX(float[][] gray) { 90 public static float[][] sobelX(float[][] gray) {
93 float[][] sobelXImage = Filter.filter(gray, SOBEL_X_CORE); 91 return Filter.filter(gray, SOBEL_X_CORE);
94 return sobelXImage;
95 } 92 }
96 93
97 /** 94 /**
@@ -101,8 +98,7 @@ public final class Filter {
101 * @return a HxW float array 98 * @return a HxW float array
102 */ 99 */
103 public static float[][] sobelY(float[][] gray) { 100 public static float[][] sobelY(float[][] gray) {
104 float[][] sobelYImage = Filter.filter(gray, SOBEL_Y_CORE); 101 return Filter.filter(gray, SOBEL_Y_CORE);
105 return sobelYImage;
106 } 102 }
107 103
108 /** 104 /**