aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/Filter.java
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2015-10-10 10:39:03 +0200
committerPacien TRAN-GIRARD2015-10-10 10:39:03 +0200
commit4453b77e0f24afa2aa8ce4eab9aca8c7e158fc49 (patch)
tree96275e2e7b5dda02a939b5485092670f369a33d3 /src/main/java/Filter.java
downloadseam-stitcher-4453b77e0f24afa2aa8ce4eab9aca8c7e158fc49.tar.gz
Bootstrap project
Diffstat (limited to 'src/main/java/Filter.java')
-rw-r--r--src/main/java/Filter.java76
1 files changed, 76 insertions, 0 deletions
diff --git a/src/main/java/Filter.java b/src/main/java/Filter.java
new file mode 100644
index 0000000..ddc3e92
--- /dev/null
+++ b/src/main/java/Filter.java
@@ -0,0 +1,76 @@
1/**
2 * @author Pacien TRAN-GIRARD
3 * @author Timothée FLOURE
4 */
5public final class Filter {
6
7 /**
8 * Get a pixel without accessing out of bounds
9 *
10 * @param gray a HxW float array
11 * @param row Y coordinate
12 * @param col X coordinate
13 * @return nearest valid pixel color
14 */
15 public static float at(float[][] gray, int row, int col) {
16 // TODO at
17 return 0.0f;
18 }
19
20 /**
21 * Convolve a single-channel image with specified kernel.
22 *
23 * @param gray a HxW float array
24 * @param kernel a MxN float array, with M and N odd
25 * @return a HxW float array
26 */
27 public static float[][] filter(float[][] gray, float[][] kernel) {
28 // TODO filter
29 return null;
30 }
31
32 /**
33 * Smooth a single-channel image
34 *
35 * @param gray a HxW float array
36 * @return a HxW float array
37 */
38 public static float[][] smooth(float[][] gray) {
39 // TODO smooth
40 return null;
41 }
42
43 /**
44 * Compute horizontal Sobel filter
45 *
46 * @param gray a HxW float array
47 * @return a HxW float array
48 */
49 public static float[][] sobelX(float[][] gray) {
50 // TODO sobelX
51 return null;
52 }
53
54 /**
55 * Compute vertical Sobel filter
56 *
57 * @param gray a HxW float array
58 * @return a HxW float array
59 */
60 public static float[][] sobelY(float[][] gray) {
61 // TODO sobelY
62 return null;
63 }
64
65 /**
66 * Compute the magnitude of combined Sobel filters
67 *
68 * @param gray a HxW float array
69 * @return a HxW float array
70 */
71 public static float[][] sobel(float[][] gray) {
72 // TODO sobel
73 return null;
74 }
75
76}